This file contains hidden or 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 | |
| class YOURCUSTOMWidget extends WP_Widget | |
| { | |
| function YOURCUSTOMWidget() | |
| { | |
| $widget_ops = array('classname' => 'YOURCUSTOMWidget', 'description' => 'Widget Description' ); | |
| parent::__construct('YOURCUSTOMWidget', 'YOURCUSTOM Widget', $widget_ops); | |
| } | |
| function form($instance) |
This file contains hidden or 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 | |
| add_action( 'genesis_meta', 'md_home_genesis_meta' ); | |
| /** | |
| * Add custom loop/widget support for homepage. File name should be home.php | |
| * | |
| */ | |
| function md_home_genesis_meta() { | |
| //* Add md-home body class |
This file contains hidden or 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 | |
| add_theme_support( 'custom-header', array( | |
| 'header-selector' => '.site-title a', | |
| 'header-text' => false, | |
| 'height' => 157, | |
| 'width' => 1200, | |
| ) ); | |
| ?> |
This file contains hidden or 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 | |
| /** | |
| * Remove the slug from published post permalinks. Only affect our CPT though. | |
| */ | |
| function md_remove_cpt_slug( $post_link, $post, $leavename ) { | |
| if ( 'POST TYPE NAME' != $post->post_type || 'publish' != $post->post_status ) { | |
| return $post_link; | |
| } |
This file contains hidden or 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
| /* -------------------------------------------- | |
| Accordion Styles | |
| ----------------------------------------------*/ | |
| .accordion { margin: 0 0 30px; border-top: 1px solid #DDD; border-right: 1px solid #DDD; border-left: 1px solid #DDD; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } | |
| .accordion dt { border-bottom: 1px solid #DDD; } | |
| .accordion dd { display: none; padding: 20px; border-bottom: 1px solid #DDD; } | |
This file contains hidden or 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 | |
| add_action( 'genesis_after_entry', 'md_after_entry_widget_area' ); | |
| /*Display after-entry widget area on the genesis_after_entry action hook.*/ | |
| function md_after_entry_widget_area() { | |
| if ( ! is_singular( 'page' ) || ! current_theme_supports( 'genesis-after-entry-widget-area' ) ) { | |
| return; | |
| } | |
| genesis_widget_area( 'after-entry', array( |
This file contains hidden or 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
| /** | |
| * Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com | |
| * Licensed under MIT | |
| * @author Ariel Flesler | |
| * @version 1.4.0 | |
| */ | |
| ;(function(a){if(typeof define==='function'&&define.amd){define(['jquery'],a)}else{a(jQuery)}}(function($){var g=location.href.replace(/#.*/,'');var h=$.localScroll=function(a){$('body').localScroll(a)};h.defaults={duration:1000,axis:'y',event:'click',stop:true,target:window};$.fn.localScroll=function(a){a=$.extend({},h.defaults,a);if(a.hash&&location.hash){if(a.target)window.scrollTo(0,0);scroll(0,location,a)}return a.lazy?this.on(a.event,'a,area',function(e){if(filter.call(this)){scroll(e,this,a)}}):this.find('a,area').filter(filter).bind(a.event,function(e){scroll(e,this,a)}).end().end();function filter(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')===g&&(!a.filter||$(this).is(a.filter))}};h.hash=function(){};function scroll(e,a,b){var c=a.hash.slice(1),elem=document.getElementById(c)||document.getElementsByName(c)[0];if( |
This file contains hidden or 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
| /* | |
| Tab Index Styles | |
| ---------------------------------------------------------------------------------------------------- */ | |
| .tab-index-list { | |
| margin-top: 0px; | |
| } | |
| .tab-index { | |
| display: inline-block; |
This file contains hidden or 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 | |
| //* Add this code to your plugin and it will register all templates defined in array on line 66 to your theme. | |
| class PageTemplater { | |
| /** | |
| * A Unique Identifier | |
| */ | |
| protected $plugin_slug; |