This file contains hidden or 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
diff --git a/yearonly.module b/yearonly.module | |
index c3ad6f3..bc9bc33 100644 | |
--- a/yearonly.module | |
+++ b/yearonly.module | |
@@ -28,3 +28,26 @@ function yearonly_help($route_name, RouteMatchInterface $route_match) { | |
return $output; | |
} | |
} | |
+ | |
+/** |
This file contains hidden or 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
diff --git a/current_content.info b/current_content.info | |
deleted file mode 100755 | |
index ebafa1f..0000000 | |
--- a/current_content.info | |
+++ /dev/null | |
@@ -1,6 +0,0 @@ | |
-name = Current content | |
-description = A module that lists links to content created within the last week. | |
- | |
-core = 7.x |
This file contains hidden or 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
// Place admin message about the Carousel Video and Carousel categories | |
function pz_carousel_admin_notice() { | |
if ( is_admin() ) { | |
if ( in_category('Carousel Video') ) { | |
$class = 'video-carousel-notice notice notice-info is-dismissible'; | |
$message = __( 'Video Carousel posts are ordered by most recently updated to least. They display on the homepage', 'sample-text-domain' ); | |
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); | |
} | |
if ( in_category('Carousel') ) { |
This file contains hidden or 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 | |
/** | |
* @package jd-check-theme-activity | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Check Theme Activity | |
Plugin URI: https://joseph-dickson.com | |
Description: Dashboard widgets that display which themes are active. |
This file contains hidden or 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 | |
/** | |
* @package jd-check-plugin-activity | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Check Plugin Activity | |
Plugin URI: https://joseph-dickson.com | |
Description: Dashboard widgets that display which plugins are active. |
This file contains hidden or 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 | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); | |
echo '<article>'; | |
echo '<a href="' . get_permalink() . '">'; | |
the_title( '<h2 class="entry-title">','</h2>' ); | |
if (has_post_thumbnail() ) { | |
// get thumbnail id for use later | |
$thumbnail_id = get_post_thumbnail_id(); |
This file contains hidden or 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 | |
/** | |
* Single post and page template for restricting the title and content unless the user is logged in | |
* Sources: | |
* https://www.wpbeginner.com/wp-themes/create-custom-single-post-templates-for-specific-posts-or-sections-in-wordpress/ | |
* https://codex.wordpress.org/Conditional_Tags | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post | |
* | |
* @package WordPress |
This file contains hidden or 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_action( 'wp_enqueue_scripts', 'twenty_seventeen_gutenberg_enqueue_styles' ); | |
// Font size options | |
function mytheme_setup_theme_supported_features() { | |
add_theme_support( 'editor-font-sizes', array( | |
array( | |
'name' => __( 'extra small', 'themeLangDomain' ), | |
'shortName' => __( 'xs', 'themeLangDomain' ), | |
'size' => 10, | |
'slug' => 'extrasmall' |