Esempio n. 1
0
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Youtube or Vimeo link', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => __('Examples:https://www.youtube.com/watch?v=_EBYf3lYSEg or http://vimeo.com/22439234', 'tmm_shortcodes')));
?>

	</div><!--/ .one-half-->

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Width', 'tmm_shortcodes'), 'shortcode_field' => 'width', 'id' => 'width', 'default_value' => TMM_Ext_Shortcodes::set_default_value('width', ''), 'description' => ''));
?>

	</div>

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Height', 'tmm_shortcodes'), 'shortcode_field' => 'height', 'id' => 'height', 'default_value' => TMM_Ext_Shortcodes::set_default_value('height', ''), 'description' => ''));
?>

	</div><!--/ .one-half-->

</div>

<!-- --------------------------  PROCESSOR  --------------------------- -->
<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
	jQuery(function() {
		
Esempio n. 2
0
	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Order', 'tmm_shortcodes'), 'shortcode_field' => 'order', 'id' => 'order', 'options' => array('DESC' => __('DESC', 'tmm_shortcodes'), 'ASC' => __('ASC', 'tmm_shortcodes')), 'default_value' => TMM_Ext_Shortcodes::set_default_value('order', 'DESC'), 'description' => ''));
?>
	</div><!--/ .ona-half-->

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Posts Count', 'tmm_shortcodes'), 'shortcode_field' => 'posts_per_page', 'id' => 'posts_per_page', 'default_value' => TMM_Ext_Shortcodes::set_default_value('posts_per_page', 5), 'description' => ''));
?>

	</div><!--/ .ona-half-->

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Posts', 'tmm_shortcodes'), 'shortcode_field' => 'posts', 'id' => 'posts', 'default_value' => TMM_Ext_Shortcodes::set_default_value('posts', ''), 'description' => __('Example: 56,73,119. It has the most hight priority!', 'tmm_shortcodes')));
?>

	</div><!--/ .ona-half-->
	

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->
<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
Esempio n. 3
0
?>

	</div><!--/ .on-half-->

	<div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Button Color', 'tmm_shortcodes'), 'shortcode_field' => 'button_color', 'id' => 'button_color', 'options' => TMM_OptionsHelper::get_theme_buttons(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('button_color', ''), 'description' => ''));
?>

	</div><!--/ .on-half-->

	<div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Button Size', 'tmm_shortcodes'), 'shortcode_field' => 'button_size', 'id' => 'button_size', 'options' => TMM_OptionsHelper::get_theme_buttons_sizes(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('button_size', ''), 'description' => ''));
?>

	</div><!--/ .on-half-->

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->


<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
Esempio n. 4
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

    <div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Enter Symbol', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => ''));
?>

    </div><!--/ .one-half-->

</div><!--/ .tmm_shortcode_template->
		  
<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";

	jQuery(function() {
		tmm_ext_shortcodes.changer(shortcode_name);
		jQuery("#tmm_shortcode_template .js_shortcode_template_changer").on('keyup change', function() {
			tmm_ext_shortcodes.changer(shortcode_name);
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Choose Contact Form', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'options' => TMM_Contact_Form::get_forms_names(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => ''));
?>

	</div><!--/ .one-half-->

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";

	jQuery(function() {
		tmm_ext_shortcodes.changer(shortcode_name);
		jQuery("#tmm_shortcode_template .js_shortcode_template_changer").on('keyup change', function() {
			tmm_ext_shortcodes.changer(shortcode_name);
		});
Esempio n. 6
0
$portfolio_categories = get_terms('folio_category');
foreach ($portfolio_categories as $category) {
    $categories_list[$category->term_taxonomy_id] = $category->name;
}
?>

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Categories', 'tmm_shortcodes'), 'shortcode_field' => 'cat_id', 'id' => '', 'options' => $categories_list, 'default_value' => TMM_Ext_Shortcodes::set_default_value('cat_id', ' '), 'description' => ''));
?>

	</div><!--/ .one-half-->
	
	<div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Posts per page', 'tmm_shortcodes'), 'shortcode_field' => 'posts_per_page', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('posts_per_page', 10), 'description' => __('Posts per page', 'tmm_shortcodes')));
?>

	</div><!--/ .one-half-->

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->


<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
Esempio n. 7
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
$inique_id = uniqid();
wp_enqueue_script('tmm_google_maps_api', 'http://maps.google.com/maps/api/js?sensor=false');
wp_enqueue_script('tmm_theme_markerwithlabel_js', TMM_Ext_Shortcodes::get_application_uri() . '/js/shortcodes/markerwithlabel.js', array(), false, true);
wp_enqueue_script("tmm_shortcode_google_map_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/shortcodes/google_map.js', array(), false, true);
if (!isset($mode)) {
    $mode = 'map';
}
$controls = "";
//not need
$js_controls = '{';
if (!empty($controls)) {
    $controls = explode(',', $controls);
    if (!empty($controls)) {
        foreach ($controls as $key => $value) {
            if ($key > 0) {
                $js_controls .= ',';
            }
            $js_controls .= $value . ': true';
        }
    }
}
$js_controls .= '}';
?>

<?php 
if (isset($location_mode)) {
	<div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Table Count', 'tmm_shortcodes'), 'shortcode_field' => 'count', 'id' => 'count', 'options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4), 'default_value' => TMM_Ext_Shortcodes::set_default_value('count', 1), 'description' => ''));
?>
	</div>

	<div class="one-half">
		
		<?php 
$row_count_array = array();
for ($i = 1; $i <= 10; $i++) {
    $row_count_array[$i] = $i;
}
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Row Count', 'tmm_shortcodes'), 'shortcode_field' => 'row_count', 'id' => 'row_count', 'options' => $row_count_array, 'default_value' => TMM_Ext_Shortcodes::set_default_value('row_count', 4), 'description' => ''));
?>

	</div><!--/ .one-half-->

	<ul id="price_tables_list">

		<?php 
$shortcodes_texts_array = array(0 => '[price_table title="' . __('Starter Package', 'tmm_shortcodes') . '" price="' . __('$19.95', 'tmm_shortcodes') . '" period="' . __('per month', 'tmm_shortcodes') . '" button_text="' . __('Get Started', 'tmm_shortcodes') . '" button_link="#" featured="0"]^^^[/price_table]');
if (isset($_REQUEST["shortcode_mode_edit"])) {
    $shortcodes_texts_array = array();
    $edit_data_array = array();
    $content_edit_data = $_REQUEST["shortcode_mode_edit"]['content'];
    $content_edit_data = str_replace('__PRICE_TABLE__', '[price_table', $content_edit_data);
    $content_edit_data = str_replace('__PRICE_TABLE_CLOSE__', ']', $content_edit_data);
    $content_edit_data = str_replace('__PRICE_TABLE_END__', '[/price_table]', $content_edit_data);
Esempio n. 9
0
	</div><!--/ .one-half-->

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Chart Data', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => __('Example', 'tmm_shortcodes') . 'Pie => sleep:2,eat:2,work:2<br />
			Bar, Column => 2004:1000:400,2005:980:570,2006:800:300<br />
			Line, Area => 2004:1000:400,2005:1170:460,2006:660:1120,2007:1030:540<br />
			Combo => 2004/05:165:938:522:998:450:614.6,2005/06:135:1120:599:1268:288:682,2006/07:157:1167:587:807:397:623,2007/08:139:1110:615:968:215:609.4,2008/09:136:691:629:1026:366:569.6<br />
			Geochart => Germany:200,France:300,United States:400<br />'));
?>

	</div><!--/ .one-half-->

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Background Color', 'tmm_shortcodes'), 'shortcode_field' => 'bgcolor', 'id' => 'bgcolor', 'default_value' => TMM_Ext_Shortcodes::set_default_value('bgcolor', ''), 'description' => ''));
?>

	</div><!--/ .one-half-->

</div>

<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";

	jQuery(function() {
Esempio n. 10
0
        ?>
				<?php 
    }
    ?>

			</div>
		<?php 
}
?>
		
	</div>
	
	<div class="one-half">
		
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'checkbox', 'title' => __('Show the direction keys', 'tmm_shortcodes'), 'shortcode_field' => 'show_keys', 'id' => 'show_keys', 'is_checked' => TMM_Ext_Shortcodes::set_default_value('show_keys', 0), 'description' => __('Show/Hide Direction Keys', 'tmm_shortcodes')));
?>
		
	</div>

</div><!--/ .tmm_shortcode_template->
		  
<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
	
Esempio n. 11
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<audio controls="control" preload="none" src="<?php 
echo $content;
?>
"></audio>
<?php 
wp_enqueue_script("tmm_theme_mediaelementplayer_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/shortcodes/mediaelement/mediaelement-and-player.min.js');
wp_enqueue_style("tmm_theme_mediaelementplayer_css", TMM_Ext_Shortcodes::get_application_uri() . '/js/shortcodes/mediaelement/jquery.mediaelementplayer.css');
Esempio n. 12
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

    <div class="fullwidth">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'textarea', 'title' => __('Enter Text', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => 'Sometimes you want to emphasize a certain part of your content for the reader. This shortcode are a perfect way to do this.'));
?>

    </div>

</div><!--/ .tmm_shortcode_template->
		  
<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";

	jQuery(function() {
		tmm_ext_shortcodes.changer(shortcode_name);
		jQuery("#tmm_shortcode_template .js_shortcode_template_changer").on('keyup change', function() {
			tmm_ext_shortcodes.changer(shortcode_name);
Esempio n. 13
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">
	
	<div class="one-half">

		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Type', 'tmm_shortcodes'), 'shortcode_field' => 'type', 'id' => 'type', 'options' => array('' => __('Accordion', 'tmm_shortcodes'), 'toggle' => __('Toggle', 'tmm_shortcodes')), 'default_value' => TMM_Ext_Shortcodes::set_default_value('type', ''), 'description' => ''));
?>
		
	</div>
	
	<br />
	<br />

	<div class="fullwidth">

		<a class="button button-secondary js_add_accordion_item" href="#"><?php 
_e('Add item', 'tmm_shortcodes');
?>
</a><br />

		<ul id="list_items" class="list-items">

			<?php 
$titles_edit_data = array('');
$content_edit_data = array('');
Esempio n. 14
0
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

    <div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'upload', 'title' => __('Link to Audio', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => ''));
?>

    </div><!--/ .one-half-->


	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Audio format', 'tmm_shortcodes'), 'shortcode_field' => 'format', 'id' => 'format', 'options' => array('other' => __('Other', 'tmm_shortcodes'), 'wav' => __('Wav', 'tmm_shortcodes'), 'ogg' => __('Ogg', 'tmm_shortcodes')), 'default_value' => TMM_Ext_Shortcodes::set_default_value('format', 'other'), 'description' => ''));
?>

	</div><!--/ .one-half-->

    <div class="clear"></div>

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
function enqueue_script_ajax()
{
    wp_enqueue_script('tmm_theme_social-likes_js', TMM_THEME_URI . '/js/social-likes.js');
    wp_enqueue_style('tmm_theme_social-likes_css', TMM_THEME_URI . '/css/social-likes.css');
    if (TMM::get_option("enable_ajax")) {
        TMM_OptionsHelper::enqueue_script('stapel');
        TMM_OptionsHelper::enqueue_script('isotope');
        TMM_OptionsHelper::enqueue_style('epic_slider');
        TMM_OptionsHelper::enqueue_style('epic_slider_responsive');
        TMM_OptionsHelper::enqueue_script('epic_slider');
        TMM_OptionsHelper::enqueue_script('mobile_touchswipe');
        wp_enqueue_script('tmm_theme_map_api_js', 'http://maps.google.com/maps/api/js?sensor=false');
        wp_enqueue_script('tmm_theme_markerwithlabel_js', TMM_Ext_Shortcodes::get_application_uri() . '/js/autoshortcodes/markerwithlabel.js');
        wp_enqueue_script("tmm_shortcode_google_map_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/autoshortcodes/google_map.js');
        TMM_OptionsHelper::enqueue_script('masonry');
        TMM_OptionsHelper::enqueue_script('resizegrid');
        TMM_OptionsHelper::enqueue_script('sudoslider');
        wp_enqueue_script("tmm_shortcode_contact_form_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/autoshortcodes/contact_form.js');
        wp_enqueue_style("tmm_flexslider_css", TMM_Ext_Sliders::get_application_uri() . '/items/flex/css/styles.css');
        wp_enqueue_script('tmm_flexslider_js', TMM_Ext_Sliders::get_application_uri() . '/items/flex/js/jquery.flexslider-min.js');
        wp_enqueue_script("tmm_theme_mediaelementplayer_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/autoshortcodes/mediaelement/mediaelement-and-player.min.js');
        wp_enqueue_style("tmm_theme_mediaelementplayer_css", TMM_Ext_Shortcodes::get_application_uri() . '/js/autoshortcodes/mediaelement/jquery.mediaelementplayer.css');
        wp_enqueue_script('tmm_widget_recent_projects', TMM_THEME_URI . '/js/widgets/recent_projects.js');
        TMM_OptionsHelper::enqueue_script('mobile_touchswipe');
        wp_enqueue_script('tmm_widget_jflickrfeed', TMM_THEME_URI . '/js/widgets/jquery.jflickrfeed.min.js');
        wp_enqueue_script('tmm_widget_twitterFetcher', TMM_THEME_URI . '/js/widgets/twitterFetcher.js');
        wp_enqueue_script('tmm_widget_testimonials', TMM_THEME_URI . '/js/widgets/testimonials.js');
        wp_enqueue_script('tmm_theme_js_ajax', TMM_THEME_URI . '/js/theme_ajax.js', array('jquery'));
        wp_enqueue_script('tmm_theme_social-likes_js', TMM_THEME_URI . '/js/social-likes.js');
        wp_enqueue_style('tmm_theme_social-likes_css', TMM_THEME_URI . '/css/social-likes.css');
        add_action('comment_post', 'ajaxify_comments', 20, 2);
        wp_enqueue_script('comment-reply');
    }
}
Esempio n. 16
0
</h4>
<ul id="google_table_headers">


	<li>
		<ul class="google_table_cols">

			<?php 
foreach ($heads_values as $key => $head_value) {
    ?>
				<li style="width: <?php 
    echo (int) 100 / $cols;
    ?>
%;">
					<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => '', 'shortcode_field' => '', 'id' => '', 'options' => $head_types_array, 'default_value' => $heads_types[$key], 'description' => '', 'css_classes' => 'google_table_type'));
    ?>
<br />
					<input type="text" class="google_table_col" value="<?php 
    echo $head_value;
    ?>
" />
				</li>
			<?php 
}
?>

		</ul>
	</li>

Esempio n. 17
0
			
			<?php 
foreach ($social_types as $key => $type) {
    ?>
			
				<li class="list_item">
					<table class="list-table">
						<tr>
							<td width="30%">
								<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => '', 'shortcode_field' => 'social_types', 'id' => '', 'options' => $social_types_array, 'default_value' => $type, 'description' => '', 'css_classes' => 'list_item_style save_as_one'));
    ?>
							</td>							
							<td width="70%">
								<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => '', 'shortcode_field' => 'links', 'id' => '', 'css_classes' => 'list_item_style save_as_one', 'default_value' => $links[$key], 'description' => '', 'placeholder' => __('http://', 'tmm_shortcodes')));
    ?>
							</td>
							<td>
								<a class="button button-secondary js_delete_list_item" href="#"><?php 
    _e('Remove', 'tmm_shortcodes');
    ?>
</a>
							</td>
							<td><div class="row-mover"></div></td>
						</tr>
					</table>
				</li>
				
			<?php 
}
Esempio n. 18
0
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Animation', 'tmm_shortcodes'), 'shortcode_field' => 'animation', 'id' => '', 'options' => TMM_Ext_Shortcodes::css_animation_array(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('animation', ''), 'description' => 'Waypoints is a jQuery plugin that makes it easy to execute a function whenever you scroll to an element.'));
?>
	 
		

	</div><!--/ .ona-half-->

	<div class="one-half">
		
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => __('Content Char Count', 'tmm_shortcodes'), 'shortcode_field' => 'char_count', 'id' => 'char_count', 'default_value' => TMM_Ext_Shortcodes::set_default_value('char_count', 140), 'description' => ''));
?>
		
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'checkbox', 'title' => __('Show "View All Posts" button', 'tmm_shortcodes'), 'shortcode_field' => 'show_all_posts_button', 'id' => 'show_all_posts_button', 'is_checked' => TMM_Ext_Shortcodes::set_default_value('show_all_posts_button', 1), 'description' => __('Option enables "View All Posts" button', 'tmm_shortcodes')));
?>
	

	</div><!--/ .on-half-->

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->


<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
	<div class="one-half">
		<?php 
$content = array();
for ($i = 1; $i <= 20; $i++) {
    $content[$i] = $i;
}
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Projects Per Page', 'tmm_shortcodes'), 'shortcode_field' => 'count', 'id' => '', 'options' => $content, 'default_value' => TMM_Ext_Shortcodes::set_default_value('count', 4), 'description' => ''));
?>

	</div><!--/ .one-half-->

	<div class="one-half">
		<?php 
$template = array('1/3' => '1/3', '1/4' => '1/4');
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Template', 'tmm_shortcodes'), 'shortcode_field' => 'template', 'id' => 'template', 'options' => $template, 'default_value' => TMM_Ext_Shortcodes::set_default_value('template', '1/4'), 'description' => ''));
?>

	</div>	

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->
<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
	
	jQuery(function() {
Esempio n. 20
0
						<tr>
							<td width="20%">
								<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => '', 'shortcode_field' => 'percentage', 'id' => '', 'css_classes' => 'list_item_style save_as_one js_shortcode_template_changer', 'default_value' => $percentages[$key], 'description' => '', 'placeholder' => __('Percentage %', 'tmm_shortcodes')));
    ?>
							</td>
							<td width="50%">

								<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'text', 'title' => '', 'shortcode_field' => 'title', 'id' => '', 'css_classes' => 'list_item_style save_as_one js_shortcode_template_changer', 'default_value' => $titles[$key], 'description' => '', 'placeholder' => __('Title', 'tmm_shortcodes')));
    ?>
	
							</td>
							<td width="50%">
								<?php 
    TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'color', 'title' => '', 'shortcode_field' => 'color', 'id' => 'color_' . uniqid(), 'css_classes' => 'list_item_style save_as_one js_shortcode_template_changer', 'default_value' => $color, 'description' => '', 'display' => 1));
    ?>
							</td>

							<td>
								<a class="button button-secondary js_delete_list_item" href="#"><?php 
    _e('Remove', 'tmm_shortcodes');
    ?>
</a>
							</td>
							<td><div class="row-mover"></div></td>
						</tr>
					</table>
				</li>
			<?php 
}
Esempio n. 21
0
    public static function admin_head()
    {
        wp_enqueue_script('tmm_ext_shortcodes', self::get_application_uri() . 'js/admin.js', array('jquery', 'jquery-ui-core', 'jquery-ui-draggable'), false, true);
        wp_enqueue_style('tmm_ext_shortcodes', self::get_application_uri() . 'css/admin.css');
        wp_enqueue_style('tmm_ext_fontello', self::get_application_uri() . 'css/fontello.css');
        ?>
		<script type="text/javascript">
			var tmm_ext_shortcodes_app_link = "<?php 
        echo TMM_Ext_Shortcodes::get_application_uri();
        ?>
";
			var tmm_ext_shortcodes_items = [];
			var tmm_lang_loading = "<?php 
        _e('Loading ...', 'tmm_shortcodes');
        ?>
";
		<?php 
        $show_shortcode = substr_count($_SERVER['PHP_SELF'], '/wp-admin/post.php');
        if (!$show_shortcode) {
            $show_shortcode = substr_count($_SERVER['PHP_SELF'], '/wp-admin/post-new.php');
        }
        if ($show_shortcode) {
            wp_enqueue_script('tmm_ext_shortcodes_popup_js', self::get_application_uri() . 'js/tmm_popup/tmm_advanced_wp_popup.js', array('jquery', 'jquery-ui-core', 'jquery-ui-draggable'));
            wp_enqueue_style('tmm_ext_shortcodes_popup_css', self::get_application_uri() . 'js/tmm_popup/styles.css');
            ?>

			<?php 
            foreach (TMM_Ext_Shortcodes::$shortcodes as $shortcode_key => $shortcode_name) {
                ?>
				
				<?php 
                $continue_array = array('price_table', 'google_table_row');
                if (in_array($shortcode_key, $continue_array)) {
                    continue;
                }
                ?>
					tmm_ext_shortcodes_items.push({'key': '<?php 
                echo $shortcode_key;
                ?>
', 'name': '<?php 
                echo $shortcode_name;
                ?>
', 'icon': '<?php 
                echo TMM_Ext_Shortcodes::get_shortcode_icon($shortcode_key);
                ?>
'});
			
			<?php 
            }
            ?>
				
		<?php 
        }
        ?>
			
			var tmm_ext_shortcodes_items_keys = /\[(<?php 
        print join('|', array_keys(TMM_Ext_Shortcodes::$shortcodes));
        ?>
)\s?([^\]]*)(?:\s*\/)?\](([^\[\]]*)\[\/\1\])?/g;
			var tmm_ext_shortcodes_lang1 = "<?php 
        _e('Shortcode updated', 'tmm_shortcodes');
        ?>
";
			var tmm_ext_shortcodes_lang2 = "<?php 
        _e('Insert Shortcode', 'tmm_shortcodes');
        ?>
";
			var tmm_ext_shortcodes_lang3 = "<?php 
        _e('Edit shortcode', 'tmm_shortcodes');
        ?>
";

		</script>
		<?php 
    }
Esempio n. 22
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
//contact form on front by shortcode
$form_name = $content;
$contact_form = TMM_Contact_Form::get_form($form_name);
wp_enqueue_script("tmm_shortcode_contact_form_js", TMM_Ext_Shortcodes::get_application_uri() . '/js/shortcodes/contact_form.js');
$unique_id = uniqid();
//output fields
if (!empty($contact_form['inputs'])) {
    ?>

	<form method="post" class="contact-form">

		<input type="hidden" name="contact_form_name" value="<?php 
    echo $form_name;
    ?>
" />

		<?php 
    foreach ($contact_form['inputs'] as $input) {
        ?>

			<?php 
        $name = strtolower(trim(urlencode($input['label'])));
        $name = str_replace(" ", "_", $name);
        $pattern = "/[^a-zA-Z0-9_]+/i";
        $name = preg_replace($pattern, "", $name);
        //***
Esempio n. 23
0
if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

    <div class="fullwidth">


		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'textarea', 'title' => __('Enter Text', 'tmm_shortcodes'), 'shortcode_field' => 'content', 'id' => '', 'default_value' => TMM_Ext_Shortcodes::set_default_value('content', ''), 'description' => ''));
?>


		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Select Type', 'tmm_shortcodes'), 'shortcode_field' => 'type', 'id' => 'type', 'options' => array('error' => __('Error', 'tmm_shortcodes'), 'success' => __('Success', 'tmm_shortcodes'), 'info' => __('Info', 'tmm_shortcodes'), 'notice' => __('Notice', 'tmm_shortcodes')), 'default_value' => TMM_Ext_Shortcodes::set_default_value('type', 'notice'), 'description' => ''));
?>


    </div><!--/ .fullwidth-->

</div><!--/ .tmm_shortcode_template->
		  
<!-- --------------------------  PROCESSOR  --------------------------- -->

<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
	jQuery(function() {
Esempio n. 24
0
add_action('admin_menu', 'tmm_theme_add_admin');
add_action('admin_enqueue_scripts', 'tmm_theme_admin_head');
add_action('admin_bar_menu', 'tmm_theme_admin_bar_menu', 89);
//*****
global $pagenow;
if (is_admin() and 'themes.php' == $pagenow and isset($_GET['activated'])) {
    //***** set default options
    $theme_was_activated = TMM::get_option('theme_was_activated');
    if (!$theme_was_activated) {
        //*****
        $menu_id = wp_update_nav_menu_object(0, array('menu-name' => 'Primary Menu'));
        $theme_mods = get_option('theme_mods_' . 'almera');
        $theme_mods['nav_menu_locations']['primary'] = $menu_id;
        update_option('theme_mods_' . 'almera', $theme_mods);
        if (class_exists('TMM_Ext_Shortcodes')) {
            $shortcodes = TMM_Ext_Shortcodes::get_shortcodes_array();
            if (!empty($shortcodes)) {
                foreach ($shortcodes as $shortcode) {
                    TMM::update_option('show_shortcode_' . $shortcode, 1);
                }
            }
        }
        TMM::update_option('theme_was_activated', 1);
        //*****
        TMM::update_option('saved_google_fonts', 'a:1:{i:0;s:83:"Open Sans:300,300italic,400regular,italic,600,600italic,700,700italic,800,800italic";}');
        TMM::update_option('sidebar_position', 'sbr');
        TMM::update_option('copyright_text', 'Copyright &copy; 2013. <a target="_blank" href="http://webtemplatemasters.com">ThemeMakers</a>. All rights reserved');
    }
}
//********************
add_action('admin_notices', 'tmm_print_admin_notice');
Esempio n. 25
0
	</div>
	
	<div class="one-half">
		
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'checkbox', 'title' => __('Use Website General Color', 'tmm_shortcodes'), 'shortcode_field' => 'use_general_color', 'id' => 'use_general_color', 'is_checked' => TMM_Ext_Shortcodes::set_default_value('use_general_color', 0), 'description' => ''));
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'checkbox', 'title' => __('Use Border', 'tmm_shortcodes'), 'shortcode_field' => 'use_border', 'id' => 'use_border', 'is_checked' => TMM_Ext_Shortcodes::set_default_value('use_border', 0), 'description' => 'Add short border bottom'));
?>
		
		
	</div>
	
	<div class="one-half">
		
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Animation', 'tmm_shortcodes'), 'shortcode_field' => 'animation', 'id' => '', 'options' => TMM_Ext_Shortcodes::css_animation_array(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('animation', ''), 'description' => 'Waypoints is a jQuery plugin that makes it easy to execute a function whenever you scroll to an element.'));
?>
	 
		
	</div>

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->


<script type="text/javascript">
	
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
Esempio n. 26
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>
<div id="tmm_shortcode_template" class="tmm_shortcode_template clearfix">

	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Select Type', 'tmm_shortcodes'), 'shortcode_field' => 'divider', 'id' => '', 'options' => array('divider' => __('Divider', 'tmm_shortcodes'), 'space' => __('Empty Space', 'tmm_shortcodes')), 'default_value' => TMM_Ext_Shortcodes::set_default_value('divider', 'divider'), 'description' => ''));
?>

	</div><!--/ .one-half-->

</div>


<!-- --------------------------  PROCESSOR  --------------------------- -->
<script type="text/javascript">
	var shortcode_name = "<?php 
echo basename(__FILE__, '.php');
?>
";
	
	jQuery(function() {
		tmm_ext_shortcodes.changer(shortcode_name);
		jQuery("#tmm_shortcode_template .js_shortcode_template_changer").on('keyup change', function() {
			tmm_ext_shortcodes.changer(shortcode_name);
		});
		selectwrap();