From 1958efe40fff8ca49129c1700c53034c4559fb64 Mon Sep 17 00:00:00 2001 From: rumperuu Date: Thu, 25 May 2017 18:57:33 +0000 Subject: [PATCH] Up-to-date --- archive.php | 2 +- functions.php | 81 +++++++++++++++++------ header.php | 15 +++-- page-experience-by-companies.php | 2 +- page-home.php | 36 ++++++----- style.css | 103 +++++++++++++++++++----------- taxonomy-company.php | 2 +- template-parts/content-page.php | 29 +++++---- template-parts/content-single.php | 11 +++- template-parts/content.php | 4 +- 10 files changed, 185 insertions(+), 100 deletions(-) diff --git a/archive.php b/archive.php index 949ef11..e87a642 100644 --- a/archive.php +++ b/archive.php @@ -22,7 +22,7 @@ get_header(); ?> diff --git a/functions.php b/functions.php index 8b15a44..3d6cf96 100644 --- a/functions.php +++ b/functions.php @@ -32,6 +32,7 @@ if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { require get_template_directory() . '/inc/back-compat.php'; } +// This sets the correct background colour for any LaTeX. global $themecolors; $themecolors['bg'] = '95b2bf'; $themecolors['text'] = '2b0000'; @@ -281,7 +282,7 @@ function omphaloskepsis_scripts() { // Theme stylesheet. wp_enqueue_style( 'omphaloskepsis-style', get_stylesheet_uri() ); - wp_enqueue_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'); + wp_enqueue_style('font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'); wp_enqueue_style( 'montserrat', "https://fonts.googleapis.com/css?family=Montserrat" ); @@ -496,50 +497,94 @@ function omphaloskepsis_the_content($content) { add_filter('the_content', 'omphaloskepsis_the_content', 10); +add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); +function load_dashicons_front_end() { + wp_enqueue_style( 'dashicons' ); +} + function display_companies() { echo " have_posts() ) : echo "
"; echo "

".ucwords($currSec)."s View all ".$loop->post_count."

"; echo "
"; while (($loop->have_posts()) && ($i++ < 4)) : $loop->the_post(); get_template_part( 'template-parts/content', get_post_format() ); endwhile; echo "
"; echo "
"; endif; } ?> \ No newline at end of file diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 3298324..506b2bd 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -9,11 +9,20 @@ ?>
> -
+ +
-
-

+ 70) $small= "3em"; + elseif (strlen(get_the_title()) > 35) $small = "4em"; + elseif (strlen(get_the_title()) > 12) $small = "5em"; + else $small = "6em" + ?> +

+ +

+ ', '

'); ?>
@@ -33,16 +42,8 @@ ?> - "%s"', 'twentysixteen' ), - get_the_title() - ), - '
', - '
' - ); - ?> +
+ +
diff --git a/template-parts/content-single.php b/template-parts/content-single.php index b91cbf7..4fee12d 100644 --- a/template-parts/content-single.php +++ b/template-parts/content-single.php @@ -10,17 +10,17 @@
> -
+
- 70) $small= "3em"; elseif (strlen(get_the_title()) > 35) $small = "4em"; elseif (strlen(get_the_title()) > 12) $small = "5em"; else $small = "6em" ?>

- + @@ -39,6 +39,11 @@

+ +
+

This piece was originally written for my old site, Oh What? Oh Jeez! As such, it may not have transferred over properly and some images and links might be broken (and, to a lesser extent, my writing from years ago is about 80% run-on sentences).

+
+ -
-
+
+
70) $small= "vsmall";