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 | |
/** | |
* Find Scrollbar width, necessary for sensible, perfect, Wide and Full Alignments. | |
* | |
* @package Some_Theme | |
*/ | |
/** | |
* Learned from code at | |
* https://www.filamentgroup.com/lab/scrollbars/ | |
* and |
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
#!/bin/bash | |
# Exit if any command fails | |
set -e | |
echo -e "Setting up Local SSL...\n" | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color |
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
{ | |
"cmd": [ | |
"lessc", | |
"${file_base_name}.less", | |
"${file_base_name}.css", | |
"--no-color", | |
"--no-ie-compat", | |
"--verbose", | |
"--source-map=${file_base_name}.map", | |
], |
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_value memory_limit 64M | |
php_value upload_max_filesize 8M | |
php_value post_max_size 8M | |
php_value max_execution_time 200 | |
php_value max_input_time 200 | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
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: Post Format test | |
add_action( 'edit_form_after_title', 'test_post_format' ); | |
function test_post_format() { ?> | |
<nav id="post-format-test" class="button-group post-format-select" style="white-space:normal"><a class="button active" data-wp-format="standard" href="?format=standard">Standard</a><a class="button" data-wp-format="aside" href="?format=aside">Aside</a><a class="button" data-wp-format="chat" href="?format=chat">Chat</a><a class="button" data-wp-format="gallery" href="?format=gallery">Gallery</a><a class="button" data-wp-format="link" href="?format=link">Link</a><a class="button" data-wp-format="image" href="?format=image">Image</a><a class="button" data-wp-format="quote" href="?format=quote">Quote</a><a class="button" data-wp-format="status" href="?format=status">Status</a><a class="button" data-wp-format="video" href="?format=video">Video</a><a class="button" data-wp-format="audio" href="?format=audio">Audio</a></nav> | |
<script> | |
jQuery(function($){ | |
$('h2.nav-tab-wrapper.post-forma |
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
<object | |
id="flashObj" | |
width="630" | |
height="534" | |
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" | |
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0" | |
> | |
<param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9?isVid=1" /> | |
<param name="bgcolor" value="#FFFFFF" /> |
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
define ( 'WP_DEBUG', false ); | |
if ( WP_DEBUG ) { | |
define( 'WP_DEBUG_DISPLAY', false ); | |
ini_set( 'display_errors', 1 ); // the above doesn't set this for you. | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'SCRIPT_DEBUG', true ); | |
define( 'CONCATENATE_SCRIPTS', false ); | |
define( 'COMPRESS_SCRIPTS', false ); | |
define( 'COMPRESS_CSS', false ); |
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 | |
exec('wget http://wordpress.org/latest.tar.gz'); | |
exec('tar -xzvf latest.tar.gz'); | |
?> |