class-affiliate.php
5 years ago
class-polylang.php
5 years ago
class-review-box.php
5 years ago
class-wpml.php
5 years ago
folders.class.php
5 years ago
form.class.php
5 years ago
plugin.updates.php
5 years ago
tree.class.php
5 years ago
form.class.php
84 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 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 | <div class="plugin-title"> |
| 15 | <?php esc_html_e("Folders", WCP_FOLDER ) ?> |
| 16 | <span class="folder-loader-ajax"> |
| 17 | <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"> |
| 18 | <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> |
| 19 | <circle id="successAnimationCircle" cx="35" cy="35" r="24" stroke="#979797" stroke-width="2" stroke-linecap="round" fill="transparent"></circle> |
| 20 | <polyline id="successAnimationCheck" stroke="#979797" stroke-width="2" points="23 34 34 43 47 27" fill="transparent"></polyline> |
| 21 | </svg> |
| 22 | </span> |
| 23 | </div> |
| 24 | <div class="plugin-button"> |
| 25 | <a href="javascript:;" class="add-new-folder" id="add-new-folder"> |
| 26 | <span class="create_new_folder"><i class="pfolder-add-folder"></i></span> <span><?php esc_html_e("New Folder", WCP_FOLDER ) ?></span> |
| 27 | </a> |
| 28 | </div> |
| 29 | <div class="clear"></div> |
| 30 | </div> |
| 31 | <div class="form-options"> |
| 32 | <ul> |
| 33 | <li class="last folder-checkbox"> |
| 34 | <input type="checkbox" id="folder-hide-show-checkbox"> |
| 35 | </li> |
| 36 | <li> |
| 37 | <a href="javascript:;" id="inline-update"><span class="icon pfolder-edit"></span> <span class="text"><?php esc_html_e("Rename", WCP_FOLDER ) ?></span> </a> |
| 38 | </li> |
| 39 | <li> |
| 40 | <a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text"><?php esc_html_e("Delete", WCP_FOLDER ) ?></span> </a> |
| 41 | </li> |
| 42 | <li> |
| 43 | <div class="form-options"> |
| 44 | <ul> |
| 45 | <li><a href="javascript:;" class="expand-collapse folder-tooltip" id="expand-collapse-list"><span class="icon pfolder-arrow-down"></span></a></li> |
| 46 | <li class="last folder-order"> |
| 47 | <a data-folder-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order folder-tooltip"> |
| 48 | <span class="icon pfolder-arrow-sort"></span> |
| 49 | </a> |
| 50 | <div class="folder-sort-menu"> |
| 51 | <ul> |
| 52 | <li><a data-sort="a-z" href="#">A → Z</a></li> |
| 53 | <li><a data-sort="z-a" href="#">Z → A</a></li> |
| 54 | <li><a data-sort="n-o" href="#">Newest → Oldest</a></li> |
| 55 | <li><a data-sort="o-n" href="#">Oldest → Newest</a></li> |
| 56 | </ul> |
| 57 | </div> |
| 58 | </li> |
| 59 | </ul> |
| 60 | </div> |
| 61 | </li> |
| 62 | </ul> |
| 63 | <div class="upgrade-message"> |
| 64 | <?php |
| 65 | $tlfs = get_option("folder_old_plugin_folder_status"); |
| 66 | if($tlfs == false || $tlfs < 10) { |
| 67 | $tlfs = 10; |
| 68 | } |
| 69 | $total = WCP_Folders::get_ttl_fldrs(); |
| 70 | if($total > $tlfs) { |
| 71 | $tlfs = $total; |
| 72 | } |
| 73 | ?> |
| 74 | <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> |
| 75 | </div> |
| 76 | </div> |
| 77 | <div class="form-loader"> |
| 78 | <div class="form-loader-count"></div> |
| 79 | </div> |
| 80 | </div> |
| 81 | <?php |
| 82 | return ob_get_clean(); |
| 83 | } |
| 84 | } |