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
git branch --delete branch name | |
git remote update origin --prune | |
git fetch --prune |
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 | |
session_start(); | |
include_once('community/config.php'); | |
require_once 'src/Facebook/autoload.php'; | |
$fb = new Facebook\Facebook([ | |
'app_id' => $config['fb_api'], | |
'app_secret' => $config['fb_secret'], | |
'default_graph_version' => 'v2.4', | |
]); |
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
//excerpt max charlenght | |
function the_excerpt_max_charlength($charlength) { | |
$excerpt = get_the_excerpt(); | |
$charlength++; | |
if ( mb_strlen( $excerpt ) > $charlength ) { | |
$subex = mb_substr( $excerpt, 0, $charlength - 7 ); | |
$exwords = explode( ' ', $subex ); | |
$excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) ); | |
if ( $excut < 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
http://www.jqueryscript.net/lightbox/Cookie-Based-Modal-Popup-Plugin-For-jQuery-Popup-Window.html |
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
if ( ! class_exists( 'CT_TAX_META' ) ) { | |
class CT_TAX_META { | |
public function __construct() { | |
// | |
} | |
/* |
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
function call() { | |
//popup = window.open('http://www.google.co.in'); | |
$("#ouibounce-modal").show(); | |
setTimeout(wait, 1000); // closes the pop-up after 8 secs delay | |
} | |
function caller(){ | |
$("#ouibounce-modal").show(); | |
setInterval(call, 15000); // opens a pop-up on every 12th second | |
} |