예제 #1
0
<?php

if (!defined('ABSPATH')) {
    die('No direct access allowed');
}
wp_enqueue_script('tmm_flexslider_js', TMM_Ext_Sliders::get_application_uri() . '/items/flex/js/jquery.flexslider-min.js');
?>


<script type="text/javascript">
	
	jQuery(function() {
		
		(function() {

			var $flex = jQuery('.flexslider');

			if ($flex.length) {

				jQuery(window).load(function() {
					$flex.flexslider({
						animation: "<?php 
echo $options['animation'];
?>
",
						slideshow: <?php 
echo $options['slideshow'] ? 'true' : 'false';
?>
,
						controlNav: <?php 
echo $options['controlnav'] ? 'true' : 'false';
예제 #2
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');
    }
}