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
/** | |
* Change styles applied to one page | |
* | |
* Uses 'wp' to run after WP class object so page content is available | |
*/ | |
function sv_hide_header_footer_for_page() { | |
if( is_page( 2576 ) ) { | |
?> <style> | |
header#header, |
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
imports system.io | |
ComboBox1.Items.AddRange(File.ReadAllLines(filepath)) |
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
#instructor .num { | |
display: table; | |
font-size: 20px; | |
font-weight: bold; | |
color: white; | |
line-height: 24px; | |
height: 240px; | |
width: 240px; | |
text-align: center; | |
background: #dd5638; |
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( 'admin_init', 'redirect_non_admin_users' ); | |
/** | |
* Redirect non-admin users to home page | |
* | |
* This function is attached to the 'admin_init' action hook. | |
*/ | |
function redirect_non_admin_users() { | |
if ( ! current_user_can( 'administrator' ) && '/wp-admin/admin-ajax.php' != $_SERVER['PHP_SELF'] ) { | |
wp_redirect( home_url() ); | |
exit; |
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 | |
$myposts = get_posts(array( | |
'showposts' => -1, | |
'post_type' => 'gallery', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'gallery_cat', | |
'field' => 'slug', | |
'terms' => array('sunsets', 'nature')) | |
)) |
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
<body oncontextmenu = "return false"></body> | |
or | |
<body oncopy = "return false"></body> |
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
.element{ | |
animation: colorchange 5s linear infinite; /* animation-name followed by duration in seconds*/ | |
/* you could also use milliseconds (ms) or something like 2.5s */ | |
-webkit-animation: colorchange 5s linear infinite; /* Chrome and Safari */ | |
-moz-animation: colorchange 5s linear infinite; /* Firefox */ | |
-o-animation: colorchange 5s linear infinite; /* Opera */ | |
} | |
@keyframes colorchange |
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
Options +Indexes |
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
$args = array( | |
'type' => 'post', | |
'child_of' => 0, | |
'parent' => 0, | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => 0, | |
'hierarchical' => 1, | |
'exclude' => '', | |
'include' => '', |