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
<div class="container"> | |
<h1>Equal column height with jQuery</h1> | |
<p>Float-based columns with equal height. The height of all the columns is determined by the highest column via jQuery. Each column height is dividable by 28px, so it will fit the underlying (28px based) grid nicely.</p> | |
<p>Happy coincidence: a plugin with a similar title was released today on jQuery plugin registry - <a href="http://plugins.jquery.com/equalheightcols/">jQuery equal height columns plugin</a>. It sounds similar but it does the <a href="http://aamirafridi.com/jquery/jquery-equal-columns-height-plugin">opposite</a> - i.e. it shortens all the columns to a predifined height.</p> | |
<button id="toggle">Toggle javascript</button> | |
<button id="toggle-grid">Toggle grid</button> | |
</div> | |
<div class="container" id="container"> | |
<section class="site-section brown"> |
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 lt IE 7 ]> <html class="ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]--> | |
<head> |
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
/** | |
* Default Body Class Styles | |
*/ | |
.rtl {} | |
.home {} | |
.blog {} | |
.archive {} | |
.date {} | |
.search {} |
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 // place this 2 functions in your functions.php file (best would be to rename them) | |
/* | |
* https://gist.github.com/16nsk/5851926 | |
*/ | |
function excerpt($limit = 50) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit); | |
if (count($excerpt)>=$limit) { | |
array_pop($excerpt); |
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
h1.logo a { | |
display: block; | |
width: 300px; | |
height: 100px; /* valori de dimensiuni in functie de logo */ | |
background: url(logo.png) no-repeat 0 0; | |
font: 0/0 a; /* truc sa facem textul ascuns */ | |
/* ne asiguram ca resetam eventuale mosteniri nedorite */ | |
border: 0; | |
text-shadow: 0; |
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 | |
function auto_login() { | |
if (!is_user_logged_in()) { | |
//determine WordPress user account to impersonate | |
$user_login = 'anonymous'; | |
//get user's ID | |
$user = get_userdatabylogin($user_login); | |
$user_id = $user->ID; |
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 | |
function get_contact_forms() { | |
$allContactForms7 = array(); | |
global $wpdb; | |
global $table_prefix; | |
$table_prefix = $wpdb->base_prefix; | |
$wpdb->tablename = $table_prefix . 'posts'; | |
$contact_forms7 = $wpdb->get_results( | |
" |
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
/**************************************************************************** | |
*** Gravity styles *** | |
****************************************************************************/ | |
/*Form Body | |
contains the main form content*/ | |
body .gform_wrapper .gform_body {border: 1px solid red} | |
/*Form List Container | |
unordered list used to structure all of the form elements*/ |
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
Sitemap: http://www.example.com/sitemap.xml | |
User-agent: * | |
Disallow: /cgi-bin/ | |
Disallow: /wp-admin/ | |
Disallow: /wp-includes/ | |
Disallow: /wp-content/plugins/ | |
Disallow: /wp-content/cache/ | |
Disallow: /wp-content/themes/ | |
Disallow: /trackback/ |
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 | |
// Support for thumbnails on proper media files - activates post thumbnails by default | |
add_post_type_support( 'attachment:audio', 'thumbnail' ); | |
add_post_type_support( 'attachment:video', 'thumbnail' ); | |
add_theme_support( 'post-thumbnails', array( 'post', 'attachment:audio', 'attachment:video' ) ); |
OlderNewer