public function draw_forms() { $this->options_description = array("form_title" => array(__("Form Title", 'almera'), "input"), "field_type" => array(__("Field Type", 'almera'), "select"), "form_label" => array(__("Field Label", 'almera'), "input"), "enable_captcha" => array(__("Enable Captcha", 'almera'), "checkbox")); $data['contact_forms'] = TMM::get_option('contact_form'); $data['form_constructor'] = $this; echo TMM::draw_html("contact_form/draw_forms", $data); }
public static function testimonials_credits_meta() { global $post; $data = array(); $custom = get_post_custom($post->ID); $data['position'] = @$custom["position"][0]; echo TMM::draw_html('testimonials/credits_meta', $data); }
public static function credits_meta() { global $post; $data = array(); $custom = get_post_custom($post->ID); $data['twitter'] = @$custom["twitter"][0]; $data['facebook'] = @$custom["facebook"][0]; $data['dribble'] = @$custom["dribble"][0]; echo TMM::draw_html('staff/credits_meta', $data); }
public static function add_sidebar_category() { $obj = new TMM_Custom_Sidebars(); $sidebar_id = $_REQUEST['sidebar_id']; $cat_id = $_REQUEST['cat_id']; $data = array(); $data['select'] = $obj->get_categories_select('', "sidebars[" . $sidebar_id . "][cat][" . $cat_id . "]", "sidebars_cat_" . $sidebar_id); echo TMM::draw_html('custom_sidebars/add_sidebar_page', $data); exit; }
public static function add_seo_group_category() { $obj = new TMM_SEO_Group(); $group_id = $_REQUEST['group_id']; $cat_id = $_REQUEST['cat_id']; $data = array(); $data['select'] = $obj->get_categories_select('', "seo_group[" . $group_id . "][cat][" . $cat_id . "]", "seo_group_page_" . $group_id); echo TMM::draw_html('seo_groups/add_group_category', $data); exit; }
public static function get_masonry_piece() { $post_key = (int) $_REQUEST['post_key']; $posts = $_REQUEST['posts']; if (!isset($posts[$post_key])) { echo ""; exit; } else { $data = array(); $data['folioposts'] = $posts; $data['foliopost_key'] = $post_key; $data['foliopost'] = $posts[$post_key]; $data['current_col_algoritm'] = $_REQUEST['current_col_algoritm']; echo TMM::draw_html('portfolio/shortcodes/masonry_piece', $data); } exit; }
</label> </th> <td> <p><a href="#" class="add-images-to-page button"><?php _e('Add Images', 'almera'); ?> </a></p> <ul id="post_pod_gallery"> <?php if (!empty($post_type_values[$post_pod_type]) and is_array($post_type_values[$post_pod_type])) { ?> <?php foreach ($post_type_values[$post_pod_type] as $imgurl) { ?> <?php echo TMM::draw_html('page/draw_post_podtype_gallery_image', array('imgurl' => $imgurl)); ?> <?php } ?> <?php } ?> </ul> <div class="clear"></div> </td> </tr> </table> <?php break; default:
public static function add_post_podtype_gallery_image() { $data = array(); $data['imgurl'] = $_REQUEST['imgurl']; echo TMM::draw_html('page/draw_post_podtype_gallery_image', $data); exit; }
</article> <?php } } } else { if (!empty($posts_array)) { wp_enqueue_style('tmm_mediaelement'); wp_enqueue_script('mediaelement'); for ($i = 0; $i < $posts_per_load; $i++) { $post = $posts_array[$i]; $data = array(); $data['post_key'] = $i; $data['title_symbols'] = $title_symbols; echo TMM::draw_html('post/masonry_piece', $data); } } } ?> </div><!--/ .post-area--> <?php if ($blog_type == 'masonry') { tmm_enqueue_script('owlcarousel'); tmm_enqueue_style('owlcarousel'); tmm_enqueue_style('owltheme'); tmm_enqueue_style('owltransitions'); $next_posts = "";
public static function render_gallery_item($data) { echo TMM::draw_html('gallery/render_gallery_item', $data); }
function form($instance) { //Defaults $defaults = array('title' => 'Facebook Like Box', 'pageID' => '273813622709585', 'connection' => 9, 'height' => '340', 'header' => 'true'); $instance = wp_parse_args((array) $instance, $defaults); $args = array(); $args['instance'] = $instance; $args['widget'] = $this; echo TMM::draw_html('widgets/facebook_form', $args); }