Exemplo n.º 1
0
/**
 * Displays WebDevStudios products in a sidebar on the add/edit screens for post types and taxonomies.
 *
 * We hope you don't mind.
 *
 * @since 1.3.0
 *
 * @internal
 */
function cptui_products_sidebar()
{
    echo '<div class="wdspromos">';
    cptui_newsletter_form();
    $ads = cptui_get_ads();
    if (!empty($ads)) {
        foreach ($ads as $ad) {
            $the_ad = sprintf('<img src="%s" alt="%s">', esc_attr($ad['image']), esc_attr($ad['text']));
            // Escaping $the_ad breaks the html.
            printf('<p><a href="%s">%s</a></p>', esc_url($ad['url']), $the_ad);
        }
    }
    echo '</div>';
}
Exemplo n.º 2
0
/**
 * Displays WebDevStudios products in a sidebar on the add/edit screens for post types and taxonomies.
 *
 * We hope you don't mind.
 *
 * @since 1.3.0
 *
 * @internal
 */
function cptui_products_sidebar()
{
    echo '<div class="wdspromos">';
    cptui_newsletter_form();
    $ads = cptui_get_ads();
    if (!empty($ads)) {
        foreach ($ads as $ad) {
            $the_ad = sprintf('<img src="%s" alt="%s">', esc_attr($ad['image']), esc_attr($ad['text']));
            // Escaping $the_ad breaks the html.
            printf('<p><a href="%s">%s</a></p>', esc_url($ad['url']), $the_ad);
        }
        printf('<p><a href="%s">%s</a></p>', 'https://pluginize.com/product/custom-post-type-ui-extended/?utm_source=remove_ads&utm_medium=text&utm_campaign=cptui', esc_html__('Remove these ads?', 'custom-post-type-ui'));
    }
    echo '</div>';
}