From ad83798be12c653dfb6163e58a1523e8fcd212cc Mon Sep 17 00:00:00 2001 From: dziudek Date: Sat, 2 Nov 2013 12:55:01 +0100 Subject: [PATCH] v.1.39 with added gk_musicstate style. --- .../language/en-GB.mod_image_show_gk4.ini | 1 + mod_image_show_gk4/mod_image_show_gk4.xml | 6 +- .../styles/gk_musicstate/class.image.php | 162 +++++++++ .../styles/gk_musicstate/controller.php | 138 ++++++++ .../styles/gk_musicstate/engine.js | 218 +++++++++++++ .../styles/gk_musicstate/images/index.html | 1 + .../gk_musicstate/images/is_pattern.png | Bin 0 -> 17310 bytes .../styles/gk_musicstate/images/loader.gif | Bin 0 -> 4879 bytes .../styles/gk_musicstate/index.html | 1 + .../styles/gk_musicstate/info.xml | 22 ++ .../styles/gk_musicstate/model.php | 111 +++++++ .../styles/gk_musicstate/style.css | 308 ++++++++++++++++++ .../styles/gk_musicstate/view.php | 98 ++++++ 13 files changed, 1063 insertions(+), 3 deletions(-) create mode 100644 mod_image_show_gk4/styles/gk_musicstate/class.image.php create mode 100644 mod_image_show_gk4/styles/gk_musicstate/controller.php create mode 100644 mod_image_show_gk4/styles/gk_musicstate/engine.js create mode 100644 mod_image_show_gk4/styles/gk_musicstate/images/index.html create mode 100644 mod_image_show_gk4/styles/gk_musicstate/images/is_pattern.png create mode 100644 mod_image_show_gk4/styles/gk_musicstate/images/loader.gif create mode 100644 mod_image_show_gk4/styles/gk_musicstate/index.html create mode 100644 mod_image_show_gk4/styles/gk_musicstate/info.xml create mode 100644 mod_image_show_gk4/styles/gk_musicstate/model.php create mode 100644 mod_image_show_gk4/styles/gk_musicstate/style.css create mode 100644 mod_image_show_gk4/styles/gk_musicstate/view.php diff --git a/mod_image_show_gk4/language/en-GB.mod_image_show_gk4.ini b/mod_image_show_gk4/language/en-GB.mod_image_show_gk4.ini index f57da04..f76af19 100644 --- a/mod_image_show_gk4/language/en-GB.mod_image_show_gk4.ini +++ b/mod_image_show_gk4/language/en-GB.mod_image_show_gk4.ini @@ -78,3 +78,4 @@ MOD_IMAGE_SHOW_ESPORT_IS_LOADING="Loading" MOD_IMAGE_SHOW_LEAGUE_NEWS_MORE_NEWS="More news..." MOD_IMAGE_SHOW_THE_REAL_DESIGN_IS_LOADING="Loading..." MOD_IMAGE_SHOW_CREATIVITY_READMORE="What we do" +MOD_IMAGE_SHOW_MUSIC_STATE_READMORE="Read more" diff --git a/mod_image_show_gk4/mod_image_show_gk4.xml b/mod_image_show_gk4/mod_image_show_gk4.xml index e222386..8035df4 100644 --- a/mod_image_show_gk4/mod_image_show_gk4.xml +++ b/mod_image_show_gk4/mod_image_show_gk4.xml @@ -2,12 +2,12 @@ Image Show GK4 GavickPro - 02/08/2013 + 02/11/2013 Copyright (C) 2011-2013 GavickPro. All rights reserved. GNU General Public License version 2 or later info@gavick.com www.gavickpro.com - GK4 1.38 + GK4 1.39 span.readonly { padding: 10px; font-family: Arial; font-size:13px !important; font-weight: normal !important; text-align: justify; color: #4d4d4d; line-height: 24px; } @@ -18,7 +18,7 @@ span.readonly p.license { border-top: 1px solid #eee; font-size: 11px; margin: 30px 26px 0; padding: 6px 0; } -

Image Show GK4ver. 1.38

GK4 is new generation of our extensions dedicated to Joomla 1.6+.

With Image Show GK4 module, you can create slideshow on a site which include various images and article fragments or texts defined by a user. Thanks to slide management system integrated in the module, its support is very easy, intuitive and fast. With the new method of creating module styles you can easily move your slideshow style from one template to other template.

Learn more at the Image Show GK4 project website.

Image Show GK4 is released under the GNU/GPL v2 license.

+

Image Show GK4ver. 1.39

GK4 is new generation of our extensions dedicated to Joomla 1.6+.

With Image Show GK4 module, you can create slideshow on a site which include various images and article fragments or texts defined by a user. Thanks to slide management system integrated in the module, its support is very easy, intuitive and fast. With the new method of creating module styles you can easily move your slideshow style from one template to other template.

Learn more at the Image Show GK4 project website.

Image Show GK4 is released under the GNU/GPL v2 license.

]]>
mod_image_show_gk4.php diff --git a/mod_image_show_gk4/styles/gk_musicstate/class.image.php b/mod_image_show_gk4/styles/gk_musicstate/class.image.php new file mode 100644 index 0000000..ba3ff45 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/class.image.php @@ -0,0 +1,162 @@ + $last_modification_time); + } + // Creating thumbnails + function createThumbnail($path, $config, $width, $height, $image_bg, $image_stretch, $quality) { + if(GKIS_MusicState_Image::checkCache(GKIS_MusicState_Image::translateName($path,$config['module_id']), $config['last_modification'], $config['module_id'])){ + return TRUE; + }else{ + // importing classes + jimport('joomla.filesystem.file'); + jimport('joomla.filesystem.folder'); + jimport('joomla.filesystem.path'); + //script configuration - increase memory limit to 64MB + ini_set('memory_limit', '64M'); + // cache dir + $cache_dir = JPATH_ROOT.DS.'modules'.DS.'mod_image_show_gk4'.DS.'cache'.DS; + // file path + $file = GKIS_MusicState_Image::getRealPath($path); + // filename + $filename = GKIS_MusicState_Image::translateName($path,$config['module_id']); + // Getting informations about image + if(is_file($file)){ + $imageData = getimagesize($file); + // loading image depends from type of image + if($imageData['mime'] == 'image/jpeg' || $imageData['mime'] == 'image/pjpeg' || $imageData['mime'] == 'image/jpg') $imageSource = @imagecreatefromjpeg($file); + elseif($imageData['mime'] == 'image/gif') $imageSource = @imagecreatefromgif($file); + else $imageSource = @imagecreatefrompng($file); + // here can be exist an error when image is to big - then class return blank page + // setting image size in variables + $imageSourceWidth = imagesx($imageSource); + $imageSourceHeight = imagesy($imageSource); + // Creating blank canvas + $imageBG = imagecreatetruecolor($width, $height); + // If image is JPG or GIF + if($imageData['mime'] == 'image/jpeg' || $imageData['mime'] == 'image/pjpeg' || $imageData['mime'] == 'image/jpg' || $imageData['mime'] == 'image/gif') { + // when bg is set to transparent - use black background + if($image_bg == 'transparent'){ + $bgColorR = 0; + $bgColorG = 0; + $bgColorB = 0; + }else{ // in other situation - translate hex to RGB + $bg = $image_bg; + if(strlen($bg) == 4) $bg = $bg[0].$bg[1].$bg[1].$bg[2].$bg[2].$bg[3].$bg[3]; + $hex_color = strtolower(trim($bg,'#;&Hh')); + $bg = array_map('hexdec',explode('.',wordwrap($hex_color, ceil(strlen($hex_color)/3),'.',1))); + $bgColorR = $bg[0]; + $bgColorG = $bg[1]; + $bgColorB = $bg[2]; + } + // Creating color + $rgb = imagecolorallocate($imageBG, $bgColorR, $bgColorG, $bgColorB); + // filling canvas with new color + imagefill($imageBG, 0, 0, $rgb); + }else {// for PNG images + $imageBG = imagecreatetruecolor($width, $height); + // enable transparent background + if($image_bg == 'transparent'){ + // create transparent color + $rgb = imagecolorallocatealpha($imageBG, 0, 0, 0, 127); + }else {// create normal color + $bg = $image_bg; + // translate hex to RGB + $hex_color = strtolower(trim($bg,'#;&Hh')); + $bg = array_map('hexdec',explode('.',wordwrap($hex_color, ceil(strlen($hex_color)/3),'.',1))); + // creating color + $rgb = imagecolorallocate($imageBG, $bg[0], $bg[1], $bg[2]); + } + // filling the canvas + imagefill($imageBG, 0, 0, $rgb); + // enabling transparent settings for better quality + imagealphablending($imageBG, false); + imagesavealpha($imageBG, true); + } + // when stretching is disabled + if(!$image_stretch){ + // calculate ratio for first scaling + $ratio = ($imageSourceWidth > $imageSourceHeight) ? $width/$imageSourceWidth : $height/$imageSourceHeight; + // calculate new image size + $imageSourceNWidth = $imageSourceWidth * $ratio; + $imageSourceNHeight = $imageSourceHeight * $ratio; + // calculate ratio for second scaling + if($width > $height){ + if($imageSourceNHeight > $height){ + $ratio2 = $height / $imageSourceNHeight; + $imageSourceNHeight *= $ratio2; + $imageSourceNWidth *= $ratio2; + } + }else{ + if($imageSourceNWidth > $width){ + $ratio2 = $width / $imageSourceNWidth; + $imageSourceNHeight *= $ratio2; + $imageSourceNWidth *= $ratio2; + } + } + // setting position of putting thumbnail on canvas + $base_x = floor(($width - $imageSourceNWidth) / 2); + $base_y = floor(($height - $imageSourceNHeight) / 2); + }else{ // when stretching is disabled + $imageSourceNWidth = $width; + $imageSourceNHeight = $height; + $base_x = 0; + $base_y = 0; + } + // copy image + imagecopyresampled($imageBG, $imageSource, $base_x, $base_y, 0, 0, $imageSourceNWidth, $imageSourceNHeight, $imageSourceWidth, $imageSourceHeight); + // save image depends from MIME type + if($imageData['mime'] == 'image/jpeg' || $imageData['mime'] == 'image/pjpeg' || $imageData['mime'] == 'image/jpg') imagejpeg($imageBG,$cache_dir.$filename, $quality); + elseif($imageData['mime'] == 'image/gif') imagegif($imageBG, $cache_dir.$filename); + else imagepng($imageBG, $cache_dir.$filename); + return TRUE; + }else{ + return FALSE; + } + } + } +} + +/* eof */ \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/controller.php b/mod_image_show_gk4/styles/gk_musicstate/controller.php new file mode 100644 index 0000000..7e73092 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/controller.php @@ -0,0 +1,138 @@ +config = $config; + // init the module info + $this->module = $module; + // init the articles array + $this->articles = array(); + $this->articlesK2 = array(); + // check the module images + $this->checkImages(); + // get the articles data + $this->getArticleData(); + // generate the view + $this->generateView(); + } + // check the images + function checkImages() { + // if the thumbnail generation is enabled + if($this->config['generate_thumbnails'] == 1) { + // basic images params + $img_width = $this->config['config']->gk_musicstate->gk_musicstate_image_width; + $img_height = $this->config['config']->gk_musicstate->gk_musicstate_image_height; + $img_bg = $this->config['config']->gk_musicstate->gk_musicstate_image_bg; + $quality = $this->config['config']->gk_musicstate->gk_musicstate_quality; + // check the slides + foreach($this->config['image_show_data'] as $slide) { + $stretch = ($slide->stretch == 'nostretch') ? false : true; + GKIS_MusicState_Image::createThumbnail($slide->image, $this->config, $img_width, $img_height, $img_bg, $stretch, $quality); + } + } + } + // get the articles data + function getArticleData() { + // create the array + $ids = array(); + $idsK2 = array(); + // generate the content of the array + foreach($this->config['image_show_data'] as $slide) { + if($slide->type == 'article') { + array_push($ids, $slide->art_id); + } + if($slide->type == 'k2') { + array_push($idsK2, $slide->artK2_id); + } + } + // get the data + if(count($idsK2) > 0) { + $this->articlesK2 = GKIS_gk_musicstate_Model::getDataK2($idsK2); + } + if(count($ids) > 0) { + $this->articles = GKIS_gk_musicstate_Model::getData($ids); + } + } + // generate view + function generateView() { + // generate the head section + $document = JFactory::getDocument(); + $uri = JURI::getInstance(); + // get the head data + $headData = $document->getHeadData(); + // generate keys of script section + $headData_js_keys = array_keys($headData["scripts"]); + // generate keys of css section + $headData_css_keys = array_keys($headData["style"]); + // set variables for false + $engine_founded = false; + $css_founded = false; + // searching engine in scripts paths + if(array_search($uri->root().'modules/mod_image_show_gk4/styles/'.$this->config['styles'].'/engine.js', $headData_js_keys) > 0) { + $engine_founded = true; + } + // searching css in CSSs paths + if(array_search($uri->root().'modules/mod_image_show_gk4/styles/'.$this->config['styles'].'/style.css', $headData_css_keys) > 0) { + $css_founded = true; + } + // if mootools file doesn't exists in document head section + if(!$engine_founded){ + // add new script tag connected with mootools from module + $document->addScript($uri->root().'modules/mod_image_show_gk4/styles/'.$this->config['styles'].'/engine.js'); + } + // if CSS not found + if(!$css_founded && $this->config['use_style_css'] == 1) { + // add stylesheets to document header + $document->addStyleSheet($uri->root().'modules/mod_image_show_gk4/styles/'.$this->config['styles'].'/style.css' ); + } + // add script fragment + $document->addScriptDeclaration('try {$Gavick;}catch(e){$Gavick = {};};$Gavick["gkIs-'.$this->config['module_id'].'"] = { "anim_speed": '.$this->config['config']->gk_musicstate->gk_musicstate_animation_speed.', "anim_interval": '.$this->config['config']->gk_musicstate->gk_musicstate_animation_interval.', "autoanim": '.$this->config['config']->gk_musicstate->gk_musicstate_autoanimation.', "slide_links": '.$this->config['config']->gk_musicstate->gk_musicstate_slide_links.' };'); + // generate necessary variables + $width = $this->config['config']->gk_musicstate->gk_musicstate_image_width; + $height = $this->config['config']->gk_musicstate->gk_musicstate_image_height; + // load view + require_once (dirname(__FILE__).DS.'view.php'); + } + // function to generate blank transparent PNG images + public function generateBlankImage($width, $height){ + $image = imagecreatetruecolor($width, $height); + imagesavealpha($image, true); + $transparent = imagecolorallocatealpha($image, 0, 0, 0, 127); + imagefill($image, 0, 0, $transparent); + // cache the output + ob_start(); + imagepng($image); + $img = ob_get_contents(); + ob_end_clean(); + // return the string + return base64_encode($img); + } +} + +// EOF \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/engine.js b/mod_image_show_gk4/styles/gk_musicstate/engine.js new file mode 100644 index 0000000..7667af5 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/engine.js @@ -0,0 +1,218 @@ +window.addEvent("load",function(){ + setTimeout(function() { + $$(".gkIsWrapper-gk_musicstate").each(function(el){ + var elID = el.getProperty("id"); + var wrapper = document.id(elID); + var $G = $Gavick[elID]; + var slides = []; + var links = []; + var imagesToLoad = []; + var swipe_min_move = 30; + var swipe_max_time = 500; + // animation variables + $G['animation_timer'] = false; + // blank flag + $G['blank'] = false; + // load the images + wrapper.getElements('figure').each(function(el,i){ + var newImg = new Element('img',{ + "title": el.getProperty('data-title'), + "class": 'gkIsSlide', + "style": 'z-index: ' + el.getProperty('data-zindex') + ';', + "src": el.getProperty('data-url') + }); + links[i] = el.getProperty('data-link'); + imagesToLoad.push(newImg); + newImg.inject(el, 'top'); + newImg.setProperty('src', el.getProperty('data-url')); + }); + // + var time = setInterval(function(){ + var process = 0; + imagesToLoad.each(function(elm,i){ + if(elm.complete) { + var wrap = elm.getParent(); + process++; + + var newImgLayer = new Element('div',{ + "title": elm.getProperty('title'), + "class": 'gkIsSlide', + "style": 'z-index: ' + elm.getStyle('z-index') + '; background-image: url(\''+elm.getProperty('src')+'\')' + }); + + newImgLayer.inject(wrap, 'top'); + elm.inject(newImgLayer, 'bottom'); + } + }); + + if(process == imagesToLoad.length){ + clearInterval(time); + document.getElements('.gkIsSlide img').each(function(img, i){ + img.dispose(); + }); + + setTimeout(function(){ + wrapper.getElement('.gkIsPreloader').setStyle('position', 'absolute'); + wrapper.getElement('.gkIsPreloader').fade('out'); + }, 400); + + $G['actual_slide'] = 0; + + new Fx.Tween(wrapper, { + duration: 350, + onComplete: function() { + wrapper.getElement('figure').fade('in'); + wrapper.getElement('figure').addClass('active'); + wrapper.setStyle('height', 'auto'); + } + }).start('height', wrapper.getElement('figure').getSize().y); + + wrapper.addClass('loaded'); + + wrapper.getElements(".gkIsSlide").each(function(elmt,i){ + slides[i] = elmt; + }); + + if($G['slide_links']){ + wrapper.getElements('.gkIsSlide').addEvent("click", function(e){ + window.location = links[$G['actual_slide']]; + }); + wrapper.getElements('.gkIsSlide').setStyle('cursor', 'pointer'); + } + + wrapper.getElements('.gkIsPagination li').each(function(item, i) { + item.addEvent('click', function() { + if(i != $G['actual_slide']) { + $G['blank'] = true; + gk_musicstate_autoanimate($G, wrapper, 'next', i); + } + }); + + item.addEvent('mouseenter', function() { + var label = item.getElement('small'); + var x = label.getSize().x; + label.set('morph', { duration: 250 }); + label.morph({ + 'left': -1 * x, + 'opacity': 1 + }); + }); + + item.addEvent('mouseleave', function() { + var label = item.getElement('small'); + var x = label.getSize().x; + label.set('morph', { duration: 250 }); + label.morph({ + 'left': 0, + 'opacity': 0 + }); + }); + }); + + // auto-animation + if($G['autoanim'] == 1) { + $G['animation_timer'] = setTimeout(function() { + gk_musicstate_autoanimate($G, wrapper, 'next', null); + }, $G['anim_interval']); + } + + // pagination + var slide_pos_start_x = 0; + var slide_pos_start_y = 0; + var slide_time_start = 0; + var slide_swipe = false; + + wrapper.addEvent('touchstart', function(e) { + slide_swipe = true; + + if(e.changedTouches.length > 0) { + slide_pos_start_x = e.changedTouches[0].pageX; + slide_pos_start_y = e.changedTouches[0].pageY; + slide_time_start = new Date().getTime(); + } + }); + + wrapper.addEvent('touchmove', function(e) { + if(e.changedTouches.length > 0 && slide_swipe) { + if( + Math.abs(e.changedTouches[0].pageX - slide_pos_start_x) > Math.abs(e.changedTouches[0].pageY - slide_pos_start_y) + ) { + e.preventDefault(); + } else { + slide_swipe = false; + } + } + }); + + wrapper.addEvent('touchend', function(e) { + if(e.changedTouches.length > 0 && slide_swipe) { + if( + Math.abs(e.changedTouches[0].pageX - slide_pos_start_x) >= swipe_min_move && + new Date().getTime() - slide_time_start <= swipe_max_time + ) { + if(e.changedTouches[0].pageX - slide_pos_start_x > 0) { + $G['blank'] = true; + gk_musicstate_autoanimate($G, wrapper, 'prev', null); + } else { + $G['blank'] = true; + gk_musicstate_autoanimate($G, wrapper, 'next', null); + } + } + } + }); + } + }, 500); + }); + }, 1000); +}); + +var gk_musicstate_animate = function($G, wrapper, imgPrev, imgNext) { + // + imgPrev.addClass('inactive'); + setTimeout(function() { + imgPrev.removeClass('inactive'); + }, 500); + // + imgNext.setStyle('opacity', 1); + // + new Fx.Tween(imgPrev, { + duration: $G['anim_speed'], + onComplete: function() { + imgPrev.setProperty('class', ''); + imgPrev.setStyle('opacity', 1); + + imgNext.setProperty('class', 'active'); + if($G['autoanim'] == 1) { + clearTimeout($G['animation_timer']); + + $G['animation_timer'] = setTimeout(function() { + if($G['blank']) { + $G['blank'] = false; + clearTimeout($G['animation_timer']); + + $G['animation_timer'] = setTimeout(function() { + gk_musicstate_autoanimate($G, wrapper, 'next', null); + }, $G['anim_interval']); + } else { + gk_musicstate_autoanimate($G, wrapper, 'next', null); + } + }, $G['anim_interval']); + } + } + }).start('opacity', 0); +}; + +var gk_musicstate_autoanimate = function($G, wrapper, dir, next) { + var i = $G['actual_slide']; + var imgs = wrapper.getElements('figure'); + + if(next == null) { + next = (dir == 'next') ? ((i < imgs.length - 1) ? i+1 : 0) : ((i == 0) ? imgs.length - 1 : i - 1); // dir: next|prev + } + + gk_musicstate_animate($G, wrapper, imgs[i], imgs[next]); + $G['actual_slide'] = next; + + wrapper.getElements('.gkIsPagination li').removeClass('active'); + wrapper.getElements('.gkIsPagination li')[next].addClass('active'); +}; \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/images/index.html b/mod_image_show_gk4/styles/gk_musicstate/images/index.html new file mode 100644 index 0000000..42682b4 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/images/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/images/is_pattern.png b/mod_image_show_gk4/styles/gk_musicstate/images/is_pattern.png new file mode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i5MNoLuw`#AU$aI|%`DY4$R G=YIiAljyhr literal 0 HcmV?d00001 diff --git a/mod_image_show_gk4/styles/gk_musicstate/images/loader.gif b/mod_image_show_gk4/styles/gk_musicstate/images/loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..d0ea851217d433db7d9392e03a4073059caeab30 GIT binary patch literal 4879 zcmb`KYg`j|zQ$)Jm&s%@Gsz?wa+ypf$s|#a>!BWOsf%t%!bLpv1JU zVjcmRR69~IlPU9qxhlx8Z=OzFdvK0{EIsNJlZDMK;!~&XLIZu)VKyM2*jXXoY31p3 z+s_gdb-q)8o0(4d`iEyRGpOmbAfT%LEF+U4@-Gn?%YEUotY>IeAkh3U$3l#*Ph2*k zZJ)gelsoCj!L)rP@UNoW-nM;pn9^*!6-d9+l8(AlYDSI^$*6>XVGd1 zda7P0X7*=KSG@kJ{~FnG9+(m)TlY&_QZql+S{2WiXo1v3<;1Jy{fnd2y$vWNQQ+{V z5~qTh}pxNct;l>PiKYH$?W%zwYqVg z@|>HZcD5(u)W!==5dZYD9WmGST9qJj-7Z(D4)qc;*|lD5<^1am!VX>Lv4RcPElQfc zeVI}I{X{Q=VeyGMN#C~vBrhVsw)S)t_~ld}a%3Y7zXuFM3rV*W(32O<#sgb^XQ%vYTH!Y2?UlC&ykMvZJhk8Ma$! z`rBa*t;`)}l-TGHipBFcEL{wgf=|Akp{kE|bYv5ufwLX{4uK*jsyY6uAC|#*&S3nL ze3;PQZvT(y{sq$UrvKw_1j2=2;nb?gNn_KGnOY!AKl_zbq%X(_5wMAyZ1WQoV%f!q zKSt*zRQxb9m=w<;#tal+CzW_Ij5>o@HQ#H84PjEf#tl~58-K=@iy9CE!W3;Sv>i+uEr7h&ah zy{zE=1Gnd=09dT-ux1KqT7#K@Lv>m+GRe+$1 z8yi@A7r14Fp`~~3qvi(900pD5noq{H*)2TFPHl*M_2ck;XZmc%uWC#*DI-W8tyS=~fVG#-iH zGO;XD6?d_BqB;I0iBUIXE@?O^naHJN3=pZm9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html b/mod_image_show_gk4/styles/gk_musicstate/index.html new file mode 100644 index 0000000..42682b4 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/info.xml b/mod_image_show_gk4/styles/gk_musicstate/info.xml new file mode 100644 index 0000000..c0b9ca5 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/info.xml @@ -0,0 +1,22 @@ + + \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/model.php b/mod_image_show_gk4/styles/gk_musicstate/model.php new file mode 100644 index 0000000..3c44835 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/model.php @@ -0,0 +1,111 @@ +config = $config; + } + // getData function + function getData($ids) { + // prepare an array + $results = array(); + // prepare an query part + $query_ids = implode(',', $ids); + // generate the query + $database = JFactory::getDBO(); + // SQL query for slides + $query = ' + SELECT + `c`.`id` AS `id`, + `c`.`catid` AS `cid`, + `c`.`title` AS `title` + FROM + #__content AS `c` + WHERE + `c`.`id` IN ('.$query_ids.') + ;'; + // running query + $database->setQuery($query); + // if results exists + if( $datas = $database->loadObjectList() ) { + // parsing data + foreach($datas as $item) { + // array with prepared image + $results[$item->id] = array( + 'id' => $item->id, + 'cid' => $item->cid, + 'title' => stripslashes($item->title), + 'link' => JRoute::_(ContentHelperRoute::getArticleRoute($item->id, $item->cid)) + ); + } + } + // return the results + return $results; + } + + function getDataK2($ids) { + // + require_once (JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php'); + // prepare an array + $results = array(); + // prepare an query part + $query_ids = implode(',', $ids); + // generate the query + $database = JFactory::getDBO(); + // SQL query for slides + $query = ' + SELECT + `c`.`id` AS `id`, + `c`.`catid` AS `cid`, + `c`.`title` AS `title`, + `c`.`introtext` AS `introtext`, + `c`.alias AS `alias`, + `cats`.alias AS `cat_alias` + FROM + #__k2_items AS `c` + LEFT JOIN + #__k2_categories AS `cats` + ON cats.id = `c`.`id` + WHERE + `c`.`id` IN ('.$query_ids.') + ;'; + // running query + $database->setQuery($query); + // if results exists + if( $datas = $database->loadObjectList() ) { + // parsing data + foreach($datas as $item) { + // array with prepared image + $results[$item->id] = array( + 'id' => $item->id, + 'cid' => $item->cid, + 'title' => stripslashes($item->title), + 'link' => urldecode(JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->cid.':'.urlencode($item->cat_alias)))) + ); + } + } + // return the results + return $results; + } +} + +// EOF \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/style.css b/mod_image_show_gk4/styles/gk_musicstate/style.css new file mode 100644 index 0000000..48fb9cc --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/style.css @@ -0,0 +1,308 @@ + +/** +* GK Image Show - CSS style +* @package Joomla! +* @Copyright (C) 2009-2013 Gavick.com +* @ All rights reserved +* @ Joomla! is Free Software +* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html +* @ version $Revision: GK4 1.0 $ +**/ + +.gkIsWrapper-gk_musicstate { + margin: 0; + min-height: 200px; + position: relative; +} + +.gkIsWrapper-gk_musicstate .gkIsPreloader { + background: #fff url('images/loader.gif') no-repeat center center; + height: 100%; + position: absolute; + text-indent: -9999px; + width: 100%; + z-index: 101; +} + +.gkIsWrapper-gk_musicstate figure { + height: 100%; + left: 0; + position: absolute; + overflow: hidden; + width: 100%; + top: 0; + z-index: 1; +} + +.gkIsWrapper-gk_musicstate figure > div:before { + background: url('images/is_pattern.png') repeat 0 0; + content: ""; + display: block; + height: 100%; + position: absolute; + width: 100%; +} + +.gkIsWrapper-gk_musicstate .active figcaption { + opacity: 1; filter: alpha(opacity=100); +} + +.gkIsWrapper-gk_musicstate figure.active { + position: absolute; + top: 0; + z-index: 3; +} + +.gkIsWrapper-gk_musicstate img { + display: block; + width: 100%; +} +.gkIsWrapper-gk_musicstate .gkIsSlide { + background-size: cover; + background-repeat: no-repeat; + display: block; + height: 100%; + position: absolute; + top: 0; + width: 100%; +} + +.gkIsWrapper-gk_musicstate figcaption { + border-left: 5px solid #e74c3c; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + filter: alpha(opacity=0); + height: auto; + left: -10%; + margin: -92px 0 0 0; + opacity: 0; filter: alpha(opacity=0); + position: absolute; + padding: 0 0 0 48px; + top: 64%; + -webkit-transition: all .3s ease-out; + -moz-transition: all .3s ease-out; + -ms-transition: all .3s ease-out; + -o-transition: all .3s ease-out; + transition: all .3s ease-out; + z-index: 1; +} + +.gkIsWrapper-gk_musicstate figure.active figcaption { + left: 0; + opacity: 1; filter: alpha(opacity=100); + z-index: 101; +} + +.gkIsWrapper-gk_musicstate figure.inactive figcaption { + left: -10%; + opacity: 0; filter: alpha(opacity=0); +} + +.gkIsWrapper-gk_musicstate figcaption > h2 { + color: inherit; + font-size: 55px; + font-weight: 400; + line-height: 55px; + margin: 0; + padding: 0; + text-transform: uppercase; +} +.gkIsWrapper-gk_musicstate figcaption > p { + color: inherit; + font-size: 72px; + font-weight: 400; + line-height: 62px; + margin: 0 0 10px 0; + text-transform: uppercase; +} +.gkIsWrapper-gk_musicstate figcaption > a { + color: inherit; + font-size: 32px; + font-weight: 400; + line-height: 1; + margin: 0; + text-transform: uppercase; +} +.gkIsWrapper-gk_musicstate figcaption > a:active, +.gkIsWrapper-gk_musicstate figcaption > a:focus, +.gkIsWrapper-gk_musicstate figcaption > a:hover { + color: #e74c3c; +} + +.gkIsWrapper-gk_musicstate .gkIsPagination { + position: absolute; + right: 0; + top: 50%; + z-index: 10; +} + +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="1"] { margin-top: -32px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="2"] { margin-top: -64px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="3"] { margin-top: -96px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="4"] { margin-top: -128px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="5"] { margin-top: -160px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="6"] { margin-top: -192px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="7"] { margin-top: -224px; } +.gkIsWrapper-gk_musicstate .gkIsPagination[data-count="8"] { margin-top: -256px; } + +.gkIsWrapper-gk_musicstate .gkIsPagination li { + background: #fff; + clear: both; + cursor: pointer; + float: left; + height: 62px; + margin: 1px 0; + position: relative; + -webkit-transition: all .3s ease-out; + -moz-transition: all .3s ease-out; + -ms-transition: all .3s ease-out; + -o-transition: all .3s ease-out; + transition: all .3s ease-out; + width: 10px; +} +.gkIsWrapper-gk_musicstate .gkIsPagination li > small { + background: #e74c3c; + color: #fff; + cursor: pointer; + display: block; + font-size: 20px; + font-weight: bold; + height: 62px; + line-height: 63px; + padding: 0 12px; + position: absolute; + left: 100%; + text-transform: uppercase; + top: 0; + width: auto; +} + +.gkIsWrapper-gk_musicstate .gkIsPagination li.active, +.gkIsWrapper-gk_musicstate .gkIsPagination li:active +.gkIsWrapper-gk_musicstate .gkIsPagination li:focus, +.gkIsWrapper-gk_musicstate .gkIsPagination li:hover { + background: #e74c3c; +} + +/* Mobile styles */ + +/* Small desktop */ +@media (max-width: 1280px) { + .gkIsWrapper-gk_musicstate figcaption { + padding: 0 0 0 32px; + } + .gkIsWrapper-gk_musicstate figcaption > h2 { + font-size: 42px; + line-height: 42px; + } + .gkIsWrapper-gk_musicstate figcaption > p { + font-size: 60px; + line-height: 50px; + position: relative; + top: 10px; + } + .gkIsWrapper-gk_musicstate figcaption > a { + font-size: 24px; + } +} + +/* Tablets */ +@media (max-width: 1040px) { + .gkIsWrapper-gk_musicstate figcaption { + margin: -57px 0 0 0; + padding: 0 0 0 32px; + } + .gkIsWrapper-gk_musicstate figcaption > h2 { + font-size: 32px; + line-height: 32px; + } + .gkIsWrapper-gk_musicstate figcaption > p { + font-size: 48px; + line-height: 38px; + position: relative; + top: 8px; + } + .gkIsWrapper-gk_musicstate figcaption > a { + font-size: 18px; + } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="1"] { margin-top: -20px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="2"] { margin-top: -40px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="3"] { margin-top: -60px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="4"] { margin-top: -80px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="5"] { margin-top: -100px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="6"] { margin-top: -120px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="7"] { margin-top: -140px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="8"] { margin-top: -160px; } + + .gkIsWrapper-gk_musicstate .gkIsPagination li { + height: 38px; + } + .gkIsWrapper-gk_musicstate .gkIsPagination li > small { + font-size: 16px; + height: 38px; + line-height: 39px; + } +} + +/* Small tablets */ +@media (max-width: 840px) { + .gkIsWrapper-gk_musicstate figcaption { + margin: -41px 0 0 0; + padding: 0 0 0 32px; + } + .gkIsWrapper-gk_musicstate figcaption > h2 { + font-size: 24px; + line-height: 24px; + } + .gkIsWrapper-gk_musicstate figcaption > p { + font-size: 32px; + line-height: 22px; + position: relative; + top: 6px; + } + .gkIsWrapper-gk_musicstate figcaption > a { + font-size: 16px; + } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="1"] { margin-top: -15px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="2"] { margin-top: -30px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="3"] { margin-top: -45px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="4"] { margin-top: -60px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="5"] { margin-top: -75px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="6"] { margin-top: -90px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="7"] { margin-top: -105px; } + .gkIsWrapper-gk_musicstate .gkIsPagination[data-count="8"] { margin-top: -120px; } + + .gkIsWrapper-gk_musicstate .gkIsPagination li { + height: 28px; + } + .gkIsWrapper-gk_musicstate .gkIsPagination li > small { + font-size: 14px; + height: 28px; + line-height: 29px; + } +} + +/* Mobile */ +@media (max-width: 580px) { + .gkIsWrapper-gk_musicstate figcaption { + margin: -41px 0 0 0; + padding: 0 0 0 32px; + } + .gkIsWrapper-gk_musicstate figcaption > h2 { + font-size: 18px; + line-height: 18px; + } + .gkIsWrapper-gk_musicstate figcaption > p { + font-size: 20px; + line-height: 10px; + position: relative; + top: 4px; + } + .gkIsWrapper-gk_musicstate figcaption > a { + font-size: 12px; + } + .gkIsWrapper-gk_musicstate .gkIsPagination { + display: none; + } +} \ No newline at end of file diff --git a/mod_image_show_gk4/styles/gk_musicstate/view.php b/mod_image_show_gk4/styles/gk_musicstate/view.php new file mode 100644 index 0000000..6b090e2 --- /dev/null +++ b/mod_image_show_gk4/styles/gk_musicstate/view.php @@ -0,0 +1,98 @@ +config['image_show_data']); $i++) { + if($this->config['image_show_data'][$i]->published) { + $data_count++; + } +} + +?> + +
+
Loading…
+ + + config['image_show_data']); $i++) : ?> + config['image_show_data'][$i]->published) : ?> + config['generate_thumbnails'] == 1) { + $path = $uri->root().'modules/mod_image_show_gk4/cache/'.GKIS_MusicState_Image::translateName($this->config['image_show_data'][$i]->image, $this->config['module_id']); + } else { + $path = $this->config['image_show_data'][$i]->image; + } + $content = ''; + + if($this->config['image_show_data'][$i]->type == "k2"){ + if(isset($this->articlesK2[$this->config['image_show_data'][$i]->artK2_id])) { + $title = htmlspecialchars($this->articlesK2[$this->config['image_show_data'][$i]->artK2_id]["title"]); + $content = $title; + $link = $this->articlesK2[$this->config['image_show_data'][$i]->artK2_id]["link"]; + } else { + $title = 'Selected article doesn\'t exist!'; + $content = $title; + $link = '#'; + } + } else { + // creating slide title + $title = htmlspecialchars(($this->config['image_show_data'][$i]->type == "text") ? $this->config['image_show_data'][$i]->name : $this->articles[$this->config['image_show_data'][$i]->art_id]["title"]); + // creating slie content + $content = ($this->config['image_show_data'][$i]->type == "text") ? $this->config['image_show_data'][$i]->content : $title; + // creating slide link + $link = ($this->config['image_show_data'][$i]->type == "text") ? $this->config['image_show_data'][$i]->url : $this->articles[$this->config['image_show_data'][$i]->art_id]["link"]; + } + ?> +
+ config['config']->gk_musicstate->gk_musicstate_show_title_block && $title != '') : ?> + > +

+

+ + + +
+ + + +
    + config['image_show_data']); $i++) : ?> + config['image_show_data'][$i]->published) : ?> + config['image_show_data'][$i]->type == "k2"){ + if(isset($this->articlesK2[$this->config['image_show_data'][$i]->artK2_id])) { + $title = htmlspecialchars($this->articlesK2[$this->config['image_show_data'][$i]->artK2_id]["title"]); + } else { + $title = 'Selected article doesn\'t exist!'; + } + } else { + // creating slide title + $title = htmlspecialchars(($this->config['image_show_data'][$i]->type == "text") ? $this->config['image_show_data'][$i]->name : $this->articles[$this->config['image_show_data'][$i]->art_id]["title"]); + } + ?> + class="active"> + + +
+
\ No newline at end of file