/
home
/
assocoweys
/
avexp
/
modules
/
mod_latestnewsenhancedextended
/
Upload File
HOME
<?php /** * @copyright Copyright (C) 2011 Simplify Your Web, Inc. All rights reserved. * @license GNU General Public License version 3 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; jimport('syw.headerfilescache', JPATH_LIBRARIES); jimport('syw.utilities', JPATH_LIBRARIES); require_once (dirname(__FILE__).'/helpers/helper.php'); class LNEP_CSSFileCache extends SYWHeaderFilesCache { public function __construct($extension, $params = null) { parent::__construct($extension, $params); $this->extension = $extension; $variables = array(); $suffix = '#lnee_'.$params->get('suffix'); $variables[] = 'suffix'; $bootstrap_version = $params->get('bootstrap_version', 2); $variables[] = 'bootstrap_version'; $overall = $params->get('overall_style', 'original'); $variables[] = 'overall'; $colortheme = $params->get('color_theme', ''); $variables[] = 'colortheme'; $horizontal = ($params->get('align', 'v') === 'h') ? true : false; $variables[] = 'horizontal'; $inline = $params->get('link_to', 'item') == 'item' && $params->get('link_target', 'default') == 'inline'; $variables[] = 'inline'; $items_align = $params->get('items_align', 'c'); $variables[] = 'items_align'; $items_valign_row = $params->get('items_valign_h', 'fs'); $variables[] = 'items_valign_row'; $items_valign_col = $params->get('items_valign_v', 'c'); $variables[] = 'items_valign_col'; // items width and height $items_height = trim($params->get('items_h', '')); $variables[] = 'items_height'; $items_width = trim($params->get('items_w', '')); $variables[] = 'items_width'; $item_width = trim($params->get('item_w', 100)); $item_width_unit = $params->get('item_w_u', 'percent'); if ($item_width_unit == 'percent') { $item_width_unit = '%'; } $variables[] = 'item_width_unit'; if ($item_width_unit == '%') { if ($item_width <= 0 || $item_width > 100) { $item_width = 100; } } else { if ($item_width < 0) { $item_width = 0; } } $variables[] = 'item_width'; $item_min_width = trim($params->get('min_item_w', '')); $variables[] = 'item_min_width'; $item_max_width = trim($params->get('max_item_w', '')); $variables[] = 'item_max_width'; $space_between_items = $params->get('item_spacebetween', '0'); $variables[] = 'space_between_items'; $margin_in_perc = 0; if ($item_width_unit == '%') { $news_per_row = (int)(100 / $item_width); $left_for_margins = 100 - ($news_per_row * $item_width); $margin_in_perc = $left_for_margins / ($news_per_row * 2); } $downgraded_item_width = 100; // % $downgraded_item_width_unit = '%'; $use_leading = false; if ($params->get('use_leading', 0)) { $use_leading = true; $percentage_of_item_width = $params->get('perc_item_size', 100); // % if ($percentage_of_item_width <= 0 || $percentage_of_item_width > 100) { $percentage_of_item_width = 100; } if ($item_width_unit == '%') { $downgraded_news_per_row = (int)(100 / $percentage_of_item_width); $downgraded_item_width = $item_width * $percentage_of_item_width / 100; if ($downgraded_news_per_row > 1) { $left_for_margins = 100 - (($news_per_row - 1) * $item_width + $downgraded_news_per_row * $downgraded_item_width); $margin_in_perc = $left_for_margins / (($news_per_row + $downgraded_news_per_row - 1) * 2); } } else { // calculate width in pixels $downgraded_item_width_unit = 'px'; $downgraded_item_width = (int)($item_width * $percentage_of_item_width / 100); } } $variables[] = 'margin_in_perc'; $variables[] = 'downgraded_item_width'; $variables[] = 'downgraded_item_width_unit'; $variables[] = 'use_leading'; // body parameters $maintain_height = $params->get('maintain_height', 0); $variables[] = 'maintain_height'; $bgcolor_body = trim($params->get('bgcolor', '')) != '' ? trim($params->get('bgcolor')) : 'transparent'; $variables[] = 'bgcolor_body'; $border_width_body = $params->get('item_border_w', 0); $variables[] = 'border_width_body'; $border_color_body = trim($params->get('item_border_c', '')); $variables[] = 'border_color_body'; $border_radius_body = $params->get('item_border_r', 0); $variables[] = 'border_radius_body'; $shadow_body = $params->get('item_shadow', 'none'); $variables[] = 'shadow_body'; $padding_body = $params->get('d_to_b', 0); $variables[] = 'padding_body'; $padding_head = trim($params->get('space_head', '')); $variables[] = 'padding_head'; $padding_info = trim($params->get('space_body', '')); $variables[] = 'padding_info'; $content_align = $params->get('content_align', ''); $variables[] = 'content_align'; $font_color_body = trim($params->get('item_color', '')); if ($font_color_body == 'transparent') { $font_color_body = ''; } $variables[] = 'font_color_body'; $link_color_body = trim($params->get('item_l_color', '')); if ($link_color_body == 'transparent') { $link_color_body = ''; } $variables[] = 'link_color_body'; $link_color_hover_body = trim($params->get('item_l_color_h', '')); if ($link_color_hover_body == 'transparent') { $link_color_hover_body = ''; } $variables[] = 'link_color_hover_body'; $force_title_one_line = $params->get('force_one_line', 0); $variables[] = 'force_title_one_line'; $font_ref_body = $params->get('f_r_body', 14); $variables[] = 'font_ref_body'; $wrap = $params->get('wrap', 0); $variables[] = 'wrap'; // extra details $font_size_details = $params->get('details_fontsize', 80); $variables[] = 'font_size_details'; $details_line_spacing = $params->get('details_line_spacing', array('', 'px')); $variables[] = 'details_line_spacing'; $details_font_color = trim($params->get('details_color', '')); if ($details_font_color == 'transparent') { $details_font_color = ''; } $variables[] = 'details_font_color'; $details_font_color_overhead = trim($params->get('details_color_overhead', '')); if ($details_font_color_overhead == 'transparent') { $details_font_color_overhead = ''; } $variables[] = 'details_font_color_overhead'; $iconfont_color = trim($params->get('iconscolor', '')); if ($iconfont_color == 'transparent') { $iconfont_color = ''; } $variables[] = 'iconfont_color'; $iconfont_color_overhead = trim($params->get('iconscolor_overhead', '')); if ($iconfont_color_overhead == 'transparent') { $iconfont_color_overhead = ''; } $variables[] = 'iconfont_color_overhead'; $over_head_contrast = $params->get('up_contrast', 0); $variables[] = 'over_head_contrast'; // rating $star_color = trim($params->get('star_color', '#000000')); $variables[] = 'star_color'; // share $share_color_type = $params->get('share_color', 'none'); $share_color = false; $share_bgcolor = false; if ($share_color_type == 'bg') { $share_bgcolor = true; } else if ($share_color_type == 'icon') { $share_color = true; } $variables[] = 'share_color'; $variables[] = 'share_bgcolor'; $share_size = $params->get('share_size', array('', 'px')); $variables[] = 'share_size'; $share_radius = $params->get('share_r', 0); if ($share_radius < 0) { $share_radius = 0; } if ($share_radius > 20) { $share_radius = 20; } $variables[] = 'share_radius'; // social networks $social_networks = $params->get('social_networks', array()); $variables[] = 'social_networks'; // head $head_align = $params->get('head_align', ''); if (in_array($params->get('text_align', 'r'), array('l', 'r', 'lr', 'rl'))) { $head_align = ''; } $variables[] = 'head_align'; $head_width = $params->get('head_w', 64); $head_height = $params->get('head_h', 64); $head_type = $params->get('head_type', 'none'); // image $image = false; $bgcolor = trim($params->get('imagebgcolor', '')) != '' ? trim($params->get('imagebgcolor')) : 'transparent'; $variables[] = 'bgcolor'; $pic_shadow_width = $params->get('sh_w_pic', 0); $variables[] = 'pic_shadow_width'; $pic_shadow_type = $params->get('sh_type', 's'); $variables[] = 'pic_shadow_type'; $pic_border_width = $params->get('border_w', 0); $variables[] = 'pic_border_width'; $pic_border_radius = $params->get('border_r_pic', 0); $variables[] = 'pic_border_radius'; $pic_border_color = trim($params->get('border_c_pic', '#fff')); $variables[] = 'pic_border_color'; $image_types = array('image', 'imageintro', 'imagefull', 'author', 'authork2user', 'allimagesasc', 'allimagesdesc'); if (in_array($head_type, $image_types) || substr($head_type, 0, strlen('jfield:media')) === 'jfield:media' || substr($head_type, 0, strlen('jfieldusers:media')) === 'jfieldusers:media' || substr($head_type, 0, strlen('k2field:image')) === 'k2field:image') { // make sure the variables are available in case no head is selected but the theme is image-only $head_width = $head_width - $pic_border_width * 2; $head_height = $head_height - $pic_border_width * 2; $image = true; } $variables[] = 'image'; $filter = $params->get('filter', 'none'); if (!$params->get('create_thumb', 1)) { $filter = $params->get('filter_original', 'none'); } if (strpos($filter, '_css') !== false) { $filter = str_replace('_css', '', $filter); $variables[] = 'filter'; } // calendar $calendar = ''; if ($head_type == 'calendar' || substr($head_type, 0, strlen('jfield:calendar')) === 'jfield:calendar' || substr($head_type, 0, strlen('k2field:date')) === 'k2field:date') { $color = trim($params->get('c1', '#3D3D3D')); $variables[] = 'color'; $bgcolor1 = trim($params->get('bgc11', '')) != '' ? trim($params->get('bgc11')) : 'transparent'; $variables[] = 'bgcolor1'; $bgcolor2 = trim($params->get('bgc12', '')) != '' ? trim($params->get('bgc12')) : 'transparent'; $variables[] = 'bgcolor2'; $color_top = trim($params->get('c2', '#494949')); $variables[] = 'color_top'; $bgcolor1_top = trim($params->get('bgc21', '')) != '' ? trim($params->get('bgc21')) : 'transparent'; $variables[] = 'bgcolor1_top'; $bgcolor2_top = trim($params->get('bgc22', '')) != '' ? trim($params->get('bgc22')) : 'transparent'; $variables[] = 'bgcolor2_top'; $color_bottom = trim($params->get('c3', '#494949')); $variables[] = 'color_bottom'; $bgcolor1_bottom = trim($params->get('bgc31', '')) != '' ? trim($params->get('bgc31')) : 'transparent'; $variables[] = 'bgcolor1_bottom'; $bgcolor2_bottom = trim($params->get('bgc32', '')) != '' ? trim($params->get('bgc32')) : 'transparent'; $variables[] = 'bgcolor2_bottom'; $cal_shadow_width = $params->get('sh_w', 0); $variables[] = 'cal_shadow_width'; $cal_border_width = $params->get('border_w_cal', 0); $variables[] = 'cal_border_width'; $cal_border_radius = $params->get('border_r', 0); $variables[] = 'cal_border_radius'; $cal_border_color = trim($params->get('border_c_cal', '#000000')); $variables[] = 'cal_border_color'; $font_ref_cal = $params->get('f_r', 14); $variables[] = 'font_ref_cal'; $font_ratio = 1; // floatval($head_height) / 80; // 1em base for a height of 80px $variables[] = 'font_ratio'; $calendar = $params->get('cal_style', 'original'); } $variables[] = 'calendar'; // icon $icon = false; if (substr($head_type, 0, strlen('jfield:sywicon')) === 'jfield:sywicon') { $icon_bgcolor = trim($params->get('icon_bgcolor', '')) != '' ? trim($params->get('icon_bgcolor')) : 'transparent'; $variables[] = 'icon_bgcolor'; $icon_color = trim($params->get('icon_color', '#000000')); $variables[] = 'icon_color'; $icon_shadow_width = $params->get('sh_w_icon', 0); $variables[] = 'icon_shadow_width'; $icon_text_shadow_width = $params->get('sh_w_text_icon', 0); $variables[] = 'icon_text_shadow_width'; $icon_border_width = $params->get('border_w_icon', 0); $variables[] = 'icon_border_width'; $icon_border_color = trim($params->get('border_c_icon', '#FFFFFF')); $variables[] = 'icon_border_color'; $icon_border_radius = $params->get('border_r_icon', 0); $variables[] = 'icon_border_radius'; $icon_padding = $params->get('padding_icon', 0); $variables[] = 'icon_padding'; $icon = true; } $variables[] = 'icon'; // video $video = false; if (modLatestNewsEnhancedExtendedHelper::isHeadVideo($head_type) !== false) { $video_bgimage = $params->get('video_bgimage', ''); $variables[] = 'video_bgimage'; $video_bgcolor = trim($params->get('video_bgcolor', '')) != '' ? trim($params->get('video_bgcolor')) : 'transparent'; $variables[] = 'video_bgcolor'; $video_shadow_width = $params->get('sh_w_video', 0); $variables[] = 'video_shadow_width'; $video_border_width = $params->get('border_w_video', 0); $variables[] = 'video_border_width'; $video_border_color = trim($params->get('border_c_video', '#FFFFFF')); $variables[] = 'video_border_color'; $video_border_radius = $params->get('border_r_video', 0); $variables[] = 'video_border_radius'; $video_ratio = ''; if ($params->get('force_ratio', 0)) { $video_ratio = (float)$head_height / (float)$head_width * 100.0; } $variables[] = 'video_ratio'; $video = true; } $variables[] = 'video'; // head width and height $variables[] = 'head_width'; $variables[] = 'head_height'; // animation and pagination $animation = $params->get('anim', ''); $pagination = $params->get('pagination', ''); if (!empty($pagination) && empty($animation)) { // pagination only $animation = 'justpagination'; } $variables[] = 'animation'; if (!empty($animation)) { $symbols = false; $arrows = false; $pages = false; switch ($params->get('pagination')) { case 'p': $pages = true; break; case 's': $symbols = true; break; case 'pn': $arrows = true; break; case 'ppn': $arrows = true; $pages = true; break; case 'psn': $arrows = true; $symbols = true; break; } $variables[] = 'symbols'; $variables[] = 'arrows'; $variables[] = 'pages'; $pagination_align = $params->get('pagination_align', 'center'); $variables[] = 'pagination_align'; $pagination_position = $params->get('pagination_pos', 'below'); $variables[] = 'pagination_position'; $pagination_specific_size = $params->get('pagination_specific_size', 1); $variables[] = 'pagination_specific_size'; $pagination_offset = $params->get('pagination_offset', 0); $variables[] = 'pagination_offset'; $pagination_style = $params->get('pagination_style', ''); $variables[] = 'pagination_style'; } // set all necessary parameters $this->params = compact($variables); } protected function getBuffer() { // get all necessary parameters extract($this->params); // if (function_exists('ob_gzhandler')) { // TODO not tested // ob_start('ob_gzhandler'); // } else { ob_start(); // } // set the header //$this->sendHttpHeaders('css'); if ($colortheme) { include dirname(__FILE__).'/../../media/syw_latestnewsenhanced/colors/'.$colortheme.'/style.css.php'; } include 'styles/style.css.php'; include 'styles/overall/'.$overall.'/style.css.php'; if ($calendar) { include dirname(__FILE__).'/../../media/syw_latestnewsenhanced/calendars/'.$calendar.'/style.css.php'; } if ($animation) { include 'animations/'.$animation.'/style.css.php'; } // social networks if (!empty($social_networks) && is_object($social_networks)) { $default_colors = array('facebook' => '#43609c', 'twitter' => '#02b0e8', 'linkedin' => '#0077b6', 'sendtofriend' => '#8d6e63', 'mix' => '#fd8235', 'telegram' => '#27a7e5', 'whatsapp' => '#00e676', 'pinterest' => '#e60023'); foreach ($social_networks as $social_network) { if ($social_network->social_network != 'none') { $social_network_class = $social_network->social_network; if ($social_network->social_network == 'email') { $social_network_class = 'sendtofriend'; } else { if (trim($social_network->other_network) != '') { $social_network_class = trim(strtolower($social_network->other_network)); } } $color = isset($default_colors[$social_network_class]) ? $default_colors[$social_network_class] : ''; if (trim($social_network->network_color) != '' && $social_network->network_color != 'transparent') { $color = trim($social_network->network_color); if (strpos($color, '#') === FALSE) { $color = '#' . $color; } } if ($share_bgcolor && $color) { echo $suffix . ' .newsextra .detail_social a.' . $social_network_class . ' i,'; echo $suffix . ' .newsextra .detail_social a.inline_svg.' . $social_network_class . ' .svg_container {'; echo 'background-color: ' . $color . ';'; echo '}'; } if ($share_color && $color) { echo $suffix . ' .newsextra .detail_social a.' . $social_network_class . ' i,'; echo $suffix . ' .newsextra .detail_social a.inline_svg.' . $social_network_class . ' svg {'; echo 'color: ' . $color . ';'; echo '}'; } } } } // inline items if ($inline) { echo '.inline-item.show { height: auto; opacity: 1; transition: opacity 1000ms; display: block !important; }'; echo '.inline-item.hide { height: 0; line-height:0; overflow: hidden; opacity: 0; display: block !important; }'; } // image CSS filters if (isset($filter)) { switch($filter) { case 'sepia': echo $suffix . ' .newshead .picture img { -webkit-filter: sepia(100%); filter: sepia(100%); }'; break; case 'grayscale': echo $suffix . ' .newshead .picture img { -webkit-filter: grayscale(100%); filter: grayscale(100%); }'; break; case 'negate': echo $suffix . ' .newshead .picture img { -webkit-filter: invert(100%); filter: invert(100%); }'; } } return $this->compress(ob_get_clean()); } } class LNEP_JSFileCache extends SYWHeaderFilesCache { public function __construct($extension, $params = null) { parent::__construct($extension, $params); $this->extension = $extension; $variables = array(); $suffix = '#lnee_'.$params->get('suffix'); $variables[] = 'suffix'; // $link_to = $params->get('link_to', 'item'); // $variables[] = 'link_to'; $width_unit = $params->get('item_w_u', 'percent'); $variables[] = 'width_unit'; $item_width = trim($params->get('item_w', 100)); // % if ($item_width <= 0 || $item_width > 100) { $item_width = 100; } $variables[] = 'item_width'; $min_width = trim($params->get('min_item_w', '')); // px $variables[] = 'min_width'; $margin_min_width = 3; // px $variables[] = 'margin_min_width'; $margin_error = 1; // px $variables[] = 'margin_error'; // set all necessary parameters $this->params = compact($variables); } public function getBuffer($inline = false) { // get all necessary parameters extract($this->params); // if (function_exists('ob_gzhandler')) { // not tested // ob_start('ob_gzhandler'); // } else { ob_start(); // } // set the header if (!$inline) { //$this->sendHttpHeaders('js'); } echo 'document.addEventListener("readystatechange", function(event) { '; echo 'if (event.target.readyState === "complete") { '; echo 'var toggle = function(index) { '; echo 'document.querySelectorAll("' . $suffix . ' .inline-item").forEach(function (el, index2) { '; echo 'if (index != index2) { '; echo 'el.classList.add("hide"); '; echo 'el.classList.remove("show"); '; echo '}'; echo '}, this); '; echo 'var inlineitem = document.querySelector("' . $suffix . ' #inline-item-" + index); '; echo 'if (typeof(inlineitem) != "undefined" && inlineitem != null) { '; // when animations, the index may be off because of duplicated items echo 'inlineitem.classList.add("show"); '; echo 'inlineitem.classList.remove("hide"); '; echo '}; '; echo '}; '; echo 'document.querySelectorAll("' . $suffix . ' .inline-item").forEach(function (el) { '; echo 'el.classList.add("hide"); '; echo '}, this); '; echo 'document.querySelectorAll("' . $suffix . ' .latestnews-item").forEach(function (item, index) { '; echo 'item.querySelectorAll(".inline-link").forEach(function (link) { '; echo 'link.addEventListener("click", toggle.bind(event, index)); '; echo '}, this); '; echo '}, this); '; echo '} '; echo '}); '; return ob_get_clean(); } } class LNEP_JSAnimationFileCache extends SYWHeaderFilesCache { public function __construct($extension, $params = null) { parent::__construct($extension, $params); $this->extension = $extension; $variables = array(); $suffix = $params->get('suffix'); $variables[] = 'suffix'; $css_prefix = '#lnee_'.$suffix; $variables[] = 'css_prefix'; $jQuery_var = 'jQuery'; $variables[] = 'jQuery_var'; $show_errors = modLatestNewsEnhancedExtendedHelper::isShowErrors($params); $variables[] = 'show_errors'; $bootstrap_version = $params->get('bootstrap_version', 2); $variables[] = 'bootstrap_version'; $animation = $params->get('anim', ''); $pagination = $params->get('pagination', ''); if (!empty($pagination) && empty($animation)) { // pagination only $animation = 'justpagination'; } $variables[] = 'animation'; // general parameters $horizontal = ($params->get('align', 'v') === 'h') ? true : false; $variables[] = 'horizontal'; $item_width = trim($params->get('item_w', 100)); $item_width_unit = $params->get('item_w_u', 'percent'); if ($item_width_unit == 'percent') { $item_width_unit = '%'; } $variables[] = 'item_width_unit'; if ($item_width_unit == '%') { if ($item_width <= 0 || $item_width > 100) { $item_width = 100; } } else { if ($item_width < 0) { $item_width = 0; } } $variables[] = 'item_width'; $margin_in_perc = 0; if ($item_width_unit == '%' && $item_width > 0 && $item_width < 100) { $news_per_row = (int)(100 / $item_width); $left_for_margins = 100 - ($news_per_row * $item_width); $margin_in_perc = $left_for_margins / ($news_per_row * 2); } $variables[] = 'margin_in_perc'; $min_width = trim($params->get('min_item_w', '')); // px $variables[] = 'min_width'; $max_width = trim($params->get('max_item_w', '')); $variables[] = 'max_width'; $space_between_items = $params->get('item_spacebetween', '0'); $variables[] = 'space_between_items'; $items_height = trim($params->get('items_h', '')); $variables[] = 'items_height'; $items_width = trim($params->get('items_w', '')); $variables[] = 'items_width'; // restart on refresh $restart_on_refresh = $params->get('restart_on_refresh', 0); $variables[] = 'restart_on_refresh'; // animation parameters $direction = 'left'; if (!$horizontal) { $direction = 'up'; } switch ($params->get('dir', 't')) { case 'l' : $direction = 'left'; if (!$horizontal) { $direction = 'up'; } break; case 'r' : $direction = 'right'; if (!$horizontal) { $direction = 'down'; } break; case 't' : $direction = 'up'; if ($horizontal) { $direction = 'left'; } break; case 'b' : $direction = 'down'; if ($horizontal) { $direction = 'right'; } break; } $variables[] = 'direction'; $auto = $params->get('auto', 1); $variables[] = 'auto'; $speed = $params->get('speed', 1000); $variables[] = 'speed'; $interval = $params->get('interval', 3000); $variables[] = 'interval'; $visibleatonce = $params->get('visible_items', 1); $variables[] = 'visibleatonce'; $moveatonce = ($params->get('move', 'all') === 'all') ? $visibleatonce : '1'; $variables[] = 'moveatonce'; $num_links = $params->get('num_links', 5); $variables[] = 'num_links'; $prev_type = $params->get('prev_type', ''); $prev_label = ($prev_type == 'prev') ? Text::_('JPREV') : ($prev_type == 'label' ? trim($params->get('label_prev', '')) : ''); $variables[] = 'prev_label'; $prev_aria_label = Text::_('JPREV'); $variables[] = 'prev_aria_label'; $next_type = $params->get('next_type', ''); $next_label = ($next_type == 'next') ? Text::_('JNEXT') : ($next_type == 'label' ? trim($params->get('label_next', '')) : ''); $variables[] = 'next_label'; $next_aria_label = Text::_('JNEXT'); $variables[] = 'next_aria_label'; $symbols = false; $arrows = false; $pages = false; switch ($params->get('pagination')) { case 'p': $pages = true; break; case 's': $symbols = true; break; case 'pn': $arrows = true; break; case 'ppn': $arrows = true; $pages = true; break; case 'psn': $arrows = true; $symbols = true; break; } $variables[] = 'symbols'; $variables[] = 'arrows'; $variables[] = 'pages'; $pagination_position = $params->get('pagination_pos', 'below'); $variables[] = 'pagination_position'; $pagination_style = $params->get('pagination_style', ''); $variables[] = 'pagination_style'; $pagination_size = ''; if ($pagination_style && $bootstrap_version > 0) { // Bootstrap is selected $pagination_size = SYWUtilities::getBootstrapProperty('pagination-'.$params->get('pagination_size', ''), $bootstrap_version); } $variables[] = 'pagination_size'; $pagination_align = ''; if ($pagination_style && $bootstrap_version > 0) { // Bootstrap is selected $pagination_align = SYWUtilities::getBootstrapProperty('pagination-'.$params->get('pagination_align', 'center'), $bootstrap_version); } $variables[] = 'pagination_align'; // set all necessary parameters $this->params = compact($variables); } public function getBuffer($inline = false) { // get all necessary parameters extract($this->params); // if (function_exists('ob_gzhandler')) { // not tested // ob_start('ob_gzhandler'); // } else { ob_start(); // } // set the header if (!$inline) { //$this->sendHttpHeaders('js'); } if (!empty($animation)) { include 'animations/'.$animation.'/'.$animation.'.js.php'; } return $this->compress(ob_get_clean(), false); } }