public static function register() { self::$easing_effects = array('swing' => __('Swing', 'almera'), 'easeInQuad' => __('easeInQuad', 'almera'), 'easeOutQuad' => __('easeOutQuad', 'almera'), 'easeInOutQuad' => __('easeInOutQuad', 'almera'), 'easeInCubic' => __('easeInCubic', 'almera'), 'easeOutCubic' => __('easeOutCubic', 'almera'), 'easeInOutCubic' => __('easeInOutCubic', 'almera'), 'easeInQuart' => __('easeInQuart', 'almera'), 'easeOutQuart' => __('easeOutQuart', 'almera'), 'easeInOutQuart' => __('easeInOutQuart', 'almera'), 'easeInQuint' => __('easeInQuint', 'almera'), 'easeOutQuint' => __('easeOutQuint', 'almera'), 'easeInOutQuint' => __('easeInOutQuint', 'almera'), 'easeInExpo' => __('easeInExpo', 'almera'), 'easeOutExpo' => __('easeOutExpo', 'almera'), 'easeInOutExpo' => __('easeInOutExpo', 'almera'), 'easeInSine' => __('easeInSine', 'almera'), 'easeOutSine' => __('easeOutSine', 'almera'), 'easeInOutSine' => __('easeInOutSine', 'almera'), 'easeInCirc' => __('easeInCirc', 'almera'), 'easeOutCirc' => __('easeOutCirc', 'almera'), 'easeInOutCirc' => __('easeInOutCirc', 'almera'), 'easeInElastic' => __('easeInElastic', 'almera'), 'easeOutElastic' => __('easeOutElastic', 'almera'), 'easeInOutElastic' => __('easeInOutElastic', 'almera'), 'easeInBack' => __('easeInBack', 'almera'), 'easeOutBack' => __('easeOutBack', 'almera'), 'easeInOutBack' => __('easeInOutBack', 'almera'), 'easeInBounce' => __('easeInBounce', 'almera'), 'easeOutBounce' => __('easeOutBounce', 'almera'), 'easeInOutBounce' => __('easeInOutBounce', 'almera')); //***** $handler = opendir(self::get_application_path() . "/items/"); while ($file = readdir($handler)) { if ($file != "." and $file != "..") { self::$sliders_folders[] = $file; include_once self::get_application_path() . '/items/' . $file . '/index.php'; } } //INIT SLIDERS WITHOUT E-V-A-L TMM_Ext_Slider_Flex::init(); //***** $arguments = array('labels' => array('name' => __('Slider Groups', 'almera'), 'singular_name' => __('Group', 'almera'), 'add_new' => __('Add New', 'almera'), 'add_new_item' => __('Add New Slider Group', 'almera'), 'edit_item' => __('Edit Slider Group', 'almera'), 'new_item' => __('New Slider Group', 'almera'), 'view_item' => __('View Slider Group', 'almera'), 'search_items' => __('Search Slider Groups', 'almera'), 'not_found' => __('No Slide Groups found', 'almera'), 'not_found_in_trash' => __('No Slide Groups found in Trash', 'almera'), 'parent_item_colon' => ''), 'public' => false, 'archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => false, 'show_ui' => true, 'query_var' => true, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => true, 'menu_position' => null, 'supports' => array('title', 'thumbnail'), 'rewrite' => array('slug' => self::$post_type_name), 'show_in_admin_bar' => false, 'menu_icon' => '', 'taxonomies' => array()); register_post_type(self::$post_type_name, $arguments); flush_rewrite_rules(false); add_filter("manage_" . self::$post_type_name . "_posts_columns", array(__CLASS__, "show_edit_columns")); add_action("manage_" . self::$post_type_name . "_posts_custom_column", array(__CLASS__, "show_edit_columns_content")); return false; }
echo TMM_Helper::get_page_backround($_REQUEST['PAGE_ID']); ?> "<?php } ?> > <div id="content"> <!-- - - - - - - - - - - - - - Container - - - - - - - - - - - - - - - - --> <div class="container ajax"> <?php $slider_html = ""; if ($_REQUEST['PAGE_ID'] > 0 and is_object($post)) { $slider_html = TMM_Ext_Sliders::draw_page_slider($_REQUEST['PAGE_ID']); } ?> <?php if (empty($slider_html)) { ?> <?php $page_title_status = 'show'; if ($_REQUEST['PAGE_ID'] > 0 and is_object($post)) { $page_title_status = get_post_meta($_REQUEST['PAGE_ID'], 'page_title_status', TRUE); if (!$page_title_status) { $page_title_status = 'show'; } } ?>
<?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';
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'); } }
<?php } ?> </li> <?php } ?> </ul> <script type="text/javascript"> //slider_type jQuery(document).ready(function() { <?php $slider_types = TMM_Ext_Sliders::get_slider_types(); if (!empty($slider_types)) { ?> <?php foreach ($slider_types as $slider_key => $slider_name) { ?> jQuery("#tab_slider_<?php echo $slider_key; ?> ").html(jQuery("#<?php echo $slider_key; ?> ").html()); jQuery("#<?php echo $slider_key; ?>
<?php if (!defined('ABSPATH')) { die('No direct access allowed'); } ?> <input type="hidden" value="1" name="tmm_meta_saving" /> <p><a href="#" class="js_add_slide button button-primary"><?php _e('Add slides', 'almera'); ?> </a></p> <div id="tmm_slide_group"> <?php if (!empty($slides_group)) { ?> <?php foreach ($slides_group as $group) { ?> <?php echo TMM::draw_free_page(TMM_Ext_Sliders::get_application_path() . '/views/meta_slide_item.php', array('group' => $group)); ?> <?php } ?> <?php } ?> </div> <div class="clear"></div>
<?php $alias = "2045*950"; switch ($type) { case 'layerslider': echo '<div id="layerslider-container">'; echo do_shortcode('[layerslider id="' . $layerslider_group . '"]'); echo '</div>'; break; default: echo TMM_Ext_Sliders::draw_shortcode_slider($type, $slider_group, $alias); break; } ?> <?php if ($show_keys) { ?> <ul class="keydown"> <li class="up"></li> <li class="left"></li> <li class="down"></li> <li class="right"></li> </ul><!--/ .keydown--> <?php }
TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Page slider type', 'tmm_shortcodes'), 'shortcode_field' => 'type', 'id' => 'shortcode_page_slider_type', 'options' => TMM_Ext_Sliders::get_slider_types(), 'default_value' => TMM_Ext_Shortcodes::set_default_value('type', ''), 'description' => '')); ?> </div> <div class="one-half"> <div class="native_sliders_groups2" <?php if ($_REQUEST["shortcode_mode_edit"]['type'] == 'layerslider') { ?> style="display: none;"<?php } ?> > <?php $slides = TMM_Ext_Sliders::get_list_of_groups(); ?> <?php if (!empty($slides)) { ?> <?php TMM_Ext_Shortcodes::draw_shortcode_option(array('type' => 'select', 'title' => __('Slider groups', 'tmm_shortcodes'), 'shortcode_field' => 'slider_group', 'id' => 'slider_group', 'options' => $slides, 'default_value' => TMM_Ext_Shortcodes::set_default_value('slider_group', ''), 'description' => '', 'css_classes' => 'slider_group')); ?> <?php } else { ?> <?php _e("No one slider exists", 'tmm_shortcodes'); ?>