require_once 'lazyest-cache.php'; // require_once('wp-content/plugins/lazyest-gallery/lazyest-comments.php'); require_once 'lazyest-filemanager.php'; require_once 'lazyest-dirs.php'; require_once 'lazyest-parser.php'; require_once 'lazyest-slides.php'; require_once 'lazyest-thumbs.php'; require_once 'lazyest-wizard-form.php'; define('LG_VERSION', '0.9.5'); define('LG_ADM_PAGE', 'admin.php?page=lazyest-gallery/lazyest-admin.php'); define('LG_FLM_PAGE', 'admin.php?page=lazyest-gallery/lazyest-filemanager.php'); // Localization domain load_plugin_textdomain('lazyestgallery', false, 'wp-content/plugins/lazyest-gallery/'); $lg_text_domain = "lazyestgallery"; // Initialize all variables lazyestInit(); // Filter for the gallery page //add_action('wp_head', 'add_lazyest_gallery_style'); //add_filter('the_content', 'parse_page_for_gallery'); // Insert the gallery_add_pages() sink into the plugin hook list for 'admin_menu' add_action('admin_menu', 'gallery_add_pages'); // Filter for the post with images links to the gallery ie:[[Image:folder/img.png|align|110|descr]] //add_action('wp_head', 'add_post_thumbs_style'); //add_filter('the_content', 'parse_posts_for_images'); // Adds the gallery browser in the post editor add_action('edit_form_advanced', 'lg_add_gallery_browser'); // Adds the smartlink button in the write page add_filter('admin_footer', 'lazyest_write_quicktag'); // ============== Gallery Main Functions =============== function showGallery() {
function lg_reset_default_options() { global $lg_text_domain; lg_delete_options(true); lazyestInit(); // Display the success message lg_options_success(__('Options Resetted Successfully', $lg_text_domain)); }