This file contains hidden or 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
//Backend visual composer add-on code | |
vc_map(array( | |
'name' => 'Accordions', | |
'base' => 'maxima_accordion', | |
'category' => 'Maxima', | |
'params' => array( | |
array( | |
'type' => 'textfield', | |
'name' => __('Title', 'rrf-maxima'), |
This file contains hidden or 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 create_job_posttype() { | |
register_post_type( 'job', | |
array( | |
'labels' => array( | |
'name' => __( 'Jobs' ), | |
'singular_name' => __( 'Job' ) | |
), | |
'public' => true, | |
'has_archive' => false, | |
'rewrite' => array('slug' => 'wanted'), |
This file contains hidden or 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
<div class="cc-intro-counter" id="cc-intro-counter"> | |
<ul class="cc-intro-counter__list"> | |
<li class="cc-intro-counter__item"> | |
<p class="cc-intro-counter__data days">00</p> | |
<p class="cc-intro-counter__text">ימים</p> | |
</li> | |
<li class="cc-intro-counter__item"> | |
<p class="cc-intro-counter__data hours">00</p> | |
<p class="cc-intro-counter__text">שעות</p> | |
</li> |
This file contains hidden or 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
<!--HTML--> | |
<--CLICK BTN--> | |
{% if (lp.introSectionBtnUrl_text_M and lp.introSectionBtnText_M) %} | |
<div class="cc-intro-play"> | |
<a class="cc-intro-play__link"> | |
{{ lp.introSectionBtnText_M }} | |
<span class="cc-intro-play__icon"></span> | |
</a> | |
</div> |
This file contains hidden or 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
/* | |
* Sharing shortcode [sharing] | |
*/ | |
function sharing_func( ){ | |
ob_start(); | |
?> | |
<!-- Share panel --> | |
<div class="share-panel"> | |
<p class="share-panel__share-label">label text</p> | |
<ul class="share-panel__share-list"> |
This file contains hidden or 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 | |
// enable divi functions | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
//add 1440px image size | |
add_image_size('image_1440', 1440, 9999, false); |
This file contains hidden or 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
<a class="header-button" href="#form> | |
<section id="form"></section> | |
// scroll | |
$(".header-button").on("click", function (event) { | |
event.preventDefault(); | |
var id = $(this).attr('href'), | |
top = $(id).offset().top; | |
$('body,html').animate({scrollTop: top}, 1500); | |
}); |
This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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
#!/usr/local/php5/bin/php | |
<?php | |
$domain = null; | |
if (array_key_exists('1', $argv)) { | |
$domain = $argv['1']; | |
$path = str_replace("\n","",`pwd` ); | |
$temlate = <<<TEMPLATE | |
<VirtualHost *:80> |
This file contains hidden or 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
# This is a template .gitignore file for git-managed WordPress projects. | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your | |
# content. Or see git's documentation for more info on .gitignore files: |
NewerOlder