$background_image_fill = array("cover" => "Cover", "center" => "Center", "repeat" => "Repeat"); $text_color = array("light" => "Light", "dark" => "Dark"); //Project options $config = array('id' => 'project_options', 'title' => 'Project Options', 'prefix' => $prefix . "project_", 'postType' => array('project'), 'context' => 'side', 'priority' => 'default', 'usage' => 'theme', 'showInColumns' => false); $project_options_meta_box = new mrMetaBox($config); $project_options_meta_box->addField(array('type' => 'Checkbox', 'id' => 'featured', 'label' => __('Feature on Home: ', 'themetrust'))); //Page Options $config = array('id' => 'page_options', 'title' => 'Page Options', 'prefix' => $prefix . "page_", 'postType' => array('page'), 'context' => 'side', 'priority' => 'default', 'usage' => 'theme', 'showInColumns' => false); $page_options_meta_box = new mrMetaBox($config); $page_options_meta_box->addField(array('type' => 'Textarea', 'id' => 'description', 'label' => __('Page Description: ', 'themetrust'))); $page_options_meta_box->addField(array('type' => 'Textarea', 'id' => 'skills', 'label' => __('Skills: ', 'themetrust'))); $page_options_meta_box->addField(array('type' => 'Checkbox', 'id' => 'featured', 'label' => __('Feature on Home: ', 'themetrust'))); //Testimonials options $config = array('id' => 'testimonial_options', 'title' => 'Testimonial Options', 'prefix' => $prefix . "testimonial_", 'postType' => array('testimonial'), 'context' => 'normal', 'priority' => 'high', 'usage' => 'theme', 'showInColumns' => true); $testimonial_options_meta_box = new mrMetaBox($config); $testimonial_options_meta_box->addField(array('type' => 'Image', 'id' => 'background_image', 'label' => __('Background Image: ', 'themetrust'), 'attachToPost' => false)); ////////////////////////////////////////////////////////////// // Comments ///////////////////////////////////////////////////////////// function ttrust_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="li-comment-<?php comment_ID(); ?> "> <div class="comment <?php echo get_comment_type();
$prefix = "_ttrust_"; $text_alignment = array("center" => "Center", "left" => "Left", "right" => "Right"); //Project options $config = array('id' => 'project_options', 'title' => 'Project Options', 'prefix' => $prefix . "project_", 'postType' => array('project'), 'context' => 'side', 'priority' => 'default', 'usage' => 'theme', 'showInColumns' => false); $project_options_meta_box = new mrMetaBox($config); $project_options_meta_box->addField(array('type' => 'Checkbox', 'id' => 'featured', 'label' => __('Feature on Home: ', 'themetrust'))); //Page Options $config = array('id' => 'page_options', 'title' => 'Page Options', 'prefix' => $prefix . "page_", 'postType' => array('page'), 'context' => 'side', 'priority' => 'default', 'usage' => 'theme', 'showInColumns' => false); $page_options_meta_box = new mrMetaBox($config); $page_options_meta_box->addField(array('type' => 'Textarea', 'id' => 'description', 'label' => __('Page Description: ', 'themetrust'))); $page_options_meta_box->addField(array('type' => 'Textarea', 'id' => 'skills', 'label' => __('Skills: ', 'themetrust'))); $page_options_meta_box->addField(array('type' => 'Checkbox', 'id' => 'featured', 'label' => __('Feature on Home: ', 'themetrust'))); //Slide options $config = array('id' => 'slide_options', 'title' => 'Slide Options', 'prefix' => $prefix . "slide_", 'postType' => array('slide'), 'context' => 'normal', 'priority' => 'high', 'usage' => 'theme', 'showInColumns' => true); $slide_options_meta_box = new mrMetaBox($config); $slide_options_meta_box->addField(array('type' => 'Textarea', 'id' => 'description', 'label' => __('Description: ', 'themetrust'))); $slide_options_meta_box->addField(array('type' => 'Select', 'id' => "text_alignment", 'label' => __('Text Alignment: ', 'themetrust'), 'default' => '', 'options' => $text_alignment)); $slide_options_meta_box->addField(array('type' => 'Image', 'id' => 'background_image', 'label' => __('Background Image: ', 'themetrust'), 'attachToPost' => false)); $slide_options_meta_box->addField(array('type' => 'Checkbox', 'id' => 'show_text', 'label' => __('Show Text: ', 'themetrust'))); ////////////////////////////////////////////////////////////// // Comments ///////////////////////////////////////////////////////////// function ttrust_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="li-comment-<?php comment_ID(); ?> ">