Skip to content

Instantly share code, notes, and snippets.

[parallax img_bg="http://dahz.daffyhazan.com/food-cook/wp-content/uploads/2015/02/bg_ps.jpg" height="450px" padding="20px 0 0 0" img_pos="center" speed="0.1" class="parallaxs"][rev_slider slidertrans][/parallax] [divider]
<h3>Recipe[hr]</h3>
[recipe_grid post_page="3" taxonomy="recipe_types" categories="dinner" orderby="comment_count" order="desc"] [recipe_grid post_page="3" taxonomy="cuisine" categories="italian" orderby="comment_count" order="desc"] [linked_more title="See All" link="http://dahz.daffyhazan.com/food-cook/recipes/" color="#bf9764"][divider]
<p style="text-align: center;">[parallax img_bg="http://dahz.daffyhazan.com/food-cook/wp-content/uploads/2015/02/bgps.jpg" height="500px" padding="140px 0" img_pos="center" speed="0.1" class="pas"]<img class="aligncenter size-full wp-image-1607" src="http://dahz.daffyhazan.com/food-cook/wp-content/uploads/2015/02/logo.png" alt="logo" width="474" height="150" />[divider]</p>
<p style="text-align: center;"><span style="color: #ffffff;">Multipurpose Food Reci
{"general":{"global":{"is_topbar":"yes","body_bg_color":"#ffffff","bg_color":"#242427","is_comment_on_page":"no","is_lazy_loading":"yes","is_sticky_sidebar":"yes","is_back_to_top_button":"yes","bg_position":"center-top","bg_repeat":"no-repeat","bg_attachment":"fixed","bg_size":"auto","bg_img":"","header_layout":"header-3","layout":"full","default_feature_image":""},"page_transition":{"is_page_transition":"no","preloader_bg_color":"#ffffff","animation_transition":"fade-in","preloader_style":"none","css_animation":{"loader_style":"style-2","loader_color":"#e2e2e2"},"image":{"loader_image":""}},"social_sharing":{"is_share_single_post":"yes","sharing_button":{"facebook":"yes","pinterest":"yes","twitter":"yes","mail":"yes","google-plus":"yes","tumblr":"yes","linkedin":"yes"},"button_style":"share-1"},"breadcrumb":{"is_breadcrumbs":"yes","is_show_home_link":"no","is_show_parent":"yes","is_show_article_title":"yes"},"custom_code":{"google_analytics_code":"<script>rn (function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObjec
<iframe width="560" height="315" src="https://www.youtube.com/embed/dISNgvVpWlo" frameborder="0" allowfullscreen></iframe>
@dancingsoda
dancingsoda / df-css-options.php
Created September 2, 2016 07:42
onfleek\inc\df-core\df-front-end
<?php
/**
* Class: DF_CSS_Options
* Description: [description]
*/
if( !class_exists( 'DF_CSS_Options' ) ) {
Class DF_CSS_Options extends DF_Options{
static $metabox;
[vc_row][vc_column width="1/3"][vc_empty_space height="20px"][vc_column_text]
<p style="text-align: center;">HOTLINE +88 123 456</p>
<div class="googlefont" style="font-family: 'Playfair Display', serif !important; font-size: 13px !important; margin: 5px 0 14px 0 !important; color: #999; line-height: 1; float: none; text-align: center;"><em>Toll-free in the entire stat</em></div>
[/vc_column_text][vc_empty_space height="10px"][/vc_column][vc_column width="1/3"][vc_empty_space height="20px"][vc_column_text]
<p style="text-align: center;">FREE SHIPPING WORLDWIDE</p>
<div class="googlefont" style="font-family: 'Playfair Display', serif !important; font-size: 13px !important; margin: 5px 0 14px 0 !important; color: #999; line-height: 1; float: none; text-align: center;"><em>Free Shipping for New Signup</em></div>
[/vc_column_text][vc_empty_space height="10px"][/vc_column][vc_column width="1/3"][vc_empty_space height="20px"][vc_column_text]
<p style="text-align: center;">NEW LOOKBOOK</p>
@dancingsoda
dancingsoda / df-content-view.php
Created August 29, 2016 03:25
change the default state of comment to open
<?php
/**
* Class: DF_Content_View
* Description: class for load content view
*/
if( !class_exists( 'DF_Content_View' ) ){
class DF_Content_View {
function __construct() {
@dancingsoda
dancingsoda / functions-misc.php
Created August 23, 2016 07:16
food & cook issue with gmaps
<?php
// File Security Check
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
die ( 'You do not have sufficient permissions to access this page' );
}
/*-----------------------------------------------------------------------------------*/
/* Subscribe / Connect */
/*-----------------------------------------------------------------------------------*/
// Responsive menus
;(function(a){var b=0;a.fn.mobileMenu=function(c){function m(a){if(f()&&!g(a)){l(a)}else if(f()&&g(a)){j(a)}else if(!f()&&g(a)){k(a)}}function l(b){if(e(b)){var c='<select id="mobileMenu_'+b.attr("id")+'" class="mobileMenu">';c+='<option value="">'+d.topOptionText+"</option>";b.find("li").each(function(){var b="";var e=a(this).parents("ul, ol").length;for(i=1;i<e;i++){b+=d.indentString}var f=a(this).find("a:first-child").attr("href");var g=b+a(this).clone().children("ul, ol").remove().end().text();c+='<option value="'+f+'">'+g+"</option>"});c+="</select>";b.parent().append(c);a("#mobileMenu_"+b.attr("id")).change(function(){h(a(this))});j(b)}else{alert("mobileMenu will only work with UL or OL elements!")}}function k(b){b.css("display","");a("#mobileMenu_"+b.attr("id")).hide()}function j(b){b.hide("display","none");a("#mobileMenu_"+b.attr("id")).show()}function h(a){if(a.val()!==null){document.location.href=a.val()}}function g(c){if(c.attr("id")){return a("#mobileMenu_"+c.attr("id")).length
@dancingsoda
dancingsoda / header.php
Created August 19, 2016 07:43
quick fix to WP 4.6 compatibility issue
<?php
/**
* The header for our theme.
* This is the template that displays all of the <head> section and everything up until <div id="content">
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
* @package onfleek
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php
function advance_gmaps( $atts, $content = null) {
extract( shortcode_atts( array(
'height' => '400',
'latitude' => '',
'longitude' => '',
'address' => '',