Skip to content

Instantly share code, notes, and snippets.

@monnoval
monnoval / hf-solo-import_field-groups.json
Last active August 29, 2015 14:14
HF Group - Import setting for Field Groups
[{"post_title":"Homepage Fields","post_name":"homepage","cfs_fields":[{"id":1,"name":"location_tabs","label":"Location Tabs","type":"loop","notes":"","parent_id":0,"weight":0,"options":{"row_display":"0","row_label":"Tab","button_label":"Add Tab","limit_min":"1","limit_max":"5"}},{"id":2,"name":"tab_title","label":"Tab Title","type":"text","notes":"","parent_id":1,"weight":1,"options":{"default_value":"","required":"0"}},{"id":3,"name":"tab_content","label":"Tab Content","type":"wysiwyg","notes":"","parent_id":1,"weight":2,"options":{"formatting":"default","required":"0"}}],"cfs_rules":{"page_templates":{"operator":"==","values":["hf-solo-tpl-home\/hf-solo-tpl-home.php"]}},"cfs_extras":{"order":"0","context":"normal","hide_editor":"0"}}]
@monnoval
monnoval / lansonplace-solo-fieldsuite-homepage.json
Created May 28, 2015 04:52
lansonplace-solo-fieldsuite-homepage
[{"post_title":"Homepage Fields","post_name":"homepage-fields","cfs_fields":[{"id":"5","name":"banner_1","label":"Banner 1","type":"tab","notes":"","parent_id":0,"weight":0,"options":[]},{"id":"1","name":"banner_1_img","label":"Banner Image","type":"file","notes":"","parent_id":0,"weight":1,"options":{"return_value":"url","required":"0"}},{"id":"2","name":"banner_1_link","label":"Banner Link","type":"text","notes":"","parent_id":0,"weight":2,"options":{"default_value":"","required":"0"}},{"id":13,"name":"banner_1_caption","label":"Banner Caption","type":"text","notes":"","parent_id":0,"weight":3,"options":{"default_value":"","required":"0"}},{"id":"3","name":"banner_1_desc","label":"Banner Description","type":"textarea","notes":"If banner is hovered, this caption will show.","parent_id":0,"weight":4,"options":{"default_value":"","formatting":"auto_br","required":"0"}},{"id":"6","name":"banner_2","label":"Banner 2","type":"tab","notes":"","parent_id":0,"weight":5,"options":[]},{"id":"7","name":"banner_2_img","
@monnoval
monnoval / lansonplace-solo-pods.json
Created May 28, 2015 04:56
lansonplace-solo-pods.json
{"meta":{"version":"2.5.2","build":1432788912},"pods":{"4":{"id":4,"name":"meeting","label":"Meetings","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":[],"show_in_menu":"1","label_singular":"Meeting","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"news","capability_type_extra":"1","has_archive":"1","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"1","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_media_tag":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in
@monnoval
monnoval / jquery.lazy-load-google-maps-cn.js
Last active August 29, 2015 14:23
Lazy-loading Google Maps for China
/*
By Osvaldas Valutis, www.osvaldas.info
Available for use under the MIT License
*/
window.googleMapsScriptLoaded = function()
{
$( window ).trigger( 'googleMapsScriptLoaded' );
};
/* jQuery UI - v1.10.4 - 2014-01-17
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
.ui-helper-hidden {
display: none
}
.ui-helper-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
/* jQuery UI - v1.10.4 - 2014-01-17
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
.ui-datepicker {
width: 17em;
padding: .2em .2em 0;
display: none
}
.ui-datepicker .ui-datepicker-header {
/* jQuery UI - v1.10.4 - 2014-01-17
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
.ui-widget {
font-family: Verdana, Arial, sans-serif;
font-size: 1.1em
}
.ui-widget .ui-widget {
font-size: 1em
@monnoval
monnoval / start.sh
Created February 7, 2016 12:11
Bash script to start a new project using Bare wordpress starter theme
#! /bin/bash
echo -n "Name of your theme: "
read -e THEME
git clone --depth=1 [email protected]:msnoval/bare.git $THEME
cd ${THEME}
rm -rf .git
npm install gulp -g
npm install bower -g
npm install
{
"bold_folder_labels": true,
"theme": "Piatto Light.sublime-theme",
"color_scheme": "Packages/Theme - Piatto/Piatto Light.tmTheme",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
],
@monnoval
monnoval / gist:647ae2277544ef15da0a4f0936f6c9df
Created September 9, 2016 04:18
Subllime search replace string
url\(http://cdnjs.cloudflare.com([\s\S]*?)\.png\)