From a324a3698c3be69d8c7ac8651840f3538314f033 Mon Sep 17 00:00:00 2001 From: Ted Balmer Date: Tue, 16 Nov 2021 21:17:39 -0600 Subject: [PATCH] 11-16-2021 --- archive.php | 6 +----- assets/css/layout.css | 15 ++++++++++----- attachment.php | 2 +- functions.php | 25 ++++++++++++++++++++----- index.php | 13 ++----------- single.php | 6 +----- 6 files changed, 35 insertions(+), 32 deletions(-) diff --git a/archive.php b/archive.php index a9592241..bb21f876 100755 --- a/archive.php +++ b/archive.php @@ -55,11 +55,7 @@ on %s)', 'textdomain' ), get_the_modified_date() ); ?> - post_content)) < 430) $largerFont = 'entry-largefont'; - ?> -
+
Continue Reading »

'); ?>
diff --git a/assets/css/layout.css b/assets/css/layout.css index c8981501..d247e2fc 100644 --- a/assets/css/layout.css +++ b/assets/css/layout.css @@ -836,22 +836,27 @@ Page Specific Styling text-align: center; } -/* Image Viewer Page */ +/* Attachment/Image Page */ .page-image .attachment { text-align: center; font-size: 1.2em; } -.page-image .image-info { - opacity: 0.7; -} - .page-image .attachment img { background-color: rgba(0,0,0,0.14); border: 1px solid #fff; box-shadow: 0 10px 10px -6px rgba(0,0,0,0.6), 0 5px 10px -2px rgba(0,0,0,0.1); } +.page-image .image-info { + opacity: 0.7; + font-size: 0.8em; +} + +.page-image .image-nav a { + margin: 14px; +} + /* Comment Block */ .list-comments { list-style: none; diff --git a/attachment.php b/attachment.php index f8702eef..4752862d 100755 --- a/attachment.php +++ b/attachment.php @@ -16,7 +16,7 @@ Uploaded on by

-

View the full image

+

View the full image

diff --git a/functions.php b/functions.php index 703f77b8..9f885e38 100755 --- a/functions.php +++ b/functions.php @@ -39,6 +39,13 @@ function numberToRoman($variable) { return $result; } +// Swaps some special characters with words +function CharSwap($string) { + $string = preg_replace('/\%/', 'percent', $string); + $string = preg_replace('/\&/', 'and', $string); + return $string; +} + ///////////////////////////// // WordPress Functions @@ -95,13 +102,21 @@ function SearchCount($query) { return $search_count; } -// Swaps some special characters with words -function CharSwap($string) { - $string = preg_replace('/\%/', 'percent', $string); - $string = preg_replace('/\&/', 'and', $string); - return $string; +// Get WordPress page content for select special pages +function GetPageContent($id) { + $page_for_posts_id = get_option( $id ); + $page_for_posts_obj = get_post( $page_for_posts_id ); + return apply_filters( 'the_content', $page_for_posts_obj->post_content ); } +// Enlarge blog post text for short blog posts +function ResizeFontClass($content) { + if (strlen(wp_strip_all_tags($content)) < 430) { + return 'entry-largefont'; // Larger font size + } else { + return 'entry-defaultfont'; // Default font size + } +} // Add featured image to posts and pages //add_theme_support( 'post-thumbnails' ); diff --git a/index.php b/index.php index abf47d12..73f9d867 100755 --- a/index.php +++ b/index.php @@ -7,12 +7,7 @@

The Blog

-post_content ); -?> +
@@ -31,11 +26,7 @@ %s)', 'textdomain' ), get_the_modified_date() ); ?> - post_content)) < 430) $largerFont = 'entry-largefont'; - ?> -
+
Continue Reading »

'); ?>
diff --git a/single.php b/single.php index 95d203bb..38d71773 100755 --- a/single.php +++ b/single.php @@ -16,11 +16,7 @@ - post_content)) < 430) $largerFont = 'entry-largefont'; - ?> -
+
Continue Reading »

'); ?>