forked from stephenharris/Event-Organiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevent-organiser-go-pro.php
116 lines (99 loc) · 4.38 KB
/
event-organiser-go-pro.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* Calendar Admin Page
*/
if(!class_exists('EventOrganiser_Admin_Page')){
require_once(EVENT_ORGANISER_DIR.'classes/class-eventorganiser-admin-page.php' );
}
/**
* Calendar Admin Page
*
* Extends the EentOrganiser_Admin_Page class. Creates the calendar admin page
* @version 1.0
* @see EventOrganiser_Admin_Page
* @package event organiser
* @ignore
*/
class EventOrganiser_Pro_Page extends EventOrganiser_Admin_Page
{
/**
* This sets the calendar page variables
*/
function set_constants(){
$this->hook = 'edit.php?post_type=event';
$this->title = __('Get Event Organiser Pro Add-On','eventorganiser');
$this->menu =__('Go Pro','eventorganiser');
$this->permissions ='manage_options';
$this->slug ='eo-pro';
}
function add_page(){
$this->page = add_dashboard_page($this->title, $this->menu, $this->permissions,$this->slug, array($this,'render_page'),10);
add_action('load-' . $this->page, array($this,'page_actions'),9);
add_action('admin_print_scripts-' . $this->page, array($this,'page_styles'),10);
add_action('admin_print_styles-' . $this->page, array($this,'page_scripts'),10);
add_action("admin_footer-" . $this->page, array($this,'footer_scripts'));
remove_submenu_page('index.php',$this->slug);
}
/**
* Enqueues the page's scripts and styles, and localises them.
*/
function page_scripts(){
}
function display(){
$plugins = get_plugins();
$plugin = $plugins['event-organiser/event-organiser.php'];
?>
<div class="wrap">
<div class="wrap about-wrap">
<h1> <?php printf(__('Get Event Organiser Pro', 'eventorganiser'), $plugin['Version']); ?> </h1>
<div class="about-text"><?php
echo '<p>'.__( 'Event Organiser Pro is a premium add-on bringing advanced booking management to Event Organiser.', 'eventorganiser' );
echo '<p>'.__( "But that's not all …", 'eventorganiser' ); ?>
</div>
<div class="event-organiser-logo" style="background: url('<?php echo EVENT_ORGANISER_URL.'css/images/eobadge.png';?>');padding-top: 150px;height: 52px;width: 185px;color: #666;font-weight: bold;font-size: 14px;text-align: center;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);margin: 0 -5px;position: absolute;top: 0;right: 0;"></div>
<hr style="color:#CCC;background-color:#CCC;border:0;border-bottom:1px solid #CCC;">
<style>
.eo-feature-section {float: left;margin: 2%;width: 29%;}
.eo-feature-section img{border: 1px #CCC solid;-webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );}
</style>
<?php
self::print_feature(
__( 'Flexible Booking Options', 'eventorganiser' ),
__('Sell tickets for specific dates or sell tickets for all dates of an event - such as booking places on a course. You can offer multiple tickets, and customise the booking form to suit your needs.', 'eventorganiser'),
'eo-pro-ticket-picker.png'
);
self::print_feature(
__( 'Additional shortcodes & improved UI', 'eventorganiser' ),
__( 'Give your users the ability to search and filter through your events with the event search shortcode. Event Organiser Pro also adds a text editor button to make inserting and configuring your shortcodes that bit easier. ', 'eventorganiser' ),
'eo-pro-event-search.png'
);
self::print_feature(
__( 'Venue custom fields & thumbnails', 'eventorganiser' ),
__( "Add information on your venue pages with venue custom fields, or give your venues more attentioned with their own 'featured image'", 'eventorganiser' ),
'eo-pro-venue-cf.png'
);
?>
<div style="clear:both"></div>
<p>
<strong><a href="http://wp-event-organiser.com/pro-features?aid=7"><?php _e('Find out more …', 'eventorganiser')?></a></strong>
</p>
<hr style="color:#CCC;background-color:#CCC;border:0;border-bottom:1px solid #CCC;">
<div class="return-to-dashboard">
<a href="<?php echo admin_url('options-general.php?page=event-settings');?>"><?php _e('Go to Event Organiser settings', 'eventorganiser');?></a>
</div>
</div>
</div><!-- .wrap -->
<?php
}
static function print_feature( $title, $content, $img ){
?>
<div class="eo-feature-section images-stagger-right">
<img src="<?php echo EVENT_ORGANISER_URL.'css/images/'.$img?>">
<?php echo '<h4>'.$title.'</h4>'; ?>
<p> <?php echo $content; ?></p>
</div>
<?php
}
}
$calendar_page = new EventOrganiser_Pro_Page();
?>