コード例 #1
0
function add_custom_meta_boxes()
{
    $meta_box = array('id' => 'progression_page_settings', 'title' => 'Page Settings', 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_category_slug', 'name' => 'Homepage Slider: Insert Slider Shortcode', 'desc' => '<br>Copy/paste in your slider shortcode. ', 'type' => 'text', 'std' => ''), array('id' => 'progression_address_home', 'name' => 'Homepage Address', 'desc' => '<br>Example: 4711 Michael Street Houston, TX 77002 ', 'type' => 'text', 'std' => ''), array('id' => 'progression_hours_home', 'name' => 'Homepage Opening Hours', 'desc' => '<br>Example: Opening Hours: 12pm-9pm', 'type' => 'text', 'std' => ''), array('id' => 'pageoptions_contact_map', 'name' => 'Contact Page Map Short Code', 'desc' => '<br>Add-in a shortcode to display a contact form map. (Contact Page Template only). ', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box);
    $meta_box2 = array('id' => 'progression_post_settings', 'title' => 'Post Settings', 'pages' => array('post', 'portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_media_embed', 'name' => 'Audio/Video Embed', 'desc' => '<br>Paste in your video embed code here', 'type' => 'textarea', 'std' => ''), array('id' => 'progression_external_link', 'name' => 'External Link', 'desc' => '<br>Make your post link to another page than the post page. ', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box2);
    $meta_box4 = array('id' => 'progression_post_settings2', 'title' => 'Post Settings', 'pages' => array('menu'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_price_pro', 'name' => 'Price', 'desc' => '<br>Add-in a price for your menu item', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box4);
}
コード例 #2
0
function add_custom_meta_boxes()
{
    $meta_box = array('id' => 'progression_page_settings', 'title' => 'Page Settings', 'pages' => array('page'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_category_slug', 'name' => 'Homepage Slider: Insert Slider Shortcode', 'desc' => '<br>Copy/paste in your slider shortcode. ', 'type' => 'text', 'std' => ''), array('id' => 'progression_sub_headline', 'name' => 'Page Title Description', 'desc' => '<br>Add-in a page title description that displays in the page title area. ', 'type' => 'textarea', 'std' => '')));
    dev7_add_meta_box($meta_box);
    $meta_box2 = array('id' => 'progression_post_settings2', 'title' => 'Post Format Settings', 'pages' => array('portfolio'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_remove_image', 'name' => 'Remove Featured Image/Gallery on Post page', 'desc' => '<br>Type "True" in order to remove the featured image on the portfolio post page. ', 'type' => 'text', 'std' => ''), array('id' => 'progression_media_embed', 'name' => 'Audio/Video Embed', 'desc' => '<br>Paste in your video embed code here', 'type' => 'textarea', 'std' => ''), array('id' => 'progression_external_link', 'name' => 'External Link', 'desc' => '<br>Make your post link to another page than the post page. ', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box2);
    $meta_box4 = array('id' => 'progression_post_settings', 'title' => 'Post Format Settings', 'pages' => array('post'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_media_embed', 'name' => 'Audio/Video Embed', 'desc' => '<br>Paste in your video embed code here', 'type' => 'textarea', 'std' => ''), array('id' => 'progression_external_link', 'name' => 'External Link', 'desc' => '<br>Make your post link to another page than the post page. ', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box4);
    $meta_box3 = array('id' => 'progression_testimonial_settings', 'title' => 'Testimonial Settings', 'pages' => array('testimonial'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_title_testimonial', 'name' => 'Testimonial Title', 'desc' => '<br>Add-in a title or sub-heading for each testimonial ', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box3);
    $meta_box4 = array('id' => 'progression_service_link_setting', 'title' => 'Service Settings', 'pages' => array('service'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('id' => 'progression_service_link', 'name' => 'Service Link', 'desc' => '<br>Add-in a link for the service featured image and heading.', 'type' => 'text', 'std' => '')));
    dev7_add_meta_box($meta_box4);
}
コード例 #3
0
ファイル: subTitle.php プロジェクト: scttrgd/scottish-piping
function addSubTitle()
{
    $subTitle = array('id' => 'subTitleMetaBox', 'title' => 'Sub Title', 'pages' => array('post', 'page'), 'context' => 'side', 'priority' => 'high', 'fields' => array(array('id' => 'subTitle', 'name' => 'sub Title <br/>', 'desc' => 'This is the bold part of the title<br/>', 'type' => 'text', 'std' => 'This is std')));
    dev7_add_meta_box($subTitle);
}