Ejemplo n.º 1
0
/**
 * Returns or renders the footer.
 * @param boolean $render
 * @return string or nothing
 */
function affiliates_footer($render = true)
{
    $footer = '<div class="affiliates-footer">' . '<p>' . __('Thank you for using the <a style="text-decoration:none;" href="http://www.itthinx.com/plugins/affiliates" target="_blank">Affiliates</a> plugin by <a style="text-decoration:none;" href="http://www.itthinx.com" target="_blank">itthinx</a>.', AFFILIATES_PLUGIN_DOMAIN) . ' ' . sprintf(__('Please give it a <a style="text-decoration:none;" href="%s">&#9733;&#9733;&#9733;&#9733;&#9733;</a> rating!', AFFILIATES_PLUGIN_DOMAIN), 'http://wordpress.org/support/view/plugin-reviews/affiliates?filter=5#postform') . '</p>' . '<p>' . affiliates_donate(false) . '</p>' . '</div>';
    $footer = apply_filters('affiliates_footer', $footer);
    if ($render) {
        echo $footer;
    } else {
        return $footer;
    }
}
Ejemplo n.º 2
0
/**
 * Returns or renders the footer.
 * @param boolean $render
 */
function affiliates_footer($render = true)
{
    $footer = '<div class="affiliates-footer">' . '<p>' . __('Thank you for using the <a href="http://www.itthinx.com/plugins/affiliates" target="_blank">Affiliates</a> plugin by <a href="http://www.itthinx.com" target="_blank">itthinx</a>.', AFFILIATES_PLUGIN_DOMAIN) . '</p>' . '<p>' . affiliates_donate(false) . '</p>' . '</div>';
    $footer = apply_filters('affiliates_footer', $footer);
    if ($render) {
        echo $footer;
    } else {
        return $footer;
    }
}