<?php
/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
?>
<div class="wpl_maintenance"><div class="wpl_show_message"></div></div>
<div class="wpl-maintenance-container">
	<ul>
        <li onclick="wpl_purge_cache_directory(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_purge_cache_directory">
                <?php echo __('Purge WPL cache directory', 'wpl'); ?>
            </span>
        </li>
    	<li onclick="wpl_clear_unfinalized_properties(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_unfinalized_properties">
                <?php echo __('Purge unfinalized listings', 'wpl'); ?>
            </span>
        </li>
        <li onclick="wpl_clear_properties_cached_datas(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_properties_cached_datas">
                <?php echo __('Clear listings cached data', 'wpl'); ?>
            </span>
        </li>
        <li onclick="wpl_clear_listings_cached_location_texts(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_listings_cached_location_texts">
                <?php echo __('Clear listings cached location texts', 'wpl'); ?>
            </span>
        </li>
        <li onclick="wpl_clear_listings_thumbnails(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_listings_thumbnails">
                <?php echo __('Clear listing thumbnails', 'wpl'); ?>
            </span>
        </li>
        <li onclick="wpl_clear_users_cached_datas(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_users_cached_datas">
                <?php echo __('Clear users cached data', 'wpl'); ?>
            </span>
        </li>
        <li onclick="wpl_clear_users_thumbnails(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_users_thumbnails">
                <?php echo __('Clear user thumbnails', 'wpl'); ?>
            </span>
        </li>
        <?php if(wpl_global::check_addon('calendar')): ?>
        <li onclick="wpl_clear_calendar_data(0);">
            <i class="icon-trash"></i>
            <span class="wpl_ajax_loader"></span>
            <span class="title" id="wpl_maintenance_clear_calendar_data">
                <?php echo __('Clear listings calendar data', 'wpl'); ?>
            </span>
        </li>
        <?php endif; ?>
    </ul>
</div>