• Resolved Insect Trojan

    (@insecttrojan)


    hello can i add this to a php code to show up the addtoany ?
    $out .= do_shortcode( "[addtoany]" );

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author micropat

    (@micropat)

    Hello,

    I’m unsure what you’re trying to do exactly, but yes, that PHP should work.

    A working example:

    $out = '';
    $out .= do_shortcode( '[addtoany]' );
    echo $out;
    Thread Starter Insect Trojan

    (@insecttrojan)

    the code is

    $out = '';
    // Google+
    if(get_option('atp_google_enable')=='on'){
    		$out .= do_shortcode( '[addtoany]' );
    }
    if( !empty( $out ) ) {
    	$output ='<div class="sharing-box">';
    	$output .= '<h4>'. __('Μοιρ?σου το στα Social Media!','anona') .'</h4>';
    	$output .= '<ul class="sharing-box-ico">';
    	$output .= $out;
    	$output .= '</ul>';
    	$output .= '</div>';
    	echo wp_kses_post( $output );
    }
    Thread Starter Insect Trojan

    (@insecttrojan)

    hello is the code right ? thanks for your help

    Plugin Author micropat

    (@micropat)

    That seems to be ok, yes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add to php code’ is closed to new replies.