Make WordPress Themes

source: destin-basic/1.0.4/library/preview-pro.php

Last change on this file was 92540, checked in by themedropbox, 8 years ago

New version of Destin Basic - 1.0.4

File size: 6.5 KB
Line 
1<?php
2class Bavotasan_Preview_Pro {
3        private $theme_url = 'https://themes.bavotasan.com/themes/destin-wordpress-theme/';
4        private $theme_name = 'Destin';
5
6        public function __construct() {
7                add_action( 'admin_menu', array( $this, 'admin_menu' ) );
8        }
9
10        /**
11         * Add a 'Upgrade' page
12         *
13         * This function is attached to the 'admin_menu' action hook.
14         *
15         * @since 1.0.0
16         */
17        public function admin_menu() {
18                add_theme_page( sprintf( __( 'Welcome to %s %s', 'destin-basic' ), BAVOTASAN_THEME_NAME, BAVOTASAN_THEME_VERSION ), __( 'Upgrade to Premium', 'destin-basic' ), 'edit_theme_options', 'bavotasan_preview_pro', array( $this, 'bavotasan_preview_pro' ) );
19
20                // Remove upgrade page from Appearance menu
21                remove_submenu_page( 'themes.php', 'bavotasan_preview_pro' );
22        }
23
24        public function bavotasan_preview_pro() {
25                ?>
26                <style>
27                .featured-image {
28                        margin: 20px auto !important;
29                }
30
31                .about-wrap .headline-feature h2 {
32                        text-align: center;
33                }
34
35                .about-wrap .dfw h3 {
36                        text-align: left;
37                }
38
39                .changelog.headline-feature.dfw {
40                        max-width: 68%;
41                }
42
43                .changelog.headline-feature.dfw {
44                        margin-left: auto;
45                        margin-right: auto;
46                }
47
48                .about-wrap ul {
49                        padding-left: 60px;
50                        list-style: disc;
51                        margin-bottom: 20px;
52                }
53
54                .about-wrap .theme-badge {
55                        position: absolute;
56                        top: 0;
57                        right: 0;
58                }
59
60                .about-wrap .feature-section {
61                        border: 0;
62                        padding: 0;
63                }
64
65                @media only screen and (max-width: 768px) {
66                        .changelog.headline-feature.dfw {
67                                max-width: 100%;
68                        }
69
70                        .about-wrap .theme-badge {
71                                display: none;
72                        }
73                }
74                </style>
75                <div class="wrap about-wrap" id="custom-background">
76                        <h1><?php printf( __( 'Welcome to %s %s', 'destin-basic' ), BAVOTASAN_THEME_NAME, BAVOTASAN_THEME_VERSION ); ?></h1>
77
78                        <div class="about-text">
79                                <?php printf( __( 'Take your site to the next level with the full version of <em>%s</em>. Check out some of the advanced features that&rsquo;ll give you more control over your site&rsquo;s layout and design.', 'destin-basic' ), $this->theme_name ); ?>
80                        </div>
81                        <div class="theme-badge">
82                                <img src="<?php echo BAVOTASAN_THEME_URL; ?>/library/images/screenshot_sml.jpg" />
83                        </div>
84
85                        <h2 class="nav-tab-wrapper">
86                                <a href="<?php echo admin_url( 'themes.php?page=bavotasan_documentation' ); ?>" class="nav-tab"><?php _e( 'Documentation', 'destin-basic' ); ?></a>
87                                <a href="<?php echo admin_url( 'themes.php?page=bavotasan_preview_pro' ); ?>" class="nav-tab nav-tab-active"><?php _e( 'Upgrade', 'destin-basic' ); ?></a>
88                        </h2>
89
90                        <div class="changelog headline-feature dfw">
91                                <h2><?php _e( 'Social Menu', 'destin-basic' ); ?></h2>
92
93                                <div class="featured-image dfw-container">
94                                        <img src="<?php echo BAVOTASAN_THEME_URL; ?>/library/images/social-menu.jpg" />
95                                </div>
96
97                                <p><?php _e( 'Establish your online presence by letting your visitors join your social network. Help them stay up to date on everything you&rsquo;re doing.', 'destin-basic' ); ?></p>
98                                <p><?php _e( 'Easily add a social menu by creating links to the most popular social media websites.', 'destin-basic' ); ?></p>
99                        </div>
100                        <hr />
101
102                        <div class="changelog headline-feature dfw">
103                                <h2><?php _e( 'Advanced Color Picker', 'destin-basic' ); ?></h2>
104
105                                <div class="featured-image dfw-container">
106                                        <img src="<?php echo BAVOTASAN_THEME_URL; ?>/library/images/color-picker.jpg" />
107                                </div>
108
109                                <p><?php printf( __( 'Sometimes the default colors just aren&rsquo;t working for you. In %s you can use the advanced color picker to make sure you get the exact colors you want.', 'destin-basic' ), '<em>' . $this->theme_name . '</em>' ); ?></p>
110                                <p><?php _e( 'Easily select one of the eight preset colors or dive even deeper into your customization by using a more specific hex code.', 'destin-basic' ); ?></p>
111                        </div>
112                        <hr />
113
114                        <div class="changelog headline-feature dfw">
115                                <h2><?php _e( 'Google Fonts Manager', 'destin-basic' ); ?></h2>
116
117                                <div class="featured-image dfw-container">
118                                        <img src="<?php echo BAVOTASAN_THEME_URL; ?>/library/images/google-fonts.jpg" />
119                                </div>
120
121                                <p><?php _e( 'Web-safe fonts are a thing of the past, so why not try to spice things up a bit?', 'destin-basic' ); ?></p>
122                                <p><?php _e( 'Choose from over 670 Google Fonts to improve your site&rsquo;s typeface readability and make things look even more amazing.', 'destin-basic' ); ?></p>
123                        </div>
124                        <hr />
125
126                        <div class="changelog headline-feature dfw">
127                                <h2><?php _e( 'Extended Widgetized Footer', 'destin-basic' ); ?></h2>
128
129                                <div class="featured-image dfw-container">
130                                        <img src="<?php echo BAVOTASAN_THEME_URL; ?>/library/images/extended-footer.jpg" />
131                                </div>
132
133                                <p><?php _e( 'If you need to include more widgets on your site, take advantage of the Extended Footer.', 'destin-basic' ); ?></p>
134                                <p><?php _e( 'Use the Customizer to set the number of columns you want to appear. You can also customize your site&rsquo;s copyright notice.', 'destin-basic' ); ?></p>
135                        </div>
136                        <hr />
137
138                        <div class="changelog feature-list">
139                                <h2><?php _e( 'Even More Theme Options', 'destin-basic' ); ?></h2>
140                                <div class="feature-section col two-col">
141                                        <div>
142                                                <h4><?php _e( 'Full Width Posts/Pages', 'destin-basic' ); ?></h4>
143                                                <p><?php _e( 'Each page/post has an option to remove both sidebars so you can use the full width of your site to display whatever you want.', 'destin-basic' ); ?></p>
144                                        </div>
145                                        <div class="last-feature">
146                                                <h4><?php _e( 'Multiple Sidebar Layouts', 'destin-basic' ); ?></h4>
147                                                <p><?php _e( 'Sometimes one sidebar just isn&rsquo;t enough, so add a second one and place it where you want.', 'destin-basic' ); ?></p>
148                                        </div>
149                                </div>
150
151                                <div class="feature-section col two-col">
152                                        <div>
153                                                <h4><?php _e( 'Bootstrap Shortcodes', 'destin-basic' ); ?></h4>
154                                                <p><?php printf( __( 'Shortcodes are awesome and easy to use. That&rsquo;s why %s comes with a bunch, like a slideshow carousel, alert boxes and more.', 'destin-basic' ), '<em>' . $this->theme_name . '</em>' ); ?></p>
155                                        </div>
156                                        <div class="last-feature">
157                                                <h4><?php _e( 'Import/Export Tool', 'destin-basic' ); ?></h4>
158                                                <p><?php _e( 'Once you&rsquo;ve set up your site exactly how you want, you can easily export the Theme Options and Custom CSS for safe keeping.', 'destin-basic' ); ?></p>
159                                        </div>
160                                </div>
161                        </div>
162                        <hr />
163
164                        <p><a href="<?php echo $this->theme_url; ?>" target="_blank" class="button-primary button-large"><?php printf( __( 'Upgrade %s Now &rarr;', 'destin-basic' ), '<strong>' . BAVOTASAN_THEME_NAME . '</strong>' ); ?></a></p>
165                </div>
166                <?php
167        }
168}
169$bavotasan_preview_pro = new Bavotasan_Preview_Pro;
Note: See TracBrowser for help on using the repository browser.