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 | |
function geissinger_reading_warning_message() { | |
global $pagenow; | |
if ( $pagenow == 'options-reading.php' ) | |
echo '<div class="error"><h3>WARNING! Do not adjust the "Front Page Displays" options! Your theme depends on these settings!.</h3></div>'; | |
} | |
add_action( 'admin_notices', 'geissinger_reading_warning_message' ); |
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 | |
// Add our $post_type_name to Omnisearch! | |
if ( class_exists( 'Jetpack_Omnisearch_Posts' ) ) { | |
class CG_Post_Type_Omnisearch extends Jetpack_Omnisearch_Posts { | |
var $post_type = 'post-type-id-here'; | |
} | |
new CG_Post_Type_Omnisearch; | |
} | |
?> |
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
&:after { | |
content:''; | |
position:absolute; | |
top:50px; | |
left:50px; | |
width:100px; | |
height:100px; | |
background-color:#fff; | |
z-index:2; | |
} |
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
<div class="box center-center"></div> |
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
.box { | |
width:200px; | |
height:200px; | |
background-color:#DC403B | |
} |
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
/** | |
* Class CarA | |
*/ | |
class CarA implements Automobile { | |
protected $specs; | |
/** | |
* Constructor | |
* | |
* @param object $specs The object of data defining Car A |
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
/** | |
* Automobile interface | |
* | |
* Creates a contract that any class implementing this interface must abide by | |
*/ | |
interface Automobile { | |
/** | |
* steering_wheel function | |
* | |
* @access public |