version 3.3.6 released
This commit is contained in:
parent
a7e8b2eec3
commit
45cf52b65a
@ -305,4 +305,40 @@ span.mep_event_date {
|
|||||||
height: auto;
|
height: auto;
|
||||||
padding: 7px 3px;
|
padding: 7px 3px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mep_event_list_thumbnail_meta_boxes table th, div#mep_event_list_thumbnail_meta_boxes table td {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mep_event_list_thumbnail_meta_boxes table, div#mep_event_list_thumbnail_meta_boxes table tbody {
|
||||||
|
width: 100%!important;
|
||||||
|
overflow: hidden;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#mep_event_list_thumbnail_meta_boxes table td input {
|
||||||
|
width: 93%!important;
|
||||||
|
}
|
||||||
|
div#mep_event_list_thumbnail_meta_boxes span.slider:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
|
||||||
|
width: auto!important;
|
||||||
|
}
|
||||||
|
#mep_event_list_thumbnail_meta_boxes table.form-table {
|
||||||
|
width: 100%!important;
|
||||||
|
margin: 0!important;
|
||||||
|
padding: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mep_event_list_thumbnail_meta_boxes table.form-table tbody th, #mep_event_list_thumbnail_meta_boxes table.form-table tbody td {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#mep_event_list_thumbnail_meta_boxes .media_preview {
|
||||||
|
width: 92%!important;
|
||||||
}
|
}
|
@ -272,7 +272,11 @@ ul#mep_add_calender_links li a {display: block;margin-top: 10px;width: 100%;padd
|
|||||||
/*********Related Event*****************/
|
/*********Related Event*****************/
|
||||||
.mep-related-events-sec .mep_event_grid_item:last-child{margin: 0;}
|
.mep-related-events-sec .mep_event_grid_item:last-child{margin: 0;}
|
||||||
.mep-related-events-sec .mep_list_thumb img{height: 186px;}
|
.mep-related-events-sec .mep_list_thumb img{height: 186px;}
|
||||||
.mep-ev-start-date {position: absolute;top: 10px;left: 10px;background: #ffbe30;text-align: center;width: 50px;color: #fff;font-size: 18px;line-height: 1.8;border-radius: 6px;}
|
.mep-ev-start-date {
|
||||||
|
position: absolute;top: 10px;left: 10px;
|
||||||
|
line-height: 1.8;border-radius: 6px;
|
||||||
|
background: #ffbe30;text-align: center;width: 50px;color: #fff;font-size: 18px;
|
||||||
|
}
|
||||||
.mep-day {font-weight: bold;}
|
.mep-day {font-weight: bold;}
|
||||||
/*********List style*****************/
|
/*********List style*****************/
|
||||||
.mep_event_list .mep_event_list_sec,
|
.mep_event_list .mep_event_list_sec,
|
||||||
@ -301,20 +305,20 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: #
|
|||||||
.mep-list-footer ul li h5{font-size: 14px;font-weight: 600;padding: 0 5px 0 0;}
|
.mep-list-footer ul li h5{font-size: 14px;font-weight: 600;padding: 0 5px 0 0;}
|
||||||
.evl-cc{margin: 0 0 0 10px;}
|
.evl-cc{margin: 0 0 0 10px;}
|
||||||
/*******Grid Style******/
|
/*******Grid Style******/
|
||||||
.mep_event_grid_item {border: 1px solid #ddd;margin: 0 20px 0 0;
|
.mep_event_grid_item {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
margin: 7px;
|
||||||
-webkit-box-shadow: 0 0 6px 1px #d9d9d9;box-shadow: 0 0 6px 1px #d9d9d9;
|
-webkit-box-shadow: 0 0 6px 1px #d9d9d9;box-shadow: 0 0 6px 1px #d9d9d9;
|
||||||
}
|
}
|
||||||
.mage_grid_box{margin: 0 0 20px 0;}
|
.mage_grid_box{margin: 0 -7px 20px -7px;}
|
||||||
.mage_grid_box .blank_div{margin: 0 20px 0 0;}
|
.mage_grid_box .blank_div{margin: 0 20px 0 0;}
|
||||||
.mage_grid_box .mep_event_grid_item:last-child,
|
|
||||||
.mage_grid_box .blank_div:last-child{margin: 0 0 15px 0;}
|
.mage_grid_box .blank_div:last-child{margin: 0 0 15px 0;}
|
||||||
.mep_event_grid_item .mep_list_event_details,
|
.mep_event_grid_item .mep_list_event_details,
|
||||||
.mep_event_grid_item .mep_list_thumb{width: 100%}
|
.mep_event_grid_item .mep_list_thumb{width: 100%}
|
||||||
.mep_event_grid_item .mep_list_thumb img{height: 160px;}
|
|
||||||
.mep_event_grid_item .mep_list_event_details{margin: 0;}
|
.mep_event_grid_item .mep_list_event_details{margin: 0;}
|
||||||
.mep_event_grid_item .mep-list-header{padding: 0 0 0 10px;}
|
.mep_event_grid_item .mep-list-header{padding: 0 0 0 10px;}
|
||||||
.mep_event_grid_item .mep-list-footer { padding: 10px 0 0 10px;}
|
.mep_event_grid_item .mep-list-footer { padding: 10px 0 0 10px;}
|
||||||
.mep_event_grid_item .mep_list_event_details{padding: 0 10px 20px 0;}
|
.mep_event_grid_item .mep_list_event_details{padding: 15px;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -555,7 +559,7 @@ ul.event-custom-price li ul {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
width: auto;
|
width: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0px 10px;
|
padding: 0 10px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
@ -650,7 +654,7 @@ position: relative;
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
ul.mep-more-date-lists {
|
ul.mep-more-date-lists {
|
||||||
margin: 0px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
button.mep-cat-control {
|
button.mep-cat-control {
|
||||||
background: #fa6630;
|
background: #fa6630;
|
||||||
@ -798,12 +802,26 @@ div.mep_event_minimal_list{display:-webkit-flex;display:flex;}
|
|||||||
.mep-list-header{padding: 0 0 7px 20px;}
|
.mep-list-header{padding: 0 0 7px 20px;}
|
||||||
div.mep_event_native_list .mep_list_thumb,
|
div.mep_event_native_list .mep_list_thumb,
|
||||||
div.mep_event_native_list .mep_list_event_details{min-height:auto;}
|
div.mep_event_native_list .mep_list_event_details{min-height:auto;}
|
||||||
|
div.column_style{
|
||||||
|
display:-webkit-flex;display:flex;
|
||||||
|
-webkit-flex-direction:column;flex-direction:column;
|
||||||
|
}
|
||||||
|
div.column_style .mep_list_thumb img{height:160px;}
|
||||||
@media only screen and (max-width: 650px){
|
@media only screen and (max-width: 650px){
|
||||||
.mep_list_thumb,
|
.mep_list_thumb,
|
||||||
.mep_list_event_details{width:100%;min-height:100px;}
|
.mep_list_event_details{width:100%;min-height:100px;}
|
||||||
div.one_column{-webkit-flex-direction:column;flex-direction:column;}
|
div.one_column{-webkit-flex-direction:column;flex-direction:column;}
|
||||||
}
|
}
|
||||||
/******Style added by sumon*******/
|
/******Style added by sumon*******/
|
||||||
|
div.mep_event_list div.mage_grid_box{-webkit-flex-wrap: wrap;flex-wrap: wrap;}
|
||||||
|
div.two_column{width:calc(50% - 18px);margin: 0 15px 15px 0;}
|
||||||
|
|
||||||
|
div.four_column{width:calc(25% - 18px);margin: 0 15px 15px 0;}
|
||||||
|
|
||||||
|
div.item_hover_effect{position:absolute;left:0;top:0;right:0;bottom:0;background-color:#0009;display:none;-webkit-justify-content: center;justify-content: center;-webkit-align-items: center;align-items: center;}
|
||||||
|
.mep-event-list-loop:hover div.item_hover_effect{display: -webkit-flex;display: flex;}
|
||||||
|
div.item_hover_effect a{font-size:22px;font-weight:500;color:#fff;padding:15px 30px;border-radius:5px;background-color:#346B80;transition: 250ms ease-in-out;border:1px solid #FFF;}
|
||||||
|
div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px solid #346B80;}
|
||||||
/******Responsive*******/
|
/******Responsive*******/
|
||||||
@media only screen and (max-width: 1199px) {
|
@media only screen and (max-width: 1199px) {
|
||||||
/********Default Theme***********/
|
/********Default Theme***********/
|
||||||
@ -862,17 +880,19 @@ div.mep_event_native_list .mep_list_event_details{min-height:auto;}
|
|||||||
/********frinklin*********/
|
/********frinklin*********/
|
||||||
.mep-default-sidrbar-events-schedule h3{font-size: 15px;}
|
.mep-default-sidrbar-events-schedule h3{font-size: 15px;}
|
||||||
/************Related***********/
|
/************Related***********/
|
||||||
h2.mep_list_title{font-size: 15px;}
|
h2.mep_list_title{font-size: 15px !important;}
|
||||||
h3.mep_list_date,
|
h3.mep_list_date,
|
||||||
.mep-list-footer ul li h6{font-size: 13px;}
|
.mep-list-footer ul li h6{font-size: 13px !important;}
|
||||||
.mep-list-footer ul li h5{font-size: 12px;}
|
.mep-list-footer ul li h5{font-size: 12px !important;}
|
||||||
|
div.item_hover_effect a{font-size:16px;padding:10px 20px;}
|
||||||
|
|
||||||
|
div.column_style{min-width: calc(33.333333% - 14px) !important;}
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 767px) {
|
@media only screen and (max-width: 767px) {
|
||||||
div.mep_flex.default_theme,
|
div.mep_flex.default_theme,
|
||||||
div.franklin_divided,
|
div.franklin_divided,
|
||||||
div.bristol_divided,
|
div.bristol_divided,
|
||||||
.mep_event_list .mep_event_list_sec div.mep_event_list_item,
|
.mep_event_list .mep_event_list_sec div.mep_event_list_item{display: block;}
|
||||||
div.mep_event_list div.mage_grid_box{display: block;}
|
|
||||||
.mep-default-content,
|
.mep-default-content,
|
||||||
.mep-default-sidebar{width: 100%;margin: 0;padding: 0;}
|
.mep-default-sidebar{width: 100%;margin: 0;padding: 0;}
|
||||||
div.mep-related-events-sec div.mep_event_list_sec{display: block;}
|
div.mep-related-events-sec div.mep_event_list_sec{display: block;}
|
||||||
@ -894,17 +914,16 @@ div.mep_event_native_list .mep_list_event_details{min-height:auto;}
|
|||||||
.mep_event_list .mep_event_list_sec div.mep_event_list_item .mep_list_event_details{margin: 0}
|
.mep_event_list .mep_event_list_sec div.mep_event_list_item .mep_list_event_details{margin: 0}
|
||||||
.mep_event_list .mep_event_list_sec div.mep_event_list_item img,
|
.mep_event_list .mep_event_list_sec div.mep_event_list_item img,
|
||||||
div.mep_event_list div.mage_grid_box img{min-height: auto;}
|
div.mep_event_list div.mage_grid_box img{min-height: auto;}
|
||||||
.mage_grid_box>div,
|
|
||||||
.mage_grid_box .mep_event_grid_item:last-child{margin: 0 0 15px 0;}
|
|
||||||
.mage_grid_box{margin: 0;}
|
.mage_grid_box{margin: 0;}
|
||||||
.mep-events-wrapper input.extra-qty-box{width: 30px;}
|
.mep-events-wrapper input.extra-qty-box{width: 30px;}
|
||||||
.mep-events-wrapper .mage_input_group{max-width: 90px;}
|
.mep-events-wrapper .mage_input_group{max-width: 90px;}
|
||||||
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before { border-color: transparent!important;}
|
|
||||||
|
|
||||||
|
|
||||||
.mep_event_minimal_list .mep-ev-start-date {top: -5px;}
|
.mep_event_minimal_list .mep-ev-start-date {top: -5px;}
|
||||||
span.mep_minimal_list_location{margin-left:0;display:block;}
|
span.mep_minimal_list_location{margin-left:0;display:block;}
|
||||||
|
|
||||||
|
div.column_style{min-width: calc(50% - 14px) !important;}
|
||||||
|
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 500px) {
|
@media only screen and (max-width: 500px) {
|
||||||
.mep-default-content div.mep-default-feature-date-location{display: block;margin: 10px 0;}
|
.mep-default-content div.mep-default-feature-date-location{display: block;margin: 10px 0;}
|
||||||
@ -938,22 +957,13 @@ div.mep_event_native_list .mep_list_event_details{min-height:auto;}
|
|||||||
.bristol .mep-default-sidrbar-calender-btn{margin: 0;padding: 20px 0;border-top: 1px solid #ddd;}
|
.bristol .mep-default-sidrbar-calender-btn{margin: 0;padding: 20px 0;border-top: 1px solid #ddd;}
|
||||||
.bristol ul#mep_add_calender_links{width: 200px;}
|
.bristol ul#mep_add_calender_links{width: 200px;}
|
||||||
|
|
||||||
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before { border-color: transparent!important;}
|
|
||||||
.mep_event_native_list .mep_list_thumb {}
|
.mep_event_native_list .mep_list_thumb {}
|
||||||
.mep_event_native_list .mep-list-header {padding: 0;}
|
.mep_event_native_list .mep-list-header {padding: 0;}
|
||||||
.mep_event_native_list .mep_more_date_btn { width: 100%;position: relative;}
|
.mep_event_native_list .mep_more_date_btn { width: 100%;position: relative;}
|
||||||
|
|
||||||
.mep_event_minimal_list .mep-ev-start-date {top: -5px;}
|
.mep_event_minimal_list .mep-ev-start-date {top: -5px;}
|
||||||
}
|
}
|
||||||
div.mep_event_list div.mage_grid_box{-webkit-flex-wrap: wrap;flex-wrap: wrap;}
|
|
||||||
div.two_column{width:calc(50% - 18px);margin: 0 15px 15px 0;}
|
|
||||||
|
|
||||||
div.four_column{width:calc(25% - 18px);margin: 0 15px 15px 0;}
|
|
||||||
|
|
||||||
div.item_hover_effect{position:absolute;left:0;top:0;right:0;bottom:0;background-color:#0009;display:none;-webkit-justify-content: center;justify-content: center;-webkit-align-items: center;align-items: center;}
|
|
||||||
.mep-event-list-loop:hover div.item_hover_effect{display: -webkit-flex;display: flex;}
|
|
||||||
div.item_hover_effect a{font-size:22px;font-weight:500;color:#fff;padding:15px 30px;border-radius:5px;background-color:#346B80;transition: 250ms ease-in-out;border:1px solid #FFF;}
|
|
||||||
div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px solid #346B80;}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 800px) {
|
@media only screen and (max-width: 800px) {
|
||||||
div.two_column{width:calc(50% - 15px);margin: 0 15px 15px 0;}
|
div.two_column{width:calc(50% - 15px);margin: 0 15px 15px 0;}
|
||||||
@ -964,4 +974,5 @@ div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px sol
|
|||||||
div.two_column,
|
div.two_column,
|
||||||
div.three_column,
|
div.three_column,
|
||||||
div.four_column{width:100%;margin: 0 0 15px 0;}
|
div.four_column{width:100%;margin: 0 0 15px 0;}
|
||||||
|
div.column_style{min-width: calc(100% - 14px) !important;}
|
||||||
}
|
}
|
@ -411,7 +411,26 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||||||
'yes' => 'Yes',
|
'yes' => 'Yes',
|
||||||
'no' => 'No'
|
'no' => 'No'
|
||||||
)
|
)
|
||||||
)
|
),
|
||||||
|
array(
|
||||||
|
'name' => 'mep_hide_event_hover_btn',
|
||||||
|
'label' => __( 'Hide / Visible Event Hover Book Now Button ?', 'mage-eventpress' ),
|
||||||
|
'desc' => __( 'If you want to Hide / Visible Event Hover Book Now Button , Please select Yes. By default is: No.', 'mage-eventpress' ),
|
||||||
|
'type' => 'select',
|
||||||
|
'default' => 'no',
|
||||||
|
'options' => array(
|
||||||
|
'yes' => 'Yes',
|
||||||
|
'no' => 'No'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'name' => 'mep_hide_event_hover_btn_text',
|
||||||
|
'label' => __( 'Event Hover Book Now Button Text ?', 'mage-eventpress' ),
|
||||||
|
'desc' => __( 'Pleaase Type Event Hover Book Now Button Text . OtherWise It will be Book Now.', 'mage-eventpress' ),
|
||||||
|
'type' => 'text',
|
||||||
|
'default' => 'Book Now',
|
||||||
|
'placeholder'=>'Book Now'
|
||||||
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -127,6 +127,51 @@ function mep_fw_meta_boxs()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$list_thumb_meta_boxs = array(
|
||||||
|
'page_nav' => __('Event List Thumbnail', 'mage-eventpress-gq'),
|
||||||
|
'priority' => 10,
|
||||||
|
'sections' => array(
|
||||||
|
'section_2' => array(
|
||||||
|
'title' => __('', 'mage-eventpress-gq'),
|
||||||
|
'description' => __('', 'mage-eventpress-gq'),
|
||||||
|
'options' => array(
|
||||||
|
|
||||||
|
array(
|
||||||
|
'id' => 'mep_list_thumbnail',
|
||||||
|
'title' => __('Thumbmnail ','text-domain'),
|
||||||
|
'details' => __('Please upload image for event list','text-domain'),
|
||||||
|
'placeholder' => 'https://via.placeholder.com/1000x500',
|
||||||
|
'type' => 'media',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
),
|
||||||
|
|
||||||
|
),
|
||||||
|
);
|
||||||
|
$list_thumb_meta_args = array(
|
||||||
|
'meta_box_id' => 'mep_event_list_thumbnail_meta_boxes',
|
||||||
|
'meta_box_title' => __('Event List Thumbnail', 'mage-eventpress'),
|
||||||
|
//'callback' => '_meta_box_callback',
|
||||||
|
'screen' => array('mep_events'),
|
||||||
|
'context' => 'side', // 'normal', 'side', and 'advanced'
|
||||||
|
'priority' => 'low', // 'high', 'low'
|
||||||
|
'callback_args' => array(),
|
||||||
|
'nav_position' => 'none', // right, top, left, none
|
||||||
|
'item_name' => "MagePeople",
|
||||||
|
'item_version' => "2.0",
|
||||||
|
'panels' => array(
|
||||||
|
'speakers_meta_boxs' => $list_thumb_meta_boxs
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
new AddMetaBox( $list_thumb_meta_args );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3349,4 +3349,22 @@ $args = array(
|
|||||||
$loop = new WP_Query($args);
|
$loop = new WP_Query($args);
|
||||||
$count = $loop->post_count;
|
$count = $loop->post_count;
|
||||||
return $count;
|
return $count;
|
||||||
|
}
|
||||||
|
|
||||||
|
function mep_get_list_thumbnail($event_id){
|
||||||
|
|
||||||
|
$thumbnail_id = get_post_meta($event_id,'mep_list_thumbnail',true) ? get_post_meta($event_id,'mep_list_thumbnail',true) : 0;
|
||||||
|
|
||||||
|
|
||||||
|
if($thumbnail_id > 0){
|
||||||
|
// echo $thumbnail_id;
|
||||||
|
$thumbnail = wp_get_attachment_image_src($thumbnail_id,'full');
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<img src="<?php echo $thumbnail[0]; ?>" class="attachment-full size-full wp-post-image" alt="<?php echo get_the_title($event_id); ?>"/>
|
||||||
|
<?php
|
||||||
|
}else{
|
||||||
|
echo get_the_post_thumbnail($event_id, 'full');
|
||||||
|
}
|
||||||
}
|
}
|
@ -155,25 +155,19 @@ function mep_event_list($atts, $content = null)
|
|||||||
echo $time_line_div_start;
|
echo $time_line_div_start;
|
||||||
while ($loop->have_posts()) {
|
while ($loop->have_posts()) {
|
||||||
$loop->the_post();
|
$loop->the_post();
|
||||||
if ($style == 'grid') {
|
if ($style == 'grid' && (int)$column>0) {
|
||||||
if ($column == 2) {
|
$columnNumber='column_style';
|
||||||
$columnNumber = 'two_column';
|
$width=100/(int)$column;
|
||||||
} elseif ($column == 3) {
|
|
||||||
$columnNumber = 'three_column';
|
|
||||||
} elseif ($column == 4) {
|
|
||||||
$columnNumber = 'four_column';
|
|
||||||
} else {
|
|
||||||
$columnNumber = 'two_column';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$columnNumber = 'one_column';
|
$columnNumber = 'one_column';
|
||||||
|
$width=100;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$unq_id);
|
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$width,$unq_id);
|
||||||
}
|
}
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
echo $time_line_div_end;
|
echo $time_line_div_end;
|
||||||
@ -305,23 +299,17 @@ function mep_expire_event_list($atts, $content = null)
|
|||||||
echo '<div class="mage_grid_box">';
|
echo '<div class="mage_grid_box">';
|
||||||
while ($loop->have_posts()) {
|
while ($loop->have_posts()) {
|
||||||
$loop->the_post();
|
$loop->the_post();
|
||||||
if ($style == 'grid') {
|
if ($style == 'grid' && (int)$column>0) {
|
||||||
if ($column == 2) {
|
$columnNumber='column_style';
|
||||||
$columnNumber = 'two_column';
|
$width=100/(int)$column;
|
||||||
} elseif ($column == 3) {
|
} else {
|
||||||
$columnNumber = 'three_column';
|
$columnNumber = 'one_column';
|
||||||
} elseif ($column == 4) {
|
$width=100;
|
||||||
$columnNumber = 'four_column';
|
}
|
||||||
} else {
|
|
||||||
$columnNumber = 'two_column';
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$columnNumber = 'one_column';
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
||||||
*/
|
*/
|
||||||
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style);
|
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$width);
|
||||||
}
|
}
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
@ -487,23 +475,17 @@ function mep_event_onepage_list($atts, $content = null)
|
|||||||
echo '<div class="mage_grid_box">';
|
echo '<div class="mage_grid_box">';
|
||||||
while ($loop->have_posts()) {
|
while ($loop->have_posts()) {
|
||||||
$loop->the_post();
|
$loop->the_post();
|
||||||
if ($style == 'grid') {
|
if ($style == 'grid' && (int)$column>0) {
|
||||||
if ($column == 2) {
|
$columnNumber='column_style';
|
||||||
$columnNumber = 'two_column';
|
$width=100/(int)$column;
|
||||||
} elseif ($column == 3) {
|
} else {
|
||||||
$columnNumber = 'three_column';
|
$columnNumber = 'one_column';
|
||||||
} elseif ($column == 4) {
|
$width=100;
|
||||||
$columnNumber = 'four_column';
|
}
|
||||||
} else {
|
|
||||||
$columnNumber = 'two_column';
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$columnNumber = 'one_column';
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
|
||||||
*/
|
*/
|
||||||
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style);
|
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$width);
|
||||||
|
|
||||||
$currency_pos = get_option('woocommerce_currency_pos');
|
$currency_pos = get_option('woocommerce_currency_pos');
|
||||||
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
|
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
|
||||||
|
@ -5,7 +5,7 @@ if (!defined('ABSPATH')) {
|
|||||||
|
|
||||||
add_action('mep_event_list_shortcode', 'mep_display_event_loop_list', 10, 4);
|
add_action('mep_event_list_shortcode', 'mep_display_event_loop_list', 10, 4);
|
||||||
if (!function_exists('mep_display_event_loop_list')) {
|
if (!function_exists('mep_display_event_loop_list')) {
|
||||||
function mep_display_event_loop_list($event_id, $columnNumber, $style, $unq_id ='')
|
function mep_display_event_loop_list($event_id, $columnNumber, $style,$width, $unq_id ='')
|
||||||
{
|
{
|
||||||
|
|
||||||
$now = current_time('Y-m-d H:i:s');
|
$now = current_time('Y-m-d H:i:s');
|
||||||
|
12
readme.txt
12
readme.txt
@ -645,4 +645,14 @@ New Hooks added
|
|||||||
Code Optimized & Improved
|
Code Optimized & Improved
|
||||||
Bug Fixed
|
Bug Fixed
|
||||||
|
|
||||||
26 Oct 2020*
|
26 Oct 2020*
|
||||||
|
|
||||||
|
|
||||||
|
= 3.3.6 =
|
||||||
|
* Update Release:
|
||||||
|
Quick Update for Book Now Button Issue
|
||||||
|
Added Settings to Disbale/Enable Book Now Button
|
||||||
|
Event List Column 1 issue fixed
|
||||||
|
Event List Thumbnail Feature Added
|
||||||
|
|
||||||
|
28 Oct 2020*
|
@ -1,7 +1,11 @@
|
|||||||
<div class='mep-event-list-loop <?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php echo $org_class.' '.$cat_class; ?>'>
|
<?php
|
||||||
|
$mep_hide_event_hover_btn = mep_get_option('mep_hide_event_hover_btn', 'general_setting_sec', 'no');
|
||||||
|
$mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text', 'general_setting_sec', 'Book Now');
|
||||||
|
?>
|
||||||
|
<div class='mep-event-list-loop <?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php echo $org_class.' '.$cat_class; ?>' style="width:calc(<?php echo $width; ?>% - 14px);">
|
||||||
<?php do_action('mep_event_list_loop_header', $event_id); ?>
|
<?php do_action('mep_event_list_loop_header', $event_id); ?>
|
||||||
<div class="mep_list_thumb">
|
<div class="mep_list_thumb">
|
||||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo get_the_post_thumbnail($event_id, 'full'); ?></a>
|
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||||
<?php if (sizeof($event_multidate) == 0) { ?>
|
<?php if (sizeof($event_multidate) == 0) { ?>
|
||||||
<div class="mep-ev-start-date">
|
<div class="mep-ev-start-date">
|
||||||
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0], 'day'); ?></div>
|
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0], 'day'); ?></div>
|
||||||
@ -100,7 +104,9 @@
|
|||||||
</a>
|
</a>
|
||||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if('yes'==$mep_hide_event_hover_btn){ ?>
|
||||||
<div class="item_hover_effect">
|
<div class="item_hover_effect">
|
||||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo __('Book Now', 'mage-eventpress'); ?></a>
|
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo $mep_hide_event_hover_btn_text; ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class='mep-event-list-loop mep_event_list_item mep_event_native_list mix <?php echo $org_class.' '.$cat_class; ?>'>
|
<div class='mep-event-list-loop mep_event_list_item mep_event_native_list mix <?php echo $org_class.' '.$cat_class; ?>'>
|
||||||
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
||||||
<div class="mep_list_thumb">
|
<div class="mep_list_thumb">
|
||||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo get_the_post_thumbnail($event_id,'full'); ?></a>
|
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep_list_event_details">
|
<div class="mep_list_event_details">
|
||||||
<a href="<?php the_permalink(); ?>">
|
<a href="<?php the_permalink(); ?>">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<div class='mep_event_timeline_list'>
|
<div class='mep_event_timeline_list'>
|
||||||
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
||||||
<div class="mep_list_thumb">
|
<div class="mep_list_thumb">
|
||||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo get_the_post_thumbnail($event_id,'full'); ?></a>
|
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||||
<div class="mep-ev-start-date">
|
<div class="mep-ev-start-date">
|
||||||
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
|
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
|
||||||
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
|
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
|
||||||
|
@ -1 +1 @@
|
|||||||
<div class='mep_event_title_list_item mix <?php echo $org_class.' '.$cat_class; ?>'><a href='<?php the_permalink(); ?>'><?php the_title(); ?></a></div>
|
<div class='mep_event_title_list_item mix <?php echo $org_class . ' ' . $cat_class; ?>'><a href='<?php the_permalink(); ?>'><?php the_title(); ?></a></div>
|
@ -12,6 +12,7 @@ $hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_deta
|
|||||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="mep-default-theme mep_flex default_theme">
|
<div class="mep-default-theme mep_flex default_theme">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* Plugin Name: Woocommerce Events Manager
|
* Plugin Name: Woocommerce Events Manager
|
||||||
* Plugin URI: http://mage-people.com
|
* Plugin URI: http://mage-people.com
|
||||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||||
* Version: 3.3.5
|
* Version: 3.3.6
|
||||||
* Author: MagePeople Team
|
* Author: MagePeople Team
|
||||||
* Author URI: http://www.mage-people.com/
|
* Author URI: http://www.mage-people.com/
|
||||||
* Text Domain: mage-eventpress
|
* Text Domain: mage-eventpress
|
||||||
@ -12,6 +12,7 @@
|
|||||||
* WC tested up to: 4.2.0*
|
* WC tested up to: 4.2.0*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (!defined('ABSPATH')) {
|
if (!defined('ABSPATH')) {
|
||||||
die;
|
die;
|
||||||
} // Cannot access pages directly.
|
} // Cannot access pages directly.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user