@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | if ('true' === $this->get_setting('printCss')) { |
90 | 90 | $theme = $this->get_theme(); |
91 | - wp_enqueue_style('metaslider-' . $this->get_setting('type') . '-slider-' . $theme, METASLIDER_ASSETS_URL . "sliders/nivoslider/themes/{$theme}/{$theme}.css", false, METASLIDER_VERSION); |
|
91 | + wp_enqueue_style('metaslider-'.$this->get_setting('type').'-slider-'.$theme, METASLIDER_ASSETS_URL."sliders/nivoslider/themes/{$theme}/{$theme}.css", false, METASLIDER_VERSION); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
@@ -115,10 +115,10 @@ discard block |
||
115 | 115 | { |
116 | 116 | $return_value = "<div class='slider-wrapper theme-{$this->get_theme()}'>"; |
117 | 117 | $return_value .= "\n <div class='ribbon'></div>"; |
118 | - $return_value .= "\n <div id='" . $this->get_identifier() . "' class='nivoSlider'>"; |
|
118 | + $return_value .= "\n <div id='".$this->get_identifier()."' class='nivoSlider'>"; |
|
119 | 119 | |
120 | 120 | foreach ($this->slides as $slide) { |
121 | - $return_value .= "\n " . $slide; |
|
121 | + $return_value .= "\n ".$slide; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | $return_value .= "\n </div>\n </div>"; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected function get_html() |
45 | 45 | { |
46 | - $return_value = "<ul id='" . $this->get_identifier() . "' class='rslides'>"; |
|
46 | + $return_value = "<ul id='".$this->get_identifier()."' class='rslides'>"; |
|
47 | 47 | |
48 | 48 | $first = true; |
49 | 49 | foreach ($this->slides as $slide) { |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | if (!$first) { |
53 | 53 | $style = " style='display: none;'"; |
54 | 54 | } |
55 | - $return_value .= "\n <li{$style}>" . $slide . '</li>'; |
|
56 | - $first = false; |
|
55 | + $return_value .= "\n <li{$style}>".$slide.'</li>'; |
|
56 | + $first = false; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | $return_value .= "\n </ul>"; |
@@ -49,10 +49,10 @@ |
||
49 | 49 | */ |
50 | 50 | protected function get_html() |
51 | 51 | { |
52 | - $return_value = "<div id='" . $this->get_identifier() . "' class='coin-slider'>"; |
|
52 | + $return_value = "<div id='".$this->get_identifier()."' class='coin-slider'>"; |
|
53 | 53 | |
54 | 54 | foreach ($this->slides as $slide) { |
55 | - $return_value .= "\n" . $slide; |
|
55 | + $return_value .= "\n".$slide; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | $return_value .= "\n </div>"; |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | define('WP_USE_THEMES', false); |
4 | 4 | |
5 | -require(dirname(dirname(dirname(__DIR__))) . '/wp-blog-header.php'); |
|
5 | +require(dirname(dirname(dirname(__DIR__))).'/wp-blog-header.php'); |
|
6 | 6 | |
7 | 7 | if (isset($_GET['slider_id']) && (int)$_GET['slider_id'] > 0) { |
8 | 8 | add_filter('show_admin_bar', '__return_false'); |
@@ -20,30 +20,30 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | define('METASLIDER_VERSION', '2.6.3'); |
23 | -define('METASLIDER_BASE_URL', plugins_url('ml-slider') . '/'); //plugin_dir_url(__FILE__) |
|
24 | -define('METASLIDER_ASSETS_URL', METASLIDER_BASE_URL . 'assets/'); |
|
23 | +define('METASLIDER_BASE_URL', plugins_url('ml-slider').'/'); //plugin_dir_url(__FILE__) |
|
24 | +define('METASLIDER_ASSETS_URL', METASLIDER_BASE_URL.'assets/'); |
|
25 | 25 | define('METASLIDER_BASE_DIR_LONG', __DIR__); |
26 | -define('METASLIDER_INC_DIR', METASLIDER_BASE_DIR_LONG . '/inc/'); |
|
26 | +define('METASLIDER_INC_DIR', METASLIDER_BASE_DIR_LONG.'/inc/'); |
|
27 | 27 | |
28 | 28 | // include slider classes |
29 | -require_once(METASLIDER_INC_DIR . 'slider/metaslider.class.php'); |
|
30 | -require_once(METASLIDER_INC_DIR . 'slider/metaslider.coin.class.php'); |
|
31 | -require_once(METASLIDER_INC_DIR . 'slider/metaslider.flex.class.php'); |
|
32 | -require_once(METASLIDER_INC_DIR . 'slider/metaslider.nivo.class.php'); |
|
33 | -require_once(METASLIDER_INC_DIR . 'slider/metaslider.responsive.class.php'); |
|
29 | +require_once(METASLIDER_INC_DIR.'slider/metaslider.class.php'); |
|
30 | +require_once(METASLIDER_INC_DIR.'slider/metaslider.coin.class.php'); |
|
31 | +require_once(METASLIDER_INC_DIR.'slider/metaslider.flex.class.php'); |
|
32 | +require_once(METASLIDER_INC_DIR.'slider/metaslider.nivo.class.php'); |
|
33 | +require_once(METASLIDER_INC_DIR.'slider/metaslider.responsive.class.php'); |
|
34 | 34 | |
35 | 35 | // include slide classes |
36 | -require_once(METASLIDER_INC_DIR . 'slide/metaslide.class.php'); |
|
37 | -require_once(METASLIDER_INC_DIR . 'slide/metaslide.image.class.php'); |
|
36 | +require_once(METASLIDER_INC_DIR.'slide/metaslide.class.php'); |
|
37 | +require_once(METASLIDER_INC_DIR.'slide/metaslide.image.class.php'); |
|
38 | 38 | |
39 | 39 | // include image helper |
40 | -require_once(METASLIDER_INC_DIR . 'metaslider.imagehelper.class.php'); |
|
40 | +require_once(METASLIDER_INC_DIR.'metaslider.imagehelper.class.php'); |
|
41 | 41 | |
42 | 42 | // include widget |
43 | -require_once(METASLIDER_INC_DIR . 'metaslider.widget.class.php'); |
|
43 | +require_once(METASLIDER_INC_DIR.'metaslider.widget.class.php'); |
|
44 | 44 | |
45 | 45 | // include system check |
46 | -require_once(METASLIDER_INC_DIR . 'metaslider.systemcheck.class.php'); |
|
46 | +require_once(METASLIDER_INC_DIR.'metaslider.systemcheck.class.php'); |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Register the plugin. |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | public function upgrade_to_pro($links) |
107 | 107 | { |
108 | 108 | if (function_exists('is_plugin_active') && !is_plugin_active('ml-slider-pro/ml-slider-pro.php')) { |
109 | - $links[] = '<a href="http://www.metaslider.com/upgrade" target="_blank">' . __('Go Pro', 'metaslider') . '</a>'; |
|
109 | + $links[] = '<a href="http://www.metaslider.com/upgrade" target="_blank">'.__('Go Pro', 'metaslider').'</a>'; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | return $links; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function iframe() |
129 | 129 | { |
130 | - wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL . 'metaslider/admin.css', false, METASLIDER_VERSION); |
|
130 | + wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL.'metaslider/admin.css', false, METASLIDER_VERSION); |
|
131 | 131 | wp_enqueue_script('google-font-api', 'http://fonts.googleapis.com/css?family=PT+Sans:400,700'); |
132 | 132 | |
133 | 133 | $link = apply_filters('metaslider_hoplink', 'http://www.metaslider.com/upgrade/'); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function load_plugin_textdomain() |
158 | 158 | { |
159 | - load_plugin_textdomain('metaslider', false, dirname(plugin_basename(__FILE__)) . '/languages/'); |
|
159 | + load_plugin_textdomain('metaslider', false, dirname(plugin_basename(__FILE__)).'/languages/'); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -220,9 +220,9 @@ discard block |
||
220 | 220 | */ |
221 | 221 | public function register_admin_styles() |
222 | 222 | { |
223 | - wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL . 'metaslider/admin.css', false, METASLIDER_VERSION); |
|
224 | - wp_enqueue_style('metaslider-colorbox-styles', METASLIDER_ASSETS_URL . 'colorbox/colorbox.css', false, METASLIDER_VERSION); |
|
225 | - wp_enqueue_style('metaslider-tipsy-styles', METASLIDER_ASSETS_URL . 'tipsy/tipsy.css', false, METASLIDER_VERSION); |
|
223 | + wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL.'metaslider/admin.css', false, METASLIDER_VERSION); |
|
224 | + wp_enqueue_style('metaslider-colorbox-styles', METASLIDER_ASSETS_URL.'colorbox/colorbox.css', false, METASLIDER_VERSION); |
|
225 | + wp_enqueue_style('metaslider-tipsy-styles', METASLIDER_ASSETS_URL.'tipsy/tipsy.css', false, METASLIDER_VERSION); |
|
226 | 226 | |
227 | 227 | do_action('metaslider_register_admin_styles'); |
228 | 228 | } |
@@ -248,10 +248,10 @@ discard block |
||
248 | 248 | // plugin dependencies |
249 | 249 | wp_enqueue_script('jquery-ui-core', array('jquery')); |
250 | 250 | wp_enqueue_script('jquery-ui-sortable', array('jquery', 'jquery-ui-core')); |
251 | - wp_enqueue_script('metaslider-colorbox', METASLIDER_ASSETS_URL . 'colorbox/jquery.colorbox-min.js', array('jquery'), METASLIDER_VERSION); |
|
252 | - wp_enqueue_script('metaslider-tipsy', METASLIDER_ASSETS_URL . 'tipsy/jquery.tipsy.js', array('jquery'), METASLIDER_VERSION); |
|
253 | - wp_enqueue_script('metaslider-admin-script', METASLIDER_ASSETS_URL . 'metaslider/admin.js', array('jquery', 'metaslider-tipsy', 'media-upload'), METASLIDER_VERSION); |
|
254 | - wp_enqueue_script('metaslider-admin-addslide', METASLIDER_ASSETS_URL . 'metaslider/image/image.js', array('metaslider-admin-script'), METASLIDER_VERSION); |
|
251 | + wp_enqueue_script('metaslider-colorbox', METASLIDER_ASSETS_URL.'colorbox/jquery.colorbox-min.js', array('jquery'), METASLIDER_VERSION); |
|
252 | + wp_enqueue_script('metaslider-tipsy', METASLIDER_ASSETS_URL.'tipsy/jquery.tipsy.js', array('jquery'), METASLIDER_VERSION); |
|
253 | + wp_enqueue_script('metaslider-admin-script', METASLIDER_ASSETS_URL.'metaslider/admin.js', array('jquery', 'metaslider-tipsy', 'media-upload'), METASLIDER_VERSION); |
|
254 | + wp_enqueue_script('metaslider-admin-addslide', METASLIDER_ASSETS_URL.'metaslider/image/image.js', array('metaslider-admin-script'), METASLIDER_VERSION); |
|
255 | 255 | |
256 | 256 | // localise the JS |
257 | 257 | wp_localize_script('metaslider-admin-addslide', 'metaslider_image', array( |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | 'confirm' => __('Are you sure?', 'metaslider'), |
267 | 267 | 'ajaxurl' => admin_url('admin-ajax.php'), |
268 | 268 | 'resize_nonce' => wp_create_nonce('metaslider_resize'), |
269 | - 'iframeurl' => METASLIDER_BASE_URL . 'preview.php', |
|
269 | + 'iframeurl' => METASLIDER_BASE_URL.'preview.php', |
|
270 | 270 | 'useWithCaution' => __("Caution: This setting is for advanced developers only. If you're unsure, leave it checked.", 'metaslider') |
271 | 271 | )); |
272 | 272 | |
@@ -283,12 +283,12 @@ discard block |
||
283 | 283 | $page = add_menu_page($title, $title, 'edit_others_posts', 'metaslider', array( |
284 | 284 | $this, |
285 | 285 | 'render_admin_page' |
286 | - ), METASLIDER_ASSETS_URL . 'metaslider/matchalabs.png', 9501); |
|
286 | + ), METASLIDER_ASSETS_URL.'metaslider/matchalabs.png', 9501); |
|
287 | 287 | |
288 | 288 | // ensure our JavaScript is only loaded on the Meta Slider admin page |
289 | - add_action('admin_print_scripts-' . $page, array($this, 'register_admin_scripts')); |
|
290 | - add_action('admin_print_styles-' . $page, array($this, 'register_admin_styles')); |
|
291 | - add_action('load-' . $page, array($this, 'help_tab')); |
|
289 | + add_action('admin_print_scripts-'.$page, array($this, 'register_admin_scripts')); |
|
290 | + add_action('admin_print_styles-'.$page, array($this, 'register_admin_styles')); |
|
291 | + add_action('load-'.$page, array($this, 'help_tab')); |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | /** |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | $link .= '?utm_source=lite&utm_medium=nag&utm_campaign=pro'; |
303 | 303 | |
304 | - $goPro = "<div style='display: none;' id='screen-options-link-wrap'><a target='_blank' class='show-settings' href='{$link}'>Meta Slider v" . METASLIDER_VERSION . ' - ' . __('Upgrade to Pro $19', 'metaslider') . '</a></div>'; |
|
304 | + $goPro = "<div style='display: none;' id='screen-options-link-wrap'><a target='_blank' class='show-settings' href='{$link}'>Meta Slider v".METASLIDER_VERSION.' - '.__('Upgrade to Pro $19', 'metaslider').'</a></div>'; |
|
305 | 305 | |
306 | 306 | echo $goPro; |
307 | 307 | } |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | |
666 | 666 | foreach ($row['options'] as $k => $v) { |
667 | 667 | $checked = checked($k, $row['value'], false); |
668 | - $return .= "<input class='select-slider' id='{$k}' rel='{$k}' type='radio' name='settings[type]' value='{$k}' {$checked} > |
|
668 | + $return .= "<input class='select-slider' id='{$k}' rel='{$k}' type='radio' name='settings[type]' value='{$k}' {$checked} > |
|
669 | 669 | <label for='{$k}'>{$v['label']}</label>"; |
670 | 670 | } |
671 | 671 | |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | $return .= "<tr class='{$row['type']}'><td class='tipsy-tooltip' title=\"{$row['helptext']}\">{$row['label']}</td><td><select class='option {$row['class']} {$id}' name='settings[{$id}]'>"; |
683 | 683 | foreach ($row['options'] as $k => $v) { |
684 | 684 | $selected = selected($k, $row['value'], false); |
685 | - $return .= "<option class='{$v['class']}' value='{$k}' {$selected}>{$v['label']}</option>"; |
|
685 | + $return .= "<option class='{$v['class']}' value='{$k}' {$selected}>{$v['label']}</option>"; |
|
686 | 686 | } |
687 | 687 | $return .= '</select></td></tr>'; |
688 | 688 | } |
@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | |
695 | 695 | foreach ($row['options'] as $k => $v) { |
696 | 696 | $selected = selected($k, $row['value'], false); |
697 | - $themes .= "<option class='{$v['class']}' value='{$k}' {$selected}>{$v['label']}</option>"; |
|
697 | + $themes .= "<option class='{$v['class']}' value='{$k}' {$selected}>{$v['label']}</option>"; |
|
698 | 698 | } |
699 | 699 | |
700 | 700 | $return .= apply_filters('metaslider_get_available_themes', $themes, $this->slider->get_setting('theme')); |
@@ -788,7 +788,7 @@ discard block |
||
788 | 788 | <form accept-charset="UTF-8" action="?page=metaslider&id=<?php echo $this->slider->id ?>" method="post"> |
789 | 789 | <?php |
790 | 790 | if ($this->slider) { |
791 | - wp_nonce_field('metaslider_save_' . $this->slider->id); |
|
791 | + wp_nonce_field('metaslider_save_'.$this->slider->id); |
|
792 | 792 | } |
793 | 793 | |
794 | 794 | $title = ''; |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | if ($tabs = $this->all_meta_sliders()) { |
798 | 798 | if ($max_tabs && count($tabs) > $max_tabs) { |
799 | 799 | if (isset($_GET['add']) && 'true' === $_GET['add']) { |
800 | - echo "<div id='message' class='updated'><p>" . __("New slideshow created. Click 'Add Slide' to get started!", 'metaslider') . '</p></div>'; |
|
800 | + echo "<div id='message' class='updated'><p>".__("New slideshow created. Click 'Add Slide' to get started!", 'metaslider').'</p></div>'; |
|
801 | 801 | } |
802 | 802 | echo "<div style='margin-top: 20px;'><label for='select-slider'>Select Slider: </label>"; |
803 | 803 | echo "<select name='select-slider' onchange='if (this.value) window.location.href=this.value'>"; |
@@ -813,15 +813,15 @@ discard block |
||
813 | 813 | |
814 | 814 | echo "<option value='?page=metaslider&id={$tab['id']}'{$selected}>{$tab['title']}</option>"; |
815 | 815 | } |
816 | - echo '</select> ' . __('or', 'metaslider') . ' '; |
|
817 | - echo "<a href='{$add_url}'>" . __('Add New Slideshow', 'metaslider') . '</a></div>'; |
|
816 | + echo '</select> '.__('or', 'metaslider').' '; |
|
817 | + echo "<a href='{$add_url}'>".__('Add New Slideshow', 'metaslider').'</a></div>'; |
|
818 | 818 | } else { |
819 | 819 | echo "<h3 class='nav-tab-wrapper'>"; |
820 | 820 | foreach ($tabs as $tab) { |
821 | 821 | if ($tab['active']) { |
822 | - echo "<div class='nav-tab nav-tab-active'><input type='text' name='title' value='" . $tab['title'] . "' onfocus='this.style.width = ((this.value.length + 1) * 9) + \"px\"' ></div>"; |
|
822 | + echo "<div class='nav-tab nav-tab-active'><input type='text' name='title' value='".$tab['title']."' onfocus='this.style.width = ((this.value.length + 1) * 9) + \"px\"' ></div>"; |
|
823 | 823 | } else { |
824 | - echo "<a href='?page=metaslider&id={$tab['id']}' class='nav-tab'>" . $tab['title'] . '</a>'; |
|
824 | + echo "<a href='?page=metaslider&id={$tab['id']}' class='nav-tab'>".$tab['title'].'</a>'; |
|
825 | 825 | } |
826 | 826 | } |
827 | 827 | echo "<a href='{$add_url}' id='create_new_tab' class='nav-tab'>+</a>"; |
@@ -830,7 +830,7 @@ discard block |
||
830 | 830 | } else { |
831 | 831 | echo "<h3 class='nav-tab-wrapper'>"; |
832 | 832 | echo "<a href='{$add_url}' id='create_new_tab' class='nav-tab'>+</a>"; |
833 | - echo "<div class='bubble'>" . __('Create your first slideshow') . '</div>'; |
|
833 | + echo "<div class='bubble'>".__('Create your first slideshow').'</div>'; |
|
834 | 834 | echo '</h3>'; |
835 | 835 | } ?> |
836 | 836 | |
@@ -1122,7 +1122,7 @@ discard block |
||
1122 | 1122 | 'max' => 20, |
1123 | 1123 | 'step' => 1, |
1124 | 1124 | 'value' => $this->slider->get_setting('spw'), |
1125 | - 'label' => __('Number of squares', 'metaslider') . ' (' . __('Width', 'metaslider') . ')', |
|
1125 | + 'label' => __('Number of squares', 'metaslider').' ('.__('Width', 'metaslider').')', |
|
1126 | 1126 | 'class' => 'option nivo', |
1127 | 1127 | 'helptext' => __('Number of squares', 'metaslider'), |
1128 | 1128 | 'after' => '' |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | 'max' => 20, |
1136 | 1136 | 'step' => 1, |
1137 | 1137 | 'value' => $this->slider->get_setting('sph'), |
1138 | - 'label' => __('Number of squares', 'metaslider') . ' (' . __('Height', 'metaslider') . ')', |
|
1138 | + 'label' => __('Number of squares', 'metaslider').' ('.__('Height', 'metaslider').')', |
|
1139 | 1139 | 'class' => 'option nivo', |
1140 | 1140 | 'helptext' => __('Number of squares', 'metaslider'), |
1141 | 1141 | 'after' => '' |
@@ -1377,9 +1377,9 @@ discard block |
||
1377 | 1377 | <div class="wrap"> |
1378 | 1378 | <?php |
1379 | 1379 | if (count($sliders)) { |
1380 | - echo "<h3 style='margin-bottom: 20px;'>" . __('Insert Meta Slider', 'metaslider') . '</h3>'; |
|
1380 | + echo "<h3 style='margin-bottom: 20px;'>".__('Insert Meta Slider', 'metaslider').'</h3>'; |
|
1381 | 1381 | echo "<select id='metaslider-select'>"; |
1382 | - echo '<option disabled=disabled>' . __('Choose slideshow', 'metaslider') . '</option>'; |
|
1382 | + echo '<option disabled=disabled>'.__('Choose slideshow', 'metaslider').'</option>'; |
|
1383 | 1383 | foreach ($sliders as $slider) { |
1384 | 1384 | echo "<option value='{$slider['id']}'>{$slider['title']}</option>"; |
1385 | 1385 | } |
@@ -46,8 +46,7 @@ discard block |
||
46 | 46 | '#suffix' => '</p>' |
47 | 47 | ); |
48 | 48 | $element['gallery_available']['#markup'] = $gallery_available ? |
49 | - t('This field configuration <strong>supports multiple items</strong> and can display itself as a gallery of items!') : |
|
50 | - t('This field configuration <strong>does not support multiple items</strong> and cannot display itself as a gallery of items.'); |
|
49 | + t('This field configuration <strong>supports multiple items</strong> and can display itself as a gallery of items!') : t('This field configuration <strong>does not support multiple items</strong> and cannot display itself as a gallery of items.'); |
|
51 | 50 | $element['gallery_style'] = array( |
52 | 51 | '#type' => 'select', |
53 | 52 | '#title' => t('Gallery Type'), |
@@ -122,7 +121,7 @@ discard block |
||
122 | 121 | $thumbnail_path = FALSE; |
123 | 122 | // MediaYouTubeStreamWrapper implements getLocalThumbnailPath() to |
124 | 123 | // find the thumbnail path. |
125 | - if (method_exists($wrapper,'getLocalThumbnailPath')) { |
|
124 | + if (method_exists($wrapper, 'getLocalThumbnailPath')) { |
|
126 | 125 | $thumbnail_path = $wrapper->getLocalThumbnailPath(); |
127 | 126 | } |
128 | 127 | // Try the standard method to get a thumbnail. |
@@ -215,7 +214,7 @@ discard block |
||
215 | 214 | $popup_gallery['#attributes']['class'][] = $gallery_base_class; |
216 | 215 | // Add each item to our container. |
217 | 216 | foreach ($items as $delta => $item) { |
218 | - $popup_gallery['item-' . $delta] = array( |
|
217 | + $popup_gallery['item-'.$delta] = array( |
|
219 | 218 | '#theme' => 'link', |
220 | 219 | '#text' => '', |
221 | 220 | '#path' => $item['target_uri'], |
@@ -224,7 +223,7 @@ discard block |
||
224 | 223 | 'html' => TRUE |
225 | 224 | ) |
226 | 225 | ); |
227 | - $popup_gallery['item-' . $delta]['#options']['attributes']['class'][] = 'mfp-item'; |
|
226 | + $popup_gallery['item-'.$delta]['#options']['attributes']['class'][] = 'mfp-item'; |
|
228 | 227 | // This item has a thumbnail image if: |
229 | 228 | // - the Gallery Type is "all items" (because all items have thumbs), or |
230 | 229 | // - the Gallery Type is "no gallery", or |
@@ -242,10 +241,10 @@ discard block |
||
242 | 241 | 'class' => array('mfp-thumbnail') |
243 | 242 | ) |
244 | 243 | ); |
245 | - $popup_gallery['item-' . $delta]['#text'] = render($image); |
|
244 | + $popup_gallery['item-'.$delta]['#text'] = render($image); |
|
246 | 245 | } |
247 | 246 | else { |
248 | - $popup_gallery['item-' . $delta]['#options']['attributes']['style'][] = 'display: none;'; |
|
247 | + $popup_gallery['item-'.$delta]['#options']['attributes']['style'][] = 'display: none;'; |
|
249 | 248 | } |
250 | 249 | } |
251 | 250 | if (count($items)) { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $html = Loader::helper('html'); |
42 | 42 | $bv = new BlockView(); |
43 | 43 | $bv->setBlockObject($this->getBlockObject()); |
44 | - $this->addFooterItem($html->javascript($bv->getBlockURL() . '/magnific/magnific-combined-1.0.0.min.js', array('minify' => true))); |
|
44 | + $this->addFooterItem($html->javascript($bv->getBlockURL().'/magnific/magnific-combined-1.0.0.min.js', array('minify' => true))); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | // JavaScript form validation strings |
@@ -12,7 +12,7 @@ |
||
12 | 12 | // get file description (in the file manager attributes) of the picture object |
13 | 13 | $fileDescription = $po->getDescription(); |
14 | 14 | ?> |
15 | -<div id="<?php echo $magnific_type . '-' . $bID ?>" class="<?php echo $magnific_type . '-gallery' . ' ' . $cssFrameworkClass; ?>"> |
|
15 | +<div id="<?php echo $magnific_type.'-'.$bID ?>" class="<?php echo $magnific_type.'-gallery'.' '.$cssFrameworkClass; ?>"> |
|
16 | 16 | <a href="<?php echo $fileName; ?>" data-source="<?php echo $fileName; ?>" title="<?php echo $title; ?>"> |
17 | 17 | <img class="<?php echo $cssImageClass; ?>" src="<?php echo $thumbnail->src; ?>" width="<?php echo $thumbnail->width; ?>" height="<?php echo $thumbnail->height; ?>" alt="<?php echo $fileDescription; ?>"> |
18 | 18 | </a> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php defined('C5_EXECUTE') || die('Access denied.'); |
2 | 2 | $v = View::GetInstance(); ?> |
3 | -<div id="<?php echo $magnific_type . '-' . $bID ?>" class="<?php echo $magnific_type . '-gallery' . ' ' . $cssFrameworkClass; ?>"> |
|
3 | +<div id="<?php echo $magnific_type.'-'.$bID ?>" class="<?php echo $magnific_type.'-gallery'.' '.$cssFrameworkClass; ?>"> |
|
4 | 4 | <?php |
5 | 5 | $defaultDelay = 700; |
6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | <a class="popup-<?php echo $videoOptions; ?>" href="<?php echo $vidMapURL; ?>"><?php echo $vidMapLinkText; ?> |
13 | 13 | <?php if ('youtubeThumb' === $videoOptions) : ?> |
14 | - <img class="<?php echo $cssImageClass; ?>" src="http://img.youtube.com/vi/<?php echo $str . '/' . $youtubeThumbnailOption; ?>.jpg"></a> |
|
14 | + <img class="<?php echo $cssImageClass; ?>" src="http://img.youtube.com/vi/<?php echo $str.'/'.$youtubeThumbnailOption; ?>.jpg"></a> |
|
15 | 15 | <?php endif; ?> |
16 | 16 | <?php if ('vimeoThumb' === $videoOptions) : ?> |
17 | 17 | <img class="<?php echo $cssImageClass; ?>" src="http://placehold.it/350x150" data-vimeo-id="<?php echo $vimStr; ?>" class="<?php echo $vimeoThumbnailOption; ?>"></a> |