예제 #1
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
TMM_OptionsHelper::enqueue_script('epic_slider');
TMM_OptionsHelper::enqueue_script('mobile_touchswipe');
//***
$folio_ids_array = array();
if (!isset($folio_post_id)) {
    $folio_post_id = 0;
}
if ($folio_post_id > 0) {
    $folio_ids_array = array($folio_post_id);
} else {
    $folio_ids_array = TMM::get_option('folio_template3_items');
}
//***
$args = array('post_type' => TMM_Portfolio::$slug, 'post__in' => $folio_ids_array, 'posts_per_page' => -1);
//***
$images = array();
$counter = 0;
if (!empty($folio_ids_array)) {
    foreach ($folio_ids_array as $folio_id) {
        $tmp_images = get_post_meta($folio_id, 'tmm_portfolio', true);
        if (!empty($tmp_images)) {
            foreach ($tmp_images as $image) {
                $images[$counter]['imgurl'] = $image['imgurl'];
                $images[$counter]['title'] = $image['title'];
                if (!isset($image['imgurl2'])) {
                    $image['imgurl2'] = "";
예제 #2
0
    die('No direct access allowed');
}
wp_enqueue_style('tmm_theme_admin_gallery_css', TMM_THEME_URI . '/admin/css/gallery.css');
wp_enqueue_script('tmm_theme_admin_gallery_js', TMM_THEME_URI . '/admin/js/gallery.js');
?>
<div class="gallery-meta-container">
	<input type="hidden" value="1" name="tmm_meta_saving" />
	<div class="gallery_layout" style="display: none;">
		<label for=""><?php 
_e('Gallery Layout:', 'almera');
?>
</label>
		<div class="sel">
			<?php 
$layouts = array(__('3 columns', 'almera'), __('4 columns', 'almera'));
TMM_OptionsHelper::draw_theme_option(array('name' => "layout", 'type' => 'select', 'default_value' => 3, 'values' => $layouts, 'value' => $layout, 'description' => "", 'css_class' => '', 'hide_item_html' => 1));
?>
		</div>
	</div>
	<div class="clear"></div>
	<p><a href="#" class="js_inpost_gallery_add_slide button button-primary"><?php 
_e('Add images', 'almera');
?>
</a></p>
	<script type="text/javascript">
		jQuery(function() {
			jQuery("#gallery_img_categoriesdiv").remove();
		});
	</script>

	<ul id="gallery_item_list">
예제 #3
0
		</li>
		<li>
			<?php 
TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'add_buttons[addthis_button_google_plusone]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Google', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_button_google_plusone'));
?>

		</li>
		<li>
			<?php 
TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'add_buttons[addthis_counter]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Share', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter'));
?>

		</li>
	</ul>

</div>

<h3><?php 
_e('Show AddThis on:', 'tmm_addthis');
?>
</h3>

<div class="show_buttons_on">
	<?php 
TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'show_buttons[single_car]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Single Car Page', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter'));
?>
	<?php 
TMM_OptionsHelper::draw_theme_option(array('name_type' => 'array', 'name' => 'show_buttons[single_blog]', 'type' => 'checkbox', 'default_value' => 1, 'title' => __('Single Blog Page', 'tmm_addthis'), 'description' => '', 'css_class' => 'addthis_counter'));
?>
</div>
예제 #4
0
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');
    }
}
예제 #5
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
TMM_OptionsHelper::enqueue_script('mousewheel');
TMM_OptionsHelper::enqueue_script('resizegrid');
$slideup = TMM::get_option("folio_enable_slide_up_bar") ? '1' : '0';
//***
$folio_ids_array = array();
if (!isset($folio_post_id)) {
    $folio_post_id = 0;
}
if ($folio_post_id > 0) {
    $folio_ids_array = array($folio_post_id);
} else {
    $folio_ids_array = TMM::get_option('folio_template2_items');
}
//***
$args = array('post_type' => TMM_Portfolio::$slug, 'post__in' => $folio_ids_array, 'posts_per_page' => -1);
//***
$images = array();
$counter = 0;
if (!empty($folio_ids_array)) {
    foreach ($folio_ids_array as $folio_id) {
        $tmp_images = get_post_meta($folio_id, 'tmm_portfolio', true);
        if (!empty($tmp_images)) {
            foreach ($tmp_images as $image) {
                $images[$counter]['imgurl'] = $image['imgurl'];
                $images[$counter]['title'] = $image['title'];
                if (!isset($image['imgurl2'])) {
예제 #6
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');
?>
				<?php 
        switch ($options_array['type']) {
            case 'text':
                TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'slider', 'description' => $options_array['description'], 'default_value' => $options_array['default'], 'min' => 0, 'max' => 2560, 'css_class' => ''));
                break;
            case 'select':
                TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'select', 'description' => $options_array['description'], 'values' => $options_array['values_list'], 'default_value' => $options_array['default'], 'css_class' => ''));
                break;
            case 'image_link':
                TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'upload', 'default_value' => $options_array['default'], 'description' => $options_array['description'], 'id' => '', 'css_class' => 'slide_option_textinput'));
                break;
            case 'color':
                TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'color', 'default_value' => $options_array['default'], 'description' => $options_array['description'], 'css_class' => ''));
                break;
            case 'checkbox':
                TMM_OptionsHelper::draw_theme_option(array('name' => "slider_" . $slider_key . "_" . $option, 'type' => 'checkbox', 'default_value' => $options_array['default'], 'title' => $options_array['title'], 'description' => $options_array['description'], 'css_class' => ''));
                break;
            default:
                _e('Such option type does not exist!', 'almera');
                break;
        }
        ?>

				<?php 
        $counter--;
        ?>
				<?php 
        if ($counter > 1) {
            ?>
					<hr class="admin-divider">
				<?php 
예제 #8
0
										<h4><?php 
                _e('Options (comma separated)', 'almera');
                ?>
</h4>
										<?php 
                TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][inputs][" . $key_input . "][options]", 'type' => 'text', 'value' => $input['options'], 'css_class' => 'options', 'description' => ""));
                ?>
									</div>

									<h4><?php 
                _e('Additional Options', 'almera');
                ?>
</h4>
									<label class="with-check">
										<?php 
                TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[" . $form_index . "][inputs][" . $key_input . "][is_required]", 'type' => 'checkbox', 'default_value' => 0, 'title' => __('Required Field', 'almera'), 'description' => '', 'css_class' => 'form_required', 'value' => $input['is_required'], 'id' => ''));
                ?>
									</label>

								</li><!--/ .admin-drag-holder-->

							<?php 
            }
            ?>
						<?php 
        }
        ?>
					</ul>

				</div><!--/ .form-holder-->
			</div>
예제 #9
0
                        case $allows_array[1]:
                            echo do_shortcode('[tmm_video type="vimeo" width="' . $video_width . '" height="' . $video_height . '"]' . $source_url . '[/tmm_video]');
                            break;
                        default:
                            break;
                    }
                }
                ?>

						<?php 
                break;
            case 'quote':
                echo do_shortcode('[blockquote]' . $post_type_values[$post_pod_type] . '[/blockquote]');
                break;
            case 'gallery':
                TMM_OptionsHelper::enqueue_script('cycle');
                $gall = array();
                if (isset($post_type_values[$post_pod_type])) {
                    $gall = $post_type_values[$post_pod_type];
                }
                ?>

						<?php 
                if (!empty($gall)) {
                    ?>

							<div class="image-post-slider">
								<ul>
									<?php 
                    if (!empty($gall)) {
                        ?>
예제 #10
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
?>

<?php 
get_header();
TMM_OptionsHelper::enqueue_script('cycle');
TMM_OptionsHelper::enqueue_script('isotope');
global $post;
$current_single_gall_id = $post->ID;
$tmm_gallery = get_post_meta($post->ID, 'thememakers_gallery', true);
?>
<input type="hidden" id="refer" value="<?php 
echo $_SERVER['HTTP_REFERER'];
?>
">
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

                <div class="sixteen columns single-gall" >

			<?php 
        if (!empty($tmm_gallery)) {
            ?>
				<div class="cycle-slider">
 public static function get_theme_buttons_sizes()
 {
     if (class_exists('TMM_OptionsHelper')) {
         $button_sizes = TMM_OptionsHelper::get_theme_buttons_sizes();
     } else {
         $button_sizes = array('small' => __('Small', TMM_CC_TEXTDOMAIN), 'middle' => __('Middle', TMM_CC_TEXTDOMAIN), 'large' => __('Large', TMM_CC_TEXTDOMAIN));
     }
     return $button_sizes;
 }
		<?php 
}
?>

	</div>

</div>



<?php 
TMM_OptionsHelper::draw_theme_option(array('title' => __('Import Attachments', TMM_MIGRATE_TEXTDOMAIN), 'type' => 'checkbox', 'name' => 'tmm_migrate_upload_attachments', 'default_value' => 1, 'value' => 1, 'css_class' => '', 'description' => __('Download and import file attachments (images, videos, audios)', TMM_MIGRATE_TEXTDOMAIN)));
?>

<?php 
TMM_OptionsHelper::draw_theme_option(array('title' => __('Backup DB', TMM_MIGRATE_TEXTDOMAIN), 'type' => 'checkbox', 'name' => 'tmm_migrate_backup', 'default_value' => 1, 'value' => 1, 'css_class' => '', 'description' => __('Backup your database content before importing. Placed in ', TMM_MIGRATE_TEXTDOMAIN) . "'/uploads/tmm_backup/'"));
?>

<ul id="tmm_db_migrate_process_imp"></ul>

<hr>
<br><br>

<h2 class="section-title"><?php 
_e('Export Data', TMM_MIGRATE_TEXTDOMAIN);
?>
</h2>

<div class="option">

	<div class="controls alternative">
?>
" name="footerbg_color" placeholder="#ffffff" /></p>
		</li>

	</ul>

	<h4><?php 
_e('Opacity', 'almera');
?>
</h4>
	<?php 
if (!isset($footerbg_opacity)) {
    $footerbg_opacity = 100;
}
//***
TMM_OptionsHelper::draw_theme_option(array('name' => 'footerbg_opacity', 'type' => 'slider', 'description' => '', 'default_value' => $footerbg_opacity, 'min' => 0, 'max' => 100));
?>

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

	<p><a style="float: right" href="#" class="button footerbg_button_reset" title=""><?php 
_e('Reset', 'almera');
?>
</a></p>

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

<hr />

<h4><?php 
		<h4><?php 
_e('Field Label', 'almera');
?>
</h4>
		<?php 
TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][label]", 'type' => 'text', 'value' => "", 'css_class' => 'label', 'description' => ""));
?>

		<div class="select_options" style="display: none;">
			<h4><?php 
_e('Options (comma separated)', 'almera');
?>
</h4>
			<?php 
TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][options]", 'type' => 'text', 'value' => '', 'css_class' => 'options', 'description' => ""));
?>
		</div>

		<h4><?php 
_e('Additional Options', 'almera');
?>
</h4>
		<label class="with-check">
			<?php 
TMM_OptionsHelper::draw_theme_option(array('name' => "contact_form[__INDEX__][inputs][__INPUTINDEX__][is_required]", 'type' => 'checkbox', 'default_value' => 0, 'title' => __('Required Field', 'almera'), 'description' => '', 'css_class' => 'form_required', 'value' => 0, 'id' => ''));
?>
		</label>

	</li><!--/ .admin-drag-holder-->

</div>