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 ~| /* | |
| * Supposition v0.3a - an optional enhancer for Superfish jQuery menu widget | |
| * | |
| * Copyright (c) 2013 Joel Birch - based on work by Jesse Klaasse - credit goes largely to him. | |
| * Special thanks to Karl Swedberg for valuable input. | |
| * | |
| * Dual licensed under the MIT and GPL licenses: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl.html | |
| */ |
| <?php | |
| /** | |
| * Set blog, index, archive & post thumbnail sizes | |
| */ | |
| /* Blog */ | |
| function wpt_blog_thumbnail_width( $width ) { | |
| return 150; //blog thumbnail width in pixels | |
| } | |
| add_filter( 'et_pb_blog_image_width', 'wpt_blog_thumbnail_width'); |
| <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> |
| <?php | |
| add_action('restrict_manage_posts', [$this, 'taxonomyFilter']); | |
| add_filter('parse_query', [$this, 'filterByTaxonomy']); | |
| … | |
| public function taxonomyFilter() | |
| { | |
| global $typenow; |
| <?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 |
| /** | |
| * External Dependencies | |
| */ | |
| import classnames from 'classnames'; | |
| /** | |
| * WordPress Dependencies | |
| */ | |
| const { __ } = wp.i18n; | |
| const { addFilter } = wp.hooks; |
| <?php | |
| /** | |
| * ***************************************************************************** | |
| * GIST - EXIF 01 - Get EXIF-Information from wp_get_attachment_image_attributes | |
| * ***************************************************************************** | |
| */ | |
| if ( is_attachment() ) { | |
| $imgmeta = wp_get_attachment_metadata( $id ); |
| <?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 |