rendered paste body do_action('suffusion_between_second_sidebars');
}
function suffusion_after_second_sidebar() {
do_action('suffusion_after_second_sidebar');
}
function suffusion_before_comment() {
do_action('suffusion_before_comment');
}
function suffusion_after_comment() {
do_action('suffusion_after_comment');
}
//
// This section defines the individual callback functions
//
function suffusion_include_dbx() {
if (suffusion_should_include_dbx()) {
get_template_part('custom/dbx');
}
}
function suffusion_include_custom_js($location = 'footer') {
echo "<!-- location $location -->\n";
$script = "suf_custom_{$location}_js";
global $$script;
if (isset($$script) && trim($$script) != "") {?>
<!-- Custom JavaScript for <?php echo $location; ?> defined in options -->
<script type="text/javascript">
/* <![CDATA[ */
<?php
$strip = stripslashes($$script);
$strip = wp_specialchars_decode($strip, ENT_QUOTES);
echo $strip."\n";
?>
/* ]]> */
</script>
<!-- /Custom JavaScript for <?php echo $location; ?> defined in options -->
<?php
}
}
/**
* Includes JavaScript to play an audio file. Suffusion is bundled with the standalone version of the Open Source WP Audio Player plugin.
* See http://wpaudioplayer.com/ for the plugin page.
*
* Suffusion is bundled with the JS and the SWF files from the plugin. For the FLA file corresponding to the SWF, see http://tools.assembla.com/1pixelout/browser/audio-player/trunk/source
*
search hit BOTTOM, continuing at TOP
function suffusion_after_begin_wrapper() {
do_action('suffusion_after_begin_wrapper');
}
function suffusion_page_header() {
do_action('suffusion_page_header');
}
function suffusion_after_begin_container() {
do_action('suffusion_after_begin_container');
}
function suffusion_before_begin_content() {
do_action('suffusion_before_begin_content');
}
function suffusion_after_begin_content() {
do_action('suffusion_after_begin_content');
}
function suffusion_content() {
do_action('suffusion_content');
}
function suffusion_after_begin_post() {
do_action('suffusion_after_begin_post');
}
function suffusion_after_content() {
do_action('suffusion_after_content');
}
function suffusion_before_end_post() {
do_action('suffusion_before_end_post');
}
function suffusion_before_end_content() {
do_action('suffusion_before_end_content');
}
function suffusion_before_end_container() {
do_action('suffusion_before_end_container');
}
function suffusion_after_end_container() {
do_action('suffusion_after_end_container');
}
function suffusion_page_footer() {
"actions.php" [noeol][dos] 1376L, 51376C 69,1 1%
// The current view is not any preset ('search', 'date', 'author', 'tag', 'category', 'blog', 'magazine'). Check if this is a single post.
if (!isset($count_option)) {
if (is_singular() && !is_page()) {
$post_template = suffusion_get_post_meta($post->ID, 'suf_pseudo_template', true);
$special_template = ($post_template == '' || $post_template === 0 || $post_template == "0") ? 'default' : $post_template;
}
else if (is_page()) {
$post_template = suffusion_get_post_meta($post->ID, 'suf_pseudo_template', true);
if ($post_template != '' && $post_template !== 0 && $post_template != "0" &&
!(is_page_template('no-sidebars.php') || is_page_template('1l-sidebar.php') || is_page_template('1r-sidebar.php') ||
is_page_template('2l-sidebars.php') || is_page_template('2r-sidebars.php') || is_page_template('1l1r-sidebar.php'))) {
$special_template = $post_template;
}
}
}
if (!isset($special_template)) {
return $count;
}
$inherit = $special_template;
$position_count = array('default' => $count, '0' => 0, 'no' => 0,
'1l' => array('left' => 1, 'right' => 0), '1r' => array('left' => 0, 'right' => 1), '1l1r' => array('left' => 1, 'right' => 1),
'2l' => array('left' => 2, 'right' => 0), '2r' => array('left' => 0, 'right' => 2), );
if (!isset($position_count[$inherit])) {
return $position_count['default'];
}
$new_count = $position_count[$inherit];
if (is_array($new_count)) {
return $new_count[$position];
}
return $new_count;
}
/**
* Returns the class corresponding to the template that a particular page is supposed to mimic. In case of single posts this gets the value
* of the meta field 'suf_pseudo_template' for that post, and returns the template corresponding to that.
*
* @return array
*/
function suffusion_get_pseudo_template_class() {
global $suffusion, $suffusion_sidebar_context_presets, $post;
if (!isset($suffusion) || is_null($suffusion)) {
$suffusion = new Suffusion();
}
$context = $suffusion->get_context();
foreach ($suffusion_sidebar_context_presets as $preset) {
if (in_array($preset, $context)) {
/footer
case '2l':
$template = '2l-sidebars.php';
break;
case '2r':
$template = '2r-sidebars.php';
break;
default:
$template = '';
break;
}
if ($template != '') {
$template = 'page-template-'.str_replace('.', '-', $template);
$suffusion->set_body_layout($template);
$template = array($template);
}
else {
$template = array();
}
return apply_filters('suffusion_pseudo_template_class', $template);
}
/*
* Displays the widget area above the footer, if it is enabled.
*/
function suffusion_print_widget_area_above_footer() {
get_sidebar('above-footer');
}
function suffusion_display_footer() {
get_template_part('custom/site-footer');
}
function suffusion_get_siblings_in_nav($ancestors, $index, $exclusion_list, $exclude, $echo = 1) {
if (count($ancestors) <= $index || $index < 0) {
return '';
}
$exclusion_query = $exclude == "hide" ? "&exclude=".$exclusion_list : "";
$children = wp_list_pages("title_li=&child_of=".$ancestors[$index]."&echo=".$echo.$exclusion_query);
return $children;
}
function suffusion_excerpt_or_content() {
global $suf_category_excerpt, $suf_tag_excerpt, $suf_archive_excerpt, $suf_index_excerpt, $suf_search_excerpt, $suf_author_excerpt, $suf_show_excerpt_thumbnail, $suffusion_current_post_index, $suffusion_full_post_count_for_view, $suf_pop_excerpt, $page_of_posts;
if (($suffusion_current_post_index > $suffusion_full_post_count_for_view) && ((is_category() && $suf_category_excerpt == "excerpt") ||
(is_tag() && $suf_tag_excerpt == "excerpt") ||
(is_search() && $suf_search_excerpt == "excerpt") ||
/footer
case 'by-at':
$ret .= sprintf(__('Posted by %1$s at %2$s', 'suffusion'), '<span class="vcard"><a href="'.get_author_posts_url(get_the_author_meta('ID')).'" class="url fn" rel="author">'.get_the_author_meta('display_name').'</a></span>', get_the_time(get_option('time_format')));
break;
case 'by-on':
$ret .= sprintf(__('Posted by %1$s on %2$s', 'suffusion'), '<span class="vcard"><a href="'.get_author_posts_url(get_the_author_meta('ID')).'" class="url fn" rel="author">'.get_the_author_meta('display_name').'</a></span>', get_the_time(get_option('date_format')));
break;
case 'by-on-at':
$ret .= sprintf(__('Posted by %1$s on %2$s at %3$s', 'suffusion'), '<span class="vcard"><a href="'.get_author_posts_url(get_the_author_meta('ID')).'" class="url fn" rel="author">'.get_the_author_meta('display_name').'</a></span>', get_the_time(get_option('date_format')), get_the_time(get_option('time_format')));
break;
case 'by-at-on':
$ret .= sprintf(__('Posted by %1$s at %2$s on %3$s', 'suffusion'), '<span class="vcard"><a href="'.get_author_posts_url(get_the_author_meta('ID')).'" class="url fn" rel="author">'.get_the_author_meta('display_name').'</a></span>', get_the_time(get_option('time_format')), get_the_time(get_option('date_format')));
break;
}
$ret .= "</span>";
if ($echo) {
echo $ret;
}
return $ret;
}
function suffusion_post_footer() {
get_template_part('custom/post-footer', get_post_type());
}
function suffusion_disable_plugin_styles() {
wp_deregister_style('wp-pagenavi');
}
function suffusion_pagination() {
get_template_part('custom/pagination', 'posts');
}
function suffusion_featured_posts() {
if (is_singular() && !is_page()) {
return;
}
global $suf_featured_category_view, $suf_featured_tag_view, $suf_featured_search_view, $suf_featured_author_view, $suf_featured_time_view, $suf_featured_index_view;
global $suf_mag_featured_enabled, $suf_featured_pages_with_fc, $post, $suf_featured_view_first_only;
$pages_with_fc = explode(',', $suf_featured_pages_with_fc);
if ((is_category() && $suf_featured_category_view == "enabled") || (is_tag() && $suf_featured_tag_view == "enabled") ||
(is_search() && $suf_featured_search_view == "enabled") || (is_author() && $suf_featured_author_view == "enabled") ||
(is_page_template('magazine.php') && $suf_mag_featured_enabled == 'enabled') ||
(is_page() && isset($pages_with_fc) && is_array($pages_with_fc) && isset($post) && isset($post->ID) && in_array($post->ID, $pages_with_fc)) ||
((is_date() || is_year() || is_month() || is_day() || is_time()) && $suf_featured_time_view == "enabled") ||
(!(is_category() || is_tag() || is_search() || is_author() || is_date() || is_year() || is_month() || is_day() || is_time() || is_page_template('magazine.php') || is_page())
&& $suf_featured_index_view == "enabled")) {
/footer
function suffusion_include_jqfix_js() {
global $suffusion, $suffusion_is_ie6, $suf_fix_aspect_ratio, $suf_enable_audio_shortcode;
global $suf_nav_delay, $suf_nav_effect, $suf_navt_delay, $suf_navt_effect, $suf_featured_interval, $suf_featured_fx, $suf_featured_transition_speed, $suf_featured_sync, $suf_jq_masonry_enabled;
global $suf_featured_pager_style, $suf_mosaic_zoom_library;
if (!function_exists('audio_shortcode') && !class_exists('AudioPlayer') && isset($suf_enable_audio_shortcode) && $suf_enable_audio_shortcode == 'on') {
wp_enqueue_script('suffusion-audioplayer', get_template_directory_uri() . '/scripts/audio-player.js', array('jquery'), SUFFUSION_THEME_VERSION);
}
wp_enqueue_script('suffusion', get_template_directory_uri() . '/scripts/suffusion.js', array('jquery'), SUFFUSION_THEME_VERSION);
if ($suffusion_is_ie6) {
wp_enqueue_script('suffusion-ie6', get_template_directory_uri() . '/scripts/ie-fix.js', array('suffusion'), SUFFUSION_THEME_VERSION);
}
if ($suffusion->get_content_layout() == 'mosaic') {
if ($suf_mosaic_zoom_library == 'fancybox') {
wp_enqueue_script('suffusion-slideshow', get_template_directory_uri().'/scripts/jquery.fancybox-1.3.4.pack.js', array('jquery'), SUFFUSION_THEME_VERSION);
}
else if ($suf_mosaic_zoom_library == 'colorbox') {
wp_enqueue_script('suffusion-slideshow', get_template_directory_uri().'/scripts/jquery.colorbox-min.js', array('jquery'), SUFFUSION_THEME_VERSION);
}
}
if (!is_admin() && is_active_widget('Suffusion_Google_Translator', false, 'suf-google-translator', true)) {
// For some reason the translation widget fails if we load the JS in the header. Hence we are overriding the header/footer JS setting
wp_enqueue_script('suffusion-google-translate', 'http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit', array(), null, true);
}
$template_widths = suffusion_get_template_prefixes();
$template_widths[''] = '';
$template_widths['no-sidebars.php'] = '';
$base_array = array();
$widths_array = array();
foreach ($template_widths as $template => $prefix) {
$template_class = $template == "" ? "" : "_page_template_".str_replace('.', '_', str_replace('-', '_', $template));
$width_var = 'suf'.$prefix.'_wrapper_width_type';
$max_var = 'suf'.$prefix.'_wrapper_width_flex_max';
$min_var = 'suf'.$prefix.'_wrapper_width_flex_min';
$orig_var = 'suf'.$prefix.'_wrapper_width_flex';
global $$width_var, $$max_var, $$min_var, $$orig_var;
$widths_array['wrapper_width_type'.$template_class] = "{$$width_var}";
$widths_array['wrapper_max_width'.$template_class] = "{$$max_var}";
$widths_array['wrapper_min_width'.$template_class] = "{$$min_var}";
$widths_array['wrapper_orig_width'.$template_class] = "{$$orig_var}";
}
foreach ($widths_array as $var => $value) {
$base_array[$var] = $value;
}
search hit BOTTOM, continuing at TOP
function suffusion_after_begin_wrapper() {
do_action('suffusion_after_begin_wrapper');
}
function suffusion_page_header() {
do_action('suffusion_page_header');
}
function suffusion_after_begin_container() {
do_action('suffusion_after_begin_container');
}
function suffusion_before_begin_content() {
do_action('suffusion_before_begin_content');
}
function suffusion_after_begin_content() {
do_action('suffusion_after_begin_content');
}
function suffusion_content() {
do_action('suffusion_content');
}
function suffusion_after_begin_post() {
do_action('suffusion_after_begin_post');
}
function suffusion_after_content() {
do_action('suffusion_after_content');
}
function suffusion_before_end_post() {
do_action('suffusion_before_end_post');
}
function suffusion_before_end_content() {
do_action('suffusion_before_end_content');
}
function suffusion_before_end_container() {
do_action('suffusion_before_end_container');
}
function suffusion_after_end_container() {
do_action('suffusion_after_end_container');
}
function suffusion_page_footer() {
"actions.php" [noeol][dos] 1376L, 51376C 69,1 1%