Пример #1
0
/<?php 
release_slug();
?>
"><?php 
release_title();
?>
</a>. While all our downloads are available for free under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons License</a>,  our artists work extremely hard to get them to you. So if you'd like to donate them some money as thanks then that would be great.</p>
					<p>
						<a href="<?php 
get_option('site_url');
?>
/download/<?php 
release_slug();
?>
/donate">Donate Now</a> - <a href="<?php 
release_download_link();
?>
/skip">Just Send Me Straight To The Download.</a>
					</p>
					<p><a href="#" onclick="javascript:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img  src="https://www.paypal.com/en_US/i/logo/PayPal_mark_50x34.gif" border="0" alt="Paypal" style="float: right; margin-left:20px;"></a>When you click Donate Now you will be redirected to Paypal for secure online payment. Then we'll send you straight to your download with a warm fuzzy wuzzy feeling in your stomach that we've thrown in for free.</p>
					<p>		<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
							<img alt="Creative Commons License" style="border-width:0; float:right;margin-left:20px;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" />
							</a>This release is licensed under a 
							<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. Essentially, this means you can give it to your friends if you like, as long as you aren't charging for it.</p>
			</div><!-- .entry-content-->
		</div><!-- .post -->
	</div><!-- #content -->
</div><!-- #container -->
<?php 
get_sidebar();
get_footer();
Пример #2
0
/**
 * Creates a Twitter intent URL for tweeting about downloading a specific release.
 *
 * @author Alex Andrews <*****@*****.**>
 * @param bool $echo When true we echo the link to the MP3 download.
 * @return string The Twitter URL that pre-sets the tweet we are encouraging.
 */
function release_twitter_promotional_tweet($echo = true)
{
    $artist = '';
    if (artist_has_twitter()) {
        $artist = '@' . artist_twitter_user_name(false);
    } else {
        $artist = artist_name(false);
    }
    $release_link = release_download_short_link(false);
    if (!$release_link) {
        $release_link = release_download_link(false);
    }
    $stream_link = release_stream_short_link(false);
    if (!$stream_link) {
        $stream_link = release_soundcloud_url(false);
    }
    $tweet = urlencode('I just downloaded ' . release_title(false) . ' by ' . $artist . ' at @recordsonribs - Download now ' . $release_link . ', listen now ' . $stream_link);
    $url = 'https://twitter.com/intent/tweet?text=' . $tweet;
    if ($echo) {
        echo $url;
    }
    return $url;
}