Uname:Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 119.59.104.26  /  Your IP : 216.73.217.130
Web Server : Apache/2
System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64
User : com12370 ( 1517)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/com12370/public_html/wp-content/themes/titan/wiloke/content/pilayout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/com12370/public_html/wp-content/themes/titan/wiloke/content/pilayout/setting.php
<?php

/**

 * Content layout

 * Created by ninhle - wiloke team

 * @since 1.0

 */



add_action('pi_hook_before_post', 'pi_add_content_layout_settings', 10, 3);

function pi_add_content_layout_settings($wp_customize, $piSectionPriority, $piControlPriority)

{

	$wp_customize->add_section(

		'pi_content_layout',

		array(

			'title' 	 => __('Home', 'titan'),

			'priority'	 => $piSectionPriority++,

			'panel'		 => 'pi_content_panel'

		)

	);



	$wp_customize->add_setting(

        'pi_options[content][layout]',

        array(

            'default'           => 'standard',

            'type'              => 'option',

            'capability'        => 'edit_theme_options',

            'sanitize_callback' => 'pi_sanitize_data'

        )

    );



    $wp_customize->add_control(

        'pi_options[content][layout]',

        array(

            'label'     => 'Layout',

            'type'      => 'select',

            'priority'  => $piControlPriority,

            'section'   => 'pi_content_layout',

            'settings'  => 'pi_options[content][layout]',

            'choices'   => array(

                'standard'              => __('Standard', 'titan'),

                'grid' 	                => __('Grid', 'titan'),

                'grid_first-large' 	    => __('Grid - 1st large', 'titan'),

                'list'                  => __('List', 'titan'),

                'list_first-large'      => __('List - 1st large', 'titan')

            )

        )

    );





    $aCategories = get_categories();

    $aCats = array();

    if ( !empty($aCategories) )

    {

        foreach ( $aCategories as $term )

        {

            $aCats[$term->term_id] = $term->name; 

        }

    }





    $wp_customize->add_setting(

        "pi_options[content][page_template][categories][]",

        array(

            'default'               => '',

            'type'                  => 'option',

            'capability'            => 'edit_theme_options',

            'sanitize_callback'     => 'pi_sanitize_data'

        )

    );



    $wp_customize->add_control( new piMultipleSelect(

            $wp_customize,

            "pi_options[content][page_template][categories][]",

            array(

               "priority"   => $piControlPriority++,

               "type"       => "pi_multiple_select",

               "label"      => __( 'Get posts from: ', 'titan' ),

               "section"    => "pi_content_layout",

               "options"    => $aCats,

               "settings"   => "pi_options[content][page_template][categories][]"

            )

        )

    );



    $wp_customize->add_setting(

        "pi_options[content][page_template_des]",

        array(

            'default'               => '',

            'type'                  => 'option',

            'capability'            => 'edit_theme_options',

            'sanitize_callback'     => 'pi_sanitize_data'

        )

    );



    $wp_customize->add_control( new piDescription(

            $wp_customize,

            "pi_options[content][page_template_des]",

            array(

               "priority"   => $piControlPriority++,

               "label"      => __( 'Note that: This setting is only available with the <a target="_blank" href="https://nimbus.everhelper.me/client/notes/share/276720/28qkQKaJthw7xT2GeEq2HE0f0bVheicK/">Page Template</a>', 'titan' ),

               "section"    => "pi_content_layout",

               "settings"   => "pi_options[content][page_template_des]",

            )

        )

    );



}



?>

Youez - 2016 - github.com/yon3zu
LinuXploit