NEWS_THEME_URL . '/assets/img/admin/single-post-wide-left-sidebar.png', 'double-sidebar' => JNEWS_THEME_URL . '/assets/img/admin/single-post-double-sidebar.png', 'double-right-sidebar' => JNEWS_THEME_URL . '/assets/img/admin/single-post-double-right.png', 'no-sidebar' => JNEWS_THEME_URL . '/assets/img/admin/single-post-no-sidebar.png', 'custom-template' => JNEWS_THEME_URL . '/assets/img/admin/single-post-custom.png', ), 'dependency' => array( $author_override ) ); $options['tag_template'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Tag Template', 'jnews' ), 'desc' => esc_html__( 'Choose archive template that you want to use for this tag.', 'jnews' ), 'type' => 'select', 'options' => $jnews_get_all_custom_archive_template, 'dependency' => array( $author_override, array( 'field' => 'page_layout', 'operator' => '==', 'value' => 'custom-template' ) ) ); $options['number_post'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Number of Post', 'jnews' ), 'desc' => esc_html__( 'Set the number of post per page on tag page.', 'jnews' ), 'type' => 'text', 'default' => '10', 'dependency' => array( $author_override, array( 'field' => 'page_layout', 'operator' => '==', 'value' => 'custom-template' ) ) ); $options['sidebar'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Tag Sidebar', 'jnews' ), 'desc' => wp_kses( __( "Choose your tag sidebar. If you need another sidebar, you can create from WordPress Admin » Appearance » Widget.", 'jnews' ), wp_kses_allowed_html() ), 'type' => 'select', 'default' => 'default-sidebar', 'options' => $all_sidebar, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'page_layout', 'operator' => '!=', 'value' => 'no-sidebar' ) ) ); $options['second_sidebar'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Second Tag Sidebar', 'jnews' ), 'desc' => wp_kses( __( "Choose your second sidebar for tag page. If you need another sidebar, you can create from WordPress Admin » Appearance » Widget.", 'jnews' ), wp_kses_allowed_html() ), 'type' => 'select', 'default' => 'default-sidebar', 'options' => $all_sidebar, 'dependency' => array( $author_override, array( 'field' => 'page_layout', 'operator' => 'in', 'value' => array( 'double-sidebar', 'double-right-sidebar' ) ) ) ); $options['sticky_sidebar'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Tag Sticky Sidebar', 'jnews' ), 'desc' => esc_html__( 'Enable sticky sidebar on this tag page.', 'jnews' ), 'type' => 'checkbox', 'default' => true, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'page_layout', 'operator' => '!=', 'value' => 'no-sidebar' ) ) ); $options['content_layout'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Tag Content Layout', 'jnews' ), 'desc' => esc_html__( 'Choose your tag content layout.', 'jnews' ), 'default' => '3', 'type' => 'radioimage', 'options' => $content_layout, 'dependency' => array( $author_override, $custom_template, ) ); $options['content_boxed'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Enable Boxed', 'jnews' ), 'desc' => esc_html__( 'This option will turn the module into boxed.', 'jnews' ), 'type' => 'checkbox', 'default' => false, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_layout', 'operator' => 'in', 'value' => array( '3', '4', '5', '6', '7', '9', '10', '14', '18', '22', '23', '25', '26', '27', '39' ) ) ) ); $options['content_boxed_shadow'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Enable Shadow', 'jnews' ), 'desc' => esc_html__( 'Enable shadow on the module template.', 'jnews' ), 'type' => 'checkbox', 'default' => false, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_boxed', 'operator' => '==', 'value' => true ), array( 'field' => 'content_layout', 'operator' => 'in', 'value' => array( '3', '4', '5', '6', '7', '9', '10', '14', '18', '22', '23', '25', '26', '27', '39' ) ) ) ); $options['content_box_shadow'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Enable Shadow', 'jnews' ), 'desc' => esc_html__( 'Enable shadow on the module template.', 'jnews' ), 'type' => 'checkbox', 'default' => false, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_layout', 'operator' => 'in', 'value' => array( '37', '35', '33', '36', '32', '38' ) ) ) ); $options['content_excerpt'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Excerpt Length', 'jnews' ), 'desc' => esc_html__( 'Set the word length of excerpt on post.', 'jnews' ), 'type' => 'number', 'options' => array( 'min' => '0', 'max' => '200', 'step' => '1', ), 'default' => 20, 'dependency' => array( $author_override, $custom_template, ) ); $options['content_date'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Choose Date Format', 'jnews' ), 'desc' => esc_html__( 'Choose which date format you want to use for tag content element.', 'jnews' ), 'default' => 'default', 'type' => 'select', 'options' => array( 'ago' => esc_html__( 'Relative Date/Time Format (ago)', 'jnews' ), 'default' => esc_html__( 'WordPress Default Format', 'jnews' ), 'custom' => esc_html__( 'Custom Format', 'jnews' ), ), 'dependency' => array( $author_override, $custom_template, ) ); $options['content_date_custom'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Custom Date Format', 'jnews' ), 'desc' => wp_kses( sprintf( __( "Please set custom date format for tag content element. For more detail about this format, please refer to Developer Codex.", "jnews" ), "https://developer.wordpress.org/reference/functions/current_time/" ), wp_kses_allowed_html() ), 'default' => 'Y/m/d', 'type' => 'text', 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_date', 'operator' => '==', 'value' => 'custom' ) ) ); $options['content_pagination'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Choose Pagination Mode', 'jnews' ), 'desc' => esc_html__( 'Choose which pagination mode that fit with your block.', 'jnews' ), 'default' => 'nav_1', 'type' => 'select', 'options' => array( 'nav_1' => esc_html__( 'Normal - Navigation 1', 'jnews' ), 'nav_2' => esc_html__( 'Normal - Navigation 2', 'jnews' ), 'nav_3' => esc_html__( 'Normal - Navigation 3', 'jnews' ), ), 'dependency' => array( $author_override, $custom_template, ) ); $options['content_pagination_limit'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Auto Load Limit', 'jnews' ), 'desc' => esc_html__( 'Limit of auto load when scrolling, set to zero to always load until end of content.', 'jnews' ), 'type' => 'number', 'options' => array( 'min' => '0', 'max' => '9999', 'step' => '1', ), 'default' => 0, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_pagination', 'operator' => '==', 'value' => 'scrollload' ) ) ); $options['content_pagination_align'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Pagination Align', 'jnews' ), 'desc' => esc_html__( 'Choose pagination alignment.', 'jnews' ), 'default' => 'center', 'type' => 'select', 'options' => array( 'left' => esc_html__( 'Left', 'jnews' ), 'center' => esc_html__( 'Center', 'jnews' ), ), 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_pagination', 'operator' => 'in', 'value' => array( 'nav_1', 'nav_2', 'nav_3' ) ) ) ); $options['content_pagination_text'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Show Navigation Text', 'jnews' ), 'desc' => esc_html__( 'Show navigation text (next, prev).', 'jnews' ), 'type' => 'checkbox', 'default' => false, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_pagination', 'operator' => 'in', 'value' => array( 'nav_1', 'nav_2', 'nav_3' ) ) ) ); $options['content_pagination_page'] = array( 'segment' => 'override-author-setting', 'title' => esc_html__( 'Show Page Info', 'jnews' ), 'desc' => esc_html__( 'Show page info text (Page x of y).', 'jnews' ), 'type' => 'checkbox', 'default' => false, 'dependency' => array( $author_override, $custom_template, array( 'field' => 'content_pagination', 'operator' => 'in', 'value' => array( 'nav_1', 'nav_2', 'nav_3' ) ) ) ); return apply_filters( 'jnews_custom_option', $options ); } }