get('Name')!='Longform' ) { // do not add quote filter for Longform theme add_action('aesop_quote_inside_top',array($this,'revealfx_quote'),10,2); } add_action('aesop_video_inside_top',array($this,'revealfx_video'),10,2); add_action('aesop_cbox_inside_top',array($this,'revealfx_content'),10,2); add_action('aesop_character_inside_top',array($this,'revealfx_character'),10,2); add_action('aesop_gallery_inside_top',array($this,'revealfx_gallery'),10,4); add_action('aesop_parallax_inside_top',array($this,'revealfx_parallax'),10,2); add_action('aesop_collection_inside_top',array($this,'revealfx_collection'),10,2); add_filter( 'aesop_avail_components', array( $this, 'options' ) ); } public function revealfx_image($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('image', $atts, $unique); } } public function revealfx_video($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('video', $atts, $unique); } } public function revealfx_quote($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('quote', $atts, $unique); } } public function revealfx_content($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('content', $atts, $unique); } } public function revealfx_character($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('character', $atts, $unique); } } public function revealfx_parallax($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('parallax', $atts, $unique); } } public function revealfx_chapter($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('chapter', $atts, $unique); } } public function revealfx_gallery($type, $gallery_id, $atts, $unique) { if (aesop_revealfx_set($atts) && $type != "stacked") { aesop_scroll_reveal_animation_gallery($type, $atts, $unique); } } public function revealfx_collection($atts, $unique) { if (aesop_revealfx_set($atts)) { aesop_scroll_reveal_animation('collection', $atts, $unique); } } public function options( $shortcodes ) { $custom = array( 'type' => 'select', 'values' => array( array( 'value' => 'off', 'name' => __( 'Off', 'aesop-core' ) ), array( 'value' => 'inplace', 'name' => __( 'In Place', 'aesop-core' ) ), array( 'value' => 'inplaceslow', 'name' => __( 'In Place Slow', 'aesop-core' ) ), array( 'value' => 'frombelow', 'name' => __( 'From Below', 'aesop-core' ) ), array( 'value' => 'fromleft', 'name' => __( 'From Left', 'aesop-core' ) ), array( 'value' => 'fromright', 'name' => __( 'From Right', 'aesop-core' ) ) ), 'default' => 'off', 'desc' => __( 'Reveal Effect', 'aesop-core' ), 'tip' => __( 'Animation effect when the component is revealed.', 'aesop-core' ) ); $shortcodes['image']['atts']['revealfx'] = $custom ; $shortcodes['chapter']['atts']['revealfx'] = $custom ; $shortcodes['quote']['atts']['revealfx'] = $custom ; $shortcodes['video']['atts']['revealfx'] = $custom ; $shortcodes['content']['atts']['revealfx'] = $custom ; $shortcodes['character']['atts']['revealfx'] = $custom ; $shortcodes['collection']['atts']['revealfx'] = $custom ; $custom['tip'] = __( 'Animation effect when the component is revealed. Not applied to Parallax Gallery', 'aesop-core' ); $shortcodes['gallery']['atts']['revealfx'] = $custom ; $custom['desc']=__( 'Overlay Reveal Effect', 'aesop-core' ); $custom['tip']=__( 'Reveal animation effect for the overlay content.', 'aesop-core' ); $shortcodes['image']['atts']['overlay_revealfx'] = $custom ; $shortcodes['chapter']['atts']['overlay_revealfx'] = $custom ; $shortcodes['video']['atts']['overlay_revealfx'] = $custom ; $custom['desc']=__( 'Floater Reveal Effect', 'aesop-core' ); $custom['tip']=__( 'Reveal animation effect for the floater.', 'aesop-core' ); $shortcodes['parallax']['atts']['overlay_revealfx'] = $custom; $custom['desc']=__( 'Content Reveal Effect', 'aesop-core' ); $custom['tip']=__( 'Reveal animation effect for the content.', 'aesop-core' ); $shortcodes['content']['atts']['overlay_revealfx'] = $custom ; $custom['tip']=__( 'Reveal animation effect for the overlay content. Only applied to Hero Gallery', 'aesop-core' ); $shortcodes['gallery']['atts']['overlay_revealfx'] = $custom ; return $shortcodes; } } new AesopRevealAnim;