Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
alliedchimneyny
/
wp-content
/
themes
/
buildgo
/
inc
/
metabox
/
File Content:
theme-metabox.php
<?php if (!defined('ABSPATH')) exit; if (class_exists('CSF')) { // Set a unique slug-like ID $buildgo_metabox = 'buildgo_meta_options'; CSF::createMetabox($buildgo_metabox, array( 'title' => esc_html__('Settings', 'buildgo'), 'post_type' => array('page', 'post', 'service', 'portfolio'), 'theme' => 'light' )); CSF::createSection($buildgo_metabox, array( 'title' => esc_html__('Global Options', 'buildgo'), 'icon' => 'fas fa-border-all', 'fields' => array( array( 'id' => 'section_padding', 'type' => 'button_set', 'title' => esc_html__('Content Padding', 'buildgo'), 'options' => array( 'section-padding' => esc_html__('Yes', 'buildgo'), 'section-nopading' => esc_html__('No', 'buildgo'), ), 'default' => 'section-padding', ), array( 'id' => 'layout_enable', 'type' => 'button_set', 'title' => esc_html__('Custom Layout', 'buildgo'), 'options' => array( 'yes' => esc_html__('Yes', 'buildgo'), 'no' => esc_html__('No', 'buildgo'), ), 'default' => 'no', ), array( 'id' => 'site_layout', 'type' => 'palette', 'title' => esc_html__('Select Layout', 'buildgo'), 'options' => array( 'left-sidebar' => array('#cccccc', '#eeeeee', '#eeeeee'), 'full-width' => array('#dddddd', '#dddddd', '#dddddd'), 'right-sidebar' => array('#eeeeee', '#eeeeee', '#cccccc'), ), 'default' => 'full-width', 'dependency' => array('layout_enable', '==', 'yes'), ), array( 'id' => 'site_sidebars', 'type' => 'select', 'title' => esc_html__('Sidebars', 'buildgo'), 'placeholder' => esc_html__('Select a Sidebar', 'buildgo'), 'options' => 'sidebars', 'dependency' => array( array('site_layout', 'any', 'left-sidebar,right-sidebar'), array('layout_enable', '==', 'yes'), ), ), array( 'id' => 'scroll_up_color', 'type' => 'color', 'title' => esc_html__('ScrollUp Color', 'buildgo'), 'output' => array('color' => '.scroll-up::after', 'stroke' => '.scroll-up svg.scroll-circle path'), ), ) )); CSF::createSection($buildgo_metabox, array( 'title' => esc_html__('Breadcrumb Settings', 'buildgo'), 'icon' => 'fas fa-pager', 'fields' => array( array( 'id' => 'breadcrumb_enable', 'type' => 'button_set', 'title' => esc_html__('Enable Banner', 'buildgo'), 'options' => array( 'yes' => esc_html__('Yes', 'buildgo'), 'no' => esc_html__('No', 'buildgo'), ), 'default' => 'yes', ), array( 'id' => 'breadcrumb_layout', 'type' => 'select', 'title' => esc_html__('Breadcrumb Style', 'buildgo'), 'options' => array( 'default' => esc_html__('Default Breadcrumb', 'buildgo'), 'custom' => esc_html__('Custom Breadcrumb', 'buildgo'), ), 'default' => 'default', 'dependency' => array('breadcrumb_enable', '==', 'yes'), ), array( 'id' => 'breadcrumb_bg_image', 'type' => 'background', 'title' => esc_html__('Background', 'buildgo'), 'output' => '.theme_breadcrumb__area', 'background_gradient' => false, 'background_origin' => false, 'background_clip' => false, 'background_blend_mode' => false, 'background-color' => false, 'dependency' => array( array( 'breadcrumb_enable', '==', 'yes' ), array( 'breadcrumb_layout', '==', 'default' ), ), ), array( 'id' => 'custom_title', 'type' => 'button_set', 'title' => esc_html__('Custom Page Title', 'buildgo'), 'options' => array( 'yes' => esc_html__('Yes', 'buildgo'), 'no' => esc_html__('No', 'buildgo'), ), 'default' => 'no', 'dependency' => array( array('breadcrumb_enable', '==', 'yes'), array('breadcrumb_layout', '==', 'default'), ), ), array( 'id' => 'page_title', 'type' => 'text', 'title' => esc_html__('Page Title', 'buildgo'), 'default' => esc_html__('Custom Page Title', 'buildgo'), 'dependency' => array( array('breadcrumb_enable', '==', 'yes'), array('custom_title', '==', 'yes'), array('breadcrumb_layout', '==', 'default'), ), ), // Theme Builder Options array( 'id' => 'breadcrumb_post_id', 'type' => 'select', 'title' => esc_html__('Select a Template', 'buildgo'), 'options' => 'posts', 'query_args' => array( 'post_type' => 'flexitype_builder', 'posts_per_page' => -1, ), 'dependency' => array( array('breadcrumb_enable', '==', 'yes'), array('breadcrumb_layout', '==', 'custom'), ), ), ) )); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
theme-metabox.php
5550 bytes
0644
N4ST4R_ID | Naxtarrr