$social_text) { add_settings_field( $social, $social_text, 'orbit_settings_field_social', 'theme_options', 'social_section', $social ); } } /** * Load up the menu page * * @since Orbit 1.0.0 */ function orbit_options_add_page() { add_theme_page( __( 'Orbit Options', 'orbit' ), __( 'Orbit Options', 'orbit' ), 'edit_theme_options', 'orbit_options', 'orbit_options_do_page' ); } add_action( 'admin_menu', 'orbit_options_add_page' ); /** * A safe way of adding JavaScripts to a WordPress generated page. * * @since Orbit 1.0.0 */ function orbit_admin_enqueue_scripts( $hook_suffix ) { wp_enqueue_style( 'orbit-theme-options', get_template_directory_uri() . '/inc/css/theme-options.css', false, '1.0' ); wp_enqueue_script( 'media-upload' ); wp_enqueue_script( 'thickbox' ); wp_enqueue_style( 'thickbox' ); wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'jquery-plugin-cookie', get_template_directory_uri() . '/inc/js/jquery.ck.js', array( 'jquery' ), '1.0' ); wp_enqueue_script( 'orbit-theme-options', get_template_directory_uri() . '/inc/js/theme-options.js', array( 'jquery', 'media-upload', 'thickbox', 'farbtastic', 'jquery-plugin-cookie' ), '1.0' ); } add_action( 'admin_print_styles-appearance_page_orbit_options', 'orbit_admin_enqueue_scripts' ); /** * Render sections in admin panel * * @since Orbit 1.0.0 */ function orbit_do_settings_sections( $page ) { global $wp_settings_sections, $wp_settings_fields; if ( ! isset( $wp_settings_sections ) || !isset( $wp_settings_sections[$page] ) ) return; foreach ( (array) $wp_settings_sections[$page] as $section ) { echo '
'; echo '

' . $section['title'] . '

'; echo '
'; if ( $section['callback'] ) call_user_func( $section['callback'], $section ); if ( $section['id'] != 'status_report' ) { echo ' '; orbit_do_settings_fields( $page, $section['id'] ); echo '
'; } echo '
'; echo '
'; } } /** * Render the settings fields for a particular settings section * * @since Orbit 1.1.0 */ function orbit_do_settings_fields($page, $section) { global $wp_settings_fields; if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section]) ) return; foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { if ( strpos( $field['id'], 'slide_' ) === false) $classes = ''; else $classes = substr_replace( $field['id'], "", -2); if ( (strpos( $field['id'], 'slide_text' ) === false ) && ( strpos( $field['id'], 'show_posts' ) === false) ) $classes .= ''; else $classes .= ' ' . $field['id']; if ( $classes != '' ) $custom_class = 'class="' . $classes . '"'; else $custom_class = ''; echo ''; if ( !empty($field['args']['label_for']) ) echo ''; else echo '' . $field['title'] . ''; echo ''; call_user_func($field['callback'], $field['args']); echo ''; echo ''; } } /** * Create the options page * * @since Orbit 1.0.0 */ function orbit_options_do_page() { ?>

Orbit bitado.com

google fonts" ); ?>

google fonts" ); ?>

get_item_quantity( 10 ); $news_items = $orbit_news->get_items( 0, $maxitems ); } ?>

:
:
:
:
:
:
:
: ', $wc_plugins ); ?>