This file contains 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
if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == "update_form") { | |
$membername = $_POST['membername']; | |
if($_POST['title']){ | |
$post_title = $_POST['title']; | |
} else { | |
$post_title = 'update'; | |
} | |
// ADD THE FORM INPUT TO $new_post ARRAY |
This file contains 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
var $video = $('.bg-video'); | |
//// Videos | |
function setProportion(video) { | |
var proportion = getProportion(video); | |
video.width(proportion*1920); | |
video.height(proportion*1080); | |
centerVideo(video); | |
} |
This file contains 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
/* Vendor prefixes have not yet been added */ | |
.icon-loading { | |
font-size: 56px; | |
left: 50%; | |
margin: -23px 0 0 -23px; | |
position: fixed; | |
top: 50%; | |
z-index: 9999; | |
text-shadow: 0 2px 1px rgba(0,0,0,.6); |
This file contains 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
ln -s /Volumes/Corporate/ME_Web/FTP/sitemanager.xml ~/.filezilla/sitemanager.xml |
This file contains 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 custom column to the Papers area | |
add_filter('manage_edit-[POST-TYPE]_columns', 'custom_papers_cols'); | |
function custom_papers_cols($gallery_columns) { | |
$new_columns['cb'] = '<input type="checkbox" />'; | |
$new_columns['id'] = __('ID'); | |
$new_columns['title'] = _x('Title', 'column name'); | |
$new_columns['papertype'] = __('Paper Type'); | |
$new_columns['author'] = __('University'); |
This file contains 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
/* | |
Cobalt theme by Carlos Asín | |
************************************ | |
A cobalt theme for Chrome Developer Tools inspired by Sublime Text 2 cobalt theme. | |
Modifies the source code and other smaller tweaks. |
This file contains 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 | |
$custom = new WP_Query(array('post_type'=>'block','posts_per_page'=>'4','orderby'=>'menu_order','order'=>'ASC')); | |
while ( $custom->have_posts() ) : $custom->the_post(); ?> | |
<? // THE LOOP ?> | |
<?php | |
endwhile; | |
wp_reset_postdata(); | |
?> |
This file contains 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
UPDATE wp_options SET option_value = 'http://www.newsite.com' WHERE option_name IN ('siteurl', 'home') | |
UPDATE wp_posts SET post_content=(REPLACE (post_content, '{old url}','{new url}')) |
This file contains 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 | |
//***********************************************************/ | |
// CREATE A FILTER BASED ON QUERY STRINGS FOR RELATIONSHIPS // | |
// URL FOR THIS EXAMPLE: /?practice_area=92,88&lawyer=69 // | |
//***********************************************************/ | |
// Get the query string for practice areas | |
$pas = explode(',', $_GET['practice_area']); | |
$lawyers = explode(',', $_GET['lawyer']); |
This file contains 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 | |
$relcases = new WP_Query(array('post_type'=>'verdicts','posts_per_page'=>'3', | |
'meta_query'=>array( | |
array( | |
'key' => 'rel_practice_area', | |
'value' => "$pID", | |
'compare' => 'LIKE' | |
) | |
)) | |
); ?> |