| 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_SettingsUp extends WPBC_Page_Structure { |
| 24 |
|
| 25 |
|
| 26 |
public function in_page() { |
| 27 |
return 'wpbc-go-pro'; |
| 28 |
} |
| 29 |
|
| 30 |
|
| 31 |
public function tabs() { |
| 32 |
|
| 33 |
$tabs = array(); |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
$tabs[ 'upgrade' ] = array( |
| 38 |
'title' => __( 'Upgrade', 'booking') // Title of TAB |
| 39 |
, 'page_title' => '' |
| 40 |
, 'hint' => '' // Hint |
| 41 |
, 'link' => '' // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link |
| 42 |
, 'position' => 'right' // 'left' || 'right' || '' |
| 43 |
, 'css_classes' => '' // CSS class(es) |
| 44 |
, 'icon' => '' // Icon - link to the real PNG img |
| 45 |
, 'font_icon' => 'wpbc_icn_redeem' // CSS definition of forn Icon |
| 46 |
, 'default' => true // Is this tab activated by default or not: true || false. |
| 47 |
, 'hided' => true // Is this tab hided: true || false. |
| 48 |
, 'folder_style' => 'order:9999;' |
| 49 |
); |
| 50 |
|
| 51 |
return $tabs; |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
public function content() { |
| 56 |
|
| 57 |
$this->css(); |
| 58 |
?> |
| 59 |
<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> |
| 60 |
<script type="text/javascript"> |
| 61 |
|
| 62 |
var count = 1; |
| 63 |
jQuery( ".wpbc_countdown" ).html( count ); |
| 64 |
var countdown = setInterval( |
| 65 |
function(){ |
| 66 |
jQuery( ".wpbc_countdown" ).html( count ); |
| 67 |
if ( count == 0 ){ |
| 68 |
clearInterval( countdown ); |
| 69 |
window.location.href = "https://wpbookingcalendar.com/features/#content"; |
| 70 |
//window.open( 'http://google.com', "_self" ); |
| 71 |
} |
| 72 |
count--; |
| 73 |
} |
| 74 |
, 10 ); |
| 75 |
</script> |
| 76 |
<?php |
| 77 |
// // FixIn: 10.1.3.1. |
| 78 |
|
| 79 |
wpbc_redirect( 'https://wpbookingcalendar.com/features/#content' ); |
| 80 |
} |
| 81 |
|
| 82 |
public function css(){ |
| 83 |
?> |
| 84 |
<style type="text/css"> |
| 85 |
.nav-tab-wrapper { |
| 86 |
display:none; |
| 87 |
} |
| 88 |
.wpbc_countdown { |
| 89 |
font-weight: 600; |
| 90 |
font-size: 1.2em; |
| 91 |
} |
| 92 |
.wpbc_redirection_message { |
| 93 |
width:100%; |
| 94 |
text-align: center; |
| 95 |
|
| 96 |
} |
| 97 |
</style> |
| 98 |
<?php |
| 99 |
|
| 100 |
} |
| 101 |
} |
| 102 |
|
| 103 |
add_action('wpbc_menu_created', array( new WPBC_Page_SettingsUp() , '__construct') ); // Executed after creation of Menu |