403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.14.79.99
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/themes/open-shop/customizer/section/layout/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/themes/open-shop/customizer/section/layout/blog/blog.php
<?php
/**
 *Blog Option
 /*******************/
//blog post content
/*******************/
    $wp_customize->add_setting('open_shop_blog_post_content', array(
        'default'        => 'excerpt',
        'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'esc_attr',
    ));
    $wp_customize->add_control('open_shop_blog_post_content', array(
        'settings' => 'open_shop_blog_post_content',
        'label'   => __('Blog Post Content','open-shop'),
        'section' => 'open-shop-section-blog-group',
        'type'    => 'select',
        'choices'    => array(
        'full'   => __('Full Content (Pro)','open-shop'),
        'excerpt' => __('Excerpt Content','open-shop'), 
        'nocontent' => __('No Content (Pro)','open-shop'), 
        ),
         'priority'   =>9,
    ));
    // excerpt length
    $wp_customize->add_setting('open_shop_blog_expt_length', array(
			'default'           =>'30',
            'capability'        => 'edit_theme_options',
			'sanitize_callback' =>'open_shop_sanitize_number',
		)
	);
	$wp_customize->add_control('open_shop_blog_expt_length', array(
			'type'        => 'number',
			'section'     => 'open-shop-section-blog-group',
			'label'       => __( 'Excerpt Length (Pro)', 'open-shop' ),
			'input_attrs' => array(
				'min'  => 0,
				'step' => 1,
				'max'  => 3000,
			),
             'priority'   =>10,
		)
	);
	// read more text
    $wp_customize->add_setting('open_shop_blog_read_more_txt', array(
			'default'           =>'Read More',
            'capability'        => 'edit_theme_options',
			'sanitize_callback' =>'open_shop_sanitize_text',
            'transport'         => 'postMessage',
		)
	);
	$wp_customize->add_control('open_shop_blog_read_more_txt', array(
			'type'        => 'text',
			'section'     => 'open-shop-section-blog-group',
			'label'       => __( 'Read More Text (Pro)', 'open-shop' ),
			'settings' => 'open_shop_blog_read_more_txt',
             'priority'   =>11,
			
		)
	);
    /*********************/
    //blog post pagination
    /*********************/
   $wp_customize->add_setting('open_shop_blog_post_pagination', array(
        'default'        => 'num',
        'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'esc_attr',
    ));
    $wp_customize->add_control('open_shop_blog_post_pagination', array(
        'settings' => 'open_shop_blog_post_pagination',
        'label'   => __('Post Pagination','open-shop'),
        'section' => 'open-shop-section-blog-group',
        'type'    => 'select',
        'choices' => array(
        'num'     => __('Numbered','open-shop'),
        'click'   => __('Load More (Pro)','open-shop'), 
        'scroll'  => __('Infinite Scroll (Pro)','open-shop'), 
        ),
        'priority'   =>13,
    ));
/****************/
//blog doc link
/****************/
$wp_customize->add_setting('open_shop_blog_arch_learn_more', array(
    'sanitize_callback' => 'open_shop_sanitize_text',
    ));
$wp_customize->add_control(new Open_Shop_Misc_Control( $wp_customize, 'open_shop_blog_arch_learn_more',
            array(
        'section'    => 'open-shop-section-blog-group',
        'type'      => 'doc-link',
        'url'       => 'https://themehunk.com/docs/open-shop/#blog-setting',
        'description' => esc_html__( 'To know more go with this', 'open-shop' ),
        'priority'   =>100,
    )));

Youez - 2016 - github.com/yon3zu
LinuXploit