Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
patreon
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed May 6, 2018
1 parent cac6345 commit 85da686
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/css/app.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions assets/haml/content-single.haml
Expand Up @@ -10,6 +10,11 @@
get_template_part('templates/entry-meta');
%div.entry-content= the_content()
%div.entry-license
%h2
Liked it? Take a second to support Mte90 on Patreon!
%a.patreon(href="https://www.patreon.com/Mte90" target="_blank")
Become a Patreon
%br
All the stuff released in this website, where the author is Daniele Scasciafratte, is under the GPL 2.0 license except when the resources have their licenses.
%footer= wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>'))
:php
Expand Down
2 changes: 2 additions & 0 deletions assets/haml/header-top-navbar.haml
Expand Up @@ -20,6 +20,8 @@
%a.pulse-shrink.social-youtube(href="https://www.youtube.com/user/Mte90lp" target="_blank")
%li
%a.pulse-shrink.social-feed(href="<?php echo home_url() . '/feed' ?>" target="_blank" data-text="This site is multilanguage (Italian and English) pick your feed:<br><br><b>Italian - https://daniele.tech/it/feed/</b><br><b>English - https://daniele.tech/en/feed/</b>")
%li
%a.pulse-shrink.social-patreon(href="https://www.patreon.com/Mte90" target="_blank")

%header.banner.navbar.navbar-default.navbar-static-top(role="banner")
%div.container-fluid
Expand Down
Binary file added assets/img/social/patreon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions assets/sass/app.scss
Expand Up @@ -512,6 +512,23 @@ ul.lang-menu {
}
}

.entry-license {
text-align:center;
margin-top: -15px;
.patreon {
background-color: rgb(249, 104, 84);
color: rgb(255, 255, 255) !important;
font-size: 24px;
padding: 1rem 1.5rem;
margin-bottom: 10px;
width:300px;
text-transform: uppercase;
&:hover {
transform:none !important;
}
}
}

.entry-content, .entry-license {
padding: 0px 15px 15px;

Expand Down
Binary file added images/social-s18cb2104d8.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/social-sa3e6681bae.png
Binary file not shown.
7 changes: 7 additions & 0 deletions templates/content-single.php
Expand Up @@ -14,6 +14,13 @@
</header>
<div class="entry-content"><?php echo the_content(); ?></div>
<div class="entry-license">
<h2>
Liked it? Take a second to support Mte90 on Patreon!
</h2>
<a class="patreon" href="https://www.patreon.com/Mte90" target="_blank">
Become a Patreon
</a>
<br>
All the stuff released in this website, where the author is Daniele Scasciafratte, is under the GPL 2.0 license except when the resources have their licenses.
</div>
<footer><?php echo wp_link_pages(array('before' => '<nav class="page-nav"><p>' . __('Pages:', 'roots'), 'after' => '</p></nav>')); ?></footer>
Expand Down
3 changes: 3 additions & 0 deletions templates/header-top-navbar.php
Expand Up @@ -30,6 +30,9 @@
<li>
<a class="pulse-shrink social-feed" href="<?php echo home_url() . '/feed' ?>" target="_blank" data-text="This site is multilanguage (Italian and English) pick your feed:<br><br><b>Italian - https://daniele.tech/it/feed/</b><br><b>English - https://daniele.tech/en/feed/</b>"></a>
</li>
<li>
<a class="pulse-shrink social-patreon" href="https://www.patreon.com/Mte90" target="_blank"></a>
</li>
</ul>
</div>
<header class="banner navbar navbar-default navbar-static-top" role="banner">
Expand Down

0 comments on commit 85da686

Please sign in to comment.