This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: Make sure you've created a Storefront Child Theme before attempting this. (https://codex.wordpress.org/Child_Themes) See this customization live here: https://theyouthcartel.com | |
Changelog | |
*0.1* | |
- Hell yeah, got it to work | |
- Adds sticky post to homepage template | |
- If no sticky post is selected, displays the latest post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Cartel 4.0 | |
Theme URI: http://theyouthcartel.com/ | |
Description: Version 4 of the best damn youth ministry site in the land | |
Author: Adam McLane | |
Author URI: http://theyouthcartel.com | |
Template: storefront | |
Version: 2.0.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* = Stuff added for the login/logout | |
-------------------------------------------------------------- */ | |
.well-join { | |
display: block; | |
background-image: url(http://uywi.org/wp-content/uploads/2013/03/theWell_JoinBoxR02.jpg); | |
background-repeat:no-repeat; | |
height:300px; | |
width:760px; | |
text-indent:-9999px; | |
padding-top:.7em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Hello_Darth | |
* @version 0.2 | |
*/ | |
/* | |
Plugin Name: Hello Darth | |
Plugin URI: http://wordpress.org/extend/plugins/hello-darth/ | |
Description: This little plugin is in homage to my geek friends who love to hate Lord Vader. When activated you will randomly see a quote from <a href="http://www.imdb.com/character/ch0000005/quotes">Darth Vader's IMDB page</a> in the upper right of your admin screen on every page. HT to <a href="http://ma.tt">Matt Mullenberg</a> for the original code. <a href="https://wordpress.org/support/plugin/hello-darth">Support and suggestions</a> are welcome. | |
Author: Adam McLane | @mclanecreative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Credits | |
v 1.13 | |
Childhood Lost, World Vision | |
Theme customizations: Adam McLane | |
Github revision repository: https://gist.github.com/mclanecreative/6237117 | |
*/ | |
/* Header */ | |
#logo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
Template Name: Home | |
*/ ?> | |
<?php get_header(); ?> | |
<div id="content" class="full"> | |
<?php get_template_part( 'part-projects-home'); ?> | |
<div id="progress_report"><span class="home-progress-signup"><a href="#">SIGN UP</a></span><br /><p><span class="home-progress-learnmore"><a href="#">OR LEARN MORE</a></span></p> | |
<h1>Progress Report</h1><br /><h4>Vivamus condimentum eleifend vehicula. Maecenas pulvinar tellus velit, sed consectetur lorem porttitor eget. Nam sagittis tempor tristique.</h4> | |
<p><h6>OUR PROJECT GOAL = <strong>$300,000</strong></h6></p></div> | |
<div id="fundraise_report"><div id="progress_table"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-/* | |
Theme Name: UYWI-2014 | |
Theme URI: http://uywi.org/ | |
Description: Urban Youth Workers Institute - 2014 | |
Author: Adam McLane | |
Author URI: http://theyouthcartel.com | |
Template: whitelight | |
Version: 0.4.6 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_email_footer_text','add_ip_to_email_footer', 10, 1); | |
function add_ip_to_email_footer( $footer ){ | |
return $footer . ' | User IP: ' . getRealIPAddress(); | |
} | |
function getRealIPAddress(){ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options[] = array( "name" => __('Events Area', 'woothemes'), | |
"type" => "subheading" ); | |
$options[] = array( "name" => __('Number of Event items', 'woothemes'), | |
"desc" => __('Select the number of events that should appear in the event area on the home page.', 'woothemes'), | |
"id" => $shortname."tribe_entries", | |
"std" => "3", | |
"type" => "select", | |
"options" => $other_entries); | |
OlderNewer