コード例 #1
0
ファイル: options.php プロジェクト: samoeba/ultradia
 /**
  * All the possible arguments for Redux.
  * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments
  * */
 public function setArguments()
 {
     $theme = wp_get_theme();
     // For use with some settings. Not necessary.
     $this->args = array('opt_name' => 'vce_settings', 'allow_sub_menu' => true, 'admin_bar_icon' => 'dashicons-admin-generic', 'customizer' => false, 'default_mark' => '', 'footer_text' => '', 'hint-icon' => 'el-icon-question-sign', 'icon_position' => 'right', 'icon_size' => 'normal', 'tip_style_color' => 'cream', 'tip_position_my' => 'top left', 'tip_position_at' => 'bottom right', 'tip_show_duration' => '500', 'tip_show_event' => array(0 => 'mouseover'), 'tip_hide_duration' => '500', 'tip_hide_event' => array(0 => 'mouseleave', 1 => 'unfocus'), 'intro_text' => '', 'menu_type' => 'menu', 'output' => false, 'menu_title' => 'Theme Options', 'output_tag' => false, 'page_icon' => 'icon-themes', 'page_permissions' => 'manage_options', 'page_slug' => 'vce_options', 'page_title' => 'Voice Options', 'save_defaults' => true, 'show_import_export' => true, 'update_notice' => false, 'compiler' => false, 'page_priority' => '27.11', 'dev_mode' => false, 'allow_tracking' => false);
     //$theme = wp_get_theme(); // For use with some settings. Not necessary.
     $this->args["display_name"] = 'Voice Options<a href="http://demo.mekshq.com/voice/documentation" target="_blank">Theme Documentation</a>';
     $this->args["display_version"] = vce_get_update_notification();
     // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
     $this->args['share_icons'][] = array('url' => 'https://www.facebook.com/mekshq', 'title' => 'Like us on Facebook', 'icon' => 'el-icon-facebook');
     $this->args['share_icons'][] = array('url' => 'http://twitter.com/mekshq', 'title' => 'Follow us on Twitter', 'icon' => 'el-icon-twitter');
 }
コード例 #2
0
ファイル: options.php プロジェクト: greg3560/plailly
<?php

/* Load the embedded Redux Framework */
if (!class_exists('ReduxFramework') && file_exists(dirname(__FILE__) . '/options/ReduxCore/framework.php')) {
    require_once dirname(__FILE__) . '/options/ReduxCore/framework.php';
}
if (!class_exists('Redux')) {
    return;
}
/**
 * Redux params
 */
$opt_name = 'vce_settings';
$args = array('opt_name' => $opt_name, 'display_name' => sprintf(__('Voice Options%sTheme Documentation%s', THEME_SLUG), '<a href="http://demo.mekshq.com/voice/documentation" target="_blank">', '</a>'), 'display_version' => vce_get_update_notification(), 'menu_type' => 'menu', 'allow_sub_menu' => true, 'menu_title' => __('Theme Options', THEME_SLUG), 'page_title' => __('Voice Options', THEME_SLUG), 'google_api_key' => 'AIzaSyDHZdAin5P3eou7euXXiEN1k075buveWT4', 'google_update_weekly' => true, 'async_typography' => true, 'admin_bar' => true, 'admin_bar_icon' => 'dashicons-admin-generic', 'admin_bar_priority' => '100', 'global_variable' => '', 'dev_mode' => false, 'update_notice' => false, 'customizer' => false, 'allow_tracking' => false, 'ajax_save' => false, 'page_priority' => '27.11', 'page_parent' => 'themes.php', 'page_permissions' => 'manage_options', 'menu_icon' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAzMDAgMzAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDAgMzAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBhdGggZD0iTTIwOS40LDYxLjZsLTE5LjctM1YzOS41aDY5djE5LjFMMjQxLjIsNjFsLTczLjQsMTk3LjVoLTMxLjIiLz48L2c+PGc+PHBhdGggZD0iTTE0NS44LDIwMWwtMTQuOSw0MC4yTDU4LDYxbC0xNy42LTIuNFYzOS41aDY5djE5LjFsLTE5LjcsMyIvPjwvZz48L3N2Zz4=', 'last_tab' => '', 'page_icon' => 'icon-themes', 'page_slug' => 'vce_options', 'save_defaults' => true, 'default_show' => false, 'default_mark' => '', 'show_import_export' => true, 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => false, 'output_tag' => true, 'database' => '', 'system_info' => false);
$GLOBALS['redux_notice_check'] = 1;
/* Documentation link */
$args['admin_bar_links'][] = array('id' => 'vce-docs', 'href' => 'http://demo.mekshq.com/voice/documentation', 'title' => __('Documentation', THEME_SLUG));
/* Footer social icons */
$args['share_icons'][] = array('url' => 'https://www.facebook.com/mekshq', 'title' => 'Like us on Facebook', 'icon' => 'el-icon-facebook');
$args['share_icons'][] = array('url' => 'http://twitter.com/mekshq', 'title' => 'Follow us on Twitter', 'icon' => 'el-icon-twitter');
$args['intro_text'] = '';
$args['footer_text'] = '';
Redux::setArgs($opt_name, $args);
/* Initialize options/sections */
include_once 'sections.php';
/* Append custom css to redux framework */
if (!function_exists('vce_redux_custom_css')) {
    function vce_redux_custom_css()
    {
        wp_register_style('vce-redux-custom-css', CSS_URI . '/theme-options-custom.css', array('redux-admin-css'), THEME_VERSION, 'all');
        wp_enqueue_style('vce-redux-custom-css');