/sites/all/modules/art_revolution/value.php
PHP | 347 lines | 340 code | 7 blank | 0 comment | 2 complexity | 2468256912959b0cd5032c7fc4f3b524 MD5 | raw file
- <?php
- $wrapper = file_stream_wrapper_get_instance_by_uri('public://');
- $realpath = $wrapper->realpath();
- $path = $wrapper->getDirectoryPath() . "/";
- if (!defined('REVOLUTION_PUBLIC_PATH')) {
- define('REVOLUTION_PUBLIC_PATH', $path);
- }
- if (!defined('REVOLUTION_PUBLIC_PATH_FULL')) {
- define('REVOLUTION_PUBLIC_PATH_FULL', $realpath);
- }
- $datatransition = array(
- '3dcurtain-horizontal' => '3D Curtain Horizontal',
- '3dcurtain-vertical' => '3D Curtain Vertical',
- 'cube-horizontal' => 'Cube Horizontal',
- 'cube' => 'Cube Vertical',
- 'curtain-1' => 'Curtain from Left',
- 'curtain-3' => 'Curtain from Middle',
- 'curtain-2' => 'Curtain from Right',
- 'fade' => 'Fade',
- 'boxfade' => 'Fade Boxes',
- 'slotfade-horizontal' => 'Fade Slots Horizontal',
- 'slotfade-vertical' => 'Fade Slots Vertical',
- 'fadetobottomfadefromtop' => 'Fade To Bottom and Fade From Top',
- 'fadetoleftfadefromright' => 'Fade To Left and Fade From Right',
- 'fadetorightfadefromleft' => 'Fade To Right and Fade From Left',
- 'fadetotopfadefrombottom' => 'Fade To Top and Fade From Bottom',
- 'fadefrombottom' => 'Fade and Slide from Bottom',
- 'fadefromleft' => 'Fade and Slide from Left',
- 'fadefromright' => 'Fade and Slide from Right',
- 'fadefromtop' => 'Fade and Slide from Top',
- 'flyin' => 'Fly In',
- 'incube-horizontal' => 'In Cube Horizontal',
- 'incube' => 'In Cube Vertical',
- 'papercut' => 'Paper Cut',
- 'parallaxtobottom' => 'Parallax to Bottom',
- 'parallaxtoleft' => 'Parallax to Left',
- 'parallaxtoright' => 'Parallax to Right',
- 'parallaxtotop' => 'Parallax to Top',
- 'random-static' => 'Random Flat',
- 'random' => 'Random Flat and Premium',
- 'random-premium' => 'Random Premium',
- 'boxslide' => 'Slide Boxes',
- 'slidehorizontal' => 'Slide Horizontal',
- 'slotslide-horizontal' => 'Slide Slots Horizontal',
- 'slotslide-vertical' => 'Slide Slots Vertical',
- 'slidedown' => 'Slide To Bottom',
- 'slideleft' => 'Slide To Left',
- 'slideright' => 'Slide To Right',
- 'slideup' => 'Slide To Top',
- 'slidevertical' => 'Slide Vertical',
- 'turnoff' => 'TurnOff Horizontal',
- 'turnoff-vertical' => 'TurnOff Vertical',
- 'scaledownfrombottom' => 'Zoom Out and Fade From Bottom',
- 'scaledownfromleft' => 'Zoom Out and Fade From Left',
- 'scaledownfromright' => 'Zoom Out and Fade From Right',
- 'scaledownfromtop' => 'Zoom Out and Fade From Top',
- 'slotzoom-horizontal' => 'Zoom Slots Horizontal',
- 'slotzoom-vertical' => 'Zoom Slots Vertical',
- 'zoomin' => 'ZoomIn',
- 'zoomout' => 'ZoomOut');
- $dataeasing = array(
- 'Linear.easeNone' => 'Linear.easeNone',
- 'Power0.easeIn' => 'Power0.easeIn',
- 'Power0.easeInOut' => 'Power0.easeInOut',
- 'Power0.easeOut' => 'Power0.easeOut',
- 'Power1.easeIn' => 'Power1.easeIn',
- 'Power1.easeInOut' => 'Power1.easeInOut',
- 'Power1.easeOut' => 'Power1.easeOut',
- 'Power2.easeIn' => 'Power2.easeIn',
- 'Power2.easeInOut' => 'Power2.easeInOut',
- 'Power2.easeOut' => 'Power2.easeOut',
- 'Power3.easeIn' => 'Power3.easeIn',
- 'Power3.easeInOut' => 'Power3.easeInOut',
- 'Power3.easeOut' => 'Power3.easeOut',
- 'Power4.easeIn' => 'Power4.easeIn',
- 'Power4.easeInOut' => 'Power4.easeInOut',
- 'Power4.easeOut' => 'Power4.easeOut',
- 'Quad.easeIn' => 'Quad.easeIn',
- 'Quad.easeInOut' => 'Quad.easeInOut',
- 'Quad.easeOut' => 'Quad.easeOut',
- 'Cubic.easeIn' => 'Cubic.easeIn',
- 'Cubic.easeInOut' => 'Cubic.easeInOut',
- 'Cubic.easeOut' => 'Cubic.easeOut',
- 'Quart.easeIn' => 'Quart.easeIn',
- 'Quart.easeInOut' => 'Quart.easeInOut',
- 'Quart.easeOut' => 'Quart.easeOut',
- 'Quint.easeIn' => 'Quint.easeIn',
- 'Quint.easeInOut' => 'Quint.easeInOut',
- 'Quint.easeOut' => 'Quint.easeOut',
- 'Strong.easeIn' => 'Strong.easeIn',
- 'Strong.easeInOut' => 'Strong.easeInOut',
- 'Strong.easeOut' => 'Strong.easeOut',
- 'Back.easeIn' => 'Back.easeIn',
- 'Back.easeInOut' => 'Back.easeInOut',
- 'Back.easeOut' => 'Back.easeOut',
- 'Bounce.easeIn' => 'Bounce.easeIn',
- 'Bounce.easeInOut' => 'Bounce.easeInOut',
- 'Bounce.easeOut' => 'Bounce.easeOut',
- 'Circ.easeIn' => 'Circ.easeIn',
- 'Circ.easeInOut' => 'Circ.easeInOut',
- 'Circ.easeOut' => 'Circ.easeOut',
- 'Elastic.easeIn' => 'Elastic.easeIn',
- 'Elastic.easeInOut' => 'Elastic.easeInOut',
- 'Elastic.easeOut' => 'Elastic.easeOut',
- 'Expo.easeIn' => 'Expo.easeIn',
- 'Expo.easeInOut' => 'Expo.easeInOut',
- 'Expo.easeOut' => 'Expo.easeOut',
- 'Sine.easeIn' => 'Sine.easeIn',
- 'Sine.easeInOut' => 'Sine.easeInOut',
- 'Sine.easeOut' => 'Sine.easeOut',
- 'SlowMo.ease' => 'SlowMo.ease',
- 'easeOutBack' => 'easeOutBack',
- 'easeInQuad' => 'easeInQuad',
- 'easeOutQuad' => 'easeOutQuad',
- 'easeInOutQuad' => 'easeInOutQuad',
- 'easeInCubic' => 'easeInCubic',
- 'easeOutCubic' => 'easeOutCubic',
- 'easeInOutCubic' => 'easeInOutCubic',
- 'easeInQuart' => 'easeInQuart',
- 'easeOutQuart' => 'easeOutQuart',
- 'easeInOutQuart' => 'easeInOutQuart',
- 'easeInQuint' => 'easeInQuint',
- 'easeOutQuint' => 'easeOutQuint',
- 'easeInOutQuint' => 'easeInOutQuint',
- 'easeInSine' => 'easeInSine',
- 'easeOutSine' => 'easeOutSine',
- 'easeInOutSine' => 'easeInOutSine',
- 'easeInExpo' => 'easeInExpo',
- 'easeOutExpo' => 'easeOutExpo',
- 'easeInOutExpo' => 'easeInOutExpo',
- 'easeInCirc' => 'easeInCirc',
- 'easeOutCirc' => 'easeOutCirc',
- 'easeInOutCirc' => 'easeInOutCirc',
- 'easeInElastic' => 'easeInElastic',
- 'easeOutElastic' => 'easeOutElastic',
- 'easeInOutElastic' => 'easeInOutElastic',
- 'easeInBack' => 'easeInBack',
- 'easeOutBack' => 'easeOutBack',
- 'easeInOutBack' => 'easeInOutBack',
- 'easeInBounce' => 'easeInBounce',
- 'easeOutBounce' => 'easeOutBounce',
- 'easeInOutBounce' => 'easeInOutBounce');
- $dataendeasing = array(
- '' => '-None-',
- 'Linear.easeNone' => 'Linear.easeNone',
- 'Power0.easeIn' => 'Power0.easeIn',
- 'Power0.easeInOut' => 'Power0.easeInOut',
- 'Power0.easeOut' => 'Power0.easeOut',
- 'Power1.easeIn' => 'Power1.easeIn',
- 'Power1.easeInOut' => 'Power1.easeInOut',
- 'Power1.easeOut' => 'Power1.easeOut',
- 'Power2.easeIn' => 'Power2.easeIn',
- 'Power2.easeInOut' => 'Power2.easeInOut',
- 'Power2.easeOut' => 'Power2.easeOut',
- 'Power3.easeIn' => 'Power3.easeIn',
- 'Power3.easeInOut' => 'Power3.easeInOut',
- 'Power3.easeOut' => 'Power3.easeOut',
- 'Power4.easeIn' => 'Power4.easeIn',
- 'Power4.easeInOut' => 'Power4.easeInOut',
- 'Power4.easeOut' => 'Power4.easeOut',
- 'Quad.easeIn' => 'Quad.easeIn',
- 'Quad.easeInOut' => 'Quad.easeInOut',
- 'Quad.easeOut' => 'Quad.easeOut',
- 'Cubic.easeIn' => 'Cubic.easeIn',
- 'Cubic.easeInOut' => 'Cubic.easeInOut',
- 'Cubic.easeOut' => 'Cubic.easeOut',
- 'Quart.easeIn' => 'Quart.easeIn',
- 'Quart.easeInOut' => 'Quart.easeInOut',
- 'Quart.easeOut' => 'Quart.easeOut',
- 'Quint.easeIn' => 'Quint.easeIn',
- 'Quint.easeInOut' => 'Quint.easeInOut',
- 'Quint.easeOut' => 'Quint.easeOut',
- 'Strong.easeIn' => 'Strong.easeIn',
- 'Strong.easeInOut' => 'Strong.easeInOut',
- 'Strong.easeOut' => 'Strong.easeOut',
- 'Back.easeIn' => 'Back.easeIn',
- 'Back.easeInOut' => 'Back.easeInOut',
- 'Back.easeOut' => 'Back.easeOut',
- 'Bounce.easeIn' => 'Bounce.easeIn',
- 'Bounce.easeInOut' => 'Bounce.easeInOut',
- 'Bounce.easeOut' => 'Bounce.easeOut',
- 'Circ.easeIn' => 'Circ.easeIn',
- 'Circ.easeInOut' => 'Circ.easeInOut',
- 'Circ.easeOut' => 'Circ.easeOut',
- 'Elastic.easeIn' => 'Elastic.easeIn',
- 'Elastic.easeInOut' => 'Elastic.easeInOut',
- 'Elastic.easeOut' => 'Elastic.easeOut',
- 'Expo.easeIn' => 'Expo.easeIn',
- 'Expo.easeInOut' => 'Expo.easeInOut',
- 'Expo.easeOut' => 'Expo.easeOut',
- 'Sine.easeIn' => 'Sine.easeIn',
- 'Sine.easeInOut' => 'Sine.easeInOut',
- 'Sine.easeOut' => 'Sine.easeOut',
- 'SlowMo.ease' => 'SlowMo.ease',
- 'easeOutBack' => 'easeOutBack',
- 'easeInQuad' => 'easeInQuad',
- 'easeOutQuad' => 'easeOutQuad',
- 'easeInOutQuad' => 'easeInOutQuad',
- 'easeInCubic' => 'easeInCubic',
- 'easeOutCubic' => 'easeOutCubic',
- 'easeInOutCubic' => 'easeInOutCubic',
- 'easeInQuart' => 'easeInQuart',
- 'easeOutQuart' => 'easeOutQuart',
- 'easeInOutQuart' => 'easeInOutQuart',
- 'easeInQuint' => 'easeInQuint',
- 'easeOutQuint' => 'easeOutQuint',
- 'easeInOutQuint' => 'easeInOutQuint',
- 'easeInSine' => 'easeInSine',
- 'easeOutSine' => 'easeOutSine',
- 'easeInOutSine' => 'easeInOutSine',
- 'easeInExpo' => 'easeInExpo',
- 'easeOutExpo' => 'easeOutExpo',
- 'easeInOutExpo' => 'easeInOutExpo',
- 'easeInCirc' => 'easeInCirc',
- 'easeOutCirc' => 'easeOutCirc',
- 'easeInOutCirc' => 'easeInOutCirc',
- 'easeInElastic' => 'easeInElastic',
- 'easeOutElastic' => 'easeOutElastic',
- 'easeInOutElastic' => 'easeInOutElastic',
- 'easeInBack' => 'easeInBack',
- 'easeOutBack' => 'easeOutBack',
- 'easeInOutBack' => 'easeInOutBack',
- 'easeInBounce' => 'easeInBounce',
- 'easeOutBounce' => 'easeOutBounce',
- 'easeInOutBounce' => 'easeInOutBounce');
- $linktaget = array('_self' => '_self', '_blank' => '_blank');
- $incomingclasse = array(
- 'sft' => 'Short from Top',
- 'sfb' => 'Short from Bottom',
- 'sfr' => 'Short from Right',
- 'sfl' => 'Short from Left',
- 'lft' => 'Long from Top',
- 'lfb' => 'Long from Bottom',
- 'lfr' => 'Long from Right',
- 'lfl' => 'Long from Left',
- 'skewfromleft' => 'Skew from Left',
- 'skewfromright' => 'Skew from Right',
- 'skewfromleftshort' => 'Skew Short from Left',
- 'skewfromrightshort' => 'Skew Short from Right',
- 'fade' => 'fading',
- 'randomrotate' => 'Fade in, Rotate from a Random position and Degree',
- 'customin' => 'Custom Incoming Animation - see below all data settings'
- );
- $outgoingclasses = array(
- '' => '-None-',
- 'stt' => 'Short to Top',
- 'stb' => 'Short to Bottom',
- 'str' => 'Short to Right',
- 'stl' => 'Short to Left',
- 'ltt' => 'Long to Top',
- 'ltb' => 'Long to Bottom',
- 'ltr' => 'Long to Right',
- 'ltl' => 'Long to Left',
- 'skewtoleft' => 'Skew to Left',
- 'skewtoright' => 'Skew to Right',
- 'skewtoleftshort' => 'Skew Short to Left',
- 'skewtorightshort' => 'Skew Short to Right',
- 'fadeout' => 'fading',
- 'randomrotateout' => 'Fade in, Rotate from a Random position and Degree',
- 'customout' => 'Custom Outgoing Animation - see below all data settings'
- );
- $captionclasses = array(
- 'backcorner' => 'backcorner',
- 'backcornertop' => 'backcornertop',
- 'big_dark' => 'big_dark',
- 'boldwide_small_white' => 'boldwide_small_white',
- 'boxshadow' => 'boxshadow',
- 'excerpt' => 'excerpt',
- 'finewide_large_white' => 'finewide_large_white',
- 'finewide_medium_white' => 'finewide_medium_white',
- 'finewide_small_white' => 'finewide_small_white',
- 'finewide_verysmall_white_mw' => 'finewide_verysmall_white_mw',
- 'frontcorner' => 'frontcorner',
- 'frontcornertop' => 'frontcornertop',
- 'grassfloor' => 'grassfloor',
- 'huge_red' => 'huge_red',
- 'huge_thin_yellow' => 'huge_thin_yellow',
- 'large_bg_black' => 'large_bg_black',
- 'large_bold_black' => 'large_bold_black',
- 'large_bold_darkblue' => 'large_bold_darkblue',
- 'large_bold_grey' => 'large_bold_grey',
- 'large_bold_white' => 'large_bold_white',
- 'large_bold_white_25' => 'large_bold_white_25',
- 'large_bolder_white' => 'large_bolder_white',
- 'large_text' => 'large_text',
- 'largeblackbg' => 'largeblackbg',
- 'largegreenbg' => 'largegreenbg',
- 'largepinkbg' => 'largepinkbg',
- 'largewhitebg' => 'largewhitebg',
- 'lightgrey_divider' => 'lightgrey_divider',
- 'medium_bg_asbestos' => 'medium_bg_asbestos',
- 'medium_bg_darkblue' => 'medium_bg_darkblue',
- 'medium_bg_orange' => 'medium_bg_orange',
- 'medium_bg_orange_new1' => 'medium_bg_orange_new1',
- 'medium_bg_red' => 'medium_bg_red',
- 'medium_bold_grey' => 'medium_bold_grey',
- 'medium_bold_orange' => 'medium_bold_orange',
- 'medium_bold_red' => 'medium_bold_red',
- 'medium_dark' => 'medium_dark',
- 'medium_grey' => 'medium_grey',
- 'medium_light_black' => 'medium_light_black',
- 'medium_light_red' => 'medium_light_red',
- 'medium_light_white' => 'medium_light_white',
- 'medium_text' => 'medium_text',
- 'medium_text_shadow' => 'medium_text_shadow',
- 'medium_thin_grey' => 'medium_thin_grey',
- 'mediumlarge_light_darkblue' => 'mediumlarge_light_darkblue',
- 'mediumlarge_light_white' => 'mediumlarge_light_white',
- 'mediumlarge_light_white_center' => 'mediumlarge_light_white_center',
- 'mediumwhitebg' => 'mediumwhitebg',
- 'middle_yellow' => 'middle_yellow',
- 'modern_big_bluebg' => 'modern_big_bluebg',
- 'modern_big_redbg' => 'modern_big_redbg',
- 'modern_medium_fat' => 'modern_medium_fat',
- 'modern_medium_fat_white' => 'modern_medium_fat_white',
- 'modern_medium_light' => 'modern_medium_light',
- 'modern_small_text_dark' => 'modern_small_text_dark',
- 'noshadow' => 'noshadow',
- 'roundedimage' => 'roundedimage',
- 'small_light_white' => 'small_light_white',
- 'small_text' => 'small_text',
- 'small_thin_grey' => 'small_thin_grey',
- 'smoothcircle' => 'smoothcircle',
- 'text' => 'text',
- 'thinheadline_dark' => 'thinheadline_dark',
- 'thintext_dark' => 'thintext_dark',
- 'very_big_black' => 'very_big_black',
- 'very_big_white' => 'very_big_white',
- 'very_large_text' => 'very_large_text',
- 'whitedivider3px' => 'whitedivider3px',
- 'whitedivider3px_vertical' => 'whitedivider3px_vertical',
- );
- function art_revolution_select($name, $options, $class = null) {
- $html = '<select name="' . $name . '" class="form-select ' . $class . '">';
- foreach ($options as $key => $option) {
- $html .= '<option value="' . $key . '">' . $option . '</option>';
- }
- $html .= '</select>';
- return $html;
- }