This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($_SERVER['SERVER_NAME']==="localhost"): ?> | |
<link rel="stylesheet/less" href="less/style.less" type="text/css" /> | |
<script type="text/javascript">less = { env: 'development' };</script> | |
<script src="http://lesscss.googlecode.com/files/less-1.2.1.min.js"></script> | |
<?php else: ?> | |
<link rel="stylesheet" type="text/css" href="stylesheets/style.css"> | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet/less" href="style.less" type="text/css" /> | |
<script type="text/javascript">less = { env: 'development' };</script> | |
<script src="http://localhost/libs/less.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* FONTS | |
* by @dic7 (github: ivanmendoza) | |
* | |
*/ | |
#fonts{ | |
.base(@size: 1em){ | |
font:normal @size verdana, helvetica, arial, sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// INPUT: $item_date | |
$item_date = date("D, d M o G:i:s T",strtotime($item_date)); | |
$today = date(DATE_RFC822); | |
$diff_date=(strtotime($today) - strtotime($item_date)); | |
$inMinutes=round($diff_date/60); | |
$inHours=round($diff_date/(60*60)); | |
$inDays=round($diff_date/(24*60*60)); | |
if($inMinutes==1){$txt_date="hace un minuto";} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example: scrollTo(jQuery('#footer')); | |
function scrollTo(target){ | |
var targetOffset = target.offset().top; | |
$('html,body').animate({scrollTop: targetOffset}, 1000); | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SMARTPHONES */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
} | |
/* TABLETS */ | |
@media screen and (min-width: 481px) and (max-width: 1024px) { | |
} | |
/* DESKTOP */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Icon index | |
* by @dic7 (github: ivanmendoza) | |
* | |
*/ | |
/* | |
* SPRITE | |
* url: ../images/icons.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>SNBX - MKT X</title> | |
<!-- LINKS --> | |
<style type="text/css">body{font:normal 1em verdana,helvetica,arial,sans-serif;font-size:16px;background:#fff;color:#000;margin:0;padding:0}pre,code,tt{font:normal 1/1.5 'Lucida Console','Consolas','Courier New',monospace}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font:normal 2/.9 'gill sans','Century Gothic',verdana,sans-serif}em,i,dfn{font-style:italic}dfn{font-weight:700}p,code,pre,kbd{margin:0 0 1.5em 0}blockquote{margin:0 1.5em 1.5em 1.5em;font-style:italic}cite{font-style:italic}li ul,li ol{margin:0 1.5em}ul,ol{margin:0 1.5em 1.5em 1.5em}ul{list-style-type:disc}ol{list-style-type:decimal}ol ol{list-style:upper-alpha}ol ol ol{list-style:lower-roman}ol ol ol ol{list-style:lower-alpha}dl{margin:0 0 1.5em 0}dl dt{font-we |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name=”application-name” content=”Greatest Website”/> | |
<meta name=”description” content=”The very best on the web”/> | |
<meta name=”application-url” content=”http://www.superfantasticgreatestweb.com”/> | |
<link rel=”icon” href=”great-icon_32×32.png” sizes=”32×32″/> | |
<link rel=”icon” href=”great-icon_48×48.png” sizes=”48×48″/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function filter_my_attachments( $wp_query ) { | |
if (is_admin() && ($wp_query->query_vars['post_type'] == 'attachment')) { | |
if ( !current_user_can( 'activate_plugins' ) ) { | |
global $current_user; | |
$wp_query->set( 'author', $current_user->id ); | |
} | |
} | |
} | |
add_filter('parse_query', 'filter_my_attachments' ); |
OlderNewer