/modules/mod_gk_news_image_1/css/style.php

https://github.com/shafiqissani/Jewelery-Ecommerce- · PHP · 262 lines · 164 code · 41 blank · 57 comment · 39 complexity · 4ae2bc3ce7987d052e76122a17b7d17b MD5 · raw file

  1. <?php
  2. /**
  3. * Gavick News Image I
  4. * @package Joomla!
  5. * @Copyright (C) 2008-2009 Gavick.com
  6. * @ All rights reserved
  7. * @ Joomla! is Free Software
  8. * @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
  9. * @version $Revision: 2.2 $
  10. **/
  11. // access restriction for this file haven't any sense
  12. /*
  13. This file generate CSS file for specified in $_GET variables module
  14. */
  15. // $outter_interface,
  16. // $outter_interface_width,
  17. // set document type as text/javascript
  18. header("Content-Type: text/css");
  19. //
  20. $suffix = $_GET['modid'];
  21. $text_overlay_bgcolor = ($_GET['text_block_background'] == 0) ? '#'.$_GET['text_block_bgcolor'] : '#'.$_GET['base_bgcolor'];
  22. $text_block_width = ($_GET['text_block_width'] == 0) ? $_GET['slide_width'] : $_GET['text_block_width'];
  23. $text_block_height = $_GET['module_height'] - (($_GET['thumbnail_bar'] == 1) ? (($_GET['thumbnail_height'] + (2*$_GET['thumbnail_margin']))):0);
  24. $text_block_top = ($_GET['thumbnail_bar_position'] == 0 && $_GET['thumbnail_bar'] == 1) ? $_GET['thumbnail_height'] + (2*($_GET['thumbnail_margin'])) : 0;
  25. $th_height = $_GET['thumbnail_height'] + (2*($_GET['thumbnail_margin'])+(2*($_GET['thumbnail_border'])));
  26. ?>
  27. #gk_news_image_1-<?php echo $suffix; ?>{
  28. overflow: hidden;
  29. border: none;
  30. position: relative;
  31. width: <?php echo $_GET['module_width'] + (($_GET['outter_interface'] == 1) ? $_GET['outter_interface_width'] : 0) + 2 * $_GET['wrapper_border']; ?>px;
  32. height: <?php echo $_GET['module_height'] + 2 * $_GET['wrapper_border']; ?>px;
  33. background-color: <?php echo ($_GET['base_bgcolor'] == 'transparent') ? 'transparent' : '#'.$_GET['base_bgcolor']; ?>;
  34. }
  35. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_main_wrapper{
  36. overflow: hidden;
  37. width: <?php echo $_GET['module_width']; ?>px;
  38. height: <?php echo $_GET['module_height']; ?>px;
  39. float: right;
  40. position: relative;
  41. <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>
  42. }
  43. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_outter_wrapper{
  44. overflow: hidden;
  45. width: <?php echo $outter_interface_width;?>px;
  46. height: <?php echo $_GET['module_height']; ?>px;
  47. float: left;
  48. }
  49. #gk_news_image_1-<?php echo $suffix; ?> .gk_news_image_1_slide{
  50. top: <?php echo $_GET['image_y']; ?>px;
  51. left: <?php echo $_GET['image_x']; ?>px;
  52. position: absolute;
  53. display: block;
  54. }
  55. #gk_news_image_1-<?php echo $suffix; ?> h2{
  56. margin-bottom: 15px;
  57. }
  58. #gk_news_image_1-<?php echo $suffix; ?> h2 a{
  59. font:normal 28px Geneva, Arial, Helvetica, sans-serif;
  60. text-decoration: none;
  61. }
  62. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_text_datas{
  63. display: none;
  64. }
  65. #gk_news_image_1-<?php echo $suffix; ?> .gk_news_image_1_text_bg{
  66. <?php if($_GET['text_block_position'] == 1) : ?>
  67. padding-right: 10px;
  68. padding-left: 10px;
  69. <?php endif; ?>
  70. <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>
  71. <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
  72. position: absolute;
  73. <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $_GET['image_y']; ?>px;<?php endif; ?>
  74. <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>
  75. <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>
  76. background-color: <?php echo $text_overlay_bgcolor;?>;
  77. opacity: <?php echo $_GET['text_block_opacity']; ?>;
  78. }
  79. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_text{
  80. <?php if($_GET['text_block_position'] == 1) : ?>padding: 10px;<?php endif; ?>
  81. overflow: hidden;
  82. <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>
  83. <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
  84. <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>
  85. position: absolute;
  86. <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>
  87. }
  88. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_prev,
  89. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_next,
  90. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_play,
  91. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_pause{
  92. background: transparent url('../images/buttons.png') no-repeat;
  93. display: block;
  94. float: left;
  95. width: 21px;
  96. height: 21px;
  97. margin-left: 2px;
  98. }
  99. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_prev{
  100. background-position: -21px 0;
  101. }
  102. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_play{
  103. background-position: -42px 0;
  104. }
  105. #gk_news_image_1-<?php echo $suffix; ?> a.gk_news_image_1_pause{
  106. background-position: -63px 0;
  107. }
  108. #gk_news_image_1-<?php echo $suffix; ?> a:hover.gk_news_image_1_next{
  109. background-position: 0 100%;
  110. }
  111. #gk_news_image_1-<?php echo $suffix; ?> a:hover.gk_news_image_1_prev{
  112. background-position: -21px 100%;
  113. }
  114. #gk_news_image_1-<?php echo $suffix; ?> a:hover.gk_news_image_1_play{
  115. background-position: -42px 100%;
  116. }
  117. #gk_news_image_1-<?php echo $suffix; ?> a:hover.gk_news_image_1_pause{
  118. background-position: -63px 100%;
  119. }
  120. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_prev,
  121. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_next{
  122. background: #FFF;
  123. }
  124. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_prev{
  125. background: transparent url('../images/s_prev.png') no-repeat 0 50%;
  126. float: left;
  127. width: 20px;
  128. height: <?php echo $th_height; ?>px;
  129. }
  130. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_next{
  131. background: transparent url('../images/s_next.png') no-repeat 100% 50%;
  132. float:left;
  133. width:20px;
  134. height: <?php echo $th_height; ?>px;
  135. }
  136. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_prev:hover{
  137. background: transparent url('../images/s_prev-h.png') no-repeat 0 50%;
  138. }
  139. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb_next:hover{
  140. background: transparent url('../images/s_next-h.png') no-repeat 100% 50%;
  141. }
  142. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_tb{
  143. overflow: hidden;
  144. float: left;
  145. height: <?php echo $th_height; ?>px;
  146. width: <?php echo ($text_block_width-40); ?>px;
  147. }
  148. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_thumbnails{
  149. bottom: 100px;
  150. margin-left: 10px;
  151. width: <?php echo $text_block_width; ?>px;
  152. height: <?php echo $th_height; ?>px;
  153. position: absolute;
  154. left: <?php echo $_GET['text_block_margin']; ?>px;
  155. top: <?php echo (($text_block_top == 0) ? $text_block_height - 12 : 0 ); ?>px;
  156. }
  157. #gk_news_image_1-<?php echo $suffix; ?> .gk_news_image_1_thumb{
  158. margin: <?php echo $_GET['thumbnail_margin']; ?>px;
  159. border: <?php echo $_GET['thumbnail_border']; ?>px solid #<?php echo $_GET['thumbnail_border_color_inactive'];?>;
  160. width: <?php echo $_GET['thumbnail_width']; ?>px;
  161. height: <?php echo $_GET['thumbnail_height']; ?>px;
  162. float: left;
  163. display:block;
  164. }
  165. #gk_news_image_1-<?php echo $suffix; ?> .gk_news_image_1_tbo{
  166. width: <?php echo ((($_GET['slides_count'] * (($_GET['thumbnail_width'] + (2 * $_GET['thumbnail_margin']) + (2 * $_GET['thumbnail_border'])))) + $_GET['slides_count'])); ?>px;
  167. }
  168. #gk_news_image_1-<?php echo $suffix; ?> .gk_news_image_1_interface_buttons{
  169. position:absolute;
  170. bottom: <?php echo $_GET['interface_y']; ?>px;
  171. right: <?php echo $_GET['interface_x']; ?>px;
  172. }
  173. #gk_news_image_1-<?php echo $suffix; ?> ul.gk_news_image_1_tick_buttons{
  174. position: absolute;
  175. list-style-type: none;
  176. top: <?php echo $_GET['tick_y']; ?>px;
  177. left: <?php echo $_GET['tick_x']; ?>px;
  178. margin: 0px;
  179. padding: 0px;
  180. }
  181. #gk_news_image_1-<?php echo $suffix; ?> ul.gk_news_image_1_tick_buttons li{
  182. float: left;
  183. padding: 0px !important;
  184. margin-right: 3px;
  185. }
  186. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_preloader{
  187. position: absolute;
  188. width: <?php echo $_GET['module_width'] + (($_GET['outter_interface'] == 1) ? $_GET['outter_interface_width'] : 0) + 2 * $_GET['wrapper_border']; ?>px;
  189. height: <?php echo $_GET['module_height']+ 2 * $_GET['wrapper_border']; ?>px;
  190. background: url('../images/load.gif') no-repeat center center #000;
  191. }
  192. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_outter_wrapper ul.gk_news_image_1_tick_buttons{
  193. position: static;
  194. }
  195. #gk_news_image_1-<?php echo $suffix; ?> ul.gk_news_image_1_tick_buttons li{
  196. display: block;
  197. width: 16px;
  198. height: 16px;
  199. background: url('../images/tick.png') no-repeat 0 0;
  200. text-indent: -999em;
  201. cursor: pointer;
  202. }
  203. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_outter_wrapper ul.gk_news_image_1_tick_buttons li{
  204. float: none;
  205. cursor: pointer;
  206. margin-bottom: 5px;
  207. }
  208. #gk_news_image_1-<?php echo $suffix; ?> ul.gk_news_image_1_tick_buttons li.active,
  209. #gk_news_image_1-<?php echo $suffix; ?> div.gk_news_image_1_outter_wrapper ul.gk_news_image_1_tick_buttons li.active{
  210. background: url('../images/tick_active.png') no-repeat 0 0;
  211. cursor: pointer;
  212. }
  213. #gk_news_image_1-<?php echo $suffix; ?> div.outter_readmore{
  214. width: 24px;
  215. height: 21px;
  216. position: absolute;
  217. bottom: 0px;
  218. background: url('../images/readmore.png') no-repeat 0 0;
  219. text-indent: -999em;
  220. cursor: pointer;
  221. }