????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.188.228.10 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 // Icon // ============================================================================= function x_shortcode_icon( $atts ) { extract( shortcode_atts( array( 'id' => '', 'class' => '', 'style' => '', 'type' => '', 'icon_color' => '', 'icon_size' => '', 'bg_color' => '', 'bg_size' => '', 'bg_border_radius' => '' ), $atts, 'x_icon' ) ); $id = ( $id != '' ) ? 'id="' . esc_attr( $id ) . '"' : ''; $class = ( $class != '' ) ? 'x-icon ' . esc_attr( $class ) : 'x-icon'; $style = ( $style != '' ) ? $style : ''; $type = ( $type != '' ) ? $type : ''; $icon_color = ( $icon_color != '' ) ? 'color: ' . $icon_color . ';' : ''; $icon_size = ( $icon_size != '' ) ? 'font-size: ' . $icon_size . ';' : ''; $bg_color = ( $bg_color != '' ) ? 'background-color: ' . $bg_color . ';' : ''; $bg_size = ( $bg_size != '' ) ? 'width: ' . $bg_size . '; height: ' . $bg_size . '; line-height: ' . $bg_size . ';' : ''; $bg_border_radius = ( $bg_border_radius != '' ) ? 'border-radius: ' . $bg_border_radius . ';' : ''; $styles = array( $icon_color, $icon_size, $bg_color, $bg_size, $bg_border_radius, $style ); $check = array_diff( $styles, array( '' ) ); if ( ! empty( $check ) ) { $styles_output = 'text-align: center; '; foreach ( $styles as $style ) { $styles_output .= $style . ' '; } $style = ' style="' . trim( $styles_output ) . '"'; } $unicode = fa_unicode( $type ); $output = "<i {$id} class=\"{$class} x-icon-{$type}\"{$style} data-x-icon=\"&#x{$unicode};\" aria-hidden=\"true\"></i>"; return $output; } add_shortcode( 'x_icon', 'x_shortcode_icon' );