SSH into your server and stay in the home directory of the user.
Install composer using curl. Check if you have a bin directory in your user directory already, in case you do, omit the mkdir bin.
cd ~| // set alignment options for cover, video, and paragraph blocks. | |
| wp.hooks.addFilter( | |
| 'blocks.registerBlockType', | |
| 'hd-theme/hd-theme', | |
| function( settings, name ) { | |
| if ( name === 'core/cover' || name === 'core/video' || name === 'core/paragraph' || name === 'core/list' ) { | |
| return lodash.assign( {}, settings, { | |
| supports: lodash.assign( {}, settings.supports, { | |
| // allow support for full and wide alignment. | |
| align: ['full', 'wide'], |
| /** | |
| * Overwrite/bypass <iframe></iframe> height limit imposed by Wordpress | |
| * Original idea from bypass-iframe-height-limit plugin by Justin Carboneau | |
| * Adapted from original /wp-includes/js/wp-embed.js | |
| */ | |
| (function(window, document) { | |
| 'use strict'; | |
| var supportedBrowser = false; |
| <?php | |
| // PHP memory limit for this site | |
| define( 'WP_MEMORY_LIMIT', '128M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
| // Database | |
| define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
| define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
| // Explicitely setting url |
| <?php | |
| /** | |
| * ***************************************************************************** | |
| * GIST - EXIF 01 - Get EXIF-Information from wp_get_attachment_image_attributes | |
| * ***************************************************************************** | |
| */ | |
| if ( is_attachment() ) { | |
| $imgmeta = wp_get_attachment_metadata( $id ); |
| /** | |
| * External Dependencies | |
| */ | |
| import classnames from 'classnames'; | |
| /** | |
| * WordPress Dependencies | |
| */ | |
| const { __ } = wp.i18n; | |
| const { addFilter } = wp.hooks; |
| <?php | |
| /* | |
| Plugin Name: Homepage Settings for BigBang | |
| Plugin URI: http://www.inboundnow.com/ | |
| Description: Adds additional functionality to the big bang theme. | |
| Author: David Wells | |
| Author URI: http://www.inboundnow.com | |
| */ | |
| // Specify Hooks/Filters |
| <?php | |
| add_action('restrict_manage_posts', [$this, 'taxonomyFilter']); | |
| add_filter('parse_query', [$this, 'filterByTaxonomy']); | |
| … | |
| public function taxonomyFilter() | |
| { | |
| global $typenow; |
| <script>!function(a,b){"use strict";b.documentElement.className=b.documentElement.className.replace("no-js","js"),("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(document.documentElement.className=document.documentElement.className.replace("no-touch","touch"))}(window,document);</script> |