Skip to content

Commit

Permalink
Theme Options updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RaddyTheBrand committed Aug 14, 2019
1 parent 3dd3e2c commit 9bf5afe
Show file tree
Hide file tree
Showing 25 changed files with 481 additions and 258 deletions.
6 changes: 5 additions & 1 deletion css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/styles.css.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ header {
}

.author {
border-bottom: 1px solid $secondary-color;
.author-image {
padding-top: ($row-padding + $row-padding);

Expand All @@ -253,7 +254,6 @@ header {
}

.social {
border-top: 1px solid $secondary-color;
border-bottom: 1px solid $secondary-color;
position: relative;
padding: 0px!important;
Expand Down Expand Up @@ -282,16 +282,17 @@ header {
color: $secondary-color;
padding: 10px;
}
}
}

.networks {
display: flex;
justify-content: center;
align-items: center;

height: 56px;

a, span {
padding: 3px;
flex-grow: 1;
text-align: center;
flex-basis: 0;
Expand Down
35 changes: 26 additions & 9 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@

<footer>
<?php if (get_theme_mod('basic-footer-callout-display') == 'Yes') { ?>
<p>
<?php
$optionPP = get_option('pp');
if ($optionPP == "" || $optionPP == null) {
$optionPP = "<a href='/privacy'>Privacy Policy</a> / <a href='/policy'>Cookie Policy</a>";
$basicFooter = get_theme_mod('basic-footer-callout-copyright');
$basicPrivacyPolicy = get_theme_mod('basic-footer-callout-privacy-policy');
$basicCookiePolicy = get_theme_mod('basic-footer-callout-cookie-policy');

if ($basicPrivacyPolicy == "" || $basicPrivacyPolicy == null) {
echo "<a href='/privacy'>Privacy Policy</a> /";
}
else {
echo "<a href='". $basicPrivacyPolicy ."'>Privacy Policy</a> / ";
}
if ($basicCookiePolicy == "" || $basicCookiePolicy == null) {
echo "<a href='/policy'>Cookie Policy</a>";
}
echo $optionPP;
else {
echo "<a href='". $basicCookiePolicy ."'>Cookie Policy</a>";
}

?>
</p>
<?php } ?>

<p>
<?php
$optionFooter = get_option('footer');
if ($optionFooter == "" || $optionFooter == null) {
$optionFooter = "Created by <a href='https://www.raddy.co.uk'>Raddy</a>";
$thisYear = date("Y");
$blog_title = get_bloginfo();
$basicFooter = get_theme_mod('basic-footer-callout-copyright');

if ($basicFooter == "" || $basicFooter == null) {
$basicFooter = "&copy; " . $thisYear . " " . $blog_title;
}
echo $optionFooter;
echo $basicFooter;
?>
</p>
</footer>
Expand Down
6 changes: 4 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function get_excerpt( $count ) {
}


require_once( get_template_directory() . '/functions/theme-options.php' );


// Support for custom Logo
add_theme_support( 'custom-logo' );
Expand All @@ -62,4 +62,6 @@ function themename_custom_logo_setup() {
}
add_action( 'after_setup_theme', 'themename_custom_logo_setup' );

?>

require_once( get_template_directory() . '/functions/theme-options.php' );

Loading

0 comments on commit 9bf5afe

Please sign in to comment.