options_page_help.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  3. $help_text = '<div id="urlyar_help"><img class="urlyarplugin-logo" src="'.$this->plugin_url.'/urlyar-logo.jpg" alt="" />';
  4. $help_text .= '<h3>'. __('More Information', 'url-shortener') . '</h3>';
  5. $help_text .= '<p>'.__('Additional information and upgrade notes are available via the plugin\'s <a href="http://salamzadeh.net/plugins/urlyar/docs/url-shortener-wordpress-plugin">Wiki Page</a>', 'url-shortener').'</p>';
  6. $help_text .= '<p>'. __('Do check out the <a href="http://salamzadeh.net/plugins/urlyar/docs/url-shortener-wordpress-plugin/faq">FAQ</a> and <a href="http://salamzadeh.net/plugins/urlyar/docs/url-shortener-wordpress-plugin/known-issues">Known Issues</a> as well').'</p>';
  7. $help_text .= '<h3>'.__('Version References', 'url-shortener').'</h3>';
  8. $help_text .= '<p><ul>';
  9. $help_text .= '<li>'.__('Plugin Version: ', 'url-shortener').$this->plugin_version.'-'.$this->plugin_status.'</li>';
  10. $help_text .= '</ul></p>';
  11. $help_text .= '<h3>'. __('Shortener Modules', 'url-shortener').'</h3>';
  12. $help_text .= '<table id="component_list" class="widefat post fixed" cellspacing="0">';
  13. $help_text .= '<thead>';
  14. $help_text .= '<tr>';
  15. $help_text .= '<th scope="col" class="manage-column">' . __('Name', 'url-shortener') . '</th>';
  16. $help_text .= '<th scope="col" class="manage-column">'. __('Description', 'url-shortener') .'</th>';
  17. $help_text .= '<th scope="col" class="manage-column colsmall">'. __('ID', 'url-shortener') .'</th>';
  18. $help_text .= '</tr>';
  19. $help_text .= '</thead>';
  20. $help_text .= '<tbody>';
  21. foreach ($this->shortener_modules as $modules){
  22. $help_text .= '<tr>';
  23. $help_text .= '<td class="name">';
  24. $help_text .= '<strong class="checkit">'.$modules['name'] .'</strong>';
  25. $help_text .= '<span>Version:'. $modules['version'] .'</span>';
  26. $help_text .= '</td>';
  27. $help_text .= '<td>';
  28. $help_text .= $modules['description'];
  29. $help_text .= '</td>';
  30. $help_text .= '<td>'.$modules['classname'] .'</td>';
  31. $help_text .= '</tr>';
  32. }
  33. $help_text .= '</tbody>';
  34. $help_text .= '</table>';
  35. $help_text .= '<h3>'. __('Support', 'url-shortener') . '</h3>';
  36. $help_text .= '<p>'. __('You can get support for the plugin via the following channels: ', 'url-shortener') . '<ul>';
  37. $help_text .= '<li>'. __('<a href="http://wordpress.org/tags/url-shortener">WordPress Support Forum</a>', 'url-shortener'). '</li>';
  38. $help_text .= '<li>'. __('<a href="https://www.salamzadeh.net/contact/">Send me a message</a>', 'url-shortener').'</li>';
  39. $help_text .= '</ul></p>';
  40. $help_text .= '<p>' . __('If you like this plugin and would like to <a href="http://salamzadeh.net/plugins/urlyar/contribute/">Contribute</a> back, I\'ll be very grateful!', 'url-shortener') . '</p>';
  41. $help_text .= '</div>';
  42. ?>