Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/claquemagazineawards.com/wp-content/themes/eventbell/inc/sections/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/claquemagazineawards.com/wp-content/themes/eventbell/inc/sections/section-cta.php
<?php 
/**
 * Template part for displaying CTA Section
 *
 *@package Eventbell
 */

    $cta_button_label       = eventbell_get_option( 'cta_button_label' );
?>
<?php
    $cta_id = eventbell_get_option( 'cta_page' );
        $args = array (
        'post_type'     => 'page',
        'posts_per_page' => 1,
        'p' => $cta_id,
        
    ); 
        
    $the_query = new WP_Query( $args );

    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
    ?>
            <div class="section-header">
                <h2 class="section-title">
                    <?php the_title(); ?>
                </h2>
                <?php $excerpt = eventbell_the_excerpt( 10 );
                    echo wp_kses_post( wpautop( $excerpt ) ); ?>
            </div><!-- .section-header -->

        <?php if ( !empty($cta_button_label ) )  :?>
            <div class="read-more">
                <?php if ( ! empty( $cta_button_label ) ) : ?>
                    <a href="<?php the_permalink(); ?>" class="btn btn-primary"><?php echo esc_html($cta_button_label); ?></a>
                <?php endif; ?>
            </div><!-- .read-more -->
        <?php endif;?>
<?php endwhile; 
wp_reset_postdata(); ?>

ZeroDay Forums Mini