Skip to content

Instantly share code, notes, and snippets.

View neroze's full-sized avatar
🎯
Focusing

Jumper neroze

🎯
Focusing
View GitHub Profile
(function($) {
function parseImagesFromCSS(doc) {
var i, j,
rule,
image,
pattern = /url\((.*)\)/,
properties = ['background-image', '-webkit-border-image'],
images = {};
if (doc.styleSheets) {
(function($) {
function parseImagesFromCSS(doc) {
var i, j,
rule,
image,
pattern = /url\((.*)\)/,
properties = ['background-image', '-webkit-border-image'],
images = {};
if (doc.styleSheets) {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>HTML5 camera test</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<form>
var webpack = require('webpack');
var path = require('path');
var BUILD_DIR = path.resolve(__dirname, 'src/client/public/');
var APP_DIR = path.resolve(__dirname, 'src/client/app');
var config = {
entry: APP_DIR + '/index.js',
output: {
path: BUILD_DIR,
var gulp = require("gulp");
var gutil = require("gulp-util");
var webpack = require("webpack");
var webpack = require('webpack-stream');
var webpackConfig = require("./webpack.config.js");
var uglify = require('gulp-uglify');
// The development server (the recommended option for development)
gulp.task("default", ["webpack:build-dev"]);
{
"name": "react-hello-world",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
vc_map( array(
"name" => __("Team Wrapper", "my-text-domain"),
"base" => "team_wrapper",
'category' =>__('Team', 'rhthm'),
"as_parent" => array('only' => 'team_mate'), // Use only|except attributes to limit child shortcodes (separate multiple values with comma)
"content_element" => true,
"show_settings_on_create" => false,
"is_container" => true,
"js_view" => 'VcColumnView'
) );
vc_map( array(
"name" => __("Team Mate", "rhthm"),
"base" => "team_mate",
'category' =>__('Team', 'rhthm'),
"content_element" => true,
"as_child" => array('only' => 'team_wrapper'), // Use only|except attributes to limit parent (separate multiple values with comma)
"params" => array(
// add params same as with any other content element
array(
"type" => "textfield",
function team_wrapper_block_function( $atts, $content ) {
extract( shortcode_atts( array(
'el_class' => ''
), $atts ) );
ob_start();
echo '<section class="team-wrapper">
<div class="team-thumbnail">
function team_mate_block_function( $atts, $content ) {
extract( shortcode_atts( array(
'name' => '',
'status' => '',
'profile_image' => '',
'description' => ''
), $atts ) );
ob_start();
?>