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
// 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); |
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
/** | |
* WordPress dependencies | |
*/ | |
const { registerPlugin } = wp.plugins; | |
/** | |
* Internal dependencies | |
*/ | |
import plugin from './plugin'; |
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
/** | |
* 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(); |
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 | |
/* | |
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 |
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
/** | |
* Scroll to Top JS | |
*/ | |
( function( $ ) { | |
$.fn.scrollToTop = function() { | |
var scrollButton = $( this ); |
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 | |
/** | |
* 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' ); ?> |
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.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%; | |
} |
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 | |
/** | |
* The template for displaying archive pages | |
*/ | |
get_header(); ?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> |
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 | |
/** | |
* Shortcode to display a WordPress menu | |
* | |
*/ | |
function theme_slug_menu_shortcode( $atts ) { | |
// Get Shortcode Parameters. | |
$menu = shortcode_atts( array( | |
'slug' => '', |
NewerOlder