set_postId(); $arixwp_meta->set_template(); $arixwp_template = $arixwp_meta->get_template(); if ($arixwp_template == $meta_template) { $arixwp_meta->set_meta(array( //This is the id applied to the meta box 'id' => $meta_id, //This is the post type the meta is for 'post_type' => $meta_posttype, //This is the template to show the meta for 'template' => $meta_template, //This is the nonce for this meta 'nonce_name' => $meta_nonce, //This is the title that appears on the meta box container 'title' => $meta_title, //This defines the part of the page where the edit screen section should be shown 'context' => $meta_context, //This sets the priority within the context where the boxes should show 'priority' => $meta_priority, //Here we define all the fields we want in the meta box 'fields' => array( // Show or hide featured posts array( 'before' => '', 'after' => '', 'name' => __( 'Show Featured Posts', THEMENAME ), 'desc' => __( 'This allows you to show or hide the featured posts banner on this page. ( Note: this will override the setting in the themes control panel. )', THEMENAME ), 'id' => '_arixwp_featured_show_page', 'type' => 'radio', // text,textarea,select,radio,checkbox 'default' => 'home', 'options' => array( array('name' => __( ' Yes', THEMENAME ), 'value' => 'yes'), array('name' => __( ' No', THEMENAME ), 'value' => 'no') ) ), // Featured Posts Display Method array( 'before' => '', 'after' => '', 'name' => __( 'Featured Post Display', THEMENAME ), 'desc' => __( 'This controls how your featured posts are displayed. You can show one main feature and 3 normal features, one main feature only, three normal features only, or a jQuery slider that slides through the latest 4 posts in the featured category. ', THEMENAME ), 'id' => '_arixwp_featured_display_page', 'type' => 'radio', // text,textarea,select,radio,checkbox 'default' => 'four', 'options' => array( array('name' => __( ' Main Feature & 3 Normal Features', THEMENAME ), 'value' => 'four', 'class' => 'wparix_feature_four' ), array('name' => __( ' Main Feature Only', THEMENAME ), 'value' => 'one', 'class' => 'wparix_feature_one' ), array('name' => __( ' 3 Normal Features Only', THEMENAME ), 'value' => 'three', 'class' => 'wparix_feature_three' ), array('name' => __( ' Slidertron Slider', THEMENAME ), 'value' => 'slide', 'class' => 'wparix_feature_slide' ) ) ), // Sidebar Location array ( 'before' => '', 'after' => '', 'name' => __( 'Sidebar Location', THEMENAME ), 'desc' => __( 'This allows you to override the default sidebar settings.', THEMENAME ), 'id' => '_arixwp_sidebar_page', 'type' => 'radio', // text,textarea,select,radio,checkbox 'default' => 'left', 'options' => array( array('name' => ' Left', 'value' => 'left'), array('name' => ' Right', 'value' => 'right'), array('name' => ' None', 'value' => 'none') ) ), // Start Gallerax array( 'before' => __( 'To use the gallery simply upload media to the page and it\'ll handle the rest automatically. If you want to customize its behavior, use the settings below.', THEMENAME ), 'name' => __( 'Navigation Controls', THEMENAME ), 'desc' => __( 'This shows or hides the gallery\'s navigation buttons.', THEMENAME ), 'id' => '_arixwp_gallerax_nav', 'type' => 'radio', 'default' => 'show', 'options' => array( array('name' => __( ' Show', THEMENAME ), 'value' => 'show'), array('name' => __( ' Hide', THEMENAME ), 'value' => 'hide') ), ), array( 'name' => __( 'Image Captions', THEMENAME ), 'desc' => __( 'This shows or hides the captions shown with each image.', THEMENAME ), 'id' => '_arixwp_gallerax_captions', 'type' => 'radio', 'default' => 'show', 'options' => array( array('name' => __( ' Show', THEMENAME ), 'value' => 'show'), array('name' => __( ' Hide', THEMENAME ), 'value' => 'hide') ), ), array( 'name' => __( 'Transitions', THEMENAME ), 'desc' => __( '(Optional) How fast images should transition. Can be either "slow", "fast", "0" (for no fade), or a custom value (in milliseconds). The default is "0".', THEMENAME ), 'id' => '_arixwp_gallerax_fade', 'type' => 'text', 'default' => '0' ), array( 'name' => __( 'Auto-Advance Transitions', THEMENAME ), 'desc' => __( '(Optional) How fast images should transition when auto-advancing. Can be either "slow", "fast", "0" (for instant transitions), or a custom value (in milliseconds). The default is "0".', THEMENAME ), 'id' => '_arixwp_gallerax_afade', 'type' => 'text', 'default' => '0' ), array( 'name' => __( 'Auto-Advance Delay', THEMENAME ), 'desc' => __( '(Optional) How much time to wait before auto-advancing to the next image. Can be either "0" (to not auto-advance at all) or a custom value (in milliseconds). The default is "0".', THEMENAME ), 'id' => '_arixwp_gallerax_adelay', 'type' => 'text', 'default' => '0' ), array( 'name' => __( 'Auto-Advance Resume', THEMENAME ), 'desc' => __( '(Optional) How long to wait before resuming auto-advancing after being interrupted by the user (usually by manually navigating or clicking a thumbnail). Can be either "0" (to never resume), or a custom value in milliseconds. The default is "12000".', THEMENAME ), 'id' => '_arixwp_gallerax_aresume', 'type' => 'text', 'default' => '12000' ), ) )); $arixwp_meta->init_meta(); } $arixwp_meta = null;