publishing issues remain

master
Chris Punches 2021-01-12 18:21:22 -05:00
parent dfa8ad0b48
commit 00c1b4d7d4
13 changed files with 172 additions and 63 deletions

5
content.php Executable file → Normal file
View File

@ -9,7 +9,10 @@ $thumbnail = get_the_post_thumbnail_url(get_the_ID(), 'featuredImageCropped');
<li class="post-item grid-item" style="background-image: url(<?php echo $thumbnail; ?>);">
<a class="post-link" href="<?php the_permalink(); ?>">
<h3 class="post-title"><?php the_title(); ?></h3>
<div class="post-meta"><?php echo get_the_date('Y-m-d'); ?></div>
<?php
$get_theme_date_opt = get_theme_mod( 'article_shows_date' );
if ($get_theme_date_opt) { ?>
<div class="post-meta"><?php echo get_the_date('Y-m-d'); ?></div><?php } ?>
</a>
</li>
</ul>

0
footer.php Executable file → Normal file
View File

101
functions.php Executable file → Normal file
View File

@ -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' );
?>
<style type="text/css">
.header_title_logo {
color: <?php echo $title_color ?>;
text-shadow: 2px 2px 5px <?php echo $title_color_s ?>;
<?php if ($title_shadow_enabled) { ?> text-shadow: 2px 2px 5px <?php echo $title_shadow_color ?>;<?php }?>
}
.header_subtitle_logo {
color: <?php echo $subtitle_color; ?>;
text-shadow: 2px 2px 5px <?php echo $subtitle_color_s; ?>;
<?php if ($subtitle_shadow_enabled) { ?> text-shadow: 2px 2px 5px <?php echo $subtitle_shadow_color; ?>;<?php }?>
}
.legal {
font-size: 24px;
color: <?php echo $footer_color; ?>;
text-shadow: 2px 2px 5px <?php echo $footer_color_s; ?>;
<?php if ($subtitle_shadow_enabled) { ?> text-shadow: 2px 2px 5px <?php echo $footer_shadow_color; ?>;<?php }?>
}
</style>
<?php
}
add_action( 'wp_head', 'custom_titles' );
function register_my_menu() {

0
header.php Executable file → Normal file
View File

0
images/avatar.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
images/silo-logo.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

5
index.php Executable file → Normal file
View File

@ -11,11 +11,6 @@ get_background_image();
<div id="loading-bar"></div>
</div>
<script>
document.getElementById("loading-bar").style.width = "20%"
</script>
<script>
document.getElementById("loading-bar").style.width = "40%"
</script>

0
loader.php Executable file → Normal file
View File

0
nav.php Executable file → Normal file
View File

0
page.php Executable file → Normal file
View File

57
sidebar.php Executable file → Normal file
View File

@ -12,10 +12,6 @@
</a>
</div>
<div class="site-toc" style="display:none">
<div class="no-index">No Index</div>
</div>
<ul class="site-bio show" style="display:block">
<div class="about-me clearfix">
<div class="info"><span class="item desc"><h1><?php echo get_theme_mod( 'organization_name_textbox', 'Owned by Chris Punches'); ?></h1></span></div>
@ -40,38 +36,39 @@
</div>
<ul class="clearfix">
<?php
wp_nav_menu(
array(
'theme_location' => 'header-menu',
'container' => false,
'menu_class' => 'clearfix my-menu-item',
'items_wrap' => '%3$s',
)
);
?>
</ul>
<div class="social clearfix"></div>
</ul>
<ul class="site-bio show" style="display:block">
<div class="about-me clearfix">
<div class="info"><span class="item desc"><h1>Taxonomy</h1></span></div>
<div class="info"><span class="item desc"><h1>Navigation</h1></span></div>
<div class="info">
<ul class="clearfix">
<?php
wp_nav_menu(
array(
'theme_location' => 'header-menu',
'container' => false,
'menu_class' => 'clearfix my-menu-item',
'items_wrap' => '%3$s',
)
);
?>
</ul>
</div>
<?php
$tags = get_tags();
$html = '<div class="info">';
foreach ( $tags as $tag ) {
$tag_link = get_tag_link( $tag->term_id );
$html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='name dark-btn'>";
$html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
# $tags = get_tags();
# $html = '<div class="info">';
# foreach ( $tags as $tag ) {
# $tag_link = get_tag_link( $tag->term_id );
#
# $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='name dark-btn'>";
# $html .= "{$tag->name}</a>";
# }
# $html .= '</div>';
# echo $html;
#
?>
</div>

14
single.php Executable file → Normal file
View File

@ -13,9 +13,6 @@ get_header();
<script>
document.getElementById("loading-bar").style.width = "20%"
</script>
<script>
document.getElementById("loading-bar").style.width = "40%"
</script>
@ -25,7 +22,10 @@ get_header();
<header class="article-header">
<h1 class="article-title" itemprop="name"><?php the_title(); ?></h1>
<div class="article-meta"><?php echo get_the_date('Y-m-d'); ?></div>
<?php
$get_theme_date_opt = get_theme_mod( 'article_shows_date' );
if ($get_theme_date_opt) { ?>
<div class="article-meta"><?php echo get_the_date('Y-m-d'); ?></div><?php } ?>
</header>
@ -48,7 +48,7 @@ get_header();
<?php endif; ?>
<div class="featured-image">
<p align="center"><img class="featured-image" src="<?php echo $featured_image; ?>"></p>
<p align="center"><img height="30%" width="30%" class="featured-image" src="<?php echo $featured_image; ?>"></p>
</div>
<div class="article-entry" itemprop="articleBody">
@ -79,7 +79,9 @@ get_header();
<li class="post-item grid-item" style="background-image: url(<?php echo $prev_thumb; ?>);">
<a class="post-link" href="<?php echo esc_url( get_permalink( $prev_post->ID ) ); ?>">
<h3 class="post-title"><?php echo esc_attr( $prev_post->post_title ); ?></h3>
<div class="post-meta"><?php echo esc_attr( $prev_post->post_date ); ?></div>
<?php
$get_theme_date_opt = get_theme_mod( 'article_shows_date' );
if ($get_theme_date_opt) { ?><div class="post-meta"><?php echo esc_attr( $prev_post->post_date ); ?></div><?php } ?>
</a>
</li>
</ul>

49
style.css Executable file → Normal file
View File

@ -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 {
@ -1584,3 +1598,28 @@ ol.commentlist li.thread-odd {}
.next {
float: right;
}
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";
}