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 logosListWidget = logosListWidget || {}; | |
| logosListWidget.render = function( id, JSON ){ | |
| // Model (Data for individual logo) | |
| var Logo = Backbone.Model.extend( { | |
| defaults: { | |
| 'url' : '', | |
| 'name': '' | |
| } | |
| } ); |
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 () { | |
| /** | |
| * Run function when customizer is ready. | |
| */ | |
| wp.customize.bind('ready', function () { | |
| wp.customize.control('slug_select_control', function (control) { | |
| /** | |
| * Run function on setting change of control. | |
| */ | |
| control.setting.bind(function (value) { |
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( blocks, element ) { | |
| var el = element.createElement; | |
| function Stars( { stars } ) { | |
| return el( 'div', { key: 'stars' }, | |
| '★'.repeat( stars ), | |
| ( ( stars * 2 ) % 2 ) ? '½' : '' ); | |
| } | |
| blocks.registerBlockType( 'stars/stars-block', { |
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 | |
| add_action( 'customize_register', function( $wp_customize ) { | |
| $custom_css_section = $wp_customize->get_section( 'custom_css' ); | |
| if ( $custom_css_section ) { | |
| // @todo The section-description-buttons should really not be part of the description help text. | |
| $custom_css_section->description = preg_replace( | |
| '/(?=<p class="section-description-buttons)|$/', | |
| '<p>' . __( 'Here are some additional instructions for the theme, for example certain class names or IDs to target.' ) . '</p>', | |
| $custom_css_section->description, |
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: WP Trac #42573: Fix for theme template file caching. | |
| * Description: Flush the theme file cache each time the admin screens are loaded which uses the file list. | |
| * Plugin URI: https://core.trac.wordpress.org/ticket/42573 | |
| * Author: Weston Ruter, XWP. | |
| * Author URI: https://weston.ruter.net | |
| */ | |
| function wp_42573_fix_template_caching( WP_Screen $current_screen ) { |
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
| const { __ } = wp.i18n; | |
| const { registerBlockType } = wp.blocks; | |
| const el = wp.element.createElement; | |
| registerBlockType( 'hiRoy/serverSide', { | |
| title: __( 'Server Side Block', 'text-domain' ), | |
| icon: 'networking', | |
| category: 'common', | |
| attributes: { |
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
| <!-- wp:paragraph --> | |
| <p><a href="https://gist.github.com/bph/335ddef358bb41efdcd159cbc76f582e">https://gist.github.com/bph/335ddef358bb41efdcd159cbc76f582e</a></p> | |
| <!-- /wp:paragraph --> | |
| <!-- wp:heading {"className":"eplus-oOhLNH"} --> | |
| <h2 class="eplus-oOhLNH">Common Blocks / Formatting / Layout Elements / Widgets and Embeds</h2> | |
| <!-- /wp:heading --> | |
| <!-- wp:list {"className":"eplus-eI3gin"} --> | |
| <ul class="eplus-eI3gin"><li><a href="#images">Images</a> (Single image, cover image, gallery </li><li><a href="#quotes">Pull Quote / Quote</a></li><li><a href="#verse">Verse</a></li><li><a href="#buttons">Buttons</a></li><li><a href="#socialicons" data-type="internal" data-id="#socialicons">Social Icons</a></li><li><a href="#columns">Columns </a> Text (only) columns / Columns experimental</li><li><a href="#cover" data-type="internal" data-id="#cover">Cover</a> with CAT + button</li><li><a href="#paragraphs">Paragraph</a> </li><li><a href="#audio">Audio</a> </li><li><a href="#video">Video</a></li><li><a href="#w |
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 | |
| /** | |
| * Additional JS Customizer Control | |
| * | |
| * @author Lee Anthony | |
| * @link https://seothemes.com | |
| * @copyright Copyright © 2018 SEO Themes | |
| * @license GPL-2.0-or-later | |
| */ |
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
| // License: GPLv2+ | |
| var el = wp.element.createElement, | |
| registerBlockType = wp.blocks.registerBlockType, | |
| ServerSideRender = wp.components.ServerSideRender, | |
| TextControl = wp.components.TextControl, | |
| InspectorControls = wp.editor.InspectorControls; | |
| /* | |
| * Here's where we register the block in JavaScript. |