Current Path : /var/www/ooareogundevinitiative/wp-content/plugins/jwstheme-option/admin/ |
Current File : /var/www/ooareogundevinitiative/wp-content/plugins/jwstheme-option/admin/options-init.php |
<?php /** * For full documentation, please visit: http://docs.reduxframework.com/ * For a more extensive sample-config file, you may look at: * https://github.com/reduxframework/redux-framework/blob/master/sample/sample-config.php */ if ( ! class_exists( 'Redux' ) ) { return; } // This is your option name where all the Redux data is stored. $opt_name = "jws_opts"; /** * ---> SET ARGUMENTS * All the possible arguments for Redux. * For full documentation on arguments, please refer to: https://github.com/ReduxFramework/ReduxFramework/wiki/Arguments * */ $theme = wp_get_theme(); // For use with some settings. Not necessary. $args = array( 'opt_name' => 'jws_opts', 'dev_mode' => TRUE, 'use_cdn' => TRUE, 'display_name' => 'Theme Options', 'display_version' => '1.0.0', 'page_slug' => 'jws_options', 'page_title' => 'Theme Options', 'update_notice' => TRUE, 'admin_bar' => TRUE, 'menu_type' => 'submenu', 'menu_title' => 'Theme Options', 'allow_sub_menu' => TRUE, 'page_parent' => 'themes.php', // 'page_parent_post_type' => 'your_post_type', 'customizer' => TRUE, 'default_mark' => '*', 'hints' => array( 'icon' => 'el el-adjust-alt', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'duration' => '500', 'event' => 'mouseleave unfocus', ), ), ), 'output' => TRUE, 'output_tag' => TRUE, 'settings_api' => TRUE, 'cdn_check_time' => '1440', 'compiler' => TRUE, 'page_permissions' => 'manage_options', 'save_defaults' => TRUE, 'show_import_export' => TRUE, 'database' => 'options', 'transient_time' => '3600', 'network_sites' => TRUE, ); // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons. $args['share_icons'][] = array( 'url' => 'https://github.com/ReduxFramework/ReduxFramework', 'title' => 'Visit us on GitHub', 'icon' => 'el el-github' //'img' => '', // You can use icon OR img. IMG needs to be a full URL. ); $args['share_icons'][] = array( 'url' => 'https://www.facebook.com/pages/Redux-Framework/243141545850368', 'title' => 'Like us on Facebook', 'icon' => 'el el-facebook' ); $args['share_icons'][] = array( 'url' => 'http://twitter.com/reduxframework', 'title' => 'Follow us on Twitter', 'icon' => 'el el-twitter' ); $args['share_icons'][] = array( 'url' => 'http://www.linkedin.com/company/redux-framework', 'title' => 'Find us on LinkedIn', 'icon' => 'el el-linkedin' ); Redux::setArgs( $opt_name, $args ); /* * ---> END ARGUMENTS */ /* * ---> START HELP TABS */ $tabs = array( array( 'id' => 'redux-help-tab-1', 'title' => __( 'Theme Information 1', 'admin_folder' ), 'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'admin_folder' ) ), array( 'id' => 'redux-help-tab-2', 'title' => __( 'Theme Information 2', 'admin_folder' ), 'content' => __( '<p>This is the tab content, HTML is allowed.</p>', 'admin_folder' ) ) ); Redux::setHelpTab( $opt_name, $tabs ); // Set the help sidebar $content = __( '<p>This is the sidebar content, HTML is allowed.</p>', 'admin_folder' ); Redux::setHelpSidebar( $opt_name, $content ); /* * <--- END HELP TABS */ /* * * ---> START SECTIONS * */ Redux::setSection( $opt_name, array( 'title' => __( 'Basic Field', 'redux-framework-demo' ), 'id' => 'basic', 'desc' => __( 'Basic field with no subsections.', 'redux-framework-demo' ), 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'opt-text', 'type' => 'text', 'title' => __( 'Example Text', 'redux-framework-demo' ), 'desc' => __( 'Example description.', 'redux-framework-demo' ), 'subtitle' => __( 'Example subtitle.', 'redux-framework-demo' ), ) ) ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Basic Fields', 'redux-framework-demo' ), 'id' => 'basic', 'desc' => __( 'Basic fields as subsections.', 'redux-framework-demo' ), 'icon' => 'el el-home' ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Text', 'redux-framework-demo' ), 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/text/" target="_blank">http://docs.reduxframework.com/core/fields/text/</a>', 'id' => 'opt-text-subsection', 'subsection' => true, 'fields' => array( array( 'id' => 'text-example', 'type' => 'text', 'title' => __( 'Text Field', 'redux-framework-demo' ), 'subtitle' => __( 'Subtitle', 'redux-framework-demo' ), 'desc' => __( 'Field Description', 'redux-framework-demo' ), 'default' => 'Default Text', ), ) ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Text Area', 'redux-framework-demo' ), 'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>', 'id' => 'opt-textarea-subsection', 'subsection' => true, 'fields' => array( array( 'id' => 'textarea-example', 'type' => 'textarea', 'title' => __( 'Text Area Field', 'redux-framework-demo' ), 'subtitle' => __( 'Subtitle', 'redux-framework-demo' ), 'desc' => __( 'Field Description', 'redux-framework-demo' ), 'default' => 'Default Text', ), ) ) ); /* * <--- END SECTIONS */