146 lines
5.0 KiB
PHP
146 lines
5.0 KiB
PHP
<?php
|
||
|
||
add_action( 'admin_menu', 'mep_addon_list_menu',10,99);
|
||
function mep_addon_list_menu() {
|
||
add_submenu_page('edit.php?post_type=mep_events', __('Get Addon','wbtm-menu'), __('<span style="color:red">Get Addons</span>','mage-eventpress'), 'manage_options', 'mep_all_addon_list', 'mep_addon_list_sec');
|
||
}
|
||
|
||
function mep_addon_list_sec(){
|
||
|
||
?>
|
||
<style type="text/css">
|
||
.addon_list_sec .mep_addon_list li img{
|
||
max-width: 100%;
|
||
width: auto;
|
||
}
|
||
.addon_list_sec .mep_addon_list li {
|
||
border: 1px solid #ddd!important;
|
||
display: inline-block!important;
|
||
float: left;
|
||
margin: 10px!important;
|
||
min-height: 405px;
|
||
padding: 0px;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: top;
|
||
width: 31.2%!important;
|
||
box-shadow: 3px 4px 5px #d9e1e7;
|
||
background: #fff;
|
||
overflow: hidden;
|
||
}
|
||
.addon_list_sec .mep_addon_list li a {
|
||
display: block;
|
||
background: #0000b5;
|
||
color: #fff;
|
||
width: 95%;
|
||
margin: 0 auto;
|
||
padding: 10px;
|
||
text-decoration: none;
|
||
font-size: 15px;
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: auto;
|
||
}
|
||
|
||
|
||
.addon_list_sec .mep_addon_list li h3 {
|
||
margin-top: 10px;
|
||
}
|
||
|
||
.addon_list_sec .mep_addon_list li p {
|
||
padding: 0 15px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.addon_list_sec .mep_addon_list li h4 {
|
||
background: #e74635;
|
||
color: #fff;
|
||
font-size: 20px;
|
||
padding: 10px;
|
||
width: 50px;
|
||
position: absolute;
|
||
bottom: 40%;
|
||
top: auto;
|
||
}
|
||
</style>
|
||
<?php
|
||
|
||
$addon_list = array(
|
||
array(
|
||
'name' => 'WooCommerce Event Booking Manager PRO',
|
||
'price' => '$30',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2018/06/banner_EVENT.png',
|
||
'url' => 'https://mage-people.com/product/mage-woo-event-booking-manager-pro/',
|
||
'excerpt' => 'A Complete Event Solution forWooCommerce with Lots of Premium features Powered by WordPress',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
array(
|
||
'name' => 'WooCommerce Event Coupon Code Addon',
|
||
'price' => '$10',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/02/banner_EVENT_Coupon.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-coupon-code-addon/',
|
||
'excerpt' => 'WooCommerce Event Manager is a great solution managing events and this is a simple solution for managing coupon code for specific events to specific customer',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
|
||
array(
|
||
'name' => 'WooCommerce Event Waitlist Addon',
|
||
'price' => '$10',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/02/banner_WaitList.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-waitlist-addon/',
|
||
'excerpt' => 'WooCommerce Event Waitlist Addon, It will work with Event plugin, Once event ticket available quantity will finish, Waitlist plugin will be activated and the subscriber can join the waitlist, admin can send email to the user for next free slot.',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
|
||
array(
|
||
'name' => 'WooCommerce Event Calendar Addon',
|
||
'price' => '$20',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/03/banner_EVENT_calender-800x473.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-calendar-addon/',
|
||
'excerpt' => 'Showcase your events into an awesome calendar by this Addon. Just installed this plugin and use the shortcode to show the calendar anywhere in your website.',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
|
||
array(
|
||
'name' => 'WooCommerce Event: Book an Event From Dashboard',
|
||
'price' => '$20',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/03/banner_EVENT_order_dashboard-800x473.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-book-an-event-from-dashboard/',
|
||
'excerpt' => 'This addon will add a new feature so you can book any event from the WordPress Dashboard.',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
array(
|
||
'name' => 'Woocommerce Event: User Registration Form Position',
|
||
'price' => '$10',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/03/banner_EVENT_user_reg-800x473.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-user-registration-form-position/',
|
||
'excerpt' => 'This addon adds this feature, You can choose where the event Attendee/user form will display into the event details page or into the checkout page',
|
||
'btn_txt' => 'Get Now'
|
||
),
|
||
array(
|
||
'name' => 'Woocommerce Event: Duplicator Addon',
|
||
'price' => '$5',
|
||
'banner' => 'https://mage-people.com/wp-content/uploads/2019/03/banner_EVENT_duplicator-1-800x473.png',
|
||
'url' => 'https://mage-people.com/product/woocommerce-event-duplicator-addon/',
|
||
'excerpt' => 'This addon will add Duplicator feature into Woocommerce Event Plugin. So you can easily duplicate any event and re-use.',
|
||
'btn_txt' => 'Get Now'
|
||
)
|
||
|
||
);
|
||
|
||
|
||
|
||
|
||
echo '<div class="addon_list_sec"><ul class="mep_addon_list">';
|
||
foreach ($addon_list as $list) {
|
||
echo '<li>';
|
||
echo '<img src='.$list['banner'].'>';
|
||
echo '<h3>'.$list['name'].'</h3>';
|
||
echo '<p>'.$list['excerpt'].'</p>';
|
||
echo '<h4>'.$list['price'].'</h4>';
|
||
echo '<a href='.$list['url'].' target="_blank">'.$list['btn_txt'].'</a>';
|
||
echo '</li>';
|
||
}
|
||
echo '</ul></div>';
|
||
}
|