function get_gwolle_gb_read() { // Load Frontend CSS in Footer, only when it's active wp_enqueue_style('gwolle_gb_frontend_css'); //wp_enqueue_script('jquery'); // Define $output $output = '<div id="gwolle_gb">'; // Add the list of entries to show $output .= gwolle_gb_frontend_read(); $output .= '</div>'; return $output; }
function get_gwolle_gb_read($atts) { $shortcode_atts = shortcode_atts(array('book_id' => 1), $atts); // Load Frontend CSS in Footer, only when it's active wp_enqueue_style('gwolle_gb_frontend_css'); //wp_enqueue_script('jquery'); wp_enqueue_script('gwolle_gb_frontend_js'); // Define $output $output = '<div id="gwolle_gb">'; // Add the list of entries to show $output .= gwolle_gb_frontend_read($shortcode_atts); $output .= '</div>'; return $output; }