For example you have your own shortcode "hello_name":
function hello($atts, $content) {
extract(shortcode_atts( array(
'salutation' => !empty($salutation) ? $salutation : 'Mr.',
<?php | |
function free_and_premium() { | |
vc_map( array( | |
"name" => __("Premium", "js_composer"), | |
"base" => "premium", | |
"content_element" => true, | |
"category" => "content>", | |
"show_settings_on_create" => false, | |
"params" => array( | |
// add params same as with any other content element |
// Not Working for Defaults | |
vc_map(array( | |
"name" => __("Google Map Holder", "js_composer") , | |
"icon" => YES_ADDON_ASSETS_URL ."images/yes-icon.png", | |
"weight" => 21, | |
"base" => "map_holder", | |
"description" => __("Add all locations inside this container", "js_composer") , | |
"as_parent" => array( | |
'only' => 'map_location' | |
) , |
/* | |
* CONTENT THREAD | |
*/ | |
let responses = new Map(); | |
let listener = ({ id, response }) => { | |
let callback = responses.get(id); | |
if (callback) { | |
responses.delete(id); | |
callback(response); | |
} |
server { | |
listen 1337; | |
server_name localhost; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
<?php | |
/** | |
* Description | |
* | |
* @package RacingJunk | |
* @copyright 2014 Internet Brands, Inc. All Rights Reserved. | |
*/ | |
namespace InternetBrands\RacingJunk; | |
/** |
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
_ ______ _ __ _ | |
(_) |___ / | | / _(_) | |
_ ___ ___ / /_______ _| |__ ______| |_ ___ __ |
<?php | |
class CollectionMonad extends Monad { | |
public function __construct(array $value) { | |
$this->value = $value; | |
} | |
public function bind($callback) { | |
$newValues = array(); | |
foreach ($this->value as $value) { | |
$newValues[] = $this->callCallback($callback, $value); |