Real Life | H:LOTS Character | Actor |
---|---|---|
Lt. Gary D'Addario | Al Giardello | Yaphet Kotto |
Det. Sgt. Terrence McLarney | Steve Crosetti | Jon Polito |
Det. Donald Worden | Stan Bolander | Ned Beaty |
Det. Rick James | ||
Det. Ed Brown | ||
Det. Donald Waltermeyer | Meldrick Lewis | Clark Johnson |
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.thumbnail %} | |
<img src="{{post.thumbnail.src}}" /> | |
{% elseif post.heroimage %} | |
<img src="{{post.heroimage.src}}|resize(300, 300)" /> | |
{% else %} | |
<img src="/wp-content/themes/mytheme/default-image.jpg" /> | |
{% endif %} |
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
$context = Timber::get_context(); | |
$context['slides'] = Timber::get_posts('post_type=slides'); | |
$context['pages'] = Timber::get_posts('post_type=page&posts_per_page=2'); | |
$context['portfolio'] = Timber::get_posts('post_type=portfolio'); | |
$context['posts'] = Timber::get_posts(); //leave blank for default page query | |
Timber::render('front-page.twig', $context); |
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
{# This is a Twig comment, it won't output to the browser #} | |
<html> | |
<head> | |
<title>{{ wp_title }}</title> | |
</head> | |
{% block content %} | |
<!-- This will be overwritten by the content block in the inheriting .twig file --> | |
{% endblock %} | |
</html> |
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
body { | |
color: purple; | |
background-color: gray; | |
} |
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 | |
class ClientEvent extends ClientPost { | |
protected $_venue; | |
protected $_hosts; | |
protected $_master_id; | |
protected $_is_alt_event; // whether or not this instance is an alt date/time of another event | |
protected $_is_alt_event_or_master; // whether or not this instance is an alt event or a master with alts |
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
/** | |
* @param Twig_LoaderInterface $loader | |
* @param array $environment_args | |
* | |
* @return Twig_Environment | |
*/ | |
public function get_twig_environment( $loader, $environment_args ) { | |
return new \Twig\Environment( $loader, $environment_args ); | |
} |
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 | |
require_once('../plugins/timber-library/timber.php'); |
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_shortcode( 'section-break', function($attributes = array(), $content = null) { | |
return '<div class="article-body-section-break"></div>'; | |
} ); | |
add_shortcode( 'email-tease', function($attributes = array(), $content = null) { | |
return Timber::compile('partials/newsletter.twig', array('context_class' => 'newsletter-signup--in-article', 'text' => $content)); | |
} ); |
NewerOlder