PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/logokingdom.online/wp-content/plugins/bon-toolkit/includes/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/logokingdom.online/wp-content/plugins/bon-toolkit/includes/options.php |
<?php function bon_toolkit_set_options() { $post_types = get_post_types( array( 'public' => true ) ); $options = array(); $options[] = array( 'type' => 'section', 'id' => 'general-setting', 'label' => __('General Settings', 'bon-toolkit'), 'class' => 'visible' ); $options[] = array( 'type' => 'info', 'std' => 'Enable Widget Features', ); $options[] = array( 'type' => 'select', 'id' => 'use_bon_toolkit_css', 'std' => 'yes', 'options' => array( 'yes' => 'Yes', 'no' => 'No', ), 'desc' => __('Use the default css from the plugin. Disable this if you want to use your own css','bon-toolkit'), 'label' => __('Use Default Widget CSS', 'bon-toolkit') ); $options[] = array( 'type' => 'select', 'id' => 'use_bon_toolkit_fontawesome', 'std' => 'yes', 'options' => array( 'yes' => 'Yes', 'no' => 'No', ), 'desc' => __('Use the plugin FontAwesome icon style','bon-toolkit'), 'label' => __('Use FontAwesome from Plugin', 'bon-toolkit') ); $options[] = array( 'type' => 'section_close', ); if( current_theme_supports('bon-portfolio') || current_theme_supports('bon-poll') || current_theme_supports('bon-featured-slider') || current_theme_supports('bon-quiz') || current_theme_supports('bon-featured-slider') || current_theme_supports('bon-testimonial') ) { $options[] = array( 'type' => 'section', 'id' => 'post-type-settings', 'std' => '', 'label' => __('Post Type Settings', 'bon-toolkit'), ); $options[] = array( 'type' => 'info', 'std' => 'Please note that some of this feature may unavailable if you\'re not using BonFramework or the theme do not support it.', ); if(current_theme_supports( 'bon-portfolio' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_portfolio', 'std' => 1, 'desc' => __('Enable / Disable Portfolio Post Type','bon-toolkit'), 'label' => __('Portfolio', 'bon-toolkit') ); } if(current_theme_supports( 'bon-testimonial' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_testimonial', 'std' => 1, 'desc' => __('Enable / Disable Testimonial Post Type','bon-toolkit'), 'label' => __('Testimonial', 'bon-toolkit') ); } if(current_theme_supports( 'bon-poll' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_poll', 'std' => 1, 'desc' => __('Enable / Disable Poll Post Type','bon-toolkit'), 'label' => __('Poll', 'bon-toolkit'), ); } if(current_theme_supports( 'bon-review' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_review', 'std' => 1, 'desc' => __('Enable / Disable Review Post Type','bon-toolkit'), 'label' => __('Review', 'bon-toolkit'), ); } if(current_theme_supports( 'bon-featured-slider' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_featured_slider', 'std' => 1, 'desc' => __('Enable / Disable Featured Slider Post Type','bon-toolkit'), 'label' => __('Featured Slider', 'bon-toolkit'), ); } if(current_theme_supports( 'bon-quiz' )) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_quiz', 'std' => 1, 'desc' => __('Enable / Disable Quiz Post Type','bon-toolkit'), 'label' => __('Quiz', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_100', 'std' => 'Perfect!!!', 'desc' => '', 'label' => __('Comment for Quiz Score 100', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_90', 'std' => 'Excellent!!!', 'desc' => '', 'label' => __('Comment for Quiz Score >= 90', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_80', 'std' => 'Good!!!', 'desc' => '', 'label' => __('Comment for Quiz Score >= 80', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_60', 'std' => 'Average!!!', 'desc' => '', 'label' => __('Comment for Quiz Score >= 60', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_40', 'std' => 'Bad!!!', 'desc' => '', 'label' => __('Comment for Quiz Score >= 40', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_30', 'std' => 'Poor!!!', 'desc' => '', 'label' => __('Comment for Quiz Score >= 30', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'quiz_0', 'std' => 'Worst!!!', 'desc' => '', 'label' => __('Comment for Quiz Score 0', 'bon-toolkit'), ); } $options[] = array( 'type' => 'section_close', ); } // Advanced Widget $options[] = array( 'type' => 'section', 'id' => 'widget-settings', 'std' => '', 'label' => __('Widget Settings', 'bon-toolkit'), ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_twitter_widget', 'desc' => __('Enable / Disable Twitter Widget.','bon-toolkit'), 'label' => __('Twitter Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_dribbble_widget', 'desc' => __('Enable / Disable Dribbble Widget.','bon-toolkit'), 'label' => __('Dribbble Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_flickr_widget', 'desc' => __('Enable / Disable Flickr Widget.','bon-toolkit'), 'label' => __('Flickr Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_social_widget', 'desc' => __('Enable / Disable Social Icons Widget.','bon-toolkit'), 'label' => __('Social Icons Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_video_widget', 'desc' => __('Enable / Disable Video Widget.','bon-toolkit'), 'label' => __('Video Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_posts_widget', 'desc' => __('Enable / Disable Posts Widget.','bon-toolkit'), 'label' => __('Posts Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_contactform_widget', 'desc' => __('Enable / Disable Contact Form Widget.','bon-toolkit'), 'label' => __('Contact Form Widget', 'bon-toolkit') ); if( current_theme_supports( 'bon-advanced-widget' ) ) { $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_archives', 'desc' => __('Enable / Disable Advanced Archives Widget.','bon-toolkit'), 'label' => __('Archives Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_tags', 'desc' => __('Enable / Disable Advanced Tags Widget.','bon-toolkit'), 'label' => __('Tags Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_search', 'desc' => __('Enable / Disable Advanced Search Widget.','bon-toolkit'), 'label' => __('Search Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_pages', 'desc' => __('Enable / Disable Advanced Pages Widget.','bon-toolkit'), 'label' => __('Pages Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_nav_menu', 'desc' => __('Enable / Disable Advanced Navigation Menu Widget.','bon-toolkit'), 'label' => __('Navigation Menu Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_categories', 'desc' => __('Enable / Disable Advanced Categories Widget.','bon-toolkit'), 'label' => __('Categories Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_calendar', 'desc' => __('Enable / Disable Advanced Calendar Widget.','bon-toolkit'), 'label' => __('Calendar Widget', 'bon-toolkit') ); $options[] = array( 'type' => 'checkbox', 'id' => 'enable_advanced_authors', 'desc' => __('Enable / Disable Advanced Authors Widget.','bon-toolkit'), 'label' => __('Authors Widget', 'bon-toolkit') ); } $options[] = array( 'type' => 'section_close', ); $options[] = array( 'type' => 'section', 'id' => 'api-settings', 'std' => '', 'label' => __('API Settings', 'bon-toolkit'), ); $options[] = array( 'type' => 'info', 'std' => __('Here is the place to fill the api key needed for some features to work.','bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'twitter_access_token', 'desc' => __('The twitter access token key generated from your apps.','bon-toolkit'), 'label' => __('Twitter Acces Token', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'twitter_access_token_secret', 'desc' => __('The twitter access token secret key generated from your apps.','bon-toolkit'), 'label' => __('Twitter Acces Token Secret', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'twitter_consumer_key', 'desc' => __('The twitter consumer key generated from your apps.','bon-toolkit'), 'label' => __('Twitter Consumer Key', 'bon-toolkit'), ); $options[] = array( 'type' => 'text', 'id' => 'twitter_consumer_key_secret', 'desc' => __('The twitter consumer secret key generated from your apps.','bon-toolkit'), 'label' => __('Twitter Consumer Key Secret', 'bon-toolkit'), ); $options[] = array( 'type' => 'section_close', ); $options[] = array( 'type' => 'section', 'id' => 'social-share-settings', 'std' => '', 'label' => __('Social Share Settings', 'bon-toolkit'), ); $options[] = array( 'type' => 'checkbox', 'id' => 'automatic_share_button', 'desc' => __('Turn on the social share button on posts and pages','bon-toolkit'), 'label' => __('Turn on Social Share button', 'bon-toolkit') ); $options[] = array( 'type' => 'select', 'id' => 'share_button_location', 'std' => '', 'options' => array( 'after_post' => __('After Post Content', 'bon'), 'before_post' => __('Before Post Content', 'bon'), ), 'desc' => __('Where do you want the share button to be put?','bon-toolkit'), 'label' => __('Set Location for Share Button', 'bon-toolkit'), ); $options[] = array( 'type' => 'section_close', ); if( current_theme_supports('bon-page-builder') ) : $builder = get_theme_support( 'bon-page-builder' ); $std = array( 'page' ); if( is_array($builder[0] ) ) { $std = $builder[0]; } $options[] = array( 'type' => 'section', 'id' => 'page-builder-settings', 'std' => '', 'label' => __('Page Builder Settings', 'bon-toolkit'), ); $options[] = array( 'type' => 'multicheck', 'id' => 'page_builder_post_type', 'desc' => __('Select for which custom post type the BT Page Builder should be available','bon-toolkit'), 'label' => __('Turn on Page Builder', 'bon-toolkit'), 'std' => $std, 'options' => $post_types ); $options[] = array( 'type' => 'section_close', ); endif; $options[] = array( 'type' => 'section', 'id' => 'help-setting', 'std' => '', 'label' => __('Toolkit Help', 'bon-toolkit'), ); $options[] = array( 'type' => 'info', 'std' => 'A few resources to get you started with the Bon Toolkit.', ); $options[] = array( 'type' => 'help', 'label' => __('What is this plugin and why do I need it?','bon-toolkit'), 'desc' => __('The Bon Toolkit provides extra functionality to the collection of themes from <a target="blank" href="http://bonfirelab.com" title="bonfirelab">Bonfirelab</a>. The Toolkit adds various widgets (Twitter, Flickr, Dribbble and social icons), and a few custom post types. The plugin is not a requirement to use themes from bonfirelab, but it will extend the themes to function as you see them in the demos.','bon-toolkit'), ); $options[] = array( 'type' => 'help', 'label' => __('How to use the Shortcode?','bon-toolkit'), 'desc' => __('When editing post there is a small black button with "B" in the Editor. Press it and choose the shortcode you want.','bon-toolkit'), ); $options[] = array( 'type' => 'help', 'label' => __('Available Shortcode Settings','bon-toolkit'), 'desc' => __('<ul> <li> <strong>Used to wrap [bt-tab][/bt-tabs] (~s different)</strong> <pre><code>[bt-tabs direction="top|left|right" color="red|green|blue|yellow|dark|purple|orange"] [bt-tab][/bt-tab] [/bt-tabs]</code></pre> </li> <li> <strong>Use to output each tab content</strong> <pre><code>[bt-tab]Content[/bt-tab]</code></pre> </li> <li> <strong>Used to output map</strong> <pre><code>[bt-map latitude="123456890" longitude="1234567890" zoom="14" color="red|green|blue|yellow|dark|purple|orange" height="px|%|em" width="px|%|em"]</code></pre> </li> <li> <strong>Used to wrap [bt-toggle][/bt-toggle]</strong> <pre><code>[bt-toggles] [bt-toggle][/bt-toggle] [/bt-toggles]</code></pre> </li> <li> <strong>Used to output toggle content</strong> <pre><code>[bt-toggle]Content[/bt-toggle]</code></pre> </li> <li> <strong>Used to output Alert</strong> <pre><code>[bt-alert color="white|blue|gray|yellow|red|green"]Content[/bt-alert]</code></pre> </li> <li> <strong>Used to output Button</strong> <pre><code>[bt-button url="http://" target="_self|_blank" color="dark|light|pink|red|green|blue|yellow|orange|purple" style="grad|flat" size="small|medium|large" type="square|round|round-corner" ]Content[/bt-button]</code></pre> </li> </ul>','bon-toolkit'), ); $options[] = array( 'type' => 'help', 'label' => __('Why are the some of the Post Type Settings available in one of my Bonfirelab themes but not the other?','bon-toolkit'), 'desc' => __('The Toolkit plugin only shows options / settings for themes that support it. If your theme does not support either feature, their settings will not be shown.','bon-toolkit'), ); $options[] = array( 'type' => 'help', 'label' => __('Can I use this plugin with other themes?','bon-toolkit'), 'desc' => __('This toolkit was developed to extend the functionality of Bonfirelab themes, however you can still use some parts of the plugin features such as widget in other themes. Advanced features like Custom Post Types will only work with Bonfirelab Themes due to framework dependant.','bon-toolkit'), ); $options[] = array( 'type' => 'help', 'label' => __('This plugin is awesome where do I find the developer?','bon-toolkit'), 'desc' => __('You can find me on <a href="http://bonfirelab.com" target="blank" >bonfirelab.com</a>. Or follow me on <a href="http://twitter.com/nackle2k10" target="blank">Twitter</a>','bon-toolkit'), ); $options[] = array( 'type' => 'section_close', ); $options = apply_filters('bon_toolkit_filter_options', $options); return $options; }