" . stripslashes(get_option('ajs_custom_css')). ""; echo ""; echo ""; echo ""; } /** Link the needed script */ function ajs_instagram_feed_script() { if ( !is_admin() ){ wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'angular', plugins_url('/js/angular.min.js', __FILE__), array('jquery') ); wp_enqueue_script( 'angular-resource', plugins_url('/js/angular-resource.min.js', __FILE__), array('angular') ); wp_enqueue_script( 'ajs-script', plugins_url('/js/ajs-script.js', __FILE__), array('angular') ); } } function ajs_instagram_feed_shortcode() { return ajs_instagram_feed_show( ); } function ajs_instagram_feed_show( ) { if ( get_option('ajs_access_token') && get_option('ajs_user_id') ){ $output = '
'; if (get_option('ajs_show_username') == 'yes'){ $output .= '

{{user.username}}

{{user.bio}}

'; } $output .= ''; if (get_option('ajs_show_follow_btn') == 'yes'){ $output .= ''; }else{ $output .= '
'; } $output .= '
'; }else{ $output = '
Please configure your access token & user id.
'; } return $output; } function run_ajs_instagram_feed() { $ajsinsta = new Ajs_Instagram_Feed(); $ajsinsta->run(); } run_ajs_instagram_feed();