PluginProbe
Booking Calendar / 10.11.3
Booking Calendar v10.11.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
booking / core / admin / page-up.php

page-up.php in Booking Calendar 10.11.3, at core/admin/page-up.php

106 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php /**
2 * @version 1.0
3 * @package Booking Calendar
4 * @category Content of Up page
5 * @author wpdevelop
6 *
7 * @web-site https://wpbookingcalendar.com/
8 * @email info@wpbookingcalendar.com
9 *
10 * @modified 2017-10-16
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
15 // FixIn: 8.0.1.6.
16
17 /**
18 * Show Content
19 * Update Content
20 * Define Slug
21 * Define where to show
22 */
23 class WPBC_Page_SettingsUpPro extends WPBC_Page_Structure {
24
25
26 public function in_page() {
27 if ( class_exists( 'wpdev_bk_personal' ) ) {
28 return (string) wp_rand( 100000, 1000000 );
29 }
30 return 'wpbc-go-pro';
31 }
32
33
34 public function tabs() {
35
36 $tabs = array();
37
38
39
40 $tabs[ 'upgrade' ] = array(
41 'title' => __( 'Upgrade', 'booking') // Title of TAB
42 , 'page_title' => ''
43 , 'hint' => '' // Hint
44 , 'link' => '' // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link
45 , 'position' => 'right' // 'left' || 'right' || ''
46 , 'css_classes' => '' // CSS class(es)
47 , 'icon' => '' // Icon - link to the real PNG img
48 , 'font_icon' => 'wpbc_icn_redeem' // CSS definition of forn Icon
49 , 'default' => ( ! class_exists( 'wpdev_bk_personal' ) ) // Is this tab activated by default or not: true || false.
50 , 'hided' => true // Is this tab hided: true || false.
51 , 'folder_style' => 'order:9999;'
52 );
53
54 return $tabs;
55 }
56
57
58 public function content() {
59
60 $this->css();
61 ?>
62 <div class="wpbc_redirection_message">Redirection to <a href="https://wpbookingcalendar.com/features/#content">Booking Calendar website</a> after <span class="wpbc_countdown">5</span> seconds...</div>
63 <script type="text/javascript">
64
65 var count = 1;
66 jQuery( ".wpbc_countdown" ).html( count );
67 var countdown = setInterval(
68 function(){
69 jQuery( ".wpbc_countdown" ).html( count );
70 if ( count == 0 ){
71 clearInterval( countdown );
72 window.location.href = "https://wpbookingcalendar.com/features/#content";
73 //window.open( 'http://google.com', "_self" );
74 }
75 count--;
76 }
77 , 10 );
78 </script>
79 <?php
80 // // FixIn: 10.1.3.1.
81
82 wpbc_redirect( 'https://wpbookingcalendar.com/features/#content' );
83 }
84
85 public function css(){
86 ?>
87 <style type="text/css">
88 .nav-tab-wrapper {
89 display:none;
90 }
91 .wpbc_countdown {
92 font-weight: 600;
93 font-size: 1.2em;
94 }
95 .wpbc_redirection_message {
96 width:100%;
97 text-align: center;
98
99 }
100 </style>
101 <?php
102
103 }
104 }
105
106 add_action('wpbc_menu_created', array( new WPBC_Page_SettingsUpPro() , '__construct') ); // Executed after creation of Menu