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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class ORDDD_Welcome {
public $minimum_capability = 'manage_options';
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menus' ) );
add_action( 'admin_head', array( $this, 'admin_head' ) );
if ( !isset( $_GET[ 'page' ] ) ||
( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] != 'orddd-about' ) ) {
add_action( 'admin_init', array( $this, 'orddd_welcome' ) );
}
}
public function admin_menus() {
$display_version = ORDDD_VERSION;
add_dashboard_page(
sprintf( esc_html__( 'Welcome to Order Delivery Date Lite %s', 'order-delivery-date-lite' ), $display_version ),
esc_html__( 'Welcome to Order Delivery Date Lite', 'order-delivery-date-lite' ),
$this->minimum_capability,
'orddd-about',
array( $this, 'about_screen' )
);
}
public function admin_head() {
remove_submenu_page( 'index.php', 'orddd-about' );
}
public function about_screen() {
$display_version = ORDDD_VERSION;
$badge_url = ORDDD_PLUGIN_URL . 'images/icon-256x256.png';
?>
<style>
.feature-section .feature-section-item {
float:left;
width:48%;
}
</style>
<div class="wrap about-wrap">
<?php $this->get_welcome_header() ?>
<div style="float:left;width: 80%;">
<p class="about-text" style="margin-right:20px;"><?php
printf(
__( "Thank you for activating or updating to the latest version of Order Delivery Date Lite! If you're a first time user, welcome! You're well to accept deliveries with customer preferred delivery date. " )
);
?></p>
</div>
<div class="orddd-badge"><img src="<?php echo $badge_url; ?>" style="width:150px;"/></div>
<p> </p>
<div class="feature-section clearfix introduction">
<h3><?php esc_html_e( "Get Started with Order Delivery Date Lite", 'order-delivery-date-lite' ); ?></h3>
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="<?php echo ORDDD_PLUGIN_URL . '/images/order-delivery-date-lite.png' ?>"
alt="<?php esc_attr_e( 'Order Delivery Date Lite', 'order-delivery-date-lite' ); ?>" style="width:600px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Enable Delivery Date Capture', 'order-delivery-date-lite' ); ?></h3>
<p><?php esc_html_e( 'To start allowing customers to select their preferred delivery date, simply activate the Enable Delivery Date checkbox from under Order Delivery Date menu.', 'order-delivery-date-lite' ); ?></p>
<a href="admin.php?page=order_delivery_date_lite" target="_blank" class="button-secondary">
<?php esc_html_e( 'Click Here to go to Order Delivery Date Settings page', 'order-delivery-date-lite' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<!-- /.intro-section -->
<div class="content">
<h3><?php esc_html_e( "Know more about Order Delivery Date Pro", 'order-delivery-date-lite' ); ?></h3>
<p><?php _e( 'The Order Delivery Date Pro plugin gives you features where you can allow customers to choose a Delivery Time along with Date as compared to Lite Plugin. Here are some other notable features the Pro version provides.' ); ?></p>
<div class="feature-section clearfix introduction">
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="<?php echo ORDDD_PLUGIN_URL . '/images/custom-delivery-settings.png'?>"
alt="<?php esc_attr_e( 'Order Delivery Date Lite', 'order-delivery-date-lite' ); ?>" style="width:500px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Create Custom Delivery Schedules', 'order-delivery-date-lite' ); ?></h3>
<p><?php esc_html_e( 'The ability to set different delivery schedule for different WooCommerce shipping zones, shipping classes and product categories is very useful for the businesses like food packet deliveries, cake shops etc which deals with delivery in different shipping zones.', 'order-delivery-date-lite' ); ?></p>
<a href="https://www.tychesoftwares.com/custom-delivery-settings/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'order-delivery-date-lite' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Delivery Time along with Delivery Date', 'order-delivery-date-lite' ); ?></h3>
<p><?php esc_html_e( "The provision for allowing Delivery Time along with the Delivery Date on the checkout page makes the delivery more accurate. Delivering products on customer's preferred date and time improves your customers service.", 'order-delivery-date-lite' ); ?></p>
<a href="https://www.tychesoftwares.com/setup-delivery-date-time/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'order-delivery-date-lite' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="content feature-section-item last-feature">
<img src="<?php echo ORDDD_PLUGIN_URL . 'images/time-slots.png'; ?>" alt="<?php esc_attr_e( 'Order Delivery Date for WooCommerce Lite', 'order-delivery-date-lite' ); ?>" style="width:450px;">
</div>
</div>
<div class="feature-section clearfix introduction">
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="<?php echo ORDDD_PLUGIN_URL . 'images/google-calendar-sync.png'; ?>" alt="<?php esc_attr_e( 'Order Delivery Date for WooCommerce Lite', 'order-delivery-date-lite' ); ?>" style="width:450px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Synchronise Deliveries with Google Calendar', 'order-delivery-date-lite' ); ?></h3>
<p><?php esc_html_e( 'The ability to synchronise deliveries to the google calendar helps administrator or store manager to manage all the things in a single calendar.', 'order-delivery-date-lite' ); ?></p>
<a href="https://www.tychesoftwares.com/how-to-synchornize-delivery-dates-with-your-google-calendar/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'order-delivery-date-lite' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Different delivery settings for each weekday', 'order-delivery-date-lite' ); ?></h3>
<p><?php esc_html_e( 'The Pro version of the plugin allows you to add different delivery settings like Same day cut-off time, Next Day cut-off time or Minimum Delivery Time for each weekday. It also allows you to add different delivery charges for different weekdays.', 'order-delivery-date-lite' ); ?></p>
<a href="https://www.tychesoftwares.com/weekday-settings/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'order-delivery-date-lite' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="content feature-section-item last-feature">
<img src="<?php echo ORDDD_PLUGIN_URL . 'images/weekday-settings.png'; ?>" alt="<?php esc_attr_e( 'Order Delivery Date for WooCommerce Lite', 'order-delivery-date-lite' ); ?>" style="width:450px;">
</div>
</div>
<a href="https://www.tychesoftwares.com/differences-pro-lite-versions-order-delivery-date-woocommerce-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'View full list of differences between Lite & Pro plugin', 'order-delivery-date' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Getting to Know Tyche Softwares', 'order-delivery-date' ); ?></h3>
<ul class="ul-disc">
<li><a href="https://www.tychesoftwares.com/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank"><?php esc_html_e( 'Visit the Tyche Softwares Website', 'order-delivery-date' ); ?></a></li>
<li><a href="https://www.tychesoftwares.com/premium-plugins/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank"><?php esc_html_e( 'View all Premium Plugins', 'order-delivery-date' ); ?></a>
<ul class="ul-disc">
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">Abandoned Cart Pro Plugin for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/woocommerce-booking-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">Booking & Appointment Plugin for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">Order Delivery Date for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">Product Delivery Date for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">Deposits for WooCommerce</a></li>
</ul>
</li>
<li><a href="https://tychesoftwares.com/about/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank"><?php esc_html_e( 'Meet the team', 'order-delivery-date' ); ?></a></li>
</ul>
</div>
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Current Offers', 'order-delivery-date' ); ?></h3>
<p>Buy all our <a href="https://tychesoftwares.com/premium-plugins/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=OrderDeliveryDateLitePlugin" target="_blank">premium plugins</a> at 30% off till 31st December 2017</p>
</div>
</div>
<!-- /.feature-section -->
</div>
<?php
update_option( 'orddd_welcome_page_shown', 'yes' );
update_option( 'orddd_welcome_page_shown_time', current_time( 'timestamp' ) );
}
public function get_welcome_header() {
$badge_url = ORDDD_PLUGIN_URL . 'images/icon-256x256.png';
?>
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
<?php $this->social_media_elements();
}
public function social_media_elements() {
?>
<div class="social-items-wrap">
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Ftychesoftwares&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=220596284639969"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;"
allowTransparency="true"></iframe>
<a href="https://twitter.com/tychesoftwares" class="twitter-follow-button" data-show-count="false"><?php
printf(
esc_html_e( 'Follow %s', 'tychesoftwares' ),
'@tychesoftwares'
);
?></a>
<script>!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</div>
<!--/.social-items-wrap -->
<?php
}
public function orddd_welcome() {
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
return;
}
if( !get_option( 'orddd_welcome_page_shown' ) ) {
wp_safe_redirect( admin_url( 'index.php?page=orddd-about' ) );
exit;
}
}
}
new ORDDD_Welcome();