Skip to content

Instantly share code, notes, and snippets.

@ajaydsouza
ajaydsouza / top-10-css1.css
Last active August 29, 2015 13:55
Top 10 - Left Thumbnail - Vertical layout
img.tptn_thumb {
width:65px !important;
height:65px !important;
display:block;
float:left;
clear:left;
margin-right:10px !important;
padding:3px !important;
border:1px #CCCCCC solid;
}
@ajaydsouza
ajaydsouza / crp-css1.css
Created January 29, 2014 17:22
CRP - Left Thumbnail - Vertical layout
img.crp_thumb {
width:65px !important;
height:65px !important;
display:block;
float:left;
clear:left;
margin-right:10px !important;
padding:3px !important;
border:1px #CCCCCC solid;
}
@ajaydsouza
ajaydsouza / crp-css2.css
Last active August 29, 2015 13:56
CRP - Formatting using PIE
#crp_related ul {
list-style:none;
float:left;
margin:0;
}
#crp_related li,#crp_related a {
float:left;
overflow:hidden;
position:relative;
@ajaydsouza
ajaydsouza / crp-css3.css
Last active August 29, 2015 13:56
CRP - Default style
.crp_related ul {
list-style: none;
float: left;
margin: 0;
}
.crp_related li, .crp_related a {
float: left;
overflow: hidden;
position: relative;
@ajaydsouza
ajaydsouza / top-10-css2.css
Created March 22, 2014 11:01
Top 10 Custom Style 2
.tptn_posts ul, .tptn_posts_daily ul {
list-style: none;
float: left;
margin: 0;
}
.tptn_posts li, .tptn_posts a, .tptn_posts_daily li, .tptn_posts_daily a {
float: left;
overflow: hidden;
position: relative;
text-align: center;
@ajaydsouza
ajaydsouza / crp-css4.css
Last active August 29, 2015 13:57
CRP - Old Default
.crp_related ul {
list-style: none;
float: left;
margin: 0;
}
.crp_related li, .crp_related a {
float: left;
overflow: hidden;
position: relative;
@ajaydsouza
ajaydsouza / get_bsearch_heatmap.php
Last active August 29, 2015 14:02
get_bsearch_heatmap example
<?php if function_exists( 'get_bsearch_heatmap' ) {
$args = array(
'daily' => FALSE,
'smallest' => '10', // Heatmap - Smallest Font Size
'largest' => '20', // Heatmap - Largest Font Size
'unit' => 'pt', // Heatmap - We'll use pt for font size
'cold' => 'ccc', // Heatmap - cold searches
'hot' => '000', // Heatmap - hot searches
'before' => '', // Heatmap - Display before each search term
'after' => '&nbsp;', // Heatmap - Display after each search term
@ajaydsouza
ajaydsouza / crp-pinterest.css
Created September 4, 2014 17:26
CRP - Pinterest
.crp_related {
padding: 0;
}
.crp_related ul {
-webkit-column-gap: 10px;
-webkit-column-fill: auto;
-moz-column-gap: 10px;
-moz-column-fill: auto;
column-gap: 15px;
@ajaydsouza
ajaydsouza / git-svn-commands.sh
Created September 4, 2014 19:37
Handy Git and SVN commands
svn log -r 1:HEAD --limit 1 http://plugins.svn.wordpress.org/top-10
svn2git http://plugins.svn.wordpress.org/top-10 --revision 65307 --verbose --no-minimize-url
svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )
svn add --force * --auto-props --parents --depth infinity -q
@ajaydsouza
ajaydsouza / timthumb-crp.php
Last active August 29, 2015 14:16
Timthumb in Contextual Related Posts & Top 10
<?php
/**
* Filter function to resize post thumbnail. Filters: crp_thumb_url.
*
* @since 1.8.4
*
* @param string $postimage
* @param string|int $thumb_width
* @param string|int $thumb_height