Skip to content

Instantly share code, notes, and snippets.

View zackn9ne's full-sized avatar

zackn9ne zackn9ne

  • earth, New York
View GitHub Profile
@zackn9ne
zackn9ne / index.php
Created April 3, 2012 22:41
background scroll
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="bg_containers">
<div class="bg1"></div>
<div class="bg2"></div>
@zackn9ne
zackn9ne / gist:2731702
Created May 19, 2012 17:54
cute popup
<!-- welcome popup --><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/osx/osx.css" type="text/css" media="screen" />
<!-- cute popup -->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/cutepop.css" type="text/css" media="screen" />
<div id=popup>
<div id="in-holder">
<span class=hide>
<a href=# class=hide><span style="color:#555;">Close</span> x</a>
</span>
<p>Welcome to <a href="http://www.eastbayloop.com">East Bay Loop!</a> Read up on <a href="http://www.eastbayloop.com/east-bay-loop/">what's new</a>. You can also <a href=# class="hidein">close this bar</a> and come back later.</p>
@zackn9ne
zackn9ne / gist:2776762
Created May 23, 2012 18:11
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>
@zackn9ne
zackn9ne / gist:2777077
Created May 23, 2012 18:57
Super stylish footer
#footer {
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
color: #333333;
line-height: 18px;
text-align: left;
vertical-align: baseline;
margin: 0px; padding: 0px; border: none;
padding-top: 70px;
position: relative;
@zackn9ne
zackn9ne / gist:2831887
Created May 30, 2012 00:53
PHP mini Calendar
<div class="date">
<p>
<?php
$hourdiff = "-8"; // hours diff btwn server and local time
$melbdate = date("D",time() + ($hourdiff * 3600));
print ("$melbdate");
?> </p>
<p class="big">
<a href="/?cat=17"><?php
@zackn9ne
zackn9ne / gist:3123975
Created July 16, 2012 17:45
WordPress PHP if Else
<?php if(is_category(10)): ?>
some html
<?php else: ?>
other html
<?php endif; ?>
@zackn9ne
zackn9ne / gist:3131309
Created July 17, 2012 19:04
WordPress jQuery noconflict Wrapper
<script>
jQuery(document).ready(function($) {
// $() will work as an alias for jQuery() inside of this function
});
</script>
@zackn9ne
zackn9ne / Wordpress Theme Path.php
Created July 18, 2012 18:43
Wordpress Theme Path
<?php bloginfo('template_directory'); ?>
@zackn9ne
zackn9ne / upload Path
Created July 22, 2012 22:02
WordPress PHP Upload directory path
/<?php echo get_option('upload_path'); ?>/
@zackn9ne
zackn9ne / gist:3178270
Created July 25, 2012 20:09
wordpress php elseif
<?php if( is_home() ) : ?>
<meta name="description" content="Web Design, Web Development, and Search Engine Optimization in Columbus, Ohio" />
<?php elseif( is_tag() ) : ?>
<meta name="description" content="You are now checking out all posts about <?php UTW_ShowCurrentTagSet('tagsetcommalist') ?>" />
<?php else : ?>
<meta name="description" content="<?php the_excerpt() ?>" />
<?php endif; ?>