Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| (function ($) { | |
| "use strict"; | |
| /*global wp,jQuery */ | |
| var CustomGalleryEdit,CustomFrame; | |
| function customClasses() { | |
| var media = wp.media; | |
| var l10n = media.view.l10n; | |
| /*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; |
| 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' | |
| } |
| <?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. |
| 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 |
| <?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( |
| /* ========================================================= | |
| * composer-view.js v0.2.1 | |
| * ========================================================= | |
| * Copyright 2013 Wpbakery | |
| * | |
| * Visual composer backbone/underscore version | |
| * ========================================================= */ | |
| (function ( $ ) { | |
| var i18n = window.i18nLocale, | |
| store = vc.storage, |