echo '<option value="' . $ln->id . '"' . '>' . $ln->name . '</option>'; } //pro ?> </select> <input type="submit" value="<?php _e('Apply', 'knews'); ?> " class="button-secondary" /> </div> <?php //Security for CSRF attacks wp_nonce_field($knews_nonce_action, $knews_nonce_name); ?> <?php knews_pagination($paged, ceil($filtered_users / $results_per_page), $filtered_users); ?> </div> </form> <?php } else { echo '<p> </p>'; if ($total_users != 0) { echo '<p>' . __('No users match the search criteria', 'knews') . '</p>'; echo '<p><input type="button" class="button" value="Reset criteria" onclick="location.href=\'admin.php?page=knews_users\'"></p>'; } else { echo '<p>' . __('There are not yet users', 'knews') . '</p>'; } echo '<p> </p>'; } ?>
<th><?php _e('Details', 'knews'); ?> </th> </tr> </tfoot> </table> <?php //Security for CSRF attacks wp_nonce_field($knews_nonce_action, $knews_nonce_name); ?> </form> <?php //Pagination echo '<div class="tablenav bottom">'; knews_pagination($paged, ceil($filtered_automated / $results_per_page), $filtered_automated); echo '</div>'; if ($pending) { ?> <div class="updated"> <p><?php _e('Knews runs every hour the automated newsletter creation jobs.', 'knews'); ?> </p> <p><?php echo sprintf(__('You can manually trigger this task now (only recommended for testing purposes) %s Run Automated Creation Now', 'knews'), '<a href="' . get_admin_url() . 'admin-ajax.php?action=knewsForceAutomated&manual=1" class="button" target="_blank">'); ?> </a></p> </div> <?php }
?> </th> <th style="text-align:center;"><?php _e('Progress / Results', 'knews'); ?> </th> <th><?php _e('Status', 'knews'); ?> </th> </tr> </tfoot> </table> <div class="tablenav bottom"> <?php knews_pagination($paged, ceil($query_count / $results_per_page), $query_count); ?> </div> <?php if ($pending) { ?> <div class="updated"> <p><?php _e('Knews submit runs every 10 minutes and sends a portion of the list.', 'knews'); ?> </p> <p><?php echo sprintf(__('You can manually trigger the JavaScript CRON if your newsletter is not being sent for any reason: %s Run JS-Cron Now', 'knews'), '<a href="' . $Knews_plugin->get_main_admin_url() . 'admin-ajax.php?action=knewsCron&js=1" class="button" target="_blank">'); ?> </a></p> </div>
echo '<input type="hidden" name="type" value="' . $type . '">'; echo '<input type="hidden" name="action" value="knewsSelPost">'; echo '<input type="text" name="s" value="" class="texte">'; echo '<input type="submit" value="' . __('Search', 'knews') . '" class="button" />'; echo '</form>'; echo '</div>'; echo '</div>'; /*function new_excerpt_more($more) { return '[...]'; } add_filter('excerpt_more', 'new_excerpt_more');*/ $myposts = apply_filters('knews_posts_preview', array(), $lang, $type, $cat, $s, $paged, 'published', 10); foreach ($myposts as $p) { if (is_array($p) && isset($p['ID'])) { echo '<p><a href="#" onclick="select_post(' . $p['ID'] . ',\'' . $p['lang'] . '\',\'' . $type . '\')"><strong>' . $p['title'] . '</strong></a><br>' . $p['excerpt'] . '</p>'; } } //global $wp_query; if (isset($myposts['found_posts'])) { echo '<div class="tablenav bottom">'; knews_pagination($paged, ceil($myposts['found_posts'] / 10), $myposts['found_posts'], $url_base . '?action=knewsSelPost&lang=' . $lang . '&type=' . $type . '&cat=' . $cat . '&orderbt=' . $orderbt . '&order=' . $order); echo '</div>'; } ?> </div> </body> </html> <?php } } die;
<option selected="selected" value=""><?php _e('Batch actions', 'knews'); ?> </option> <option value="delete_news"><?php _e('Delete', 'knews'); ?> </option> </select> <input type="submit" value="<?php _e('Apply', 'knews'); ?> " class="button-secondary" /> </div> <?php knews_pagination($paged, ceil($filtered_lists / $results_per_page), $filtered_lists); ?> </div> <?php //Security for CSRF attacks wp_nonce_field($knews_nonce_action, $knews_nonce_name); ?> </form> <?php } else { if ($tab == '') { echo '<p>' . __('At the moment there is no newsletter, you can create new ones', 'knews') . '</p>'; } else { if ($tab == 'automation') { echo '<p>' . __('There is no autoresponders or newsletters for automation (maybe are under "manual newsletters" as unknown type).', 'knews') . '</p>'; } else {