class-affiliate.php
6 years ago
class-review-box.php
6 years ago
folders.class.php
6 years ago
form.class.php
6 years ago
plugin.updates.php
6 years ago
tree.class.php
6 years ago
form.class.php
62 lines
| 1 | <?php |
| 2 | defined('ABSPATH') or die('Nope, not accessing this'); |
| 3 | class WCP_Forms { |
| 4 | public function __construct() { |
| 5 | |
| 6 | } |
| 7 | |
| 8 | public static function get_form_html($option_data = "") { |
| 9 | ob_start(); |
| 10 | ?> |
| 11 | |
| 12 | <div class="wcp-custom-form"> |
| 13 | <div class="form-title"> |
| 14 | <?php esc_html_e("Folders", WCP_FOLDER ) ?> |
| 15 | <a href="javascript:;" class="add-new-folder" id="add-new-folder"><span class="folder-icon-create_new_folder"></span> <span><?php esc_html_e("New Folder", WCP_FOLDER ) ?></span></a> |
| 16 | <span class="folder-loader-ajax"> |
| 17 | <img class="active" src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt=""> |
| 18 | <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"> |
| 19 | <path id="successAnimationResult" fill="#D8D8D8" d="M35,60 C21.1928813,60 10,48.8071187 10,35 C10,21.1928813 21.1928813,10 35,10 C48.8071187,10 60,21.1928813 60,35 C60,48.8071187 48.8071187,60 35,60 Z M23.6332378,33.2260427 L22.3667622,34.7739573 L34.1433655,44.40936 L47.776114,27.6305926 L46.223886,26.3694074 L33.8566345,41.59064 L23.6332378,33.2260427 Z"></path> |
| 20 | <circle id="successAnimationCircle" cx="35" cy="35" r="24" stroke="#979797" stroke-width="2" stroke-linecap="round" fill="transparent"></circle> |
| 21 | <polyline id="successAnimationCheck" stroke="#979797" stroke-width="2" points="23 34 34 43 47 27" fill="transparent"></polyline> |
| 22 | </svg> |
| 23 | </span> |
| 24 | <div class="clear"></div> |
| 25 | </div> |
| 26 | <div class="form-options"> |
| 27 | <ul> |
| 28 | <li> |
| 29 | <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php esc_html_e("Rename", WCP_FOLDER ) ?></span> </a> |
| 30 | </li> |
| 31 | <li> |
| 32 | <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php esc_html_e("Delete", WCP_FOLDER ) ?></span> </a> |
| 33 | </li> |
| 34 | <li class="last"> |
| 35 | <a href="javascript:;" id="expand-collapse-list"><span class="icon folder-icon-expand_more"></span></a> |
| 36 | </li> |
| 37 | <li class="last folder-checkbox"> |
| 38 | <input type="checkbox" id="folder-hide-show-checkbox"> |
| 39 | </li> |
| 40 | </ul> |
| 41 | <div class="upgrade-message"> |
| 42 | <?php |
| 43 | $tlfs = get_option("folder_old_plugin_folder_status"); |
| 44 | if($tlfs == false || $tlfs < 10) { |
| 45 | $tlfs = 10; |
| 46 | } |
| 47 | $total = WCP_Folders::get_ttl_fldrs(); |
| 48 | if($total > $tlfs) { |
| 49 | $tlfs = $total; |
| 50 | } |
| 51 | ?> |
| 52 | <span class="upgrade-message">You have used <span class='pink' id='current-folder'><?php echo esc_attr($total) ?></span>/<span id='ttl-fldr'><?php echo esc_attr($tlfs) ?></span> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a></span> |
| 53 | </div> |
| 54 | </div> |
| 55 | <div class="form-loader"> |
| 56 | <div class="form-loader-count"></div> |
| 57 | </div> |
| 58 | </div> |
| 59 | <?php |
| 60 | return ob_get_clean(); |
| 61 | } |
| 62 | } |