Install ee:
curl -sL rt.cx/ee | sudo bash
ee system install
| <?php | |
| //Use this function to create pagingation links that are styleable with Bootstrap 3 | |
| function paging() { | |
| global $wp_query; | |
| $total_pages = $wp_query->max_num_pages; | |
| if ($total_pages > 1){ | |
| $current_page = max(1, get_query_var('paged')); |
| <?php | |
| /* | |
| * The page core options for the Shoestrap theme | |
| */ | |
| if ( !function_exists( 'shoestrap_module_coulourlovers_options' ) ) : | |
| function shoestrap_module_coulourlovers_options( $sections ) { | |
| // Page Options |
| if ( strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN' ) { | |
| // Windows | |
| $content_dir = str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR ); | |
| $content_url = str_replace( $content_dir, WP_CONTENT_URL, dirname(__FILE__) ); | |
| $content_url = str_replace( $content_dir, content_url(), dirname(__FILE__) ); | |
| $cmb_url = str_replace( DIRECTORY_SEPARATOR, '/', $content_url ); | |
| } else { | |
| $cmb_url = str_replace( | |
| array(WP_CONTENT_DIR, WP_PLUGIN_DIR), |
watching the new daredevil series on netflix led me to doing this ;)
webkit only (requires -webkit-background-clip)
A Pen by Gregor Adams on CodePen.
Just messing around. not done.
A Pen by Ben Newton on CodePen.
CSS animated title from the recent trailer. So excited!
Learn how to create this and much more with my email course:
https://cssanimation.rocks/courses/animation-101/
<3 Use code "codepen" to save 20% off the usual course price <3
| // setup one language for admin and the other for theme | |
| // must be called before load_theme_textdomain() | |
| function set_my_locale($locale) { | |
| $locale = ( is_admin() ) ? "en_US" : "it_IT"; | |
| setlocale(LC_ALL, $local ); | |
| return $locale; | |
| } | |
| add_filter( 'locale', 'set_my_locale' ); |
| <?php | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if( tribe_is_month() && !is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
| <?php | |
| /* | |
| Plugin Name: PMPro BuddyPress Customizations | |
| Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-buddypress-customizations/ | |
| Description: Example code to lock down parts of BuddyPress with PMPro | |
| Version: 0.2 | |
| Author: Stranger Studios | |
| Author URI: http://www.strangerstudios.com | |
| */ | |
| /* |