<?php TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Chart Width', 'tmm_shortcodes'), 'shortcode_field' => 'width', 'id' => 'width', 'default_value' => TMM_Ext_Shortcodes::set_default_value('width', 500), 'description' => '')); ?> </div><!--/ .one-half--> <div class="one-half"> <?php TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Chart Height', 'tmm_shortcodes'), 'shortcode_field' => 'height', 'id' => 'height', 'default_value' => TMM_Ext_Shortcodes::set_default_value('height', 500), 'description' => '')); ?> </div><!--/ .one-half--> <div class="one-half"> <?php TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Font Family', 'tmm_shortcodes'), 'shortcode_field' => 'font_family', 'id' => 'font_family', 'options' => TMM_HelperFonts::get_content_fonts(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('font_family', ''), 'description' => '')); ?> </div><!--/ .one-half--> <div class="one-half"> <?php $font_size_array = array(); for ($i = 8; $i <= 72; $i++) { $font_size_array[$i] = $i; } ?> <?php TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Font Size', 'tmm_shortcodes'), 'shortcode_field' => 'font_size', 'id' => 'font_size', 'options' => $font_size_array, 'default_value' => TMM_Ext_Shortcodes::set_default_value('font_size', ''), 'description' => '')); ?>
<?php if (!defined('ABSPATH')) { die('No direct access allowed'); } $unique_id = uniqid(); $google_fonts = TMM_HelperFonts::get_google_fonts(); $content_fonts = TMM_HelperFonts::get_content_fonts(); $fonts = array_merge($content_fonts, $google_fonts); $fonts = array_merge(array("" => ""), $fonts); ?> <div class="slide-item" id="slide_item_<?php echo $unique_id; ?> "> <div class="slide-dragger"></div> <div class="slide-thumb"> <img src="<?php echo TMM_Helper::resize_image($group['imgurl'], '155*55'); ?> " alt="slide" /> <input type="hidden" name="slides_group[<?php echo $unique_id; ?> ][imgurl]" value="<?php echo $group['imgurl']; ?> " /> <a href="#" class="button js_edit_slide" data-slide-id="<?php