Quickly disable all plugins in WordPress.
This plugin needs to go into the wp-content/mu-plugins/
directory. Provided you have SSH access to the server where WordPress lives, you can do this:
cd $SITE_ROOT/wp-content/mu-plugins
/** | |
* Detects if two elements are colliding | |
* | |
* Credit goes to BC on Stack Overflow, cleaned up a little bit | |
* | |
* @link http://stackoverflow.com/questions/5419134/how-to-detect-if-two-divs-touch-with-jquery | |
* @param $div1 | |
* @param $div2 | |
* @returns {boolean} | |
*/ |
var some_var = 'something'; | |
var func = function() { | |
console.log( some_var ); // logs "something" | |
}; | |
func(); |
<?php | |
/** | |
* A class filled with functions that will never go away upon theme deactivation | |
* | |
* @package WordPress | |
* @subpackage GRD | |
* @version 0.1.0 | |
*/ | |
class GRD_Functions { |
// Takes you to the site's base url and appends '/wp-admin' | |
javascript:(function(){ var url = !window.location.origin ? window.location.protocol+'//'+window.location.host : window.location.origin; window.open(url+'/wp-admin'); })(); |
<?php if ( $station_phone = genesis_get_option( 'station_phone' ) ) { ?> | |
<div class="live-toolbar-phone alignright"> | |
<span>Request Line: <?php echo $station_phone; ?></span> | |
</div> | |
<?php } ?> |
if ( ! empty( $instance['show_content'] ) ) { | |
if ( 'excerpt' == $instance['show_content'] ) { | |
the_excerpt(); | |
} elseif ( 'content-limit' == $instance['show_content'] { | |
if ( strip_shortcodes( get_the_content() ) != '' ) { | |
the_content_limit( (int) $instance['content_limit'], esc_html( $instance['more_text'] ) ); | |
} elseif ( get_the_content() != '' && strip_shortcodes( get_the_content() ) == '' ) { | |
// do nothing | |
} | |
} else { |
<?php | |
/** | |
* Adds Radio Latest News Widget. | |
* | |
* @package Radio | |
* @package Widgets | |
* @author Greg Rickaby and StudioPress | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) | |
* @link http://www.studiopress.com/themes/genesis | |
*/ |
if ( ! empty( $instance['show_content'] ) ) { | |
if ( 'excerpt' == $instance['show_content'] ) | |
the_excerpt(); | |
elseif ( 'content-limit' == $instance['show_content'] && strip_shortcodes( $post->post_content ) != '' ) { | |
the_content_limit( (int) $instance['content_limit'], esc_html( $instance['more_text'] ) ); | |
} | |
else | |
the_content( esc_html( $instance['more_text'] ) ); | |
} |