This file contains hidden or 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
| window.VcCustomElementView = vc.shortcode_view.extend( { | |
| elementTemplate: false, | |
| $wrapper: false, | |
| changeShortcodeParams: function ( model ) { | |
| var params; | |
| window.VcCustomElementView.__super__.changeShortcodeParams.call( this, model ); | |
| params = _.extend( {}, model.get( 'params' ) ); | |
| if ( ! this.elementTemplate ) { | |
| this.elementTemplate = this.$el.find( '.vc_custom-element-container' ).html(); |
This file contains hidden or 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
| /* ========================================================= | |
| * composer-view.js v0.2.1 | |
| * ========================================================= | |
| * Copyright 2013 Wpbakery | |
| * | |
| * Visual composer backbone/underscore version | |
| * ========================================================= */ | |
| (function ( $ ) { | |
| var i18n = window.i18nLocale, | |
| store = vc.storage, |
This file contains hidden or 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
| <?php | |
| /* | |
| Plugin Name: Rewrite Rule Tutorials | |
| */ | |
| add_action( 'init', 'pmg_rewrite_add_rewrites' ); | |
| function pmg_rewrite_add_rewrites() | |
| { | |
| add_rewrite_endpoint( 'json', EP_PERMALINK ); | |
| add_rewrite_rule( |
This file contains hidden or 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
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains hidden or 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
| <?php | |
| /* | |
| Register Fonts | |
| */ | |
| function studio_fonts_url() { | |
| $font_url = ''; | |
| /* | |
| Translators: If there are characters in your language that are not supported | |
| by chosen font(s), translate this to 'off'. Do not translate into your own language. |
This file contains hidden or 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 workflow = wp.media({ | |
| title: 'Select the images', | |
| // use multiple: false to disable multiple selection | |
| multiple: 'add', | |
| button: { | |
| text: 'Add selected images' | |
| }, | |
| library: { | |
| type: 'image' | |
| } |
This file contains hidden or 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
| /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ | |
| /*global wp,jQuery */ | |
| jQuery(document).ready(function($) { | |
| if (!window.wp || !window.wp.media) { | |
| return; | |
| } | |
| var media = window.wp.media; |
This file contains hidden or 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 ($) { | |
| "use strict"; | |
| /*global wp,jQuery */ | |
| var CustomGalleryEdit,CustomFrame; | |
| function customClasses() { | |
| var media = wp.media; | |
| var l10n = media.view.l10n; | |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.