Пример #1
0
function am_clients_meta()
{
    // Clients's info meta box
    $meta_box = array('id' => 'am-clients-info', 'title' => __('Client extra info'), 'description' => __('Extra information for clients'), 'page' => 'client', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Client website url:'), 'desc' => '', 'id' => 'am_client_url', 'type' => 'text', 'std' => '')));
    am_add_meta_box($meta_box);
    // Alternate thumbnail
    $meta_box = array('id' => 'am-clients-alt-thumb', 'title' => __('Alternate Thumbnail'), 'description' => __('Replaces the default fatured image'), 'page' => 'client', 'context' => 'side', 'priority' => 'default', 'fields' => array(array('name' => __(''), 'desc' => '', 'id' => 'am_client_alt', 'type' => 'images', 'std' => 'Select Image')));
    am_add_meta_box($meta_box);
}
Пример #2
0
function am_pages_meta()
{
    // Color box
    $meta_box = array('id' => 'am-page-info', 'title' => __('Menu Color'), 'description' => '', 'page' => 'page', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Menu background color:'), 'desc' => '', 'id' => 'am_menu_color', 'type' => 'color', 'std' => '#000000'), array('name' => __('Action Button 1 Text:'), 'desc' => 'Call to action button 1 text', 'id' => 'am_action_button_text', 'type' => 'text', 'std' => 'Find out more'), array('name' => __('Action Button 1 URL:'), 'desc' => 'Call to action button 1 url', 'id' => 'am_action_button_url', 'type' => 'text', 'std' => ''), array('name' => __('Action Button 1 color:'), 'desc' => 'Call to action button 1 color', 'id' => 'am_action_button_color', 'type' => 'color', 'std' => ''), array('name' => __('Action Button 2 Text:'), 'desc' => 'Call to action button 2 text', 'id' => 'am_action_button_text2', 'type' => 'text', 'std' => 'Find out more'), array('name' => __('Action Button 2 URL:'), 'desc' => 'Call to action button 2 url', 'id' => 'am_action_button_url2', 'type' => 'text', 'std' => ''), array('name' => __('Action Button 2 color:'), 'desc' => 'Call to action button 2 color', 'id' => 'am_action_button_color2', 'type' => 'color', 'std' => ''), array('name' => __('Alternate Page Content:'), 'desc' => '', 'id' => 'am_alternate_page_content_editor', 'type' => 'editor', 'std' => '')));
    am_add_meta_box($meta_box);
}
Пример #3
0
function am_slides_meta()
{
    // Member's info meta box
    $meta_box = array('id' => 'am-slides-info', 'title' => __('Slides Extra'), 'description' => __('Extra line for slides'), 'page' => 'slide', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Additional Slide info:'), 'desc' => '', 'id' => 'am_slide_extra', 'type' => 'text', 'std' => '')));
    am_add_meta_box($meta_box);
}
function am_testimonials_meta()
{
    // Member's info meta box
    $meta_box = array('id' => 'am-testimonials-info', 'title' => __('Testimonial\'s extra info'), 'description' => __(''), 'page' => 'testimonial', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Testimonial Link'), 'desc' => '', 'id' => 'am_testimonial_link', 'type' => 'text', 'std' => '')));
    am_add_meta_box($meta_box);
}
Пример #5
0
function am_services_meta()
{
    // Member's info meta box
    $meta_box = array('id' => 'am-service-info', 'title' => __('Service Extras'), 'description' => __(''), 'page' => 'service', 'context' => 'normal', 'priority' => 'high', 'fields' => array(array('name' => __('Dropdown one liner:'), 'desc' => '', 'id' => 'am_service_one_liner', 'type' => 'text', 'std' => ''), array('name' => __('Service Excerpt'), 'desc' => '', 'id' => 'am_service_excerpt', 'type' => 'editor', 'std' => '')));
    am_add_meta_box($meta_box);
}