array( 'id' => 'catchevolution-sidebarlayout', 'value' => 'default', 'label' => sprintf( __( 'Default Layout Set in Theme Settings', 'catch-evolution' ), esc_url( admin_url( 'themes.php?page=theme_options' ) ) ), 'thumbnail' => ' ' ), 'right-sidebar' => array( 'id' => 'catchevolution-sidebarlayout', 'value' => 'right-sidebar', 'label' => __( 'Right sidebar', 'catch-evolution' ), 'thumbnail' => trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/right-sidebar.png' ), 'left-sidebar' => array( 'id' => 'catchevolution-sidebarlayout', 'value' => 'left-sidebar', 'label' => __( 'Left sidebar', 'catch-evolution' ), 'thumbnail' => trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/left-sidebar.png' ), 'no-sidebar' => array( 'id' => 'catchevolution-sidebarlayout', 'value' => 'no-sidebar', 'label' => __( 'No sidebar', 'catch-evolution' ), 'thumbnail' => trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/no-sidebar.png' ), 'three-columns' => array( 'id' => 'catchevolution-sidebarlayout', 'value' => 'three-columns', 'label' => __( 'Three Columns', 'catch-evolution' ), 'thumbnail' => trailingslashit( esc_url ( get_template_directory_uri() ) ) . 'images/three-columns.png' ) ); /** * @renders metabox to for sidebar layout */ function catchevolution_sidebar_layout() { global $sidebar_layout, $sidebar_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( $meta ) ){ $meta='default'; } if ( $field['thumbnail']==' ' ): ?>