<?php

echo wpbdp_admin_header(_x('Uninstall Business Directory', 'admin uninstall', 'WPBDM'));
?>

<?php 
wpbdp_admin_notices();
?>

<p><?php 
_ex("Uninstall completed.", 'admin uninstall', "WPBDM");
?>
</p>
<p><a href="<?php 
echo admin_url();
?>
"><?php 
_ex('Return to Dashboard.', 'admin uninstall', 'WPBDM');
?>
</p>

<?php 
echo wpbdp_admin_footer();
Example #2
0
 private function previewForm()
 {
     require_once WPBDP_PATH . 'core/view-submit-listing.php';
     if (wpbdp()->has_module('featuredlevels')) {
         wpbdp_admin()->messages[] = _x('This is a preview of the form as it will appear during "Submit a Listing". The users may not see all fields from "Manage Form Fields" because you have "Featured Levels" active and this is showing the base level.', 'formfields-preview', 'WPBDM');
     }
     $html = '';
     $html .= wpbdp_admin_header(_x('Form Preview', 'form-fields admin', 'WPBDM'), 'formfields-preview', array(array(_x('← Return to "Manage Form Fields"', 'form-fields admin', 'WPBDM'), esc_url(remove_query_arg('action')))));
     $html .= wpbdp_admin_notices();
     $controller = new WPBDP_Submit_Listing_Page(0, true);
     $html .= $controller->preview_listing_fields_form();
     $html .= wpbdp_admin_footer();
     echo $html;
 }
Example #3
0
 private function example_csv()
 {
     echo wpbdp_admin_header(_x('Example CSV Import File', 'admin csv-import', 'WPBDM'), null, array(array(_x('← Return to "CSV Import"', 'admin csv-import', 'WPBDM'), esc_url(remove_query_arg('action')))));
     $posts = get_posts(array('post_type' => WPBDP_POST_TYPE, 'post_status' => 'publish', 'numberposts' => 10));
     //echo sprintf('<input type="button" value="%s" />', _x('Copy CSV', 'admin csv-import', 'WPBDM'));
     echo '<textarea class="wpbdp-csv-import-example" rows="30">';
     $fields_api = wpbdp_formfields_api();
     $short_names = $fields_api->get_short_names();
     foreach ($short_names as $name) {
         echo $name . ',';
     }
     echo 'username';
     echo "\n";
     if (count($posts) >= 5) {
         foreach ($posts as $post) {
             foreach (array_keys($short_names) as $field_id) {
                 $field = $fields_api->get_field($field_id);
                 $value = $field->plain_value($post->ID);
                 echo str_replace(',', ';', $value);
                 echo ',';
             }
             echo get_the_author_meta('user_login', $post->post_author);
             echo "\n";
         }
     } else {
         for ($i = 0; $i < 5; $i++) {
             foreach ($short_names as $field_id => $shortname) {
                 $field = $fields_api->get_field($field_id);
                 echo sprintf('"%s"', $this->example_data_for_field($field, $shortname));
                 echo ',';
             }
             echo sprintf('"%s"', $this->example_data_for_field(null, 'user'));
             echo "\n";
         }
     }
     echo '</textarea>';
     echo wpbdp_admin_footer();
 }
Example #4
0
 public function upgrade_page()
 {
     echo wpbdp_admin_header(__('Business Directory - Manual Upgrade', 'WPBDM'), 'manual-upgrade', null, false);
     echo '<div class="step-upgrade">';
     echo '<p>';
     _e('Business Directory features are currently disabled because the plugin needs to perform a manual upgrade before it can be used.', 'WPBDM');
     echo '<br />';
     _e('Click "Start Upgrade" and wait until the process finishes.', 'WPBDM');
     echo '</p>';
     echo '<p>';
     echo '<a href="#" class="start-upgrade button button-primary">' . _x('Start Upgrade', 'manual-upgrade', 'WPBDM') . '</a>';
     echo ' ';
     echo '<a href="#" class="pause-upgrade button">' . _x('Pause Upgrade', 'manual-upgrade', 'WPBDM') . '</a>';
     echo '</p>';
     echo '<textarea id="manual-upgrade-progress" rows="20" style="width: 90%; font-family: courier, monospaced; font-size: 12px;" readonly="readonly"></textarea>';
     echo '</div>';
     echo '<div class="step-done" style="display: none;">';
     echo '<p>' . _x('The upgrade was sucessfully performed. Business Directory Plugin is now available.', 'manual-upgrade', 'WPBDM') . '</p>';
     printf('<a href="%s" class="button button-primary">%s</a>', admin_url('admin.php?page=wpbdp_admin'), _x('Go to "Directory Admin"', 'manual-upgrade', 'WPBDM'));
     echo '</div>';
     echo wpbdp_admin_footer();
 }