| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/landing-pages/shared/shortcodes/shortcodes/ |
Upload File : |
<?php
/**
* Social Links Shortcode
*/
/* Shortcode generator config
* ----------------------------------------------------- */
$shortcodes_config['social_links'] = array(
'no_preview' => true,
'options' => array(
'facebook' => array(
'name' => __('Facebook', 'inbound-pro' ),
'desc' => __('Enter your facebook profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'twitter' => array(
'name' => __('Twitter', 'inbound-pro' ),
'desc' => __('Enter your twitter profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'google_plus' => array(
'name' => __('Google+', 'inbound-pro' ),
'desc' => __('Enter your google plus profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'linkedin' => array(
'name' => __('Linkedin', 'inbound-pro' ),
'desc' => __('Enter your linkedin profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'github' => array(
'name' => __('Github', 'inbound-pro' ),
'desc' => __('Enter your github profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'pinterest' => array(
'name' => __('Instagram', 'inbound-pro' ),
'desc' => __('Enter your instagram profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'pinterest' => array(
'name' => __('Pinterest', 'inbound-pro' ),
'desc' => __('Enter your pinterest profile URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
),
'rss' => array(
'name' => __('RSS', 'inbound-pro' ),
'desc' => __('Enter your RSS feeds URL', 'inbound-pro' ),
'type' => 'text',
'std' => ''
)
),
'shortcode' => '[social_links facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" github="{{github}}" pinterest="{{pinterest}}" /]',
'popup_title' => 'Insert Social Link Shortcode'
);
/* Add shortcode
* ----------------------------------------------------- */
add_shortcode('social_links', 'inbound_shortcode_social_links');
function inbound_shortcode_social_links( $atts, $content = null ) {
extract(shortcode_atts(array(
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'linkedin' => '',
'github' => '',
'instagram' => '',
'pinterest' => '',
'rss' => ''
), $atts));
$out = '';
$out .= '<ul class="inboundnow-social-links">';
if( $facebook ) { $out .= '<li class="facebook"><a href="'. $facebook .'"><i class="icon-facebook icon-large"></i></a></li>'; }
if( $twitter ) { $out .= '<li class="twitter"><a href="'. $twitter .'"><i class="icon-twitter icon-large"></i></a></li>'; }
if( $google_plus ) { $out .= '<li class="google-plus"><a href="'. $google_plus .'"><i class="icon-google-plus icon-large"></i></a></li>'; }
if( $linkedin ) { $out .= '<li class="linkedin"><a href="'. $linkedin .'"><i class="icon-linkedin icon-large"></i></a></li>'; }
if( $github ) { $out .= '<li class="github"><a href="'. $github .'"><i class="icon-github icon-large"></i></a></li>'; }
if( $instagram ) { $out .= '<li class="instagram"><a href="'. $instagram .'"><i class="icon-camera-retro icon-large"></i></a></li>'; }
if( $pinterest ) { $out .= '<li class="pinterest"><a href="'. $pinterest .'"><i class="icon-pinterest icon-large"></i></a></li>'; }
if( $rss ) { $out .= '<li class="rss"><a href="'. $rss .'"><i class="icon-rss icon-large"></i></a></li>'; }
$out .= '</ul>';
return $out;
}