Beispiel #1
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() {
	<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() {
Beispiel #3
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 
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() {
		
$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');
?>
Beispiel #6
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');
?>
";
?>

	</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');
?>
Beispiel #8
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() {
//***
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Rows count', 'tmm_shortcodes'), 'shortcode_field' => 'rows', 'id' => 'table_rows', 'options' => $numbers, 'default_value' => TMM_Ext_Shortcodes::set_default_value('rows', 2), 'description' => ''));
?>
	</div><!--/ .one-half-->


	<div class="one-half">
		<?php 
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Columns count', 'tmm_shortcodes'), 'shortcode_field' => 'cols', 'id' => 'table_cols', 'options' => $numbers, 'default_value' => TMM_Ext_Shortcodes::set_default_value('cols', 3), 'description' => ''));
?>
	</div><!--/ .one-half-->


	<div class="one-half">
		<?php 
$value_type = TMM_Ext_Shortcodes::set_default_value('show_row_number', 1);
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'radio', 'title' => __('Show Row Number', 'tmm_shortcodes'), 'shortcode_field' => 'show_row_number', 'id' => 'show_row_number', 'name' => 'show_row_number', 'values' => array(1 => array('title' => __('Yes', 'tmm_shortcodes'), 'id' => 'show_row_number_1', 'value' => 1, 'checked' => $value_type == 1 ? 1 : 0), 0 => array('title' => __('No', 'tmm_shortcodes'), 'id' => 'show_row_number_0', 'value' => 0, 'checked' => $value_type == 0 ? 1 : 0)), 'value' => $value_type, 'description' => '', 'hidden_id' => 'show_row_number'));
?>

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

</div>

<?php 
$head_types_array = array('string' => __('string', 'tmm_shortcodes'), 'number' => __('number', 'tmm_shortcodes'));
if (isset($_REQUEST["shortcode_mode_edit"])) {
    $cols = (int) $_REQUEST["shortcode_mode_edit"]['cols'];
    $heads_types = explode('^', $_REQUEST["shortcode_mode_edit"]['heads_types']);
    $heads_values = explode('^', $_REQUEST["shortcode_mode_edit"]['heads_values']);
    $rows_data = explode('__GOOGLE_TABLE_ROW__', $_REQUEST["shortcode_mode_edit"]['content']);
} else {
Beispiel #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');
?>
";
	
	<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);
<?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);
<?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('');
    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');
?>
<?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);
		});
		<?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');
Beispiel #17
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');
Beispiel #18
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();