function slider_meta_box()
{
    global $slider_meta_box_settings, $post;
    echo '<p style="padding:10px 0 0 0;">' . __('Manage your Background Slider options here and override those defined globally in the Theme Options.', 'framework') . '</p>';
    // Use nonce for verification
    echo '<input type="hidden" name="myplugin_noncename" id="myplugin_noncename" value="' . wp_create_nonce(plugin_basename(__FILE__)) . '" />';
    echo '<table class="form-table">';
    foreach ($slider_meta_box_settings as $meta) {
        if (isset($meta['name'])) {
            $value = get_post_meta($post->ID, $meta['name'], true);
        }
        if ($meta['type'] == 'text') {
            meta_inputbox($meta, $value);
        } elseif ($meta['type'] == 'select') {
            meta_selectbox($meta, $value);
        } elseif ($meta['type'] == 'checkbox') {
            meta_checkbox($meta, $value);
        } elseif ($meta['type'] == 'button') {
            meta_button($meta, $value);
        } elseif ($meta['type'] == 'start') {
            get_meta_divider_start($meta, $value);
        } elseif ($meta['type'] == 'close') {
            get_meta_divider_end($meta, $value);
        } elseif ($meta['type'] == 'clear') {
            get_meta_clear($meta, $value);
        }
    }
    echo '</table>';
}
function video_portfolio_portfolio_meta_box()
{
    global $video_portfolio_portfoliometas, $post;
    echo '<p style="padding:10px 0 0 0;">' . __('This area is for the use of <strong>Video Portfolios</strong>. Add your Video URL or Embed Code, along with Portfolio Thumbnail below. Videos will not automatically generate a thumbnail so it is required that you upload a thumbnail as well.', 'framework') . '</p>';
    // Use nonce for verification
    echo '<input type="hidden" name="myplugin_noncename" id="myplugin_noncename" value="' . wp_create_nonce(plugin_basename(__FILE__)) . '" />';
    echo '<table class="form-table">';
    foreach ($video_portfolio_portfoliometas as $meta) {
        if (isset($meta['name'])) {
            $value = get_post_meta($post->ID, $meta['name'], true);
        }
        if ($meta['type'] == 'text') {
            meta_inputbox($meta, $value);
        } elseif ($meta['type'] == 'select') {
            meta_selectbox($meta, $value);
        } elseif ($meta['type'] == 'button') {
            meta_button($meta, $value);
        } elseif ($meta['type'] == 'checkbox') {
            meta_checkbox($meta, $value);
        } elseif ($meta['type'] == 'start') {
            get_meta_divider_start($meta, $value);
        } elseif ($meta['type'] == 'close') {
            get_meta_divider_end($meta, $value);
        } elseif ($meta['type'] == 'clear') {
            get_meta_clear($meta, $value);
        } elseif ($meta['type'] == 'textarea') {
            meta_textarea($meta, $value);
        }
    }
    echo '</table>';
}
function video_page_meta_box()
{
    global $video_pagemetas, $post;
    echo '<p style="padding:10px 0 0 0;">' . __('Manage and customize your background video options here specific to this page. Make sure you\'ve enabled the Video Background found inside the "KingSize Page Background Options" above.', 'framework') . '</p>';
    // Use nonce for verification
    echo '<input type="hidden" name="myplugin_noncename" id="myplugin_noncename" value="' . wp_create_nonce(plugin_basename(__FILE__)) . '" />';
    echo '<table class="form-table">';
    foreach ($video_pagemetas as $meta) {
        if (isset($meta['name'])) {
            $value = get_post_meta($post->ID, $meta['name'], true);
        }
        if ($meta['type'] == 'text') {
            meta_inputbox($meta, $value);
        } elseif ($meta['type'] == 'select') {
            meta_selectbox($meta, $value);
        } elseif ($meta['type'] == 'checkbox') {
            meta_checkbox($meta, $value);
        } elseif ($meta['type'] == 'start') {
            get_meta_divider_start($meta, $value);
        } elseif ($meta['type'] == 'close') {
            get_meta_divider_end($meta, $value);
        } elseif ($meta['type'] == 'clear') {
            get_meta_clear($meta, $value);
        }
    }
    echo '</table>';
}