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 | |
add_action( 'genesis_after_header', 'sf_featured_slideshow' ); | |
/** | |
* Add slide show widget area after the header. | |
* | |
* @author Sure Fire Web Services | |
* @link http://surefirewebservices.com/?p=1542 | |
* | |
* @return Return null if not the homepage 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
<?php | |
//* Do NOT include the opening php tag | |
//* Customize the credits | |
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' ); | |
function sp_footer_creds_text() { | |
echo '<div class="creds"><p>'; | |
echo 'Copyright © '; | |
echo date('Y'); | |
echo ' · <a href="http://mydomain.com">My Custom Link</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>'; |
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 | |
//* Reposition breadcrumb | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
add_action( 'genesis_after_header', 'sfws_do_breadcrumbs' ); | |
function sfws_do_breadcrumbs(){ | |
echo "<div class='wrap'>"; | |
genesis_do_breadcrumbs(); | |
echo "</div>"; | |
} |
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 | |
// Don't include the PHP tag | |
genesis_widget_area( 'optin', array( | |
'before' => '<div id="sfws-optin" class="sfws-optin widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); |
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
jQuery(document).ready(function(){ | |
jQuery(".toggle-script").click(function (e) { | |
e.preventDefault(); | |
jQuery("#toggle-show-more").toggle("blind"); | |
}); | |
}); |
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 | |
add_filter( 'genesis_attr_nav-secondary', 'gsbb_menu_second_align_left', 10, 2 ); | |
function gsbb_menu_second_align_left( $attributes, $gs_class ) { | |
if ($gs_secondary_alignment == 'menu_sencond_align_left'){ | |
$gs_class = "nav-left"; | |
} else if ($gs_secondary_alignment == 'menu_second_align_right') { | |
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
[wpv-layout-start] | |
[wpv-items-found] | |
<!-- wpv-loop-start --> | |
<wpv-loop wrap="3" pad="true"> | |
[wpv-item index=1] | |
<div class="first one-third"> | |
<h2>[wpv-taxonomy-title]</h2> | |
[wpv-view name="List of Lessons in Course"] | |
</div> | |
[wpv-item index=other] |
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
[wpv-layout-start] | |
[wpv-items-found] | |
<!-- wpv-loop-start --> | |
<table width="100%" class="wpv-loop js-wpv-loop"> | |
<wpv-loop wrap="3" pad="true"> | |
[wpv-item index=1] | |
<tr> | |
<td> | |
<h2>[wpv-taxonomy-title]</h2> | |
[wpv-view name="List of Lessons in Course"] |
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
<script> | |
var $ = jQuery; | |
$(document).ready( function() { | |
$('.shows select').change(function(){ | |
var name = $(this).parent().parent().attr('class').split(' '); | |
var row = name[3]; | |
var mainClass = row.split('--'); | |
var values = $(this).val().split(' -- '); //Event-Date-Location | |
$('.location-' + mainClass[1] + ' input').val(values[2]); | |
$('.venue-date-' + mainClass[1] + ' input').val(values[1]); |
NewerOlder