/** * Build Options page * * @since 1.0.0 */ function optionsframework_options_page() { global $of_options, $options_machine; /* //for debugging $smof_data = of_get_options(); print_r($smof_data); */ of_options(); $options_machine = new Options_Machine($of_options); ts_essentials_load_file('admin/front-end/options'); }
<?php // since version 1.0 // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // load a few "plugins" ts_essentials_load_file('includes/plugins/twitter/twitter'); ts_essentials_load_file('includes/plugins/multiple-sidebars'); /* if(defined('ICL_SITEPRESS_VERSION')) : ts_essentials_load_template( 'includes/plugins/wpml' ); endif; */
<?php // since version 1.0 // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // load the shortcodes ts_essentials_load_file('includes/shortcodes/shortcodes.class'); ts_essentials_load_file('includes/shortcodes/shortcodes');
<?php if (!defined('ABSPATH')) { } // loads the shortcodes class, wordpress is loaded with it ts_essentials_load_file('includes/shortcodes/tinymce/shortcodes.class'); $popup = isset($_GET['popup']) ? trim($_GET['popup']) : ''; $preset = isset($_GET['preset']) ? trim($_GET['preset']) : ''; $preset_value = isset($_GET['preset_value']) ? trim($_GET['preset_value']) : ''; // presets if ($popup == 'parallax') { $popup = 'fullwidth'; $preset = 'style'; $preset_value = 'parallax'; } // get popup type $shortcode = new ts_shortcodes($popup); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <div id="ts-popup"> <div id="ts-shortcode-wrap"> <div id="ts-sc-form-wrap"> <?php $select_shortcode = array('select' => __('Choose a Shortcode', 'ThemeStockyard'), '_1' => __('Blog & Blog Widget(s)', 'ThemeStockyard'), 'blog' => __('Blog', 'ThemeStockyard'), 'blog_banner' => __('Blog Banner', 'ThemeStockyard'), 'blog_slider' => __('Blog Slider', 'ThemeStockyard'), 'blog_widget' => __('Blog Widget', 'ThemeStockyard'), '_3' => __('Columns', 'ThemeStockyard'), 'columns' => __('Add Column(s)...', 'ThemeStockyard'), '_4' => __('Elements', 'ThemeStockyard'), 'accordion' => __('Accordion', 'ThemeStockyard'), 'alert' => __('Alert', 'ThemeStockyard'), 'blockquote' => __('Blockquote', 'ThemeStockyard'), 'button' => __('Button', 'ThemeStockyard'), 'callout' => __('Callout', 'ThemeStockyard'), 'code' => __('Code', 'ThemeStockyard'), 'custom_menu' => __('Custom Menu', 'ThemeStockyard'), 'googlemap' => __('Google Map', 'ThemeStockyard'), 'iconboxes' => __('Iconboxes', 'ThemeStockyard'), 'list' => __('List', 'ThemeStockyard'), 'people' => __('People', 'ThemeStockyard'), 'pricingtable' => __('Pricing Table', 'ThemeStockyard'), 'progressbar' => __('Progress Bar', 'ThemeStockyard'), 'social_links' => __('Social Links', 'ThemeStockyard'), 'title' => __('Title', 'ThemeStockyard'), '_5' => __('Tabs & Toggles', 'ThemeStockyard'), 'accordion' => __('Accordion', 'ThemeStockyard'), 'tabs' => __('Tabs', 'ThemeStockyard'), 'toggles' => __('Toggles', 'ThemeStockyard'), '_6' => __('Dividers', 'ThemeStockyard'), 'divider' => __('Add a Divider...', 'ThemeStockyard'), 'simple_divider' => __('Simplified version...', 'ThemeStockyard'), '_7' => __('Galleries & Slideshows', 'ThemeStockyard'), 'lightbox_gallery' => __('Lightbox Gallery', 'ThemeStockyard'), 'slider_gallery' => __('Slider Gallery', 'ThemeStockyard'), '_8' => __('Sections', 'ThemeStockyard'), 'fullwidth' => __('Full Width Section', 'ThemeStockyard'), 'parallax' => __('Parallax Section', 'ThemeStockyard'), '_9' => __('Typography', 'ThemeStockyard'), 'small' => __('Small Text', 'ThemeStockyard'), 'dropcap' => __('Dropcap', 'ThemeStockyard'), 'highlight' => __('Highlight', 'ThemeStockyard'), '_10' => __('Animations', 'ThemeStockyard'), 'fadein' => __('Fade In', 'ThemeStockyard'), '_11' => __('Audio & Video', 'ThemeStockyard'), 'youtube' => __('Youtube', 'ThemeStockyard'), 'vimeo' => __('Vimeo', 'ThemeStockyard'), 'soundcloud' => __('SoundCloud', 'ThemeStockyard'), '_12' => __('Show/Hide', 'ThemeStockyard'), 'show_if' => __('Show if...', 'ThemeStockyard'), 'hide_if' => __('Hide if...', 'ThemeStockyard'), '_13' => __('Other', 'ThemeStockyard'), 'clear' => __('Clear Floats', 'ThemeStockyard'), 'email' => __('Email Link', 'ThemeStockyard'), 'fontawesome' => __('FontAwesome', 'ThemeStockyard')); ?> <table id="ts-sc-form-table" class="ts-shortcode-selector">
<?php /** * Functions Load * @since 1.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } ts_essentials_load_file('admin/functions/functions'); ts_essentials_load_file('admin/functions/functions.filters'); ts_essentials_load_file('admin/functions/functions.interface'); ts_essentials_load_file('admin/functions/functions.options'); ts_essentials_load_file('admin/functions/functions.admin'); ts_essentials_load_file('admin/functions/functions.mediauploader');
/** * Popup function which will show shortcode options in thickbox. * * @return void */ function popup() { ts_essentials_load_file('includes/shortcodes/tinymce/ts-sc'); die; }
* @uses add_action() * * @since 1.0.0 */ global $pagenow; if (is_admin() && isset($_GET['activated']) && $pagenow == "themes.php") { add_action('admin_head', 'of_option_setup'); } add_action('admin_head', 'optionsframework_admin_message'); add_action('admin_init', 'optionsframework_admin_init'); add_action('admin_menu', 'optionsframework_add_admin'); add_action('init', 'optionsframework_mlu_init'); /** * Required Files * * @since 1.0.0 */ ts_essentials_load_file('admin/functions/functions.load'); ts_essentials_load_file('admin/classes/class.options_machine'); /** * AJAX Saving Options * * @since 1.0.0 */ add_action('wp_ajax_of_ajax_post_action', 'of_ajax_callback'); /** * Add "Theme Options" link to admin bar * * @since 1.0 */ add_action('wp_before_admin_bar_render', 'optionsframework_add_admin_bar');
<?php // since version 1.0 // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // initial setup ts_essentials_load_file('includes/metaboxes/init'); // metaboxes for various post types ts_essentials_load_file('includes/metaboxes/metaboxes-megamenu'); ts_essentials_load_file('includes/metaboxes/metaboxes-page'); ts_essentials_load_file('includes/metaboxes/metaboxes-portfolio'); ts_essentials_load_file('includes/metaboxes/metaboxes-post');
<?php // since version 1.0 // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // load some custom post types ts_essentials_load_file('includes/post-types/mega-menu'); ts_essentials_load_file('includes/post-types/portfolio');