long story short, I'm looking to duplicate the following line in a non-php, text-widget friendly fashion. (shortcode, maybe?) :
<?php echo urlencode(get_permalink($post->ID)); ?>
short story long:
In an effort to reduce my plugin dependence, i'm trying to hardcode some features to my blog. one such feature is the facebook like button. with ease, i can create a text widget that offers the like-ability of a specific post on my blog. what i'm TRYING to do is create a like-button widget that dynamically recognizes which post it is on, so that the button is unique to each post ID. (in other words, if you click "like" on "10 things i hate about baseball", you're liking that post and not the site over all, or the "50 things i love about football" post, which would have it's own like button).
the code i have so far is:
<iframe src="http://www.facebook.com/plugins/like.php?href=http://toonbarn.com/&layout=standard&show-faces=true&width=322&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:322px; height:60px"></iframe>
with my site being "toonbarn.com". how can i made it so that it will recognize the individual postIDs of each page? is there a WP shortcode I'm overlooking?
SPECIAL NOTE: this is being created in a text widget, not single.php or other database accessible stuff.