function znpb_get_helptab($data) { $help_tab = array('title' => '<span class="dashicons dashicons-editor-help"></span> HELP', 'options' => array()); // Video tutorials if (!empty($data['video'])) { $help_tab['options'][] = array("name" => __('Video Tutorial', 'zn_framework'), "description" => '<span class="dashicons dashicons-video-alt3 u-v-mid"></span> <a href="' . esc_url($data['video']) . '" target="_blank">' . __('Click here to access video tutorial for this element.', 'zn_framework') . '</a>', "id" => "video_link", "std" => "", "type" => "zn_title", "class" => "zn_full zn_nomargin"); } // Written documentation if (!empty($data['docs'])) { $help_tab['options'][] = array("name" => __('Written Documentation', 'zn_framework'), "description" => '<span class="dashicons dashicons-format-aside u-v-mid"></span> <a href="' . esc_url($data['docs']) . '" target="_blank">' . __('Click here to access documentation for this element.', 'zn_framework') . '</a>', "id" => "docs_link", "std" => "", "type" => "zn_title", "class" => "zn_full zn_nomargin"); } // Copy link if (!empty($data['copy'])) { $copy_text = __('Click to copy ID to clipboard', 'zn_framework'); $copy_text2 = __('Unique ID:', 'zn_framework'); $desc_text1 = __('In case you need some custom styling use as a css class selector', 'zn_framework'); $desc_text2 = __('Click to copy CSS class to clipboard', 'zn_framework'); $help_tab['options'][] = array("name" => '<span data-clipboard-text="' . $data['copy'] . '" data-tooltip="' . $copy_text . '">' . $copy_text2 . ' ' . $data['copy'] . '</span> ', "description" => $desc_text1 . ' <span class="u-code" data-clipboard-text=".' . $data['copy'] . ' { }" data-tooltip="' . $desc_text2 . '">.' . $data['copy'] . '</span> .', "id" => "id_element", "std" => "", "type" => "zn_title", "class" => "zn_full zn_nomargin"); } if (!empty($data['general'])) { $help_tab['options'][] = znpb_general_help_option(); } return $help_tab; }
<?php /** * Theme options > Font Options > Headings */ $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H1 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h1_typo", "std" => array('font-size' => '36px', 'font-family' => 'Open Sans', 'line-height' => '40px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("Force Page-Title", 'zn_framework'), "description" => __("Force page-title (eg: blog posts) to use <strong style='color:#000;'>H1's font-family</strong> (options above), otherwise it'll use <strong>Alternative font</strong>.", 'zn_framework'), "id" => "h1_pgtitle", "std" => '', "value" => '1', "type" => "toggle2"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H2 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h2_typo", "std" => array('font-size' => '30px', 'font-family' => 'Open Sans', 'line-height' => '40px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H3 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h3_typo", "std" => array('font-size' => '24px', 'font-family' => 'Open Sans', 'line-height' => '40px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H4 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h4_typo", "std" => array('font-size' => '14px', 'font-family' => 'Open Sans', 'line-height' => '20px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H5 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h5_typo", "std" => array('font-size' => '12px', 'font-family' => 'Open Sans', 'line-height' => '20px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __("H6 Typography", 'zn_framework'), "description" => __("Specify the typography properties for headings.", 'zn_framework'), "id" => "h6_typo", "std" => array('font-size' => '12px', 'font-family' => 'Open Sans', 'line-height' => '20px', 'font-style' => 'normal', 'font-weight' => '400'), 'supports' => array('size', 'font', 'style', 'line', 'weight'), "type" => "font"); $admin_options[] = array('slug' => 'headings_font_options', 'parent' => 'font_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "hdfo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#p-YITyC1ROU', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'headings_font_options', 'parent' => 'font_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'headings_font_options', 'parent' => 'font_options'));
<?php /** * Theme options > Font Options > Alternative font */ $admin_options[] = array('slug' => 'alternative_fonts_options', 'parent' => 'font_options', "name" => __("Custom Selectors Options", 'zn_framework'), "description" => __("This font is used by various elements in the theme. To add other selectors using this font, use the Custom CSS feature in the page builder or CAREFULLY edit /css/dynamic_css.php file, by searching for 'alternative_font' string.", 'zn_framework'), "id" => "alternative_font", "std" => array('font-family' => 'Lato'), 'supports' => array('font'), "type" => "font"); $admin_options[] = array('slug' => 'alternative_fonts_options', 'parent' => 'font_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "afo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#p-YITyC1ROU', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'alternative_fonts_options', 'parent' => 'font_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'alternative_fonts_options', 'parent' => 'font_options'));
<?php /** * Theme options > General Options > Logo options */ $desc = sprintf('%s ( <a href="%s" target="_blank" title="%s">%s</a>).', __('These options below are related to site\'s logo.', 'zn_framework'), esc_url('http://hogash.d.pr/108qR'), __('Click to open screenshot', 'zn_framework'), __('Open screenshot', 'zn_framework')); $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __('LOGO OPTIONS', 'zn_framework'), "description" => $desc, "id" => "info_title3", "type" => "zn_title", "class" => "zn_full zn-custom-title-large zn-toptabs-margin"); // Show LOGO In header $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Show LOGO in header", 'zn_framework'), "description" => __("Please choose if you want to display the logo or not.", 'zn_framework'), "id" => "head_show_logo", "std" => "yes", "type" => "zn_radio", "options" => array("yes" => __("Show", 'zn_framework'), "no" => __("Hide", 'zn_framework'))); // Logo Upload $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Logo Upload", 'zn_framework'), "description" => __("Upload your logo.", 'zn_framework'), "id" => "logo_upload", "std" => '', "type" => "media"); // Logo auto size ? $logo_size = array("yes" => __("Auto resize logo", 'zn_framework'), "no" => __("Custom size", 'zn_framework'), "contain" => __("Contain in header", 'zn_framework')); $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Logo Size :", 'zn_framework'), "description" => __("Auto resize logo will use the image dimensions, Custom size let's you set the desired logo size and Contain in header will select the proper logo size so that it will be displayed in the header.", 'zn_framework'), "id" => "logo_size", "std" => "contain", "type" => "zn_radio", "options" => $logo_size); // Logo Dimensions $default_size = array('height' => '55', 'width' => '125'); $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Logo manual sizes", 'zn_framework'), "description" => __('Please insert your desired logo size in pixels ( for example "35" )', 'zn_framework'), "id" => "logo_manual_size", "std" => $default_size, "type" => "image_size", 'dependency' => array('element' => 'logo_size', 'value' => array('no'))); // Logo typography for link $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Logo Link Options", 'zn_framework'), "description" => __("Specify the logo typography properties. Will only work if you don't upload a logo image.", 'zn_framework'), "id" => "logo_font", "std" => array('font-size' => '36px', 'font-family' => 'Open Sans', 'font-style' => 'normal', 'color' => '#000', 'line-height' => '40px'), 'supports' => array('size', 'font', 'style', 'color', 'line', 'weight'), "type" => "font"); // Logo Hover Typography $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Logo Link Hover Color", 'zn_framework'), "description" => __("Specify the logo hover color. Will only work if you don't upload a logo image. ", 'zn_framework'), "id" => "logo_hover", "std" => array('color' => '#CD2122', 'font-family' => 'Open Sans'), 'supports' => array('font', 'color'), "type" => "font"); // Logo Sticky $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __("Sticky Logo", 'zn_framework'), "description" => __("Will display a secondary logo when header is sticky and scrolling the page. <strong>ONLY</strong> available if you have Sticky Header enabled in General Options. ", 'zn_framework'), "id" => "logo_sticky", "std" => '', "type" => "media"); $admin_options[] = array('slug' => 'logo_options', 'parent' => 'general_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "lgo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#m2dbZdeciZs', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'footer_options', 'parent' => 'general_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'footer_options', 'parent' => 'general_options'));
<?php /** * Theme options > General Options > Favicon options */ /*-------------------------------------------------------------------------------------------------- Sidebar Generator --------------------------------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------------------------------- Unlimited Sidebars --------------------------------------------------------------------------------------------------*/ // Unlimited Sidebars $admin_options[] = array('slug' => 'unlimited_sidebars', 'parent' => 'unlimited_sidebars', 'id' => 'unlimited_sidebars', 'name' => 'Unlimited Sidebars', 'description' => 'Here you can create unlimited sidebars that you can use all over the theme.', 'type' => 'group', 'sortable' => false, 'element_title' => 'sidebar_name', 'subelements' => array(array('id' => 'sidebar_name', 'name' => 'Sidebar Name', 'description' => 'Please enter a name for this sidebar. Please note that the name should only contain alphanumeric characters', 'type' => 'text', 'supports' => 'block'))); $admin_options[] = array('slug' => 'unlimited_sidebars', 'parent' => 'unlimited_sidebars', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "usbo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#M7TcpipwAKw', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'unlimited_sidebars', 'parent' => 'unlimited_sidebars')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'unlimited_sidebars', 'parent' => 'unlimited_sidebars')); // Sidebars settings $sidebar_options = array('right_sidebar' => 'Right sidebar', 'left_sidebar' => 'Left sidebar', 'no_sidebar' => 'No sidebar'); $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'archive_sidebar', 'name' => 'Sidebar on archive pages', 'description' => 'Please choose the sidebar position for the archive pages.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options)); $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'blog_sidebar', 'name' => 'Sidebar on Blog', 'description' => 'Please choose the sidebar position for the blog page.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options)); $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'single_sidebar', 'name' => 'Sidebar on single blog post', 'description' => 'Please choose the sidebar position for the single blog posts.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options)); $admin_options[] = array('slug' => 'sidebar_settings', 'parent' => 'unlimited_sidebars', 'id' => 'page_sidebar', 'name' => 'Sidebar on pages', 'description' => 'Please choose the sidebar position for the pages.', 'type' => 'sidebar', 'class' => 'zn_full', 'std' => array('layout' => 'sidebar_right', 'sidebar' => 'default_sidebar'), 'supports' => array('default_sidebar' => 'defaultsidebar', 'sidebar_options' => $sidebar_options));
<?php /** * Theme options > Font Options > General Font Options */ // Google fonts $url = esc_url(__('//www.google.com/fonts', 'zn_framework')); $admin_options[] = array('slug' => 'gfont_setup', 'parent' => 'google_font_options', 'id' => 'zn_google_fonts_setup', 'name' => 'Google Fonts Setup', 'description' => 'Here you can setup the <a href="' . $url . '" target="blank">Google web fonts</a> that you want to use in your site.', 'type' => 'zn_google_fonts_setup', 'std' => array('Roboto' => array('font_family' => 'Roboto', 'font_variants' => array(0 => 'regular', 1 => '300', 2 => '700', 3 => '900'))), 'class' => 'zn_full'); // General fonts subset $admin_options[] = array('slug' => 'gfont_setup', 'parent' => 'google_font_options', 'id' => 'zn_google_fonts_subsets', 'name' => 'Google Fonts Subset', 'description' => 'Select which subsets you want to load for the Google fonts.', 'type' => 'checkbox', 'options' => array('latin' => 'Latin', 'latin-ext' => 'Latin Ext', 'greek' => 'Greek', 'cyrillic' => 'Cyrillic', 'cyrillic-ext' => 'Cyrillic Ext', 'khmer' => 'Khmer', 'greek-ext' => 'Greek Ext', 'vietnamese' => 'Vietnamese'), 'std' => '', 'class' => 'zn_full'); // Custom fonts subset $admin_options[] = array('slug' => 'custom_font_setup', 'parent' => 'google_font_options', 'id' => 'zn_custom_fonts', 'name' => 'Custom Fonts Setup', 'description' => 'Using this option you can add your own custom fonts to the theme.', 'type' => 'group', "element_title" => "cf_name", 'subelements' => array(array("name" => __("Font Name", 'zn_framework'), "description" => __("Here you can type the font name that will be used.", 'zn_framework'), "id" => "cf_name", "std" => '', "type" => "text"), array("name" => __("Custom font .woff", 'zn_framework'), "description" => __("Upload the .woff font file.", 'zn_framework'), "id" => "cf_woff", "std" => '', "type" => "zn_media", 'data' => array('button_title' => 'Add .woff font', 'media_type' => 'media_field_upload', 'insert_title' => 'Select font', 'title' => 'Add Custom Font', 'type' => 'application/font-woff', 'state' => 'library', 'frame' => 'select', 'class' => 'zn-media-video media-frame', 'value_type' => 'url', 'preview' => 'text')), array("name" => __("Custom font .ttf", 'zn_framework'), "description" => __("Upload the .ttf font file.", 'zn_framework'), "id" => "cf_ttf", "std" => '', "type" => "zn_media", 'data' => array('button_title' => 'Add .ttf font', 'media_type' => 'media_field_upload', 'insert_title' => 'Select font', 'title' => 'Add Custom Font', 'type' => 'font/ttf', 'state' => 'library', 'frame' => 'select', 'class' => 'zn-media-video media-frame', 'value_type' => 'url', 'preview' => 'text')), array("name" => __("Custom font .svg", 'zn_framework'), "description" => __("Upload the .svg font file.", 'zn_framework'), "id" => "cf_svg", "std" => '', "type" => "zn_media", 'data' => array('button_title' => 'Add .svg font', 'media_type' => 'media_field_upload', 'insert_title' => 'Select font', 'title' => 'Add Custom Font', 'type' => 'image/svg+xml', 'state' => 'library', 'frame' => 'select', 'class' => 'zn-media-video media-frame', 'value_type' => 'url', 'preview' => 'text')), array("name" => __("Custom font .eot", 'zn_framework'), "description" => __("Upload the .eot font file.", 'zn_framework'), "id" => "cf_eot", "std" => '', "type" => "zn_media", 'data' => array('button_title' => 'Add .eot font', 'media_type' => 'media_field_upload', 'insert_title' => 'Select font', 'title' => 'Add Custom Font', 'type' => 'application/vnd.ms-fontobject', 'state' => 'library', 'frame' => 'select', 'class' => 'zn-media-video media-frame', 'value_type' => 'url', 'preview' => 'text')))); $admin_options[] = array('slug' => 'custom_font_setup', 'parent' => 'google_font_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "gfto_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#ffnXlhSxpaI', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'custom_font_setup', 'parent' => 'google_font_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'custom_font_setup', 'parent' => 'google_font_options'));
<?php /** * Theme options > General Options > Favicon options */ $admin_options[] = array('slug' => 'advanced_options', 'parent' => 'advanced_options', 'id' => 'font_uploader', 'name' => 'Icon Font uploader', 'description' => 'Please select a zip archive containing the font (generate it using http://fontello.com).', 'type' => 'upload', 'supports' => array('file_extension' => 'zip', 'file_type' => 'application/octet-stream, application/zip')); $admin_options[] = array('slug' => 'advanced_options', 'parent' => 'advanced_options', 'id' => 'zn_refresh_pb', 'name' => 'Refresh page builder data', 'description' => 'If you have made changes to the theme\'s page builder folder or files, you will need to press this button in order to refresh their css and folder structure.', 'type' => 'zn_ajax_call', 'ajax_call_setup' => array('action' => 'zn_refresh_pb', 'button_text' => 'Refresh page builder data')); $admin_options[] = array('slug' => 'advanced_options', 'parent' => 'advanced_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "advo_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#F5bYMHBcHO0', __('Icon fonts uploader', 'zn_framework'), array('slug' => 'advanced_options', 'parent' => 'advanced_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'advanced_options', 'parent' => 'advanced_options')); /************** */ $admin_options[] = array('slug' => 'custom_css', 'parent' => 'advanced_options', 'id' => 'custom_css', 'name' => 'Custom css', 'description' => 'Here you can enter your custom css that will be used by the theme.', 'type' => 'custom_css', 'class' => 'zn_full'); $admin_options[] = array('slug' => 'custom_css', 'parent' => 'advanced_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "adv_css_o_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#d4D9lAV8NEs', __('Add custom CSS', 'zn_framework'), array('slug' => 'custom_css', 'parent' => 'advanced_options')); $admin_options[] = zn_options_doc_link_option('http://support.hogash.com/documentation/adding-custom-css/', array('slug' => 'custom_css', 'parent' => 'advanced_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'custom_css', 'parent' => 'advanced_options')); $admin_options[] = array('slug' => 'custom_js', 'parent' => 'advanced_options', 'id' => 'custom_js', 'name' => 'Custom Javascript', 'description' => 'Here you can enter your custom javascript that will be added on all pages.', 'type' => 'custom_js', 'editor_type' => 'javascript', 'class' => 'zn_full'); $admin_options[] = array('slug' => 'custom_js', 'parent' => 'advanced_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "adv_js_o_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#DIvUKRBQ3BM', __('Add custom JS', 'zn_framework'), array('slug' => 'custom_js', 'parent' => 'advanced_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'custom_js', 'parent' => 'advanced_options'));
<?php /** * Theme options > Blog Options > Archive options */ global $sidebar_option; if (!isset($sidebar_option) || empty($sidebar_option)) { $sidebar_option = WpkZn::getThemeSidebars(); } $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', 'id' => 'blog_style', 'name' => 'Blog color scheme', 'description' => 'Select the style of the blog', 'type' => 'select', 'std' => '', 'options' => array('' => 'Inherit from Global (Color options)', 'light' => 'Light', 'dark' => 'Dark')); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Blog Columns", 'zn_framework'), "description" => __("Select the number of columns you want to use.", 'zn_framework'), "id" => "blog_style_layout", "std" => "1", "type" => "select", "options" => array('1' => __("1", 'zn_framework'), '2' => __("2", 'zn_framework'), '3' => __("3", 'zn_framework'), '4' => __("4", 'zn_framework')), "class" => ""); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Content to show", 'zn_framework'), "description" => __("Choose what content you want to show <b>Important : This only works for 1 column</b>", 'zn_framework'), "id" => "sb_archive_content_type", "std" => "full", "type" => "select", "options" => array('excerpt' => __('Excerpt', 'zn_framework'), 'full' => __('Full content', 'zn_framework')), 'dependency' => array("element" => 'blog_style_layout', 'value' => array('1'))); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Archive Page Title", 'zn_framework'), "description" => __("Enter the desired page title for the blog archive page.", 'zn_framework'), "id" => "archive_page_title", "type" => "text", "std" => __("BLOG & Gossip", 'zn_framework'), "translate_name" => __("Archive Page Title", 'zn_framework'), "class" => ""); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Archive page subtitle", 'zn_framework'), "description" => __("Enter the desired page subtitle for the blog archive page.", 'zn_framework'), "id" => "archive_page_subtitle", "type" => "text", "std" => __("This would be the blog category page", 'zn_framework'), "translate_name" => __("Archive Page Subtitle", 'zn_framework'), "class" => ""); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Use full width image", 'zn_framework'), "description" => __("Choose Use full width image option if you want the images to be full width rather then\n the default layout", 'zn_framework'), "id" => "sb_archive_use_full_image", "std" => "no", "type" => "select", "options" => array('yes' => __('Use full width image', 'zn_framework'), 'no' => __('Use default layout', 'zn_framework'))); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Image Maximum Width (px)", 'zn_framework'), "description" => __("Add a custom maximum width for the blog-post images in the blog archive. Leave blank for default value.", 'zn_framework'), "id" => "sb_archive_def_cwidth", "std" => "", "type" => "text", "placeholder" => "eg: 400px", 'dependency' => array("element" => 'sb_archive_use_full_image', 'value' => array('no'))); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __("Use first attached image ?", 'zn_framework'), "description" => __("Choose yes if you want the theme to display the first image inside a page if no featured image is present", 'zn_framework'), "id" => "zn_use_first_image", "std" => 'yes', "options" => array('yes' => __("Yes", 'zn_framework'), 'no' => __("No", 'zn_framework')), "type" => "select"); $admin_options[] = array('slug' => 'blog_archive_options', 'parent' => 'blog_options', "name" => __('<span class="dashicons dashicons-editor-help"></span> HELP:', 'zn_framework'), "description" => __('Below you can find quick access to documentation, video documentation or our support forum.', 'zn_framework'), "id" => "bgao_title", "type" => "zn_title", "class" => "zn_full zn-custom-title-md zn-top-separator"); $admin_options[] = zn_options_video_link_option('http://support.hogash.com/kallyas-videos/#Kd0a0kDrg1s', __('Click here to access video tutorial for this options section.', 'zn_framework'), array('slug' => 'blog_archive_options', 'parent' => 'blog_options')); $admin_options[] = zn_options_doc_link_option('http://support.hogash.com/documentation/setting-up-blog/', array('slug' => 'blog_archive_options', 'parent' => 'blog_options')); $admin_options[] = wp_parse_args(znpb_general_help_option('zn-admin-helplink'), array('slug' => 'blog_archive_options', 'parent' => 'blog_options'));