View _mixins.scss
// Text Color Mixin. | |
@mixin color($colorVar) { | |
color: map-get($themeColors, $colorVar); | |
color: var($colorVar); | |
} | |
// Background Color mixin. | |
@mixin backgroundColor($colorVar) { | |
background-color: map-get($themeColors, $colorVar); | |
background-color: var($colorVar); |
View index.js
/** | |
* WordPress dependencies | |
*/ | |
const { registerPlugin } = wp.plugins; | |
/** | |
* Internal dependencies | |
*/ | |
import plugin from './plugin'; |
View functions-1.php
/** | |
* Return Social Sharing Links. | |
*/ | |
function theme_slug_social_sharing() { | |
// Get current page URL. | |
$page_url = get_permalink(); | |
// Get current page title. | |
$page_title = get_the_title(); |
View themezee-featured-content-cache-reset.php
<?php | |
/* | |
Plugin Name: ThemeZee Featured Content Cache Reset | |
Plugin URI: https://themezee.com | |
Description: Resets the transient caching for featured posts on WordPress.com | |
Author: ThemeZee | |
Author URI: https://themezee.com/ | |
Version: 1.0 | |
Text Domain: themezee-featured-content-cache-reset | |
License: GPL v3 |
View scroll-to-top.js
/** | |
* Scroll to Top JS | |
*/ | |
( function( $ ) { | |
$.fn.scrollToTop = function() { | |
var scrollButton = $( this ); |
View content-portfolio.php
<?php | |
/** | |
* The template used for displaying portfolio items. | |
*/ | |
?> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<a href="<?php the_permalink(); ?>" rel="bookmark"> | |
<?php the_post_thumbnail( 'medium' ); ?> |
View style.css
body.page-template-template-full-width #content #primary { | |
max-width: 100%; | |
} | |
body.page-template-template-full-width #content #primary .entry-header, | |
body.page-template-template-full-width #content #primary .entry-content { | |
float: none; | |
width: 100%; | |
} |
View archive.php
<?php | |
/** | |
* The template for displaying archive pages | |
*/ | |
get_header(); ?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> |
View functions.php
<?php | |
/** | |
* Shortcode to display a WordPress menu | |
* | |
*/ | |
function theme_slug_menu_shortcode( $atts ) { | |
// Get Shortcode Parameters. | |
$menu = shortcode_atts( array( | |
'slug' => '', |
NewerOlder