function wptouch_the_title() { echo wptouch_get_title(); }
<div id="action-buttons"> <a href="javascript:void(0);" id="share-toggle" class="grey-button no-ajax"><?php _e("Share Article", "wptouch-pro"); ?> </a> <a href="javascript:void(0);" id="instapaper-toggle" class="grey-button no-ajax"><?php _e("Save to Instapaper", "wptouch-pro"); ?> </a> </div> <ul id="share-links" class="post rounded-corners-8px"> <li id="twitter"> <a class="no-ajax" target="_blank" href="http://m.twitter.com/home/?status=<?php echo classic_url_encode(wptouch_get_title() . ' // ' . get_permalink()); ?> "><?php _e("Share on Twitter", "wptouch-pro"); ?> </a> </li> <li id="facebook"> <a class="no-ajax" target="_blank" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?> &t=<?php the_title(); ?> "><?php _e("Share on Facebook", "wptouch-pro");
function classic_ipad_recent_posts($num) { $settings = wptouch_get_settings(); $excluded_cats = $settings->classic_excluded_categories; $excluded_tags = $settings->classic_excluded_tags; global $post; $args = array('numberposts' => $num, 'category__not_in' => $excluded_cats, 'tag__not_in' => $excluded_tags); $recent_posts = get_posts($args); foreach ($recent_posts as $post) { setup_postdata($post); echo '<li><span>' . date("M j", strtotime($post->post_date)) . '</span><a href="' . wptouch_get_the_permalink() . '">' . wptouch_get_title() . '</a></li>'; } }