Skip to content

Instantly share code, notes, and snippets.

View viruthagiri's full-sized avatar

Viruthagiri Thirumavalavan viruthagiri

  • Bangalore, India
View GitHub Profile
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentytwelve_comment() which is
* located in the functions.php file.
*
* @package WordPress
<?php
//listview template customization.
// This file is under development. So its not included in functions.php
function whoop_category_list_view_ul_extra_class($extra_class) {
$extra_class = 'whoop-view';
return $extra_class;
}
add_filter('geodir_category_list_view_ul_extra_class', 'whoop_category_list_view_ul_extra_class', 10, 1);
<?php
/**
* Template for the list of places
*
* This is used mostly on the listing (category) pages and outputs the actual grid or list of listings.
* See the link below for info on how to replace the template in your theme.
*
* @link http://docs.wpgeodirectory.com/customizing-geodirectory-templates/
* @since 1.0.0
* @package GeoDirectory
<?php
/**
*
* This file contains a reference user interface for hierarchical groups.
* One part is the Groups extension that adds the Member Groups tab to groups
* and allows creators to place new groups within the hierarchy.
* The other is an administrative and permissions interface for that feature
*
* This is not tied to the implementation of hierarchical groups contained in the other files
*
@viruthagiri
viruthagiri / WordPress Theme Customizer Sample.php
Last active August 29, 2015 14:26 — forked from Abban/WordPress Theme Customizer Sample.php
WordPress Theme Customizer Sample
<?php
function themename_customize_register($wp_customize){
$wp_customize->add_section('themename_color_scheme', array(
'title' => __('Color Scheme', 'themename'),
'priority' => 120,
));
// =============================
.geotheme-style-100 {
color: #000;
font-family: 'Lato','Open Sans', sans-serif;
}
.geotheme-style-100 p {
margin: 0 0 10px;
color: #000;
font-size: 15px;
line-height: 25px;
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
/* ----- 20-02-2015 ----*/
#geodir-bestof-places {
padding: 10px;
clear: both;
}
#geodir-bestof-loading {
text-align: center;
padding: 50px 0;
/* ----- 20-02-2015 ----*/
#geodir-bestof-places {
padding:10px;
clear: both;
}
#geodir-bestof-loading {
text-align: center;
padding: 50px 0;
display: none;
git for-each-ref refs/remotes/tags | cut -d / -f 4- |
while read ref
do
git tag -a "$ref" -m"Tag $ref" "refs/remotes/tags/$ref"
done