private function render_notice()
 {
     $message = __("You have payments enabled, but there are no payment terms defined. Users won't be able to post Ads. Please <fee-section-link>add payment terms</a> or <payments-settings-link>configure the website as a free board</a>.", 'AWPCP');
     $message = str_replace('<fee-section-link>', sprintf('<a href="%s">', awpcp_get_admin_fees_url()), $message);
     $message = str_replace('<payments-settings-link>', sprintf('<a href="%s">', awpcp_get_admin_settings_url('payment-settings')), $message);
     echo awpcp_print_error($message);
 }
 protected function show_missing_placeholder_notice($warning_message)
 {
     $warning_message = sprintf('<strong>%s:</strong> %s', __('Warning', 'awpcp-attachments'), $warning_message);
     $url = awpcp_get_admin_settings_url('listings-settings');
     $link = sprintf('<a href="%s">%s</a>', $url, __('Ad/Listings settings page', 'awpcp-attachments'));
     $go_to_settings_message = sprintf(__('Go to the %s to change the Single Ad layout.', 'awpcp-attachments'), $link);
     echo awpcp_print_error(sprintf('%s<br/><br/>%s', $warning_message, $go_to_settings_message));
 }
Пример #3
0
 private function show_inactive_license_notice($module_name)
 {
     $link = sprintf('<a href="%s">', awpcp_get_admin_settings_url('license-settings'));
     $message = __('The license for AWPCP <module-name> module is inactive. All features will remain disabled until you activate the license. Please go to the <license-settings-link>License Settings</a> section to acivate your license.', 'AWPCP');
     $message = str_replace('<module-name>', '<strong>' . $module_name . '</strong>', $message);
     $message = str_replace('<license-settings-link>', $link, $message);
     return awpcp_print_error($message);
 }
Пример #4
0
?>
    <?php 
$label = __('Add Fee Plan', 'AWPCP');
?>
    <a class="add button-primary" title="<?php 
echo esc_attr($label);
?>
" href="<?php 
echo esc_attr($url);
?>
" accesskey="s"><?php 
echo $label;
?>
</a>
    <span><?php 
$fee_settings_url = awpcp_get_admin_settings_url('payment-settings');
$fee_settings_link = sprintf('<a href="%s">%s</a>', $fee_settings_url, __('Fee Plan Settings', 'AWPCP'));
$message = __('If you wish to change the sorting of your fee plans, you can change the <fee-settings-link>.', 'AWPCP');
$message = str_replace('<fee-settings-link>', $fee_settings_link, $message);
echo $message;
?>
</span>

    <?php 
//echo $table->views()
?>
    <?php 
//echo $table->search_box(__('Search Credit Plans', 'AWPCP'), 'credit-plans')
?>
    <?php 
//echo $table->get_search_by_box()
<form method="post" action="<?php 
echo esc_attr($this->url(array('action' => false)));
?>
">
    <p><?php 
echo esc_html(__('The table below shows all the form fields that users may need to fill to create a listing. Use the six-dots icons at the end of each row to drag the form fields around and modify the order in which those fields appear in the Ad Details form.', 'AWPCP'));
?>
</p>
    <p><?php 
$settings_url = awpcp_get_admin_settings_url('form-field-settings');
$settings_link = sprintf('<a href="%s">%s</a>', $settings_url, __('Form', 'AWPCP'));
$message = __('Go to the <form-fields-settings-link> settings section to control which of the standard fields appear and if the user is required to enter a value. If you have the Extra Fields module, the rest of the fields can be configured from the Extra Fields admin section.', 'AWPCP');
$message = str_replace('<form-fields-settings-link>', $settings_link, $message);
echo $message;
?>
</p>

    <?php 
/*foreach ($this->params as $name => $value): ?>
  <input type="hidden" name="<?php echo esc_attr($name) ?>" value="<?php echo esc_attr($value) ?>" />
  <?php endforeach*/
?>

    <?php 
echo $table->views();
?>
    <?php 
echo $table->display();
?>
</form>