PATH:
home
/
letacommog
/
lesfinessaveurs
/
wp-content
/
themes
/
Avada
/
includes
<?php /** * Sermon manager mods. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link http://theme-fusion.com * @package Avada * @subpackage Core * @since 5.0.0 */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Various helper methods for Sermon Manager plugin in Avada */ class Avada_Sermon_Manager { /** * Custom Excerpt function for Sermon Manager. * * @access public * @since 5.1.0 * @param bool $archive True if an archive, else false. * @return string */ public function get_sermon_content( $archive = false ) { global $post; $sermon_content = ''; $sermon_manager_template = ''; if ( class_exists( 'Sermon_Manager_Template_Tags' ) ) { $sermon_manager_template = new Sermon_Manager_Template_Tags(); } // Get the date. ob_start(); if ( is_object( $sermon_manager_template ) ) { $sermon_manager_template->wpfc_sermon_date( get_option( 'date_format' ), '<span class="sermon_date">', '</span> ' ); } else { wpfc_sermon_date( get_option( 'date_format' ), '<span class="sermon_date">', '</span> ' ); } $date = ob_get_clean(); // Print the date. ob_start(); ?> <p> <?php /* translators: the Date. */ ?> <?php printf( esc_attr__( 'Date: %s', 'Avada' ), $date ); // WPCS: XSS ok. ?> <?php echo the_terms( $post->ID, 'wpfc_service_type', ' <span class="service_type">(', ' ', ')</span>' ); ?> </p> <?php $sermon_content .= ob_get_clean(); ?> <?php ob_start(); ?> <p> <?php if ( is_object( $sermon_manager_template ) ) : ?> <?php $sermon_manager_template->wpfc_sermon_meta( 'bible_passage', '<span class="bible_passage">' . esc_attr__( 'Bible Text: ', 'Avada' ), '</span> | ' ); ?> <?php else : ?> <?php wpfc_sermon_meta( 'bible_passage', '<span class="bible_passage">' . esc_attr__( 'Bible Text: ', 'Avada' ), '</span> | ' ); ?> <?php endif; ?> <?php echo the_terms( $post->ID, 'wpfc_preacher', '<span class="preacher_name">', ', ', '</span>' ); // WPCS: XSS ok. ?> <?php echo the_terms( $post->ID, 'wpfc_sermon_series', '<p><span class="sermon_series">' . esc_attr__( 'Series: ', 'Avada' ), ' ', '</span></p>' ); ?> </p> <?php if ( $archive ) : ?> <?php $sermonoptions = get_option( 'wpfc_options' ); ?> <?php if ( isset( $sermonoptions['archive_player'] ) ) : ?> <div class="wpfc_sermon cf"> <?php if ( is_object( $sermon_manager_template ) ) { echo $sermon_manager_template->wpfc_sermon_media(); // WPCS: XSS ok. } else { wpfc_sermon_files(); } ?> </div> <?php endif; ?> <?php endif; ?> <?php if ( ! $archive ) : ?> <?php if ( is_object( $sermon_manager_template ) ) { echo $sermon_manager_template->wpfc_sermon_media(); // WPCS: XSS ok. $sermon_manager_template->wpfc_sermon_description(); echo $sermon_manager_template->wpfc_sermon_attachments(); // WPCS: XSS ok. } else { echo wpfc_sermon_media(); // WPCS: XSS ok. wpfc_sermon_description(); echo wpfc_sermon_attachments(); // WPCS: XSS ok. } ?> <?php echo the_terms( $post->ID, 'wpfc_sermon_topics', '<p class="sermon_topics">' . esc_attr__( 'Topics: ', 'sermon-manager' ), ',', '', '</p>' ); ?> <?php endif; ?> <?php $sermon_content .= ob_get_clean(); ?> <?php if ( $archive ) : ?> <?php ob_start(); ?> <?php if ( is_object( $sermon_manager_template ) ) : ?> <?php $sermon_manager_template->wpfc_sermon_description(); ?> <?php else : ?> <?php wpfc_sermon_description(); ?> <?php endif; ?> <?php $description = ob_get_clean(); ?> <?php $excerpt_length = fusion_library()->get_option( 'excerpt_length_blog' ); ?> <?php $sermon_content .= Avada()->blog->get_content_stripped_and_excerpted( $excerpt_length, $description ); ?> <?php endif; ?> <?php return $sermon_content; } /** * Render sermon manager archives content. * * @access public * @since 5.1.0 */ public function render_wpfc_sorting() { if ( class_exists( 'Sermon_Manager_Template_Tags' ) ) { $sermon_manager_template = new Sermon_Manager_Template_Tags(); echo $sermon_manager_template->render_wpfc_sorting(); // WPCS: XSS ok. } else { render_wpfc_sorting(); } } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */
[+]
..
[-] class-avada-scripts.php
[edit]
[-] class-avada-layout-bbpress.php
[edit]
[-] class-avada-social-icon.php
[edit]
[-] class-avada-multiple-featured-images.php
[edit]
[-] class-fusion-builder-filters.php
[edit]
[-] class-avada-woocommerce.php
[edit]
[-] custom_functions.php
[edit]
[-] class-avada-gravity-forms-tags-merger.php
[edit]
[-] class-avada-avadaredux-migration.php
[edit]
[-] class-avada-portfolio.php
[edit]
[-] class-avada-images.php
[edit]
[-] class-fusion-builder-migrate.php
[edit]
[-] class-avada-upgrade.php
[edit]
[-] dynamic_css_helpers.php
[edit]
[-] class-avada-head.php
[edit]
[-] class-fusion-image-resizer.php
[edit]
[-] class-avada-blog.php
[edit]
[+]
widget
[-] class-avada-megamenu-framework.php
[edit]
[+]
recaptcha
[-] fusion-functions.php
[edit]
[-] class-avada-fonts.php
[edit]
[-] class-avada-remote-installer.php
[edit]
[-] class-avada-layout.php
[edit]
[-] avada-tgm.php
[edit]
[-] class-avada-page-options.php
[edit]
[+]
plugins
[-] wc-functions.php
[edit]
[-] class-fusion-builder-redux-options.php
[edit]
[-] class-avada-helper.php
[edit]
[-] class-avada-eventscalendar.php
[edit]
[-] class-fusion-builder-demos-importer.php
[edit]
[-] class-avada-template.php
[edit]
[-] deprecated.php
[edit]
[-] class-fusion-gfonts-downloader.php
[edit]
[-] class-avada-megamenu.php
[edit]
[-] dynamic_css.php
[edit]
[-] avada-functions.php
[edit]
[-] class-avada-googlemap.php
[edit]
[+]
upgrade
[-] class-avada-migrate.php
[edit]
[+]
importer
[-] fusion-shared-options.php
[edit]
[-] class-avada-social-sharing.php
[edit]
[-] class-avada-settings.php
[edit]
[-] class-avada-init.php
[edit]
[+]
lib
[-] class-avada-social-icons.php
[edit]
[+]
ls-skins
[+]
typography
[-] class-avada-contact.php
[edit]
[-] class-avada-breadcrumbs.php
[edit]
[-] class-avada-tgm-plugin-activation.php
[edit]
[-] class-avada-system-status.php
[edit]
[-] class-avada-options-conditionals.php
[edit]
[-] class-avada-nav-walker-megamenu.php
[edit]
[-] class-avada-admin.php
[edit]
[-] class-avada-widget-style.php
[edit]
[-] class-avada.php
[edit]
[+]
options
[-] class-avada-nav-walker.php
[edit]
[-] class-avada-dynamic-css.php
[edit]
[+]
admin-screens
[-] class-avada-avadaredux.php
[edit]
[-] class-avada-autoload.php
[edit]
[-] class-avada-sermon-manager.php
[edit]
[-] class-avada-options.php
[edit]
[-] class-avada-maintenance.php
[edit]
[-] class-avada-taxonomy-meta.php
[edit]
[-] class-avada-sidebars.php
[edit]
[+]
metaboxes
[-] class-avada-google-fonts.php
[edit]
[-] class-avada-admin-notices.php
[edit]
[-] class-avada-privacy-embeds.php
[edit]