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
<style type="text/css" media="screen"> | |
#editor { | |
position: relative; | |
height: 400px; | |
} | |
</style> | |
<div id="editor"></div> | |
<fieldset class="main"> | |
<div class="wrap"> | |
<?php echo Form::textarea('html', Input::previous('html', $article->html), array( |
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 namespace_add_custom_types( $query ) { | |
if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { | |
$query->set( 'post_type', array( | |
'post', 'nav_menu_item', 'your-custom-post-type-here' | |
)); | |
return $query; | |
} | |
} | |
add_filter( 'pre_get_posts', 'namespace_add_custom_types' ); |
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
<div id="myCarousel" class="carousel slide"> | |
<ol class="carousel-indicators"> | |
<li data-target="#myCarousel" data-slide-to="0" class="active"></li> | |
<li data-target="#myCarousel" data-slide-to="1"></li> | |
<li data-target="#myCarousel" data-slide-to="2"></li> | |
<li data-target="#myCarousel" data-slide-to="3"></li> | |
<li data-target="#myCarousel" data-slide-to="4"></li> | |
</ol> | |
<div class="carousel-inner"> | |
<?php query_posts('post_type=features&showposts=1'); ?> |
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 my_custom_post() { | |
register_post_type( 'my_custom_post', | |
array( | |
'labels' => array( | |
'name' => __( 'Custom Post' ), | |
'singular_name' => __( 'Custom_Post' ) | |
), | |
'public' => true, | |
'has_archive' => true, | |
'supports' => array('title', 'editor', 'thumbnail', 'custom-fields'), |
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
@fancy-color: #333; | |
.fancy{ | |
overflow: hidden; | |
text-align: center; | |
span { | |
display: inline-block; | |
position: relative; | |
&:before, &:after { | |
content: ""; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Redirecting...</title> | |
<!------------------------------------------------------------------ | |
MaxMind's GeoIP JavaScript API | |
@URL: http://dev.maxmind.com/geoip/javascript | |
--------------------------------------------------------------------> | |
<script src="//j.maxmind.com/app/country.js" charset="ISO-8859-1"></script> |
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
<div class="row"> | |
<?php query_posts('showposts=4'); ?> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="col-sm-4 recent-entry"> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
<?php the_excerpt(); ?> | |
<a href="<?php the_permalink(); ?>">Continued</a> | |
</div> | |
<?php endwhile; endif; ?> | |
<?php wp_reset_query(); ?> |
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 get_template_part('templates/head'); ?> | |
<body <?php body_class(); ?>> | |
<!--[if lt IE 8]> | |
<div class="alert alert-warning"> | |
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ?> | |
</div> | |
<![endif]--> | |
<?php |
OlderNewer