Exemplo n.º 1
0
function get_gwolle_gb_write()
{
    // 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 form
    $output .= gwolle_gb_frontend_write();
    $output .= '</div>';
    $output .= '
		<style type="text/css" scoped>
			div#gwolle_gb_write_button { display:none; }
		</style>
	';
    return $output;
}
Exemplo n.º 2
0
function get_gwolle_gb_write($atts)
{
    $shortcode_atts = shortcode_atts(array('book_id' => 1), $atts);
    if ($shortcode_atts['book_id'] == 'post_id') {
        $shortcode_atts['book_id'] = get_the_ID();
    }
    // 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 form
    $output .= gwolle_gb_frontend_write($shortcode_atts);
    $output .= '</div>';
    $output .= '
		<style type="text/css" scoped>
			div#gwolle_gb_write_button { display:none; }
		</style>
	';
    return $output;
}