????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.221 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/plugins/cornerstone/includes/shortcodes/ |
Upload File : |
<?php // Creative CTA // ============================================================================= function x_shortcode_creative_cta( $atts ) { // 1 extract( shortcode_atts( array( 'id' => '', 'class' => '', 'style' => '', 'padding' => '', 'text' => '', 'font_size' => '', 'icon' => '', 'icon_size' => '', 'image' => '', 'image_width' => '', 'animation' => '', 'link' => '', 'target' => '', 'color' => '', 'bg_color' => '', 'bg_color_hover' => '' ), $atts, 'x_creative_cta' ) ); $id = ( $id != '' ) ? 'id="' . esc_attr( $id ) . '"' : ''; $class = ( $class != '' ) ? 'x-creative-cta ' . esc_attr( $class ) : 'x-creative-cta'; $style = ( $style != '' ) ? ' ' . $style : ''; $padding = ( $padding != '' ) ? $padding : '35px'; $text = ( $text != '' ) ? cs_decode_shortcode_attribute( $text ) : 'Place Your<br>Text Here'; $font_size = ( $font_size != '' ) ? $font_size : '36px'; $icon = ( $icon != '' ) ? $icon : ''; $icon_size = ( $icon_size != '' ) ? $icon_size : '36px'; $image = ( $image != '' ) ? $image : ''; $image_width = ( $image_width != '' ) ? $image_width : ''; $animation = ( $animation != '' ) ? ' ' . $animation : ''; $link = ( $link != '' ) ? $link : '#'; $target = ( $target == 'blank' ) ? ' target="_blank"' : ''; $color = ( $color != '' ) ? $color : '#ffffff'; $bg_color = ( $bg_color != '' ) ? $bg_color : '#ff2a13'; $bg_color_hover = ( $bg_color_hover != '' ) ? $bg_color_hover : '#d80f0f'; if ( $animation != '' ) { if ( $image != '' ) { $graphic = '<span class="graphic"><img style="margin: 0; width: ' . $image_width . ';" src="' . $image . '"></span>'; } else if ( $icon != '' ) { $graphic = '<span class="graphic"><i style="margin: 0; font-size: ' . $icon_size . ';" class="x-icon-' . $icon . '" data-x-icon="&#x' . fa_unicode( $icon ) . ';"></i></span>'; } } else { $graphic = ''; } $js_params = array( 'animation' => $animation, 'bg_color' => $bg_color, 'bg_color_hover' => $bg_color_hover ); $data = cs_generate_data_attributes( 'creative_cta', $js_params ); $output = "<a {$id} class=\"{$class}{$animation}\" href=\"{$link}\"{$target} style=\"padding: {$padding}; color: {$color}; background-color: {$bg_color};{$style}\" {$data}>" . "<span class=\"text\" style=\"font-size: {$font_size};\">{$text}</span>" . $graphic . "</a>"; return $output; } add_shortcode( 'x_creative_cta', 'x_shortcode_creative_cta' );