Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/themes/sparks/includes/meta/post-meta.php
Error occurred
Назад
<?php /** * Create the Post meta boxes */ add_action('add_meta_boxes', 'zilla_metabox_posts'); function zilla_metabox_posts() { /* Create a gallery metabox ---------------------------------------------------*/ $meta_box = array( 'id' => 'zilla-metabox-post-gallery', 'title' => __('Gallery Settings', 'zilla'), 'description' => __('Set the featured gallery using the upload load button below. If a featured gallery is not created, images attached to the post will be used instead.', '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. The title of the post will be used as the author of the quote.', '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. This theme expects videos to be 750px wide.', '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 750px 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 ); /* Add custom backgrounds metabox -----------------------------------------*/ $meta_box = array( 'id' => 'zilla-metabox-post-background', 'title' => __('Custom Background Settings', 'zilla'), 'description' => __('These settings enable you to set a custom background for this post. You can set to have a single large image, a repeated pattern, or a custom color.', 'zilla'), 'page' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => __('Custom Background', 'zilla'), 'desc' => __('Please check to include a custom background', 'zilla'), 'id' => '_zilla_post_display_background', 'type' => 'checkbox', 'std' => 'off' ), 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' => __('Cover Background', 'zilla'), 'desc' => __('Shall the image be stretched to cover the background portion of the media section? Leave this off if you want to use repeat.', 'zilla'), 'id' => '_zilla_background_cover', 'type' => 'checkbox', 'std' => 'on' ), 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 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 Color', 'zilla'), 'desc' => __('Choose a custom background color for this post.', 'zilla'), 'id' => '_zilla_background_color', 'type' => 'color', 'std' => '', 'val' => '#f0eee8' ) ) ); zilla_add_meta_box( $meta_box ); }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка