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 | |
/** | |
* Create a new custom yoast seo sitemap | |
*/ | |
add_filter( 'wpseo_sitemap_index', 'ex_add_sitemap_custom_items' ); | |
add_action( 'init', 'init_wpseo_do_sitemap_actions' ); | |
// Add custom index |
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 fzBlogFactory($http, $sce, config) { | |
function allPosts() { | |
return httpRequest('posts?filter[category_name]=post'); | |
} | |
function postByID(id) { | |
return httpRequest('posts/' + id); | |
} | |
function featuredPosts() { |
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($){ | |
/* | |
Script Name: WP Auto Installer | |
Author: Mohan Dere | |
Version: 1.0 | |
Description : This script install new wordpress setup, create database with tables with content & run search replace database for new urls. | |
Last Update: 13 Mar 15 | |
*/ |
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 | |
function get_isotope_item( $query_args = array() ){ | |
$defaults = array( | |
'post_type' => 'post', | |
'posts_per_page' => -1, | |
'post_status' => 'publish', | |
); | |
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(){ | |
'use-strict'; | |
/** | |
* Iframe to Parent window communication | |
* sample iframe- <iframe id="guestFrame" name="guestFrame" src="http://other-domain.com/"> | |
* </iframe> | |
* Uses https://ternarylabs.github.io/porthole/ | |
* Uses https://marcj.github.io/css-element-queries/ |
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
var patches = require('./lib/patches') | |
, BaseApp = require('rendr/shared/app') | |
, handlebarsHelpers = require('./lib/handlebarsHelpers') | |
, Polyglot = require('node-polyglot') | |
, _ = require('underscore'); | |
/** | |
* setup constants/globals | |
*/ |
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
/* | |
templateManager - Async Handlebars template loader/cacher. | |
@author Mohan Dere | |
@version 1.0 | |
@requires jQuery || zepto, underscore, Handlebars.js | |
*/ | |
(function() { |
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
import React, { Component } from 'react'; | |
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; | |
import { Grid, Row, Col, PageHeader } from 'react-bootstrap'; | |
import './App.css'; | |
import Home from './components/Home'; | |
import About from './components/About'; | |
class App extends Component { |
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
//Usage | |
var tplsToLoad = [ | |
'tpl/menu-section', | |
'tpl/header', | |
'tpl/footer' | |
]; | |
window.FilesLoader.load(tplsToLoad, | |
function () { |
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
import React, { | |
Component | |
} from 'react'; | |
//Import responsive gallery component | |
import ResponseiveGallery from './components/ResponsiveGallery'; | |
// Define array of images with thumbnails | |
const DEFAULT_IMAGES = [{ | |
src: '/images/gallery-1.jpg', | |
thumbnail: '/images/gallery-1.jpg', |
OlderNewer