first commit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Template Name: Default
|
||||
*
|
||||
*/
|
||||
|
||||
use Essential_Addons_Elementor\Pro\Classes\Helper;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
} // Exit if accessed directly
|
||||
|
||||
|
||||
echo '<div class="eael-content-timeline-block">
|
||||
<div class="eael-content-timeline-line">
|
||||
<div class="eael-content-timeline-inner"></div>
|
||||
</div>
|
||||
<div class="eael-content-timeline-img eael-picture ' . ( ( 'bullet' === $settings['eael_show_image_or_icon'] ) ? 'eael-content-timeline-bullet' : '' ) . '">';
|
||||
|
||||
echo wp_kses( $content['image'], Helper::eael_allowed_icon_tags() );
|
||||
|
||||
echo '</div>';
|
||||
|
||||
$eael_ct_content = '<div class="eael-content-timeline-content">';
|
||||
if ( 'yes' == $settings['eael_show_title'] ) {
|
||||
$eael_ct_content .= '<' . \Essential_Addons_Elementor\Classes\Helper::eael_validate_html_tag( $settings['title_tag'] ) . ' class="eael-timeline-title"><a href="' . esc_url( $content['permalink'] ) . '"' . $content['nofollow'] . '' . $content['target_blank'] . '>' . $content['title'] . '</a></' . \Essential_Addons_Elementor\Classes\Helper::eael_validate_html_tag( $settings['title_tag'] ) . '>';
|
||||
}
|
||||
|
||||
if ( ! empty( $content['image_linkable'] ) && $content['image_linkable'] === 'yes' ) {
|
||||
$eael_ct_content .= '<a href="' . esc_url( $content['permalink'] ) . '"' . $content['image_link_nofollow'] . '' . $content['image_link_target'] . '>';
|
||||
}
|
||||
|
||||
$eael_ct_content .= $content['post_thumbnail'];
|
||||
|
||||
if ( ! empty( $content['image_linkable'] ) && $content['image_linkable'] === 'yes' ) {
|
||||
$eael_ct_content .= '</a>';
|
||||
}
|
||||
|
||||
if ( 'yes' == $settings['eael_show_excerpt'] ) {
|
||||
$eael_ct_content .= $content['excerpt'];
|
||||
}
|
||||
|
||||
$eael_ct_content .= $content['read_more_btn'];
|
||||
|
||||
$eael_ct_content .= '<span class="eael-date">';
|
||||
$eael_ct_content .= $content['date'];
|
||||
$eael_ct_content .= '</span>';
|
||||
$eael_ct_content .= '</div></div>';
|
||||
|
||||
echo wp_kses( $eael_ct_content, Helper::eael_allowed_tags() );
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Template Name: Horizontal
|
||||
*
|
||||
*/
|
||||
|
||||
use Essential_Addons_Elementor\Pro\Classes\Helper;
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
} // Exit if accessed directly
|
||||
|
||||
$horizontal_layout = ! empty( $settings['content_timeline_layout_horizontal'] ) ? esc_html( $settings['content_timeline_layout_horizontal'] ) : esc_html( 'center' );
|
||||
$navigation_type = ! empty( $settings['eael_content_timeline_navigation_type'] ) ? $settings['eael_content_timeline_navigation_type'] : esc_html( 'scrollbar' );
|
||||
$query = isset( $query ) ? $query : new WP_Query();
|
||||
?>
|
||||
<div class="eael-horizontal-timeline eael-horizontal-timeline--layout-<?php echo esc_attr( $horizontal_layout ) ?> eael-horizontal-timeline--align-left eael-horizontal-timeline--<?php echo esc_attr( $navigation_type ) ?>">
|
||||
<?php if( 'arrows' === $navigation_type ) : ?>
|
||||
<div class="eael-horizontal-timeline-inner">
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="eael-horizontal-timeline-track">
|
||||
<?php
|
||||
switch ( $horizontal_layout ) {
|
||||
case 'top':
|
||||
?>
|
||||
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--top <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'top' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--middle <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<div class="eael-horizontal-timeline__line"></div>
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'middle' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--bottom <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'bottom' ); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
case 'middle':
|
||||
?>
|
||||
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--top <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'top' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--middle <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<div class="eael-horizontal-timeline__line"></div>
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'middle' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--bottom <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'bottom' ); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
case 'bottom':
|
||||
?>
|
||||
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--bottom <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'bottom' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--middle <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<div class="eael-horizontal-timeline__line"></div>
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'middle' ); ?>
|
||||
</div>
|
||||
<div class="eael-horizontal-timeline-list eael-horizontal-timeline-list--top <?php echo esc_attr( $horizontal_layout ); ?>">
|
||||
<?php $this->print_horizontal_timeline_content( $settings, $query, 'top' ); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ( 'arrows' === $navigation_type && ! empty( $settings['eael_content_timeline_arrow_type'] ) ) {
|
||||
printf( '<i class="%s eael-arrow eael-prev-arrow eael-arrow-disabled"></i>', esc_attr( $settings['eael_content_timeline_arrow_type'] ) );
|
||||
printf( '<i class="%s eael-arrow eael-next-arrow"></i>', esc_attr( $settings['eael_content_timeline_arrow_type'] ) );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if( 'arrows' === $navigation_type ) : ?>
|
||||
</div> <!-- /.eael-horizontal-timeline-inner -->
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
Reference in New Issue
Block a user