Пример #1
0
	</div><!--/ .on-half-->


	<div class="one-half">
		<?php 
$value_type = TMM_Ext_Shortcodes::set_default_value('show_readmore_button', 0);
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'radio', 'title' => __('Read More Button', 'tmm_shortcodes'), 'shortcode_field' => 'show_readmore_button', 'id' => 'show_readmore_button', 'name' => 'show_readmore_button', 'values' => array(0 => array('title' => __('No readmore button', 'tmm_shortcodes'), 'id' => 'show_button_0', 'value' => 0, 'checked' => $value_type == 0 ? 1 : 0), 1 => array('title' => __('Show readmore button', 'tmm_shortcodes'), 'id' => 'show_button_1', 'value' => 1, 'checked' => $value_type == 1 ? 1 : 0)), 'value' => $value_type, 'description' => '', 'hidden_id' => ''));
?>

	</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>

 public static function get_theme_buttons()
 {
     if (class_exists('TMM_OptionsHelper')) {
         $buttons = TMM_OptionsHelper::get_theme_buttons();
     } else {
         $buttons = array('default' => __('Default', TMM_CC_TEXTDOMAIN), 'default-white' => __('Default-white', TMM_CC_TEXTDOMAIN));
     }
     return $buttons;
 }
Пример #3
0
"></a>
					<a href="#" class="delete_contact_form remove-button remove-slider-group" form-list-index="<?php 
        echo $counter;
        ?>
"></a><br />

					<div class="admin-drag-holder clearfix">

						<h4><?php 
        _e('Select submit button', 'almera');
        ?>
</h4>

						<div class="contact_form_submit_button">
							<?php 
        TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][submit_button]", 'type' => 'select', 'values' => TMM_OptionsHelper::get_theme_buttons(), 'value' => @$contact_form['submit_button'], 'css_class' => '', 'description' => __('Button color', 'almera')));
        ?>
						</div>


						<h4><?php 
        _e('Recipient\'s e-mail field:', 'almera');
        ?>
</h4>
						<?php 
        TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][recepient_email]", 'type' => 'text', 'value' => @$contact_form['recepient_email'], 'css_class' => '', 'description' => ''));
        ?>

					</div>

					<?php 
</label>
			<input type="hidden" name="contact_form_index" value="__INIQUE_ID__" />
		</div><!--/ .switch-->

		<a href="#" class="add-button add_contact_field_button add-slider-group" form-id="__INIQUE_ID__"></a>
		<a href="#" class="delete_contact_form remove-button remove-slider-group" form-list-index="__INIQUE_ID__"></a><br />

		<div class="admin-drag-holder clearfix">

			<h4><?php 
_e('Select submit button', 'almera');
?>
</h4>
			<div class="contact_form_submit_button">
				<?php 
TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INIQUE_ID__][submit_button]", 'type' => 'select', 'values' => TMM_OptionsHelper::get_theme_buttons(), 'value' => '', 'css_class' => '', 'description' => __('Select Submit Button\'s color', 'almera')));
?>
				
			</div>

			<h4><?php 
_e('Recipient\'s e-mail field:', 'almera');
?>
</h4>
				<?php 
TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INIQUE_ID__][recepient_email]", 'type' => 'text', 'value' => "", 'css_class' => '', 'description' => ''));
?>
		</div>

		<ul class="drag_contact_form_list">