PageRenderTime 23ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/sites/all/modules/art_revolution/value.php

https://gitlab.com/manuvelasco/agostoliquida
PHP | 347 lines | 340 code | 7 blank | 0 comment | 2 complexity | 2468256912959b0cd5032c7fc4f3b524 MD5 | raw file
  1. <?php
  2. $wrapper = file_stream_wrapper_get_instance_by_uri('public://');
  3. $realpath = $wrapper->realpath();
  4. $path = $wrapper->getDirectoryPath() . "/";
  5. if (!defined('REVOLUTION_PUBLIC_PATH')) {
  6. define('REVOLUTION_PUBLIC_PATH', $path);
  7. }
  8. if (!defined('REVOLUTION_PUBLIC_PATH_FULL')) {
  9. define('REVOLUTION_PUBLIC_PATH_FULL', $realpath);
  10. }
  11. $datatransition = array(
  12. '3dcurtain-horizontal' => '3D Curtain Horizontal',
  13. '3dcurtain-vertical' => '3D Curtain Vertical',
  14. 'cube-horizontal' => 'Cube Horizontal',
  15. 'cube' => 'Cube Vertical',
  16. 'curtain-1' => 'Curtain from Left',
  17. 'curtain-3' => 'Curtain from Middle',
  18. 'curtain-2' => 'Curtain from Right',
  19. 'fade' => 'Fade',
  20. 'boxfade' => 'Fade Boxes',
  21. 'slotfade-horizontal' => 'Fade Slots Horizontal',
  22. 'slotfade-vertical' => 'Fade Slots Vertical',
  23. 'fadetobottomfadefromtop' => 'Fade To Bottom and Fade From Top',
  24. 'fadetoleftfadefromright' => 'Fade To Left and Fade From Right',
  25. 'fadetorightfadefromleft' => 'Fade To Right and Fade From Left',
  26. 'fadetotopfadefrombottom' => 'Fade To Top and Fade From Bottom',
  27. 'fadefrombottom' => 'Fade and Slide from Bottom',
  28. 'fadefromleft' => 'Fade and Slide from Left',
  29. 'fadefromright' => 'Fade and Slide from Right',
  30. 'fadefromtop' => 'Fade and Slide from Top',
  31. 'flyin' => 'Fly In',
  32. 'incube-horizontal' => 'In Cube Horizontal',
  33. 'incube' => 'In Cube Vertical',
  34. 'papercut' => 'Paper Cut',
  35. 'parallaxtobottom' => 'Parallax to Bottom',
  36. 'parallaxtoleft' => 'Parallax to Left',
  37. 'parallaxtoright' => 'Parallax to Right',
  38. 'parallaxtotop' => 'Parallax to Top',
  39. 'random-static' => 'Random Flat',
  40. 'random' => 'Random Flat and Premium',
  41. 'random-premium' => 'Random Premium',
  42. 'boxslide' => 'Slide Boxes',
  43. 'slidehorizontal' => 'Slide Horizontal',
  44. 'slotslide-horizontal' => 'Slide Slots Horizontal',
  45. 'slotslide-vertical' => 'Slide Slots Vertical',
  46. 'slidedown' => 'Slide To Bottom',
  47. 'slideleft' => 'Slide To Left',
  48. 'slideright' => 'Slide To Right',
  49. 'slideup' => 'Slide To Top',
  50. 'slidevertical' => 'Slide Vertical',
  51. 'turnoff' => 'TurnOff Horizontal',
  52. 'turnoff-vertical' => 'TurnOff Vertical',
  53. 'scaledownfrombottom' => 'Zoom Out and Fade From Bottom',
  54. 'scaledownfromleft' => 'Zoom Out and Fade From Left',
  55. 'scaledownfromright' => 'Zoom Out and Fade From Right',
  56. 'scaledownfromtop' => 'Zoom Out and Fade From Top',
  57. 'slotzoom-horizontal' => 'Zoom Slots Horizontal',
  58. 'slotzoom-vertical' => 'Zoom Slots Vertical',
  59. 'zoomin' => 'ZoomIn',
  60. 'zoomout' => 'ZoomOut');
  61. $dataeasing = array(
  62. 'Linear.easeNone' => 'Linear.easeNone',
  63. 'Power0.easeIn' => 'Power0.easeIn',
  64. 'Power0.easeInOut' => 'Power0.easeInOut',
  65. 'Power0.easeOut' => 'Power0.easeOut',
  66. 'Power1.easeIn' => 'Power1.easeIn',
  67. 'Power1.easeInOut' => 'Power1.easeInOut',
  68. 'Power1.easeOut' => 'Power1.easeOut',
  69. 'Power2.easeIn' => 'Power2.easeIn',
  70. 'Power2.easeInOut' => 'Power2.easeInOut',
  71. 'Power2.easeOut' => 'Power2.easeOut',
  72. 'Power3.easeIn' => 'Power3.easeIn',
  73. 'Power3.easeInOut' => 'Power3.easeInOut',
  74. 'Power3.easeOut' => 'Power3.easeOut',
  75. 'Power4.easeIn' => 'Power4.easeIn',
  76. 'Power4.easeInOut' => 'Power4.easeInOut',
  77. 'Power4.easeOut' => 'Power4.easeOut',
  78. 'Quad.easeIn' => 'Quad.easeIn',
  79. 'Quad.easeInOut' => 'Quad.easeInOut',
  80. 'Quad.easeOut' => 'Quad.easeOut',
  81. 'Cubic.easeIn' => 'Cubic.easeIn',
  82. 'Cubic.easeInOut' => 'Cubic.easeInOut',
  83. 'Cubic.easeOut' => 'Cubic.easeOut',
  84. 'Quart.easeIn' => 'Quart.easeIn',
  85. 'Quart.easeInOut' => 'Quart.easeInOut',
  86. 'Quart.easeOut' => 'Quart.easeOut',
  87. 'Quint.easeIn' => 'Quint.easeIn',
  88. 'Quint.easeInOut' => 'Quint.easeInOut',
  89. 'Quint.easeOut' => 'Quint.easeOut',
  90. 'Strong.easeIn' => 'Strong.easeIn',
  91. 'Strong.easeInOut' => 'Strong.easeInOut',
  92. 'Strong.easeOut' => 'Strong.easeOut',
  93. 'Back.easeIn' => 'Back.easeIn',
  94. 'Back.easeInOut' => 'Back.easeInOut',
  95. 'Back.easeOut' => 'Back.easeOut',
  96. 'Bounce.easeIn' => 'Bounce.easeIn',
  97. 'Bounce.easeInOut' => 'Bounce.easeInOut',
  98. 'Bounce.easeOut' => 'Bounce.easeOut',
  99. 'Circ.easeIn' => 'Circ.easeIn',
  100. 'Circ.easeInOut' => 'Circ.easeInOut',
  101. 'Circ.easeOut' => 'Circ.easeOut',
  102. 'Elastic.easeIn' => 'Elastic.easeIn',
  103. 'Elastic.easeInOut' => 'Elastic.easeInOut',
  104. 'Elastic.easeOut' => 'Elastic.easeOut',
  105. 'Expo.easeIn' => 'Expo.easeIn',
  106. 'Expo.easeInOut' => 'Expo.easeInOut',
  107. 'Expo.easeOut' => 'Expo.easeOut',
  108. 'Sine.easeIn' => 'Sine.easeIn',
  109. 'Sine.easeInOut' => 'Sine.easeInOut',
  110. 'Sine.easeOut' => 'Sine.easeOut',
  111. 'SlowMo.ease' => 'SlowMo.ease',
  112. 'easeOutBack' => 'easeOutBack',
  113. 'easeInQuad' => 'easeInQuad',
  114. 'easeOutQuad' => 'easeOutQuad',
  115. 'easeInOutQuad' => 'easeInOutQuad',
  116. 'easeInCubic' => 'easeInCubic',
  117. 'easeOutCubic' => 'easeOutCubic',
  118. 'easeInOutCubic' => 'easeInOutCubic',
  119. 'easeInQuart' => 'easeInQuart',
  120. 'easeOutQuart' => 'easeOutQuart',
  121. 'easeInOutQuart' => 'easeInOutQuart',
  122. 'easeInQuint' => 'easeInQuint',
  123. 'easeOutQuint' => 'easeOutQuint',
  124. 'easeInOutQuint' => 'easeInOutQuint',
  125. 'easeInSine' => 'easeInSine',
  126. 'easeOutSine' => 'easeOutSine',
  127. 'easeInOutSine' => 'easeInOutSine',
  128. 'easeInExpo' => 'easeInExpo',
  129. 'easeOutExpo' => 'easeOutExpo',
  130. 'easeInOutExpo' => 'easeInOutExpo',
  131. 'easeInCirc' => 'easeInCirc',
  132. 'easeOutCirc' => 'easeOutCirc',
  133. 'easeInOutCirc' => 'easeInOutCirc',
  134. 'easeInElastic' => 'easeInElastic',
  135. 'easeOutElastic' => 'easeOutElastic',
  136. 'easeInOutElastic' => 'easeInOutElastic',
  137. 'easeInBack' => 'easeInBack',
  138. 'easeOutBack' => 'easeOutBack',
  139. 'easeInOutBack' => 'easeInOutBack',
  140. 'easeInBounce' => 'easeInBounce',
  141. 'easeOutBounce' => 'easeOutBounce',
  142. 'easeInOutBounce' => 'easeInOutBounce');
  143. $dataendeasing = array(
  144. '' => '-None-',
  145. 'Linear.easeNone' => 'Linear.easeNone',
  146. 'Power0.easeIn' => 'Power0.easeIn',
  147. 'Power0.easeInOut' => 'Power0.easeInOut',
  148. 'Power0.easeOut' => 'Power0.easeOut',
  149. 'Power1.easeIn' => 'Power1.easeIn',
  150. 'Power1.easeInOut' => 'Power1.easeInOut',
  151. 'Power1.easeOut' => 'Power1.easeOut',
  152. 'Power2.easeIn' => 'Power2.easeIn',
  153. 'Power2.easeInOut' => 'Power2.easeInOut',
  154. 'Power2.easeOut' => 'Power2.easeOut',
  155. 'Power3.easeIn' => 'Power3.easeIn',
  156. 'Power3.easeInOut' => 'Power3.easeInOut',
  157. 'Power3.easeOut' => 'Power3.easeOut',
  158. 'Power4.easeIn' => 'Power4.easeIn',
  159. 'Power4.easeInOut' => 'Power4.easeInOut',
  160. 'Power4.easeOut' => 'Power4.easeOut',
  161. 'Quad.easeIn' => 'Quad.easeIn',
  162. 'Quad.easeInOut' => 'Quad.easeInOut',
  163. 'Quad.easeOut' => 'Quad.easeOut',
  164. 'Cubic.easeIn' => 'Cubic.easeIn',
  165. 'Cubic.easeInOut' => 'Cubic.easeInOut',
  166. 'Cubic.easeOut' => 'Cubic.easeOut',
  167. 'Quart.easeIn' => 'Quart.easeIn',
  168. 'Quart.easeInOut' => 'Quart.easeInOut',
  169. 'Quart.easeOut' => 'Quart.easeOut',
  170. 'Quint.easeIn' => 'Quint.easeIn',
  171. 'Quint.easeInOut' => 'Quint.easeInOut',
  172. 'Quint.easeOut' => 'Quint.easeOut',
  173. 'Strong.easeIn' => 'Strong.easeIn',
  174. 'Strong.easeInOut' => 'Strong.easeInOut',
  175. 'Strong.easeOut' => 'Strong.easeOut',
  176. 'Back.easeIn' => 'Back.easeIn',
  177. 'Back.easeInOut' => 'Back.easeInOut',
  178. 'Back.easeOut' => 'Back.easeOut',
  179. 'Bounce.easeIn' => 'Bounce.easeIn',
  180. 'Bounce.easeInOut' => 'Bounce.easeInOut',
  181. 'Bounce.easeOut' => 'Bounce.easeOut',
  182. 'Circ.easeIn' => 'Circ.easeIn',
  183. 'Circ.easeInOut' => 'Circ.easeInOut',
  184. 'Circ.easeOut' => 'Circ.easeOut',
  185. 'Elastic.easeIn' => 'Elastic.easeIn',
  186. 'Elastic.easeInOut' => 'Elastic.easeInOut',
  187. 'Elastic.easeOut' => 'Elastic.easeOut',
  188. 'Expo.easeIn' => 'Expo.easeIn',
  189. 'Expo.easeInOut' => 'Expo.easeInOut',
  190. 'Expo.easeOut' => 'Expo.easeOut',
  191. 'Sine.easeIn' => 'Sine.easeIn',
  192. 'Sine.easeInOut' => 'Sine.easeInOut',
  193. 'Sine.easeOut' => 'Sine.easeOut',
  194. 'SlowMo.ease' => 'SlowMo.ease',
  195. 'easeOutBack' => 'easeOutBack',
  196. 'easeInQuad' => 'easeInQuad',
  197. 'easeOutQuad' => 'easeOutQuad',
  198. 'easeInOutQuad' => 'easeInOutQuad',
  199. 'easeInCubic' => 'easeInCubic',
  200. 'easeOutCubic' => 'easeOutCubic',
  201. 'easeInOutCubic' => 'easeInOutCubic',
  202. 'easeInQuart' => 'easeInQuart',
  203. 'easeOutQuart' => 'easeOutQuart',
  204. 'easeInOutQuart' => 'easeInOutQuart',
  205. 'easeInQuint' => 'easeInQuint',
  206. 'easeOutQuint' => 'easeOutQuint',
  207. 'easeInOutQuint' => 'easeInOutQuint',
  208. 'easeInSine' => 'easeInSine',
  209. 'easeOutSine' => 'easeOutSine',
  210. 'easeInOutSine' => 'easeInOutSine',
  211. 'easeInExpo' => 'easeInExpo',
  212. 'easeOutExpo' => 'easeOutExpo',
  213. 'easeInOutExpo' => 'easeInOutExpo',
  214. 'easeInCirc' => 'easeInCirc',
  215. 'easeOutCirc' => 'easeOutCirc',
  216. 'easeInOutCirc' => 'easeInOutCirc',
  217. 'easeInElastic' => 'easeInElastic',
  218. 'easeOutElastic' => 'easeOutElastic',
  219. 'easeInOutElastic' => 'easeInOutElastic',
  220. 'easeInBack' => 'easeInBack',
  221. 'easeOutBack' => 'easeOutBack',
  222. 'easeInOutBack' => 'easeInOutBack',
  223. 'easeInBounce' => 'easeInBounce',
  224. 'easeOutBounce' => 'easeOutBounce',
  225. 'easeInOutBounce' => 'easeInOutBounce');
  226. $linktaget = array('_self' => '_self', '_blank' => '_blank');
  227. $incomingclasse = array(
  228. 'sft' => 'Short from Top',
  229. 'sfb' => 'Short from Bottom',
  230. 'sfr' => 'Short from Right',
  231. 'sfl' => 'Short from Left',
  232. 'lft' => 'Long from Top',
  233. 'lfb' => 'Long from Bottom',
  234. 'lfr' => 'Long from Right',
  235. 'lfl' => 'Long from Left',
  236. 'skewfromleft' => 'Skew from Left',
  237. 'skewfromright' => 'Skew from Right',
  238. 'skewfromleftshort' => 'Skew Short from Left',
  239. 'skewfromrightshort' => 'Skew Short from Right',
  240. 'fade' => 'fading',
  241. 'randomrotate' => 'Fade in, Rotate from a Random position and Degree',
  242. 'customin' => 'Custom Incoming Animation - see below all data settings'
  243. );
  244. $outgoingclasses = array(
  245. '' => '-None-',
  246. 'stt' => 'Short to Top',
  247. 'stb' => 'Short to Bottom',
  248. 'str' => 'Short to Right',
  249. 'stl' => 'Short to Left',
  250. 'ltt' => 'Long to Top',
  251. 'ltb' => 'Long to Bottom',
  252. 'ltr' => 'Long to Right',
  253. 'ltl' => 'Long to Left',
  254. 'skewtoleft' => 'Skew to Left',
  255. 'skewtoright' => 'Skew to Right',
  256. 'skewtoleftshort' => 'Skew Short to Left',
  257. 'skewtorightshort' => 'Skew Short to Right',
  258. 'fadeout' => 'fading',
  259. 'randomrotateout' => 'Fade in, Rotate from a Random position and Degree',
  260. 'customout' => 'Custom Outgoing Animation - see below all data settings'
  261. );
  262. $captionclasses = array(
  263. 'backcorner' => 'backcorner',
  264. 'backcornertop' => 'backcornertop',
  265. 'big_dark' => 'big_dark',
  266. 'boldwide_small_white' => 'boldwide_small_white',
  267. 'boxshadow' => 'boxshadow',
  268. 'excerpt' => 'excerpt',
  269. 'finewide_large_white' => 'finewide_large_white',
  270. 'finewide_medium_white' => 'finewide_medium_white',
  271. 'finewide_small_white' => 'finewide_small_white',
  272. 'finewide_verysmall_white_mw' => 'finewide_verysmall_white_mw',
  273. 'frontcorner' => 'frontcorner',
  274. 'frontcornertop' => 'frontcornertop',
  275. 'grassfloor' => 'grassfloor',
  276. 'huge_red' => 'huge_red',
  277. 'huge_thin_yellow' => 'huge_thin_yellow',
  278. 'large_bg_black' => 'large_bg_black',
  279. 'large_bold_black' => 'large_bold_black',
  280. 'large_bold_darkblue' => 'large_bold_darkblue',
  281. 'large_bold_grey' => 'large_bold_grey',
  282. 'large_bold_white' => 'large_bold_white',
  283. 'large_bold_white_25' => 'large_bold_white_25',
  284. 'large_bolder_white' => 'large_bolder_white',
  285. 'large_text' => 'large_text',
  286. 'largeblackbg' => 'largeblackbg',
  287. 'largegreenbg' => 'largegreenbg',
  288. 'largepinkbg' => 'largepinkbg',
  289. 'largewhitebg' => 'largewhitebg',
  290. 'lightgrey_divider' => 'lightgrey_divider',
  291. 'medium_bg_asbestos' => 'medium_bg_asbestos',
  292. 'medium_bg_darkblue' => 'medium_bg_darkblue',
  293. 'medium_bg_orange' => 'medium_bg_orange',
  294. 'medium_bg_orange_new1' => 'medium_bg_orange_new1',
  295. 'medium_bg_red' => 'medium_bg_red',
  296. 'medium_bold_grey' => 'medium_bold_grey',
  297. 'medium_bold_orange' => 'medium_bold_orange',
  298. 'medium_bold_red' => 'medium_bold_red',
  299. 'medium_dark' => 'medium_dark',
  300. 'medium_grey' => 'medium_grey',
  301. 'medium_light_black' => 'medium_light_black',
  302. 'medium_light_red' => 'medium_light_red',
  303. 'medium_light_white' => 'medium_light_white',
  304. 'medium_text' => 'medium_text',
  305. 'medium_text_shadow' => 'medium_text_shadow',
  306. 'medium_thin_grey' => 'medium_thin_grey',
  307. 'mediumlarge_light_darkblue' => 'mediumlarge_light_darkblue',
  308. 'mediumlarge_light_white' => 'mediumlarge_light_white',
  309. 'mediumlarge_light_white_center' => 'mediumlarge_light_white_center',
  310. 'mediumwhitebg' => 'mediumwhitebg',
  311. 'middle_yellow' => 'middle_yellow',
  312. 'modern_big_bluebg' => 'modern_big_bluebg',
  313. 'modern_big_redbg' => 'modern_big_redbg',
  314. 'modern_medium_fat' => 'modern_medium_fat',
  315. 'modern_medium_fat_white' => 'modern_medium_fat_white',
  316. 'modern_medium_light' => 'modern_medium_light',
  317. 'modern_small_text_dark' => 'modern_small_text_dark',
  318. 'noshadow' => 'noshadow',
  319. 'roundedimage' => 'roundedimage',
  320. 'small_light_white' => 'small_light_white',
  321. 'small_text' => 'small_text',
  322. 'small_thin_grey' => 'small_thin_grey',
  323. 'smoothcircle' => 'smoothcircle',
  324. 'text' => 'text',
  325. 'thinheadline_dark' => 'thinheadline_dark',
  326. 'thintext_dark' => 'thintext_dark',
  327. 'very_big_black' => 'very_big_black',
  328. 'very_big_white' => 'very_big_white',
  329. 'very_large_text' => 'very_large_text',
  330. 'whitedivider3px' => 'whitedivider3px',
  331. 'whitedivider3px_vertical' => 'whitedivider3px_vertical',
  332. );
  333. function art_revolution_select($name, $options, $class = null) {
  334. $html = '<select name="' . $name . '" class="form-select ' . $class . '">';
  335. foreach ($options as $key => $option) {
  336. $html .= '<option value="' . $key . '">' . $option . '</option>';
  337. }
  338. $html .= '</select>';
  339. return $html;
  340. }