Skip to content

Instantly share code, notes, and snippets.

View carolinan's full-sized avatar

Carolina Nymark carolinan

View GitHub Profile
<?php
/**
* Custom template tags for this theme.
*
* @package miranda
*/
if ( ! function_exists( 'miranda_paging_nav' ) ) :
/**
* Display navigation to next/previous set of posts when applicable.
@carolinan
carolinan / gist:eb8a91f65613cf094d8c
Created February 5, 2015 06:13
content-single.php
<?php
/**
* @package aaron
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('aaron-border'); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
@carolinan
carolinan / gist:563abeb338c68e800f86
Created February 5, 2015 06:14
content-portfolio-single
<?php
/**
* @package aaron
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('aaron-border'); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
@carolinan
carolinan / gist:78cba06e0c5c2a9b06a7
Created February 5, 2015 06:23
aaron_portfolio_footer
if ( ! function_exists( 'aaron_portfolio_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function aaron_portfolio_footer() {
if( get_theme_mod('aaron_hide_meta')=="" ){
echo '<footer class="entry-footer">';
@carolinan
carolinan / gist:a41351b0ec745bace35c
Created April 26, 2015 01:40
header on posts and pages
else if (is_single() || is_page()) {
?>
<header id="masthead" role="banner">
<?php if (display_header_text() ) { ?>
<div class="site-title" style="text-align:center; margin-top:130px;"><a href="<?php echo esc_url( home_url('/') ); ?>" style="text-decoration:none;"><?php bloginfo( 'name' ); ?></a></div>
<?php }
?>
</header><!-- #masthead -->
<?php
} ?>
<?php
/**
* Template Name: Static and Featured
*
* Description: A Page Template that displays your static frontpage and featured content,
* @package aaron
*/
get_header();
<?php
function aaron_highlights() {
/*
* Frontpage Highlights
*/
if( !get_theme_mod( 'aaron_hide_highlight' ) ){
for ($i = 1; $i < 10; $i++) {
//Is this highlight visisble?
if ( !get_theme_mod( 'aaron_highlight' . $i . '_hide' ) ){
<?php
/**
* The template used for displaying page content in page.php
*
* @package aaron
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
<?php
/**
* @package aaron
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('aaron-border'); ?>>
<header class="entry-header">
<?php
if ( !aaron_get_meta( 'aaron_replace_title' ) ){
Things we do not allow:
function qqq_scripts() {
wp_enqueue_style( 'bootstrapcss', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css');
wp_enqueue_script( 'popperjs', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js', array( 'jquery'), '1.14.7', true );
wp_enqueue_script( 'bootstrapjs', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array( 'jquery'), '4.1.3', true );
wp_enqueue_style( 'font-awesome', 'https://use.fontawesome.com/releases/v5.8.1/css/all.css' );
}
function qqq_scripts() {