function zilla_metabox_seo()
{
    /* Create the SEO metabox ----------------------------------------------*/
    $meta_box = array('id' => 'zilla_metabox_seo', 'title' => __('SEO Settings', 'zilla'), 'description' => __('These settings enable you to customize the SEO settings for this post/page.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Title', 'zilla'), 'desc' => __('Most search engines use a maximum of 60 chars for the title.', 'zilla'), 'id' => '_zilla_seo_title', 'type' => 'text', 'std' => ''), array('name' => __('Description', 'zilla'), 'desc' => __('Most search engines use a maximum of 160 chars for the description.', 'zilla'), 'id' => '_zilla_seo_description', 'type' => 'text', 'std' => ''), array('name' => __('Keywords', 'zilla'), 'desc' => __('A comma separated list of keywords', 'zilla'), 'id' => '_zilla_seo_keywords', 'type' => 'text', 'std' => ''), array('name' => __('Meta Robots Index', 'zilla'), 'desc' => __('Do you want robots to index this page?', 'zilla'), 'id' => '_zilla_seo_robots_index', 'type' => 'radio', 'std' => 'index', 'options' => array('index', 'noindex')), array('name' => __('Meta Robots Follow', 'zilla'), 'desc' => __('Do you want robots to follow links from this page?', 'zilla'), 'id' => '_zilla_seo_robots_follow', 'type' => 'radio', 'std' => 'follow', 'options' => array('follow', 'nofollow'))));
    if (!zilla_is_third_party_seo()) {
        // Posts
        zilla_add_meta_box($meta_box);
        // Pages
        $meta_box['page'] = 'page';
        zilla_add_meta_box($meta_box);
    }
}
function zilla_metabox_portfolio()
{
    /* Create a settings metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-portfolio-settings', 'title' => __('Portfolio Settings', 'zilla'), 'description' => __('Input basic settings for this portfolio.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Portfolio Caption', 'zilla'), 'desc' => __('Enter a portfolio caption', 'zilla'), 'id' => '_zilla_portfolio_caption', 'type' => 'text', 'std' => ''), array('name' => __('Display Gallery', 'zilla'), 'desc' => __('Shall the gallery be displayed?', 'zilla'), 'id' => '_zilla_portfolio_display_gallery', 'type' => 'checkbox', 'std' => 'on'), array('name' => __('Display Audio', 'zilla'), 'desc' => __('Shall the video be displayed?', 'zilla'), 'id' => '_zilla_portfolio_display_audio', 'type' => 'checkbox', 'std' => 'off'), array('name' => __('Display Video', 'zilla'), 'desc' => __('Shall the video be displayed?', 'zilla'), 'id' => '_zilla_portfolio_display_video', 'type' => 'checkbox', 'std' => 'off'), array('name' => __('Custom Background', 'zilla'), 'desc' => __('Will this portfolio receive a custom background', 'zilla'), 'id' => '_zilla_portfolio_display_background', 'type' => 'checkbox', 'std' => 'off'), array('name' => __('Portfolio Media Position', 'zilla'), 'desc' => __('Set the position for the media for this portfolio', 'zilla'), 'id' => '_zilla_portfolio_media_position', 'type' => 'radio', 'std' => 'media-left', 'options' => array('media-left' => __('Left', 'zilla'), 'media-center' => __('Center', 'zilla'), 'media-right' => __('Right', 'zilla'))), array('name' => __('Portfolio Style', 'zilla'), 'desc' => __('Select the style for this portfolio. Dark portfolios will have white text and buttons; light portfolios will have dark text and buttons', 'zilla'), 'id' => '_zilla_portfolio_style', 'type' => 'radio', 'std' => 'light', 'options' => array('light' => __('Light', 'zilla'), 'dark' => __('Dark', 'zilla'))), array('name' => __('Project Link', 'zilla'), 'desc' => __('If you would like a project link, please enter the url', 'zilla'), 'id' => '_zilla_portfolio_project_url', 'type' => 'text', 'std' => ''), array('name' => __('Project Link Text', 'zilla'), 'desc' => __('Enter the text for the button', 'zilla'), 'id' => '_zilla_portfolio_project_url_copy', 'type' => 'text', 'std' => __('View Project', 'zilla'))));
    zilla_add_meta_box($meta_box);
    /* Create an image metabox -------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-portfolio-gallery', 'title' => __('Gallery Settings', 'zilla'), 'description' => __('Set up your gallery. All images attached to this portfolio will be included in the gallery.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Upload Images', 'zilla'), 'desc' => __('Click to upload images.', 'zilla'), 'id' => '_zilla_gallery_upload', 'type' => 'images', 'std' => __('Upload Images', 'zilla')), array('name' => __('Gallery Type', 'zilla'), 'desc' => __('Shall the gallery images be displayed in a slideshow or as stacked images.', 'zilla'), 'id' => '_zilla_gallery_layout', 'type' => 'select', 'std' => __('Stacked', 'zilla'), 'options' => array('stacked' => __('Stacked', 'zilla'), 'slideshow' => __('Slideshow', 'zilla')))));
    zilla_add_meta_box($meta_box);
    /* Create a video metabox -------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-portfolio-video', 'title' => __('Video Settings', 'zilla'), 'description' => __('These settings enable you to embed videos into your portfolio pages.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Video Height', 'zilla'), 'desc' => __('The video height (e.g. 500).', 'zilla'), 'id' => '_zilla_video_height', 'type' => 'text', 'std' => ''), array('name' => __('M4V File URL', 'zilla'), 'desc' => __('The URL to the .m4v video file', 'zilla'), 'id' => '_zilla_video_m4v', 'type' => 'text', 'std' => ''), array('name' => __('OGV File URL', 'zilla'), 'desc' => __('The URL to the .ogv video file', 'zilla'), 'id' => '_zilla_video_ogv', 'type' => 'text', 'std' => ''), array('name' => __('Poster Image', 'zilla'), 'desc' => __('The preview image.', 'zilla'), 'id' => '_zilla_video_poster_url', 'type' => 'file', 'std' => ''), array('name' => __('Embedded Code', 'zilla'), 'desc' => __('If you are using something other than self hosted video such as Youtube or Vimeo, paste the embed code here. Width is best at 600px with any height.<br><br> This field will override the above.', 'zilla'), 'id' => '_zilla_video_embed_code', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create an audio metabox ------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-portfolio-audio', 'title' => __('Audio Settings', 'zilla'), 'description' => __('These settings enable you to embed audio into your portfolio pages.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('MP3 File URL', 'zilla'), 'desc' => __('The URL to the .mp3 audio file', 'zilla'), 'id' => '_zilla_audio_mp3', 'type' => 'text', 'std' => ''), array('name' => __('OGA File URL', 'zilla'), 'desc' => __('The URL to the .oga, .ogg audio file', 'zilla'), 'id' => '_zilla_audio_ogg', 'type' => 'text', 'std' => ''), array('name' => __('Poster Image', 'zilla'), 'desc' => __('The preview image for this audio track', 'zilla'), 'id' => '_zilla_audio_poster_url', 'type' => 'file', 'std' => ''), array('name' => __('Poster Image Height', 'zilla'), 'desc' => __('The height of the poster image', 'zilla'), 'id' => '_zilla_audio_height', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Add custom backgrounds metabox -----------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-portfolio-background', 'title' => __('Custom Background Settings', 'zilla'), 'description' => __('These settings enable you to set a custom background for this portfolio. You can set to have a single large image, a repeated pattern, or a custom color.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Custom Background Image', 'zilla'), 'desc' => __('Upload a custom background image for this post. Once image has been uploaded, click Insert into Post.', 'zilla'), 'id' => '_zilla_background_image_url', 'type' => 'file', 'std' => ''), array('name' => __('Custom Background Repeat', 'zilla'), 'desc' => __('Select the preferred repeat for the uploaded image.', 'zilla'), 'id' => '_zilla_background_repeat', 'type' => 'radio', 'std' => 'no-repeat', 'options' => array('no-repeat' => __('No repeat', 'zilla'), 'repeat-x' => __('Repeat Horizontally', 'zilla'), 'repeat-y' => __('Repeat Vertically', 'zilla'), 'repeat' => __('Repeat', 'zilla'))), array('name' => __('Custom Background Position', 'zilla'), 'desc' => __('Select the background position for the uploaded image.', 'zilla'), 'id' => '_zilla_background_position', 'type' => 'radio', 'std' => 'left', 'options' => array('left' => __('Left', 'zilla'), 'right' => __('Right', 'zilla'), 'center' => __('Center', 'zilla'))), array('name' => __('Custom Background Color', 'zilla'), 'desc' => __('Select a custom background color for this post.', 'zilla'), 'id' => '_zilla_background_color', 'type' => 'color', 'std' => '', 'val' => '#')));
    zilla_add_meta_box($meta_box);
}
Ejemplo n.º 3
0
function zilla_metabox_posts()
{
    /* Create a gallery metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-gallery', 'title' => __('Gallery Settings', 'zilla'), 'description' => __('Set up your gallery.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Gallery Layout', 'zilla'), 'desc' => __('Should the gallery images be stacked or in a slideshow?', 'zilla'), 'id' => '_zilla_gallery_layout', 'type' => 'select', 'std' => '', 'options' => array('stacked' => __('Stacked', 'zilla'), 'slideshow' => __('Slideshow', 'zilla'))), array('name' => __('Upload Images', 'zilla'), 'desc' => __('Click to upload images.', 'zilla'), 'id' => '_zilla_gallery_upload', 'type' => 'images', 'std' => __('Upload Images', 'zilla'))));
    zilla_add_meta_box($meta_box);
    /* Create a quote metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-quote', 'title' => __('Quote Settings', 'zilla'), 'description' => __('Input your quote.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('The Quote', 'zilla'), 'desc' => __('Input your quote.', 'zilla'), 'id' => '_zilla_quote_quote', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create a link metabox ----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-link', 'title' => __('Link Settings', 'zilla'), 'description' => __('Input your link', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('The Link', 'zilla'), 'desc' => __('Input your link. e.g., http://themezilla.com', 'zilla'), 'id' => '_zilla_link_url', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create a video metabox -------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-video', 'title' => __('Video Settings', 'zilla'), 'description' => __('These settings enable you to embed videos into your posts.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Video Height', 'zilla'), 'desc' => __('The video height (e.g. 500).', 'zilla'), 'id' => '_zilla_video_height', 'type' => 'text', 'std' => ''), array('name' => __('M4V File URL', 'zilla'), 'desc' => __('The URL to the .m4v video file', 'zilla'), 'id' => '_zilla_video_m4v', 'type' => 'text', 'std' => ''), array('name' => __('OGV File URL', 'zilla'), 'desc' => __('The URL to the .ogv video file', 'zilla'), 'id' => '_zilla_video_ogv', 'type' => 'text', 'std' => ''), array('name' => __('Poster Image', 'zilla'), 'desc' => __('The preview image.', 'zilla'), 'id' => '_zilla_video_poster_url', 'type' => 'file', 'std' => ''), array('name' => __('Embedded Code', 'zilla'), 'desc' => __('If you are using something other than self hosted video such as Youtube or Vimeo, paste the embed code here. Width is best at 600px with any height.<br><br> This field will override the above.', 'zilla'), 'id' => '_zilla_video_embed_code', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create an audio metabox ------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-audio', 'title' => __('Audio Settings', 'zilla'), 'description' => __('These settings enable you to embed audio into your posts.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('MP3 File URL', 'zilla'), 'desc' => __('The URL to the .mp3 audio file', 'zilla'), 'id' => '_zilla_audio_mp3', 'type' => 'text', 'std' => ''), array('name' => __('OGA File URL', 'zilla'), 'desc' => __('The URL to the .oga, .ogg audio file', 'zilla'), 'id' => '_zilla_audio_ogg', 'type' => 'text', 'std' => ''), array('name' => __('Audio Poster Image', 'zilla'), 'desc' => __('The preview image for this audio track', 'zilla'), 'id' => '_zilla_audio_poster_url', 'type' => 'file', 'std' => ''), array('name' => __('Audio Poster Image Height', 'zilla'), 'desc' => __('The height of the poster image', 'zilla'), 'id' => '_zilla_audio_height', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
}
Ejemplo n.º 4
0
function zilla_metabox_pages()
{
    // /* Create a featured image metabox ----------------------------------------------------*/
    // $meta_box = array(
    //     'id' => 'zilla-metabox-post-image',
    //     'title' =>  __('Feature Image Settings', 'zilla'),
    //     'description' => __('Set up your featured image.', 'zilla'),
    //     'page' => 'page',
    //     'context' => 'normal',
    //     'priority' => 'high',
    //     'fields' => array(
    //         array(
    //             'name' =>  __('Lower Image Opacity', 'zilla'),
    //             'desc' => __('Drop the opacity of an image to make text more readable.', 'zilla'),
    //             'id' => '_zilla_image_opacity',
    //             'type' => 'checkbox',
    //             'std' => ''
    //         )
    //     )
    // );
    // zilla_add_meta_box( $meta_box );
    /* About page -------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-page-template-template-about', 'title' => __('About Page Settings', 'zilla'), 'description' => '', 'page' => 'page', 'context' => 'normal', 'priority' => 'high', 'fields' => array());
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(1, 'first'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(2, 'second'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(3, 'third'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(4, 'fourth'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(5, 'fith'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(6, 'sixth'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(7, 'seventh'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(8, 'eighth'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(9, 'ninth'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(10, 'tenth'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(11, 'eleventh'));
    $meta_box['fields'] = array_merge($meta_box['fields'], zilla_about_page_template_profile(12, 'twelfth'));
    zilla_add_meta_box($meta_box);
    /* Contact page -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-page-template-template-contact', 'title' => __('Contact Page Settings', 'zilla'), 'description' => __('This info will appear in the "Additional Contact Details" section of the contact page', 'zilla'), 'page' => 'page', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Google Maps Embed Code', 'zilla'), 'desc' => __('Generate your map <a href="https://developers.google.com/maps/documentation/embed/start" target="_blank">here</a>, then paste the embed code above. The map width should be 460px', 'zilla'), 'id' => '_zilla_contact_map_embed', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Location page -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-page-template-template-location', 'title' => __('Location Page Settings', 'zilla'), 'description' => __('This info will appear in the "Additional Location Details" section of the contact page', 'zilla'), 'page' => 'page', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Google Maps Embed Code', 'zilla'), 'desc' => __('Generate your map <a href="https://developers.google.com/maps/documentation/embed/start" target="_blank">here</a>, then paste the embed code above. The map width should be 460px', 'zilla'), 'id' => '_zilla_location_map_embed', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
}
Ejemplo n.º 5
0
function zilla_metabox_posts()
{
    /* Create a featured image metabox ----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-image', 'title' => __('Feature Image Settings', 'zilla'), 'description' => __('Set up your featured image.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Lower Image Opacity', 'zilla'), 'desc' => __('Drop the opacity of an image to make text more readable.', 'zilla'), 'id' => '_zilla_image_opacity', 'type' => 'checkbox', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create a gallery metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-gallery', 'title' => __('Gallery Settings', 'zilla'), 'description' => __('Set up your gallery.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Upload Images', 'zilla'), 'desc' => __('Click to upload images.', 'zilla'), 'id' => '_zilla_gallery_upload', 'type' => 'images', 'std' => __('Upload Images', 'zilla'))));
    zilla_add_meta_box($meta_box);
    /* Create a quote metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-quote', 'title' => __('Quote Settings', 'zilla'), 'description' => __('Input your quote.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('The Quote', 'zilla'), 'desc' => __('Input your quote.', 'zilla'), 'id' => '_zilla_quote_quote', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create a link metabox ----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-link', 'title' => __('Link Settings', 'zilla'), 'description' => __('Input your link', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('The Link', 'zilla'), 'desc' => __('Input your link.', 'zilla'), 'id' => '_zilla_link_url', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create a video metabox -------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-video', 'title' => __('Video Settings', 'zilla'), 'description' => __('These settings enable you to embed videos into your posts.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('M4V File URL', 'zilla'), 'desc' => __('The URL to the .m4v video file', 'zilla'), 'id' => '_zilla_video_m4v', 'type' => 'file', 'std' => ''), array('name' => __('OGV File URL', 'zilla'), 'desc' => __('The URL to the .ogv video file', 'zilla'), 'id' => '_zilla_video_ogv', 'type' => 'file', 'std' => ''), array('name' => __('Poster Image', 'zilla'), 'desc' => __('The preview image.', 'zilla'), 'id' => '_zilla_video_poster_url', 'type' => 'text', 'std' => ''), array('name' => __('Embedded Code', 'zilla'), 'desc' => __('If you are using something other than self hosted video such as Youtube or Vimeo, paste the embed code here. Width is best at 760px with any height.<br><br> This field will override the above.', 'zilla'), 'id' => '_zilla_video_embed_code', 'type' => 'textarea', 'std' => '')));
    zilla_add_meta_box($meta_box);
    /* Create an audio metabox ------------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-audio', 'title' => __('Audio Settings', 'zilla'), 'description' => __('These settings enable you to embed audio into your posts.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('MP3 File URL', 'zilla'), 'desc' => __('The URL to the .mp3 audio file', 'zilla'), 'id' => '_zilla_audio_mp3', 'type' => 'text', 'std' => ''), array('name' => __('OGA File URL', 'zilla'), 'desc' => __('The URL to the .oga, .ogg audio file', 'zilla'), 'id' => '_zilla_audio_ogg', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
}
Ejemplo n.º 6
0
function zilla_metabox_pages()
{
    /* Create a gallery metabox -----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-page', 'title' => __('Page Settings', 'zilla'), 'description' => __('Set up your page.', 'zilla'), 'page' => 'page', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Page Caption', 'zilla'), 'desc' => __('Enter a custom page caption', 'zilla'), 'id' => '_zilla_page_caption', 'type' => 'text', 'std' => '')));
    zilla_add_meta_box($meta_box);
}
Ejemplo n.º 7
0
function zilla_metabox_portfolios()
{
    /* Create a featured image metabox ----------------------------------------------------*/
    $meta_box = array('id' => 'zilla-metabox-post-image', 'title' => __('Feature Image Settings', 'zilla'), 'description' => __('Set up your featured image.', 'zilla'), 'page' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Lower Image Opacity', 'zilla'), 'desc' => __('Drop the opacity of an image to make text more readable.', 'zilla'), 'id' => '_zilla_image_opacity', 'type' => 'checkbox', 'std' => '')));
    zilla_add_meta_box($meta_box);
}