Skip to content

Instantly share code, notes, and snippets.

View whit3h4t's full-sized avatar

Lars whit3h4t

View GitHub Profile
@whit3h4t
whit3h4t / functions.php
Created July 29, 2011 10:51
Add GooglePlus Link and Icon on the ARI-Theme of elmastudio.de. Just replace the relevant part of the functions.php and adds the CSS assignment. Do not forget to upload a matching icon in the appropriate folder.
/* Change the following Part in your functions.php! --- Ari Social Links Widget */
class Ari_SocialLinks_Widget extends WP_Widget {
function Ari_SocialLinks_Widget() {
$widget_ops = array('classname' => 'widget_social_links', 'description' => 'A list with your social profile links' );
$this->WP_Widget('social_links', 'Ari Social Links', $widget_ops);
}
function widget($args, $instance) {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
@whit3h4t
whit3h4t / fb share button
Created April 15, 2011 08:33
own share script
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/icons/facebook.png" alt=""/></a>
@whit3h4t
whit3h4t / fb share button
Created April 15, 2011 08:30
wp share script
<a type="button" share_url="<?php the_permalink();?>&t=<?php the_title(); ?>" href="http://www.facebook.com/sharer.php">Teilen</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
@whit3h4t
whit3h4t / fb share button
Created April 15, 2011 08:29
org share script
<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>