From 5e7c3524da6287e0a5fea44e96a4485b84dc0e7b Mon Sep 17 00:00:00 2001 From: Rajat Patel Date: Wed, 26 Feb 2025 15:57:00 +0530 Subject: [PATCH] added layout 6 --- assets/css/import-eventbrite-events.css | 149 +++++++++++++++++- .../class-import-eventbrite-events-cpt.php | 67 +++++--- templates/iee-archive-content6.php | 89 +++++++++++ 3 files changed, 278 insertions(+), 27 deletions(-) create mode 100644 templates/iee-archive-content6.php diff --git a/assets/css/import-eventbrite-events.css b/assets/css/import-eventbrite-events.css index 3f2608c..55ddcb7 100644 --- a/assets/css/import-eventbrite-events.css +++ b/assets/css/import-eventbrite-events.css @@ -1070,4 +1070,151 @@ font-size: 12px; width: calc( 100% - 55px ); } -} \ No newline at end of file +} + +/*new style 6 start*/ + /* Events Container */ + .iee6_events-container { + display: flex; + justify-content: center; + flex-wrap: wrap; + /* gap: 20px; */ + margin: 25px 0; + } + + /* Event Card */ + .iee6_event-card { + background-color: #fff; + border-radius: 12px; + box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); + overflow: hidden; + /* width: 300px; */ + transition: transform 0.3s ease-in-out; + } + + .iee6_event-card:hover { + transform: translateY(-5px); + } + + /* Event Image */ + .iee6_event-image { + position: relative; + } + + .iee6_event-image img { + width: 100%; + height: 180px; + object-fit: cover; + } + + + /* Event Info */ + .iee6_event-info { + padding: 15px; + } + + .iee6_event-date { + font-size: 14px; + font-weight: bold; + color: #007bff; + text-transform: uppercase; + } + + .iee6_event-title { + font-size: 18px; + font-weight: bold; + margin: 5px 0; + } + + .iee6_event-time { + font-size: 14px; + color: #666; + } + + .iee6_event-location { + font-size: 14px; + color: #666; + margin: 5px 0; + } + + .iee6_event-description { + font-size: 13px; + color: #555; + margin-bottom: 10px; + } + + /* Buttons */ + .iee6_event-buttons { + display: flex; + gap: 10px; + } + + .iee6_event-buttons a, button { + flex: 1; + padding: 8px 10px; + border: none; + border-radius: 5px; + cursor: pointer; + font-size: 14px; + text-align: center; + } + + .iee6_buy-btn { + opacity: 0.8; + color:#fff; + } + + .iee6_buy-btn:hover { + opacity: 1; + color:#fff; + } + + .iee6_details-btn { + background-color: #ddd; + color: black; + } + + .iee6_details-btn:hover { + background-color: #bbb; + } + + .iee6_eventbrite-item-location-icon { + position: relative; + top: 3px; + width: 12px; + height: 15px; + margin-right: 5px; + fill: #666; + } + + .iee6_eventbrite-item-datetime-icon { + position: relative; + top: 3px; + width: 15px; + height: 15px; + margin-right: 5px; + fill: #666; +} + + /* Responsive Design */ + @media (max-width: 768px ) { + .iee6_events-container { + flex-direction: column; + align-items: center; + display: block; + } + } + @media (min-width: 768px) and (max-width: 992px) { + .iee6_events-container { + display: flex; + flex-direction: row; + flex-wrap: wrap; + } + .iee6_events-container .eventbrite_events{ + width: 50%; + } + } + a.iee6_event-title, a.iee6_buy-btn, a.iee6_details-btn { + text-decoration: none !important; + } +/*new style 6 end*/ \ No newline at end of file diff --git a/includes/class-import-eventbrite-events-cpt.php b/includes/class-import-eventbrite-events-cpt.php index ea28b31..8ec5c9d 100644 --- a/includes/class-import-eventbrite-events-cpt.php +++ b/includes/class-import-eventbrite-events-cpt.php @@ -814,39 +814,54 @@ public function eventbrite_events_archive( $atts = array() ) { ?>
+
+ have_posts() ) : - while ( $eventbrite_events->have_posts() ) : - $eventbrite_events->the_post(); + if ( $eventbrite_events->have_posts() ) : + while ( $eventbrite_events->have_posts() ) : + $eventbrite_events->the_post(); - if( isset( $atts['layout'] ) && $atts['layout'] == 'style2' && iee_is_pro() ){ - get_iee_template( 'iee-archive-content2.php', $template_args ); - }else{ - get_iee_template( 'iee-archive-content.php', $template_args ); - } + if( isset( $atts['layout'] ) && $atts['layout'] == 'style2' && iee_is_pro() ){ + get_iee_template( 'iee-archive-content2.php', $template_args ); + }elseif( isset( $atts['layout'] ) && $atts['layout'] == 'style6' && iee_is_pro() ){ + get_iee_template( 'iee-archive-content6.php', $template_args ); + }else{ + get_iee_template( 'iee-archive-content.php', $template_args ); + } - endwhile; // End of the loop. + endwhile; // End of the loop. - if ( $eventbrite_events->max_num_pages > 1 ) : // custom pagination + if ( $eventbrite_events->max_num_pages > 1 ) : // custom pagination + ?> +
+ +
+ +
+ -
-