From 00c1b4d7d480659370615a56f7926095105272b8 Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Tue, 12 Jan 2021 18:21:22 -0500 Subject: [PATCH] publishing issues remain --- content.php | 5 ++- footer.php | 0 functions.php | 101 +++++++++++++++++++++++++++++++++++++------ header.php | 0 images/avatar.jpg | Bin images/silo-logo.png | Bin index.php | 5 --- loader.php | 0 nav.php | 0 page.php | 0 sidebar.php | 57 ++++++++++++------------ single.php | 16 ++++--- style.css | 51 +++++++++++++++++++--- 13 files changed, 172 insertions(+), 63 deletions(-) mode change 100755 => 100644 content.php mode change 100755 => 100644 footer.php mode change 100755 => 100644 functions.php mode change 100755 => 100644 header.php mode change 100755 => 100644 images/avatar.jpg mode change 100755 => 100644 images/silo-logo.png mode change 100755 => 100644 index.php mode change 100755 => 100644 loader.php mode change 100755 => 100644 nav.php mode change 100755 => 100644 page.php mode change 100755 => 100644 sidebar.php mode change 100755 => 100644 single.php mode change 100755 => 100644 style.css diff --git a/content.php b/content.php old mode 100755 new mode 100644 index 02664fd..705d7c1 --- a/content.php +++ b/content.php @@ -9,7 +9,10 @@ $thumbnail = get_the_post_thumbnail_url(get_the_ID(), 'featuredImageCropped');
  • - + +
  • diff --git a/footer.php b/footer.php old mode 100755 new mode 100644 diff --git a/functions.php b/functions.php old mode 100755 new mode 100644 index 4dc61a7..a962054 --- a/functions.php +++ b/functions.php @@ -22,6 +22,8 @@ add_action( 'admin_menu', 'example_customizer_menu' ); /** * Adds the individual sections, settings, and controls to the theme customizer */ + + function copyright_notice( $wp_customize ) { $wp_customize->add_section( 'Intellectual Property', @@ -69,7 +71,7 @@ function sidebar_setup( $wp_customize ) { $wp_customize->add_setting( 'news_feed', array( 'default' => 'http://news.silogroup.org' ) ); $wp_customize->add_setting( 'github_url', array( 'default' => 'https://github.com/cmpunches' ) ); $wp_customize->add_setting( 'linkedin_url', array( 'default' => 'https://www.linkedin.com/in/cmpunches' ) ); - $wp_customize->add_setting( 'email_address', array( 'default' => 'punches.chris@gmail.com' ) ); + $wp_customize->add_setting( 'email_address', array( 'default' => 'chris.punches@silogroup.org' ) ); $wp_customize->add_setting( 'bio_logo', array() ); $wp_customize->add_control( 'organization_name_textbox', array('label' => 'Organization Name', 'section' => $section_name, 'type' => 'text' )); @@ -97,6 +99,38 @@ function sidebar_setup( $wp_customize ) { } add_action( 'customize_register', 'sidebar_setup' ); +function art_ops( $wp_customize ) { + $section_name = 'Art Ops'; + + $wp_customize->add_section( + $section_name, + array( + 'title' => $section_name, + 'description' => 'Article Options', + 'priority' => 32 + ) + ); + + $wp_customize->add_setting( 'article_shows_date', array() ); + + $wp_customize->add_control( new WP_Customize_Theme_Control( $wp_customize, + 'Enable Date', + array( + 'label' => __('Show Article Date', 'enable_date'), + 'section' => $section_name, + 'type' => 'checkbox', + 'std' => '1', + 'settings' => 'article_shows_date' + ) + ) + ); + + print("art_ops is executing"); +} +add_action( 'customize_register', 'art_ops'); + + + function titles_setup( $wp_customize ) { $section_name = "Titles Theming"; @@ -110,27 +144,41 @@ function titles_setup( $wp_customize ) { ); $wp_customize->add_setting( 'Title Color', array() ); + $wp_customize->add_setting( 'Enable Title Shadow', array() ); $wp_customize->add_setting( 'Title Shadow Color', array() ); $wp_customize->add_setting( 'Subtitle Color', array() ); + $wp_customize->add_setting( 'Enable Subtitle Shadow', array() ); $wp_customize->add_setting( 'Subtitle Shadow Color', array() ); $wp_customize->add_setting( 'Footer Color', array() ); + $wp_customize->add_setting( 'Enable Footer Shadow', array() ); $wp_customize->add_setting( 'Footer Shadow Color', array() ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Title Color', array( - 'label' => __('Title Color', 'Antikythera' ), + 'label' => __('Title Color', 'title_color_s' ), 'section' => $section_name, 'settings' => 'Title Color', ) ) ); + $wp_customize->add_control( new WP_Customize_Theme_Control( $wp_customize, + 'Enable Title Shadow', + array( + 'label' => __('Enable Title Shadow', 'enable_title_shadow'), + 'section' => $section_name, + 'type' => 'checkbox', + 'std' => '1' + ) + ) + ); + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Title Shadow Color', array( - 'label' => __('Title Shadow Color', 'Antikythera' ), + 'label' => __('Title Shadow Color', 'title_shadow_color' ), 'section' => $section_name, 'settings' => 'Title Shadow Color', ) ) ); @@ -138,15 +186,26 @@ function titles_setup( $wp_customize ) { $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Subtitle Color', array( - 'label' => __('Subtitle Color', 'Antikythera' ), + 'label' => __('Subtitle Color', 'subtitle_color' ), 'section' => $section_name, 'settings' => 'Subtitle Color', ) ) ); + $wp_customize->add_control( new WP_Customize_Theme_Control( $wp_customize, + 'Enable Subtitle Shadow', + array( + 'label' => __('Enable Subtitle Shadow', 'enable_subtitle_shadow'), + 'section' => $section_name, + 'type' => 'checkbox', + 'std' => '1' + ) + ) + ); + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Subtitle Shadow Color', array( - 'label' => __('Subtitle Shadow Color', 'Antikythera' ), + 'label' => __('Subtitle Shadow Color', 'subtitle_shadow_color' ), 'section' => $section_name, 'settings' => 'Subtitle Shadow Color', ) ) ); @@ -154,53 +213,67 @@ function titles_setup( $wp_customize ) { $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Footer Color', array( - 'label' => __('Footer Color', 'Antikythera' ), + 'label' => __('Footer Color', 'footer_color' ), 'section' => $section_name, 'settings' => 'Footer Color', ) ) ); + $wp_customize->add_control( new WP_Customize_Theme_Control( $wp_customize, + 'Enable Footer Shadow', + array( + 'label' => __('Enable Footer Shadow', 'enable_footer_shadow'), + 'section' => $section_name, + 'type' => 'checkbox', + 'std' => '1' + ) + ) + ); + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'Footer Shadow Color', array( - 'label' => __('Footer Shadow Color', 'Antikythera' ), + 'label' => __('Footer Shadow Color', 'footer_shadow_color' ), 'section' => $section_name, 'settings' => 'Footer Shadow Color', ) ) ); } add_action( 'customize_register', 'titles_setup' ); + function custom_titles() { $title_color = get_theme_mod( 'Title Color' ); - $title_color_s = get_theme_mod( 'Title Shadow Color' ); + $title_shadow_color = get_theme_mod( 'Title Shadow Color' ); + $title_shadow_enabled = get_theme_mod( 'Enable Title Shadow' ); $subtitle_color = get_theme_mod( 'Subtitle Color' ); - $subtitle_color_s = get_theme_mod( 'Subtitle Shadow Color' ); + $subtitle_shadow_color = get_theme_mod( 'Subtitle Shadow Color' ); + $subtitle_shadow_enabled = get_theme_mod( 'Enable Subtitle Shadow' ); $footer_color = get_theme_mod( 'Footer Color' ); - $footer_color_s= get_theme_mod( 'Footer Shadow Color' ); + $footer_shadow_color= get_theme_mod( 'Footer Shadow Color' ); + $footer_shadow_enabled = get_theme_mod( 'Enable Footer Shadow' ); ?> - - - diff --git a/loader.php b/loader.php old mode 100755 new mode 100644 diff --git a/nav.php b/nav.php old mode 100755 new mode 100644 diff --git a/page.php b/page.php old mode 100755 new mode 100644 diff --git a/sidebar.php b/sidebar.php old mode 100755 new mode 100644 index 57fe7ee..04c39bc --- a/sidebar.php +++ b/sidebar.php @@ -12,10 +12,6 @@ - - @@ -131,4 +133,4 @@ get_template_part( 'loader', get_post_format() ); - \ No newline at end of file + diff --git a/style.css b/style.css old mode 100755 new mode 100644 index 4b92de5..38632eb --- a/style.css +++ b/style.css @@ -5,11 +5,12 @@ Description: Derp Version: 0.0.1 Tags: Bagira */ +@import url('//fonts.googleapis.com/css2?family=Allerta+Stencil'); @charset "utf-8"; /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ html{ - font-family:sans-serif; +// font-family:sans-serif; -ms-text-size-adjust:100%; -webkit-text-size-adjust:100% } @@ -29,11 +30,13 @@ header{ .header_title_logo { color: #FFFFFF; text-shadow: 2px 2px 5px blue; + font-family: "Allerta Stencil script=latin rev=8"; } .header_subtitle_logo { color: white; - text-shadow: 2px 2px 5px red; +// text-shadow: 1px 1px 1px red; + font-family: "Allerta Stencil script=latin rev=8"; } .logoGlow { @@ -189,7 +192,7 @@ html{ body{ height:100%; max-height:100%; - font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; +// font-family:futura-pt,Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3",Microsoft JhengHei,WenQuanYi Micro Hei,"Microsoft YaHei",sans-serif; font-size:1.8rem; line-height:1.5em; color:#414141; @@ -564,6 +567,7 @@ pre code{ text-align:left; font-size:20px; font-weight:500; + font-family: 'Allerta Stencil', sans-serif; transition:all .24s; text-shadow: 2px 2px 5px blue; word-wrap:break-word; @@ -807,6 +811,10 @@ pre code{ left:7px; content:"#" } + +.article-title { + font-family: "Allerta Stencil script=latin rev=8"; +} #comments{ position:relative; padding:30px 0 @@ -881,7 +889,7 @@ pre code{ } .site-bio .about-me{ padding:12px 5px 15px 5px; - background:rgba(0,0,0,.1); + background:rgba(255,215,0,.1); border:1px solid #000000; transition:background .24s,border-color .24s } @@ -1494,7 +1502,13 @@ ol.commentlist li.thread-odd {} .featured-image { - width: 100%; + width: 50%; + height: 50%; + max-width: 100%; + align-content: center; + margin-left: auto; + margin-right: auto; + height: auto; } #submit { @@ -1583,4 +1597,29 @@ ol.commentlist li.thread-odd {} } .next { float: right; -} \ No newline at end of file +} + +body { + -webkit-animation-delay: 0.1s; + -webkit-animation-name: fontfix; + -webkit-animation-duration: 0.1s; + -webkit-animation-iteration-count: 1; + -webkit-animation-timing-function: linear; +} + +@-webkit-keyframes fontfix { + from { opacity: 1; } + to { opacity: 1; } +} + +.header_title_logo { + color: #FFFFFF; +// text-shadow: 2px 2px 5px blue; + font-family: "Allerta Stencil script=latin rev=8"; +} + +.header_subtitle_logo { + color: white; +// text-shadow: 1px 1px 1px red; + font-family: "Allerta Stencil script=latin rev=8"; +}