View AnchorCMS ACE Editor
<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( |
View Custom Posts in Category
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' ); |
View Custom Post Slider
<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'); ?> |
View WP Custom Posts
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'), |
View fancy-h-tag.less
@fancy-color: #333; | |
.fancy{ | |
overflow: hidden; | |
text-align: center; | |
span { | |
display: inline-block; | |
position: relative; | |
&:before, &:after { | |
content: ""; |
View gist:6699805
<!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> |
View Custom Post Loop
<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(); ?> |
View Border Side Bar for roots.io
<?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