PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.8.7
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.8.7
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
pdf-print / includes / pro_banners.php

pro_banners.php in PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin 1.8.7, at includes/pro_banners.php

238 lines 12.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Display banners on settings page
4 * @package PDF & Print
5 * @since 1.8.5
6 */
7
8 /**
9 * Show ads for PRO
10 * @param string $func function to call
11 * @return void
12 */
13 if ( ! function_exists( 'pdfprnt_pro_block' ) ) {
14 function pdfprnt_pro_block( $func, $show_cross = true ) {
15 global $pdfprnt_plugin_info, $wp_version, $pdfprnt_options_array;
16 if ( ! bws_hide_premium_options_check( $pdfprnt_options_array ) || ! $show_cross ) { ?>
17 <div class="bws_pro_version_bloc pdfprnt_pro_block <?php echo $func;?>" title="<?php _e( 'This options is available in Pro version of plugin', 'pdf-print' ); ?>">
18 <div class="bws_pro_version_table_bloc">
19 <?php if ( $show_cross ) { ?>
20 <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'pdf-print' ); ?>"></button>
21 <?php } ?>
22 <div class="bws_table_bg"></div>
23 <?php call_user_func( $func ); ?>
24 </div>
25 <div class="bws_pro_version_tooltip">
26 <div class="bws_info"><?php _e( 'Unlock premium options by upgrading to Pro version', 'pdf-print' ); ?></div>
27 <a class="bws_button" href="http://bestwebsoft.com/products/pdf-print/?k=d9da7c9c2046bed8dfa38d005d4bffdb&pn=101&v=<?php echo $pdfprnt_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="PDF & Print Pro Plugin"><?php _e( 'Learn More', 'pdf-print' ); ?></a>
28 </div>
29 </div>
30 <?php }
31 }
32 }
33
34 if ( ! function_exists( 'pdfprnt_image_block' ) ) {
35 function pdfprnt_image_block() { ?>
36 <table class="form-table bws_pro_version">
37 <?php $buttons = array(
38 array( 'title' => __( 'PDF button image', 'pdf-print' ), 'image' => 'pdf.png' ),
39 array( 'title' => __( 'Print button image', 'pdf-print' ), 'image' => 'print.gif' )
40 );
41 foreach ( $buttons as $button ) { ?>
42 <tr>
43 <th scope="row"><?php echo $button['title']; ?></th>
44 <td>
45 <select disabled="disabled" style="min-width: 120px;">
46 <option value="1"><?php _e( 'Custom', 'pdf-print' ); ?></option>
47 </select>
48 </td>
49 </tr>
50 <tr>
51 <th scope="row"></th>
52 <td><input type="file" disabled="disabled" /></td>
53 </tr>
54 <tr>
55 <th scope="row"></th>
56 <td>
57 <span><?php _e( 'Current image', 'pdf-print' ); ?>:</span>
58 <img alt="Default Image" src="<?php echo plugins_url( "images/" . $button['image'], dirname( __FILE__ ) ); ?>" />
59 </td>
60 </tr>
61 <?php } ?>
62 <tr>
63 <th scope="row"><?php _e( 'PDF files name', 'pdf-print' ); ?></th>
64 <td>
65 <fieldset>
66 <label><input disabled="disabled" type="radio" /> <?php _e( 'use post or page slug', 'pdf-print' ); ?></label><br />
67 <input type="radio" disabled="disabled" /><input disabled="disabled" type="text" value="mpdf" /><br />
68 <span class="bws_info">
69 <?php _e( 'File name cannot contain more than 195 symbols. The file name can include Latin letters, numbers and symbols "-" , "_" only.', 'pdf-print' ) ?>
70 </span>
71 </fieldset>
72 </td>
73 </tr>
74 <tr>
75 <th scope="row"><?php _e( 'Do not index pdf and print pages', 'pdf-print' ); ?></th>
76 <td>
77 <input type="checkbox" disabled="disabled" />
78 </td>
79 </tr>
80 <tr>
81 <th scope="row" colspan="2">
82 * <?php _e( 'If you upgrade to Pro version, all your settings will be saved.', 'pdf-print' ); ?>
83 </th>
84 </tr>
85 </table>
86 <?php }
87 }
88
89 if ( ! function_exists( 'pdfprnt_woocommerce_block' ) ) {
90 function pdfprnt_woocommerce_block () { ?>
91 <table class="form-table bws_pro_version">
92 <tr>
93 <th scope="row"><?php _e( 'Compatibility with Woocommerce', 'pdf-print' ); ?></th>
94 <td><label><input type="checkbox" disabled="disabled"></label></td>
95 </tr>
96 <tr>
97 <th scope="row"><?php _e( 'Display product data', 'pdf-print' ); ?></th>
98 <td>
99 <fieldset>
100 <label><input type="checkbox" disabled="disabled"><?php _e( 'Rating', 'pdf-print' ); ?></label><br>
101 <label><input type="checkbox" disabled="disabled"><?php _e( 'Price', 'pdf-print' ); ?></label><br>
102 <label><input type="checkbox" disabled="disabled"><?php _e( 'Stock', 'pdf-print' ); ?></label><br>
103 <label><input type="checkbox" disabled="disabled"><?php _e( 'SKU', 'pdf-print' ); ?></label><br>
104 <label><input type="checkbox" disabled="disabled"><?php _e( 'Categories', 'pdf-print' ); ?></label><br>
105 <label><input type="checkbox" disabled="disabled"><?php _e( 'Tags', 'pdf-print' ); ?></label><br>
106 <label><input type="checkbox" disabled="disabled"><?php _e( 'Product Variations', 'pdf-print' ); ?></label><br>
107 <label><input type="checkbox" disabled="disabled"><?php _e( 'Product Short Description', 'pdf-print' ); ?></label><br>
108 <label><input type="checkbox" disabled="disabled"><?php _e( 'Additional Information', 'pdf-print' ); ?></label><br>
109 <label><input type="checkbox" disabled="disabled"><?php _e( 'Product Gallery', 'pdf-print' ); ?></label>
110 </fieldset>
111 </td>
112 </tr>
113 </table>
114 <?php }
115 }
116
117 if ( ! function_exists( 'pdfprnt_extra_block' ) ) {
118 function pdfprnt_extra_block() { ?>
119 <div class="bws_pro_version">
120 <p><?php _e( 'Please choose the necessary post types (or single pages), where PDF & Print buttons should be displayed:', 'pdf-print' ); ?></p>
121 <p> <label>
122 <input disabled="disabled" checked="checked" type="checkbox"/>
123 <?php _e( "Show URL for pages", 'pdf-print' );?>
124 </label>
125 </p>
126 <img src="<?php echo plugins_url( 'images/pro_screen_1.png', dirname( __FILE__ ) ); ?>" alt="<?php _e( "Example of site pages' tree", 'pdf-print' ); ?>" title="<?php _e( "Example of site pages' tree", 'pdf-print' ); ?>" />
127 <p class="submit">
128 <input disabled="disabled" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'pdf-print' ); ?>" />
129 </p>
130 <p><strong>* <?php _e( 'If you upgrade to Pro version all your settings will be saved.', 'pdf-print' ); ?></strong></p>
131 </div>
132 <?php }
133 }
134
135 if ( ! function_exists( 'pdfprnt_templates_new_block' ) ) {
136 function pdfprnt_templates_new_block() { ?>
137 <h2><?php _e( 'Add New template', 'pdf-print' ); ?></h2>
138 <p class="hide-if-no-js desription"><i><?php _e( 'For more info click "Help" tab at the top of the page.', 'pdf-print' ); ?></i></p>
139 <div id="pdfprntpr_template_page">
140 <div id="titlediv"><div id="titlewrap"><input disabled type="text" name="pdfprntpr_template_title" size="30" value="" id="title" placeholder="<?php _e( 'Enter Template Title', 'pdf-print' ); ?>" /></div></div>
141 <h3><span><?php _e( 'Top running title', 'pdf-print' ); ?></span></h3>
142 <div class="postarea wp-editor-expand">
143 <div id="wp-pdfprntpr_top-wrap" class="wp-core-ui wp-editor-wrap tmce-active">
144 <div id="wp-pdfprntpr_top-editor-tools" class="wp-editor-tools hide-if-no-js">
145 <div id="wp-pdfprntpr_top-media-buttons" class="wp-media-buttons">
146 <link rel='stylesheet' id='editor-buttons-css' href='#' type='text/css' media='all' />
147 <a disabled href="#" id="insert-media-button" class="button insert-media add_media" data-editor="pdfprntpr_top" title="<?php _e( 'Add Media', 'pdf-print' ); ?>"><span class="wp-media-buttons-icon"></span> <?php _e( 'Add Media', 'pdf-print' ); ?></a>
148 </div>
149 </div>
150 <div id="wp-pdfprntpr_top-editor-container" class="wp-editor-container"><textarea disabled style="width: 100%;" class="pdfprntpr_top wp-editor-area" rows="5" autocomplete="off" name="pdfprntpr_top" id="pdfprntpr_top"></textarea></div>
151 </div>
152 </div>
153 <h3><span><?php _e( 'Bottom running title', 'pdf-print' ); ?></span></h3>
154 <div class="postarea wp-editor-expand">
155 <div id="wp-pdfprntpr_bottom-wrap" class="wp-core-ui wp-editor-wrap tmce-active">
156 <div id="wp-pdfprntpr_bottom-editor-tools" class="wp-editor-tools hide-if-no-js">
157 <div id="wp-pdfprntpr_bottom-media-buttons" class="wp-media-buttons"><a disabled href="#" class="button insert-media add_media" data-editor="pdfprntpr_bottom" title="<?php _e( 'Add Media', 'pdf-print' ); ?>"><span class="wp-media-buttons-icon"></span> <?php _e( 'Add Media', 'pdf-print' ); ?></a></div>
158 </div>
159 <div id="wp-pdfprntpr_bottom-editor-container" class="wp-editor-container"><textarea disabled style="width: 100%;" class="pdfprntpr_bottom wp-editor-area" rows="5" autocomplete="off" name="pdfprntpr_bottom" id="pdfprntpr_bottom"></textarea></div>
160 </div>
161 </div>
162 </div>
163 <p><input disabled name="pdfprntpr_template_submit" type="submit" class="button-primary" value="<?php _e( 'Save template', 'pdf-print' ); ?>" /></p>
164 <?php }
165 }
166
167 if ( ! function_exists( 'pdfprnt_templates_block' ) ) {
168 function pdfprnt_templates_block() { ?>
169 <ul class='subsubsub'>
170 <li class='all'><a class="current" href="#"><?php _e( 'All', 'pdf-print' ); ?><span class="count"> ( 2 )</span></a> |</li>
171 <li class='trash'><a href="#"><?php _e( 'Trash', 'pdf-print' ); ?><span class="count"> ( 0 )</span></a></li>
172 </ul>
173 <p class="search-box">
174 <input disabled="disabled" type="search" name="s" />
175 <input disabled="disabled" type="submit" id="search-submit" class="button" value="<?php _e( 'search', 'pdf-print' ); ?>" />
176 </p>
177 <div class="tablenav top">
178 <div class="alignleft actions bulkactions">
179 <select disabled="disabled">
180 <option value='-1' selected='selected'><?php _e( 'Bulk Actions', 'pdf-print' ); ?></option>
181 </select>
182 <input disabled="disabled" type="submit" id="doaction" class="button action" value="<?php _e( 'Apply', 'pdf-print' ); ?>" />
183 </div>
184 <div class='tablenav-pages one-page'>
185 <span class="displaying-num">2 <?php _e( 'items', 'pdf-print' ); ?></span>
186 </div>
187 <br class="clear" />
188 </div>
189 <table class="wp-list-table widefat striped templates">
190 <thead>
191 <tr>
192 <th scope='col' id='cb' class='manage-column column-cb'><input disabled="disabled" id="cb-select-all-1" type="checkbox" /></th>
193 <th scope='col' id='title' class='manage-column column-title column-primary' style=""><a href="#"><span><?php _e( 'Title', 'pdf-print' ); ?></span></a></th>
194 <th scope='col' id='pdf' class='manage-column column-pdf'>PDF</th>
195 <th scope='col' id='print' class='manage-column column-print'>Print</th>
196 <th scope='col' id='date' class='manage-column column-date sortable desc'><a href="#"><span><?php _e( 'Date', 'pdf-print' ); ?></span></th>
197 </tr>
198 </thead>
199 <tbody id="the-list" data-wp-lists='list:template'>
200 <tr>
201 <th scope="row" class="check-column"><input disabled="disabled" type="checkbox" /></th>
202 <td class='title column-title column-primary'><strong><a href="#">Custom template</a></strong> </td>
203 <td class='pdf column-pdf'><input disabled="disabled" type="radio" /></td>
204 <td class='print column-print'><input disabled="disabled" type="radio" /></td>
205 <td class='date column-date'>June 26, 2015</td>
206 </tr>
207 <tr>
208 <th scope="row" class="check-column"><input disabled="disabled" type="checkbox" /></th>
209 <td class='title column-title column-primary'> <strong><a href="#">New template</a></strong></td>
210 <td class='pdf column-pdf'><input disabled="disabled" type="radio" /></td>
211 <td class='print column-print'><input disabled="disabled" type="radio" /></td>
212 <td class='date column-date'>June 25, 2015</td>
213 </tr>
214 </tbody>
215 <tfoot>
216 <tr>
217 <th scope='col' class='manage-column column-cb'><input disabled id="cb-select-all-2" type="checkbox" /></th>
218 <th scope='col' class='manage-column column-title column-primary' style=""><a href="#"><span><?php _e( 'Title', 'pdf-print' ); ?></span></a></th>
219 <th scope='col' class='manage-column column-pdf'>PDF</th>
220 <th scope='col' class='manage-column column-print'>Print</th>
221 <th scope='col' class='manage-column column-date sortable desc'><a href="#"><span><?php _e( 'Date', 'pdf-print' ); ?></span></th>
222 </tr>
223 </tfoot>
224 </table>
225 <div class="tablenav bottom">
226 <div class="alignleft actions bulkactions">
227 <select disabled="disabled">
228 <option value='-1' selected='selected'><?php _e( 'Bulk Actions', 'pdf-print' ); ?></option>
229 </select>
230 <input disabled="disabled" type="submit" id="doaction" class="button action" value="<?php _e( 'Apply', 'pdf-print' ); ?>" />
231 </div>
232 <div class='tablenav-pages one-page'>
233 <span class="displaying-num">2 <?php _e( 'items', 'pdf-print' ); ?></span>
234 </div>
235 <br class="clear" />
236 </div>
237 <?php }
238 }