Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Created May 23, 2012 18:11
Show Gist options
  • Save zackn9ne/2776762 to your computer and use it in GitHub Desktop.
Save zackn9ne/2776762 to your computer and use it in GitHub Desktop.
Social Area with tabs
<!--socialbox-->
<li id="side-tabs" style="margin: 15px 0 0 0;">
<?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/tabs.js"></script>
<ul class="tabs clearfix">
<li><a href="javascript:tabSwitch_2(1, 4, 'tab_', 'content_');" id="tab_1" class="on"><?php _e("Subscribe"); ?></a></li>
<li><a href="javascript:tabSwitch_2(2, 4, 'tab_', 'content_');" id="tab_2"><?php _e("Archives"); ?></a></li>
<li><a href="javascript:tabSwitch_2(3, 4, 'tab_', 'content_');" id="tab_3"><?php _e("Tags"); ?></a></li>
<li><a href="javascript:tabSwitch_2(4, 4, 'tab_', 'content_');" id="tab_4"><?php _e("Popular"); ?></a></li>
</ul>
<div style="clear:both;"></div>
<div id="content_1" class="cat_content">
<ul>
<?php if ( $wp_chatter_fb_feed_id ) { ?>
<li class="email">
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $wp_chatter_fb_feed_id; ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
<input type="hidden" value="<?php echo $wp_chatter_fb_feed_id; ?>" name="uri"/>
<input type="hidden" name="loc" value="en_US"/>
<p><img src="<?php bloginfo('stylesheet_directory'); ?>/images/email.gif" alt="email" style="float:left;margin: 4px 5px 0 0;" />Subscribe Via Email<br />
<input type="text" id="sub" name="email" value="" /> <input id="subbutton" type="submit" value="<?php _e('submit'); ?>" /><br />
<small><?php _e('Privacy guaranteed. We will not share your information.'); ?></small></p>
</form>
</li>
<?php } elseif ( $wp_chatter_alt_email_code ) { ?>
<li class="email">
<?php echo stripslashes($wp_chatter_alt_email_code); ?>
</li>
<?php } ?>
<li class="feeds">
<a href="<?php bloginfo('rss2_url'); ?>"><?php _e("Subscribe via RSS Feed"); ?></a>
</li>
<li class="twitter">
<a href="<?php echo stripslashes($wp_chatter_twitter_url); ?>"><?php _e("Follow Us on Twitter"); ?></a>
</li>
<li class="facebook">
<a href="<?php echo stripslashes($wp_chatter_facebook_url); ?>"><?php _e("Connect With Us on Facebook"); ?></a>
</li>
<li class="linkedin">
<a href="<?php echo stripslashes($wp_chatter_linkedin_url); ?>"><?php _e("Connect With Us on LinkedIn"); ?></a>
</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment