Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added layout 3 #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 225 additions & 1 deletion assets/css/import-eventbrite-events.css
Original file line number Diff line number Diff line change
Expand Up @@ -1070,4 +1070,228 @@
font-size: 12px;
width: calc( 100% - 55px );
}
}
}

/*new layout style 3 start*/
.iee-event-item a{
text-decoration: none;
}

.iee-event-item {
display: flex;
align-items: center;
gap: 20px;
position: relative;
margin: 20px 10px;
}

.iee-event-item::before {
content: "";
position: absolute;
left: 35px;
top: 50%;
height: 100%;
z-index: -1;
}

.iee-event-item.last::before {
display: none;
}

.iee-event-count {
width: 70px;
height: 70px;
line-height: 68px;
border-radius: 50%;
text-align: center;
font-size: 38px;
font-weight: 700;
}

.iee-event-content-wrap {
display: flex;
align-items: center;
gap: 15px;
flex: 1;
padding: 15px;
border-radius: 15px;
box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
}

.iee-event-img {
overflow: hidden;
border-radius: 15px;
flex : 0 0 15%;
}

.iee-event-img img {
width: 280px;
border-radius: 15px;
}

.iee-event-item:hover .iee-event-img img {
transform: scale(1.1);
}

.iee-event-meta {
margin-bottom: 15px;
}

.iee-event-meta > div {
display: flex;
gap: 5px;
list-style-type: none;
font-weight: 500;
}

.iee-event-info h4 {
margin-bottom: 10px;
}

.iee-event-info h4 a {
font-size: 22px;
}

.iee-event-bottom {
display: flex;
justify-content: space-between;
margin-top: 18px;
padding-top: 18px;
width: 15%;
flex : 0 0 15%;
}

.iee-event-item::before {
display: none;
}

.iee-event-count {
background: 0 0;
width: unset;
height: unset;
line-height: unset;
box-shadow: none;
line-height: 1;
font-weight: 800;
}

.iee-event-count span {
display: block;
line-height: 1;
font-weight: 500;
font-size: 20px;
text-transform: uppercase;
margin-top: 5px;
}

.iee-event-bottom {
border-top: none;
margin: 0;
padding: 0;
}

.iee-event-img img {
width: 180px;
}

.iee-event-content {
border-right: 1px solid rgba(0, 0, 0, 0.08);
padding-right: 20px;
width: 70%;
flex : 0 0 70%;
}

.iee-event-item .time {
font-weight: 500;
}

.iee-theme-btn {
font-size: 16px;
color: #fff;
padding: 10px 24px;
transition: all .5s;
text-transform: capitalize;
position: relative;
border-radius: 50px;
font-weight: 500;
cursor: pointer;
text-align: center;
vertical-align: middle;
overflow: hidden;
border: none;
box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
z-index: 1;
}

.iee-theme-btn:hover,.iee-theme-btn:focus{
filter: brightness(90%);
color: #fff;
}

.iee-event-location {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 0 0 78%;
}

.iee-event-time{
flex: 0 0 22;
}


@media all and (min-width: 991px) and (max-width: 1400px) {
.iee-event-location{
flex: 0 0 65%;
}
.iee-event-bottom{
width: 100%;
flex: 0 0 10%;
}
}


@media all and (max-width:991px) {
.iee-event-item::before {
display: none;
}

.iee-event-count {
display: none;
}

.iee-event-content-wrap {
flex-direction: column;
align-items: unset;
width: 100%;
}

.iee-event-img img {
width: 100%;
}

.iee-event-meta ul {
flex-direction: column;
gap: 10px;
}

.iee-event-bottom {
flex-direction: column;
width: 100%;
}

.iee-event-bottom .iee-theme-btn {
margin-top: 20px;
}

.iee-event-content {
border-right: none;
padding-right: 0;
width: 100%;
}
.iee-event-dtl-meta{
display: flex;
flex-direction: column;
}
}
/*new layout style 3 end*/
8 changes: 8 additions & 0 deletions includes/class-import-eventbrite-events-cpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ public function eventbrite_events_archive( $atts = array() ) {

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'] == 'style3' && iee_is_pro() ){
get_iee_template( 'iee-archive-content3.php', $template_args );
}else{
get_iee_template( 'iee-archive-content.php', $template_args );
}
Expand Down Expand Up @@ -856,6 +858,12 @@ public function eventbrite_events_archive( $atts = array() ) {
.iee_archive .iee_event .event_desc .event_title{
color: <?php echo esc_attr( $accent_color ); ?>;
}
.iee-event-count, .iee-event-meta > div, .iee-event-meta > div i, .iee-event-info h4 a:hover {
color: <?php echo esc_attr( $accent_color ); ?>;
}
.iee-theme-btn{
background: <?php echo esc_attr( $accent_color ); ?>;
}
</style>
<?php
do_action( 'iee_after_event_list', $eventbrite_events );
Expand Down
39 changes: 8 additions & 31 deletions languages/import-eventbrite-events.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
"Project-Id-Version: Import Eventbrite Events 1.7.2\n"
"Project-Id-Version: Import Eventbrite Events 1.7.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/import-eventbrite-events\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-05T10:43:24+00:00\n"
"POT-Creation-Date: 2024-10-21T07:18:05+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: import-eventbrite-events\n"
Expand Down Expand Up @@ -535,6 +535,7 @@ msgid "Import settings has been saved successfully."
msgstr ""

#: includes/class-import-eventbrite-events-common.php:1339
#: templates/iee-archive-content3.php:94
msgid "Buy Tickets"
msgstr ""

Expand Down Expand Up @@ -827,7 +828,7 @@ msgstr ""
msgid "Start Date"
msgstr ""

#: includes/class-import-eventbrite-events-cpt.php:848
#: includes/class-import-eventbrite-events-cpt.php:850
msgid "There are no upcoming Events at this time."
msgstr ""

Expand Down Expand Up @@ -1327,46 +1328,22 @@ msgstr ""
msgid "Plugins you should try"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:111
#: templates/admin/import-eventbrite-events-support.php:103
msgid "Active Installs: "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:117
#: templates/admin/import-eventbrite-events-support.php:109
msgid "Actived"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:120
#: templates/admin/import-eventbrite-events-support.php:112
msgid "Activate"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:124
#: templates/admin/import-eventbrite-events-support.php:116
msgid "Install Plugin"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:129
msgid "Version:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "Requires:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:134
msgid "WordPress "
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:138
msgid "Active Installs:"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:143
msgid "Install Now"
msgstr ""

#: templates/admin/import-eventbrite-events-support.php:146
msgid "Buy Now"
msgstr ""

#: templates/iee-event-meta.php:38
msgid "Details"
msgstr ""
Expand Down
Loading