function cherry_plugin_main_page() { $cherry_plugin_components = new cherry_plugin_components(); $cherry_plugin_components->get_header(array('title' => __('Cherry Plugin', CHERRY_PLUGIN_DOMAIN), 'wrapper_class' => 'cherry_plugin_main_page')); add_thickbox(); ?> <p><?php _e('Cherry Plugin has been released with intention to separate widgets, shortcodes and data management logics with theme editor options. Cherry Plugin is installed automatically on CherryFramework installation and is required for the correct work of CherryFramework. ', CHERRY_PLUGIN_DOMAIN); ?> </p><br> <div class="cols cols-2"> <div class="col"> <div class="plugin-option"> <a href="#TB_inline?width=600&height=505&inlineId=help_import" class="demo-vid thickbox" title="<?php _e('Files Import demo', CHERRY_PLUGIN_DOMAIN); ?> "><i class="icon-facetime-video"></i></a> <div class="thumb-icon"> <i class="icon-download-alt"></i> </div> <h4><a href="?page=import-page"><?php _e('Import', CHERRY_PLUGIN_DOMAIN); ?> </a></h4> <p><small><?php _e('Option to import website content from the backup. Select all files from the backup archive and drag them to the upload files area to start uploading.', CHERRY_PLUGIN_DOMAIN); ?> </small></p> </div> </div> <div class="col"> <div class="plugin-option"> <a href="#TB_inline?width=600&height=505&inlineId=help_export" class="demo-vid thickbox" title="<?php _e('Files Export demo', CHERRY_PLUGIN_DOMAIN); ?> "><i class="icon-facetime-video"></i></a> <div class="thumb-icon"> <i class="icon-upload-alt"></i> </div> <h4><a href="?page=export-page"><?php _e('Export', CHERRY_PLUGIN_DOMAIN); ?> </a></h4> <p><small><?php _e('Option to backup your website data creating a downloadable archive. Use this option to keep your website data on performing some serious modifications or moving website to other hosting.', CHERRY_PLUGIN_DOMAIN); ?> </small></p> </div> </div> </div> <div class="cols cols-2"> <div class="col"> <div class="plugin-option"> <div class="thumb-icon"> <i class="icon-puzzle-piece"></i> </div> <h4><a href="widgets.php"><?php _e('Widgets', CHERRY_PLUGIN_DOMAIN); ?> </a></h4> <p><small><?php _e('Cherry Widgets offer additional ways to place content to widget areas. Several available widget will allow you to add more functionality to your website.', CHERRY_PLUGIN_DOMAIN); ?> </small></p> </div> </div> <div class="col"> <div class="plugin-option"> <div class="thumb-icon"> <i class="icon-th-large"></i> </div> <h4><?php _e('Shortcodes', CHERRY_PLUGIN_DOMAIN); ?> </h4> <p><small><?php _e('Cherry Plugin adds various widgets to the post editor. Shortcodes allow to create various content structures in WordPress posts. Use "Insert Shortcode" icon in post editor toolbar to add shortcodes.', CHERRY_PLUGIN_DOMAIN); ?> <a href="//info.template-help.com/help/quick-start-guide/wordpress-themes/master/index_en.html#shortcodes" target="_blank"><?php _e('Learn more', CHERRY_PLUGIN_DOMAIN); ?> </a></small></p> </div> </div> </div> <?php echo cherry_plugin_help_import_popup() . cherry_plugin_help_export_popup(); $cherry_plugin_components->get_footer(); }
$upload_size_unit = $max_upload_size = wp_max_upload_size(); $byte_sizes = array('KB', 'MB', 'GB'); for ($u = -1; $upload_size_unit > 1024 && $u < count($byte_sizes) - 1; $u++) { $upload_size_unit /= 1024; } if ($u < 0) { $upload_size_unit = 0; $u = 0; } else { $upload_size_unit = (int) $upload_size_unit; } $upload_dir = wp_upload_dir(); $upload_dir = $upload_dir['path'] . '/'; $action_url = CHERRY_PLUGIN_URL . 'admin/import-export/upload.php?upload_dir=' . str_replace("\\", "/", $upload_dir); add_thickbox(); echo cherry_plugin_help_import_popup(); ?> <script type="text/javascript"> var import_text = new Array(), action_url = '<?php echo $action_url; ?> ', max_file_size = <?php echo wp_max_upload_size(); ?> , step_href = 'admin.php?page=import-page&step=2'; import_text['error_upload'] = "<?php _e('Upload Error', CHERRY_PLUGIN_DOMAIN);