This file contains 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($) { | |
function parseImagesFromCSS(doc) { | |
var i, j, | |
rule, | |
image, | |
pattern = /url\((.*)\)/, | |
properties = ['background-image', '-webkit-border-image'], | |
images = {}; | |
if (doc.styleSheets) { |
This file contains 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($) { | |
function parseImagesFromCSS(doc) { | |
var i, j, | |
rule, | |
image, | |
pattern = /url\((.*)\)/, | |
properties = ['background-image', '-webkit-border-image'], | |
images = {}; | |
if (doc.styleSheets) { |
This file contains 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
<!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> |
This file contains 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
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, |
This file contains 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
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"]); |
This file contains 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
{ | |
"name": "react-hello-world", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains 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
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' | |
) ); |
This file contains 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
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", |
This file contains 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 team_wrapper_block_function( $atts, $content ) { | |
extract( shortcode_atts( array( | |
'el_class' => '' | |
), $atts ) ); | |
ob_start(); | |
echo '<section class="team-wrapper"> | |
<div class="team-thumbnail"> |
This file contains 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 team_mate_block_function( $atts, $content ) { | |
extract( shortcode_atts( array( | |
'name' => '', | |
'status' => '', | |
'profile_image' => '', | |
'description' => '' | |
), $atts ) ); | |
ob_start(); | |
?> |
OlderNewer