array( 'id' => 'adventurous-header-image', 'value' => 'default', 'label' => __( 'Default', 'adventurous' ), ), 'enable' => array( 'id' => 'adventurous-header-image', 'value' => 'enable', 'label' => __( 'Enable', 'adventurous' ), ), 'disable' => array( 'id' => 'adventurous-header-image', 'value' => 'disable', 'label' => __( 'Disable', 'adventurous' ) ) ); //Sidebar Layout Options global $sidebar_layout; $sidebar_layout = array( 'default-sidebar' => array( 'id' => 'adventurous-sidebarlayout', 'value' => 'default', 'label' => sprintf( __( 'Default Layout Set in Theme Options', 'adventurous' ), esc_url( admin_url('admin.php?page=theme_options' ) ) ), 'thumbnail' => ' ' ), 'right-sidebar' => array( 'id' => 'adventurous-sidebarlayout', 'value' => 'right-sidebar', 'label' => __( 'Right sidebar', 'adventurous' ), 'thumbnail' => get_template_directory_uri() . '/inc/panel/images/right-sidebar.png' ), 'left-sidebar' => array( 'id' => 'adventurous-sidebarlayout', 'value' => 'left-sidebar', 'label' => __( 'Left sidebar', 'adventurous' ), 'thumbnail' => get_template_directory_uri() . '/inc/panel/images/left-sidebar.png' ), 'no-sidebar' => array( 'id' => 'adventurous-sidebarlayout', 'value' => 'no-sidebar', 'label' => __( 'No sidebar', 'adventurous' ), 'thumbnail' => get_template_directory_uri() . '/inc/panel/images/no-sidebar.png' ) ); //Featured Image Options global $featuredimage_options; $featuredimage_options = array( 'default' => array( 'id' => 'adventurous-featured-image', 'value' => 'default', 'label' => sprintf( __( 'Default Layout Set in Theme Options', 'adventurous' ), esc_url( admin_url('admin.php?page=theme_options' ) ) ), ), 'featured' => array( 'id' => 'adventurous-featured-image', 'value' => 'featured', 'label' => __( 'Featured Image', 'adventurous' ) ), 'full' => array( 'id' => 'adventurous-featured-image', 'value' => 'full', 'label' => __( 'Full Image', 'adventurous' ) ), 'slider' => array( 'id' => 'adventurous-featured-image', 'value' => 'slider', 'label' => __( 'Slider Image', 'adventurous' ) ), 'disable' => array( 'id' => 'adventurous-featured-image', 'value' => 'disable', 'label' => __( 'Disable Image', 'adventurous' ) ) ); /** * @renders metabox to for sidebar layout */ function adventurous_meta_options() { global $header_image_options, $sidebar_layout, $featuredimage_options, $post; // Use nonce for verification wp_nonce_field( basename( __FILE__ ), 'custom_meta_box_nonce' ); // Begin the field table and loop ?>

ID, $field['id'], true ); if (empty( $metalayout ) ){ $metalayout='default'; } if ( $field['thumbnail']==' ' ): ?>

ID, $field['id'], true ); if (empty( $metaheader ) ){ $metaheader='default'; } ?>

ID, $field['id'], true ); if (empty( $metaimage ) ){ $metaimage='default'; } ?>