post_type ) ) { wp_enqueue_style( 'seatt-admin-screens', SEATT_PLUGIN_URL . 'admin/css/admin-screens.css', array(), seatt_asset_ver( 'admin/css/admin-screens.css' ) ); wp_enqueue_script( 'seatt-ui', SEATT_PLUGIN_URL . 'assets/js/seatt-ui.js', array(), seatt_asset_ver( 'assets/js/seatt-ui.js' ), true ); } if ( 'seatt-addons' !== $page ) { return; } wp_enqueue_style( 'seatt-addons', SEATT_PLUGIN_URL . 'admin/css/addons.css', array(), seatt_asset_ver( 'admin/css/addons.css' ) ); } /** Purchase plans offered on seatwp.com (keys = ?checkout= values). */ public static function seatmap_plans() { return array( 'trial' => array( 'name' => __( 'Free trial', 'seathive' ), 'price' => '$0', 'per' => __( '7 days', 'seathive' ), 'note' => __( 'One trial per account. No payment needed.', 'seathive' ), 'cta' => __( 'Start free trial', 'seathive' ), ), '3m' => array( 'name' => __( '3 Months', 'seathive' ), 'price' => '$39', 'per' => __( '90 days · 1 website', 'seathive' ), 'note' => __( 'Great for a single event or season.', 'seathive' ), 'cta' => __( 'Buy 3 months', 'seathive' ), ), '1y' => array( 'name' => __( '1 Year', 'seathive' ), 'price' => '$79', 'per' => __( '365 days · 1 website', 'seathive' ), 'note' => __( 'Only $6.58 per month — save 49%.', 'seathive' ), 'cta' => __( 'Buy 1 year', 'seathive' ), 'hot' => __( 'Best value', 'seathive' ), ), 'agency' => array( 'name' => __( 'Agency', 'seathive' ), 'price' => '$149', 'per' => __( '365 days · 5 websites', 'seathive' ), 'note' => __( 'For agencies and organisers with several sites.', 'seathive' ), 'cta' => __( 'Buy Agency', 'seathive' ), ), 'lifetime' => array( 'name' => __( 'Lifetime', 'seathive' ), 'price' => '$249', 'per' => __( 'one-time · 1 website', 'seathive' ), 'note' => __( 'Pay once. Limited to the first 100 buyers.', 'seathive' ), 'cta' => __( 'Buy Lifetime', 'seathive' ), 'hot' => __( 'Limited', 'seathive' ), ), ); } /** Small inline seat-map illustration used as the add-on's artwork. */ public static function seatmap_art() { $o = ''; $o .= ''; $o .= 'STAGE'; $rows = array( array( 9, '#e05252' ), array( 11, '#e05252' ), array( 13, '#0991b4' ), array( 13, '#0991b4' ), array( 15, '#0991b4' ), array( 15, '#7fc7da' ) ); $y = 46; foreach ( $rows as $i => $r ) { $n = $r[0]; $gap = 13; $x0 = 120 - ( $n - 1 ) * $gap / 2; for ( $s = 0; $s < $n; $s++ ) { $c = ( 2 === $i && 5 === $s ) || ( 3 === $i && in_array( $s, array( 6, 7 ), true ) ) ? '#e6c34a' : $r[1]; if ( ( 4 === $i && $s < 3 ) || ( 1 === $i && 9 === $s ) ) { $c = '#cfd6da'; } $o .= ''; } $y += 16; } $o .= ''; return $o; } public function render_addons_page() { if ( ! current_user_can( 'manage_options' ) ) { return; } /** * The Seating Map add-on reports its own state here when it is * installed: array( 'installed' => true, 'active' => bool, * 'label' => string, 'manage_url' => string ). */ $state = (array) apply_filters( 'seatt_addon_seatmap_status', array() ); $installed = ! empty( $state['installed'] ); $active = $installed && ! empty( $state['active'] ); $account = 'https://seatwp.com/account/'; $logo = SEATT_PLUGIN_URL . 'assets/seatwp-icon.svg'; ?>

SeatWP

$p ) : ?> →
  1. 1
  2. 2
  3. 3