コード例 #1
0
function mashsb_subscribe_content()
{
    global $mashsb_options;
    if ($mashsb_options['networks'][2] && $mashsb_options['subscribe_behavior'] === 'content') {
        //Subscribe content enabled
        $container = '<div class="mashsb-toggle-container">' . mashsb_cleanShortcode('mashshare', $mashsb_options['subscribe_content']) . '</div>';
    } else {
        $container = '';
    }
    return apply_filters('mashsb_toggle_container', $container);
}
コード例 #2
0
function mashsb_content_below()
{
    global $mashsb_options;
    $html = !empty($mashsb_options['content_below']) ? '<div class="mashsb_below_buttons">' . mashsb_cleanShortcode('mashshare', $mashsb_options['content_below']) . '</div>' : '';
    return apply_filters('mashsb_below_buttons', $html);
}