Skip to content

Instantly share code, notes, and snippets.

View viruthagiri's full-sized avatar

Viruthagiri Thirumavalavan viruthagiri

  • Bangalore, India
View GitHub Profile
jQuery(document).ready(function ($) {
"use strict";
/*====== PRELOADER ======*/
jQuery(window).load(function() {
// will first fade out the loading animation
jQuery(".lines").fadeOut();
// will fade out the whole DIV that covers the website.
jQuery(".preloader").delay(1000).fadeOut("slow");
});
{"Theme_Pluto_by_PinSupreme_custom":{"geodir_wrapper_open_id":"","geodir_wrapper_open_class":"content side-padded-content","geodir_wrapper_open_replace":"","geodir_wrapper_close_replace":"","geodir_wrapper_content_open_id":"","geodir_wrapper_content_open_class":"","geodir_wrapper_content_open_replace":"<div class=\"geodir_wrapper_content_wrap\"><div id=\"[id]\" class=\"[class]\" role=\"main\" [width_css]>","geodir_wrapper_content_close_replace":"","geodir_article_open_id":"","geodir_article_open_class":"","geodir_article_open_replace":"","geodir_article_close_replace":"","geodir_sidebar_right_open_id":"","geodir_sidebar_right_open_class":"","geodir_sidebar_right_open_replace":"","geodir_sidebar_right_close_replace":"<\/aside><!-- sidebar ends here--><\/div><!-- content wrpper wrap ends here-->","geodir_sidebar_left_open_id":"","geodir_sidebar_left_open_class":"","geodir_sidebar_left_open_replace":"","geodir_sidebar_left_close_replace":"","geodir_main_content_open_id":"","geodir_main_content_open_class":"","ge
.geodir_full_page section,
.geodir-breadcrumb,
.geodir_wrapper_content_wrap {
margin-top:30px;
padding:15px !important;
border: 1px solid #d1d7dc;
-webkit-box-shadow: 0px 3px 12px 1px rgba(0,0,0,0.1);
box-shadow: 0px 3px 12px 1px rgba(0,0,0,0.1);
background-color: #fff;
border-radius: 6px;
<?php
function custom_gd_add_listing_top_code()
{
$excluded = array('gd_place');
if (isset($_REQUEST['listing_type']) && in_array($_REQUEST['listing_type'], $excluded)) {
return;
}
if (isset($_REQUEST['pid']) && $_REQUEST['pid']) {
return;
}// if editing a listing then don't show
<?php
add_filter( 'template_include', 'custom_geodir_event_template_loader',0);
function custom_geodir_event_template_loader($template) {
if(geodir_get_current_posttype() == 'gd_event'){
remove_filter('geodir_detail_page_sidebar_content', 'geodir_event_detail_page_sitebar_content', 2);
add_action('geodir_details_main_content', 'geodir_event_show_shedule_date', 35);
}
}
.home .post-cover-head {
display:none;
}
.home #theme-header {
margin-bottom: 0;
}
.home #wrapper.wide-layout #main-content {
margin-top: 0;
padding-top: 0;
}
<?php
function custom_bp_compliments_add_profile_compliment_button() {
global $bp;
if (!is_user_logged_in())
return;
if ($bp->loggedin_user->id == $bp->displayed_user->id)
return;
$is_friend = friends_check_friendship($bp->loggedin_user->id, $bp->displayed_user->id);
if ($is_friend) {
bp_compliments_add_compliment_button();
@viruthagiri
viruthagiri / imacros-cheatsheet.md
Created July 28, 2016 09:54
iMacros Command, Variable, and function reference
<?php
//delete dummy image cache
$to_be_deleted = array();
for($i=1; $i<=20; $i++) {
$to_be_deleted[] = "dummy_a".$i."_jpg";
}
for($i=1; $i<=18; $i++) {
$to_be_deleted[] = "dummy_hotels".$i."_jpg";
}