HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/gutenbiz/inc/theme-options/post-options.php
<?php
/**
 * Create options for posts.
 *
 * @since 1.0.0
 *
 * @package Gutenbiz WordPress theme
 */

function gutenbiz_post_options(){  
    Gutenbiz_Customizer::set(array(
    	# Theme Options
    	'panel'   => 'panel',
    	# Theme Options > Page Options > Settings
    	'section' => array(
    		'id'    => 'post-options',
    		'title' => esc_html__( 'Post Options','gutenbiz' ),
    	),
    	'fields' => array(
            array(
                'id'      => 'post-category',
                'label'   =>  esc_html__( 'Show Categories', 'gutenbiz' ),
                'default' => 1,
                'type'    => 'toggle',
            ),
            array(
                'id'      => 'post-date',
                'label'   => esc_html__( 'Show Date', 'gutenbiz' ),
                'default' => 1,
                'type'    => 'toggle',
            ),
            array(
                'id'      => 'post-author',
                'label'   =>  esc_html__( 'Show Author', 'gutenbiz' ),
                'default' => 1,
                'type'    => 'toggle',
            ),
            array(
                'id'      => 'excerpt_length',
                'label'   => esc_html__( 'Excerpt Length', 'gutenbiz' ),
                'description' => esc_html__( 'Defaults to 10.', 'gutenbiz' ),
                'default' => 10,
                'type'    => 'number',
            ),
            array(
                'id'      => 'read-more-text',
                'label'   => esc_html__( 'Read More Text', 'gutenbiz' ),
                'default' => esc_html__( 'Read More', 'gutenbiz' ),
                'type'    => 'text'
            ),
            array(
                'id' => 'post-per-row',
                'label' => esc_html__( 'Post Per Row', 'gutenbiz' ),
                'type' => 'buttonset',
                'default' => '3',
                'choices' => array(
                    '1' => esc_html__( '1', 'gutenbiz' ),
                    '2' => esc_html__( '2', 'gutenbiz' ),
                    '3' => esc_html__( '3', 'gutenbiz' ),
                    '4' => esc_html__( '4', 'gutenbiz' )
                )
            ),
     	),
    ) );
}
add_action( 'init', 'gutenbiz_post_options' );