Skip to content

Instantly share code, notes, and snippets.

//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'),
@sDLme
sDLme / Job & sharing btn
Created December 12, 2018 17:34
Job & sharing btn
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'),
<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>
<!--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>
@sDLme
sDLme / Sharing shortcode
Last active October 12, 2018 15:03
[sharing]
/*
* 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">
@sDLme
sDLme / functions.php
Created September 19, 2018 06:22 — forked from fldtrace/functions.php
Better, Faster, Responsive Images for Divi – Upload in Divi child theme.
<?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);
@sDLme
sDLme / easy anchor scroll.
Last active April 5, 2019 14:19
easy anchor scroll.
<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);
});
@sDLme
sDLme / wp-query-ref.php
Created October 5, 2017 12:14 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?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(
#!/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 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: