Changeset 646503
- Timestamp:
- 12/31/2012 09:08:22 PM (13 years ago)
- Location:
- wp-tinyforum-widget/trunk
- Files:
-
- 6 added
- 2 edited
-
images (added)
-
images/topic.png (added)
-
languages (added)
-
languages/wp-tinyforum-widget.mo (added)
-
languages/wp-tinyforum-widget.po (added)
-
languages/wp-tinyforum-widget.pot (added)
-
readme.txt (modified) (2 diffs)
-
wp_tinyForum_widget.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tinyforum-widget/trunk/readme.txt
r645656 r646503 5 5 Requires at least: 3.5 6 6 Tested up to: 3.5 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 9 9 A sidebar widget that displays a certain number of topics from a tinyForum installation. … … 25 25 * Initial release 26 26 27 = 1.1 (2012-12-31) = 28 * Added internationalization 29 * Added image bullets 30 27 31 == Screenshots == 28 32 1. Widget Settings Page -
wp-tinyforum-widget/trunk/wp_tinyForum_widget.php
r645656 r646503 5 5 Description: A sidebar widget for your WordPress site that will show a certain number of topics from your tinyForum installation. 6 6 Author: Joshua Parker 7 Version: 1. 07 Version: 1.1 8 8 Author URI: http://www.joshparker.us/ 9 9 */ … … 43 43 ?> 44 44 <div class="wrap"> 45 <h2><?php _e('WP tinyForum Recent Forum Topics','wp _tinyForum'); ?></h2>45 <h2><?php _e('WP tinyForum Recent Forum Topics','wp-tinyforum-widget'); ?></h2> 46 46 47 47 <form method="post" action="options.php"> … … 49 49 <table class="form-table"> 50 50 <tr valign="top"> 51 <th scope="row"><?php _e('tinyForum Database Host (usually localhost)','wp _tinyForum'); ?></th>51 <th scope="row"><?php _e('tinyForum Database Host (usually localhost)','wp-tinyforum-widget'); ?></th> 52 52 <td><input type="text" name="wp_tinyForum_host" size="50" value="<?php echo get_option('wp_tinyForum_host'); ?>" /></td> 53 53 </tr> 54 54 55 55 <tr valign="top"> 56 <th scope="row"><?php _e('tinyForum Database Username','wp _tinyForum'); ?></th>56 <th scope="row"><?php _e('tinyForum Database Username','wp-tinyforum-widget'); ?></th> 57 57 <td><input type="text" name="wp_tinyForum_user" size="50" value="<?php echo get_option('wp_tinyForum_user'); ?>" /></td> 58 58 </tr> 59 59 60 60 <tr valign="top"> 61 <th scope="row"><?php _e('tinyForum Database Password','wp _tinyForum'); ?></th>61 <th scope="row"><?php _e('tinyForum Database Password','wp-tinyforum-widget'); ?></th> 62 62 <td><input type="password" name="wp_tinyForum_pass" size="50" value="<?php echo get_option('wp_tinyForum_pass'); ?>" /></td> 63 63 </tr> 64 64 65 65 <tr valign="top"> 66 <th scope="row"><?php _e('tinyForum Database Name','wp _tinyForum'); ?></th>66 <th scope="row"><?php _e('tinyForum Database Name','wp-tinyforum-widget'); ?></th> 67 67 <td><input type="text" name="wp_tinyForum_database" size="50" value="<?php echo get_option('wp_tinyForum_database'); ?>" /></td> 68 68 </tr> 69 69 70 70 <tr valign="top"> 71 <th scope="row"><?php _e('tinyForum Topics Table','wp _tinyForum'); ?></th>71 <th scope="row"><?php _e('tinyForum Topics Table','wp-tinyforum-widget'); ?></th> 72 72 <td><input type="text" name="wp_tinyForum_topics_table" size="50" value="<?php echo get_option('wp_tinyForum_topics_table'); ?>" /></td> 73 73 </tr> 74 74 75 75 <tr valign="top"> 76 <th scope="row"><?php _e('Number of topics to show','wp _tinyForum'); ?></th>76 <th scope="row"><?php _e('Number of topics to show','wp-tinyforum-widget'); ?></th> 77 77 <td><input type="text" name="wp_tinyForum_no_of_topics" size="50" value="<?php echo get_option('wp_tinyForum_no_of_topics'); ?>" /></td> 78 78 </tr> 79 79 80 80 <tr valign="top"> 81 <th scope="row"><?php _e('URL to Forum (including trailing slash)','wp _tinyForum'); ?></th>81 <th scope="row"><?php _e('URL to Forum (including trailing slash)','wp-tinyforum-widget'); ?></th> 82 82 <td><input type="text" name="wp_tinyForum_url" size="50" value="<?php echo get_option('wp_tinyForum_url'); ?>" /></td> 83 83 </tr> … … 86 86 87 87 <p class="submit"> 88 <input type="submit" class="button-primary" value="<?php _e('Save Changes','wp _tinyForum') ?>" />88 <input type="submit" class="button-primary" value="<?php _e('Save Changes','wp-tinyforum-widget') ?>" /> 89 89 </p> 90 90 … … 105 105 106 106 ?> 107 108 <div id="widget_wptinyForum" class="widget widget_wp_tinyForum"><h3 class="widget-title"><span><?php _e('Recent Forum Topics','wp_tinyForum'); ?></span></h3> 109 <ul> 107 <style type="text/css"> 108 #latestTopics 109 { 110 margin-left: 0; 111 padding-left: 0; 112 list-style: none; 113 } 114 115 #latestTopics li 116 { 117 padding-left: 1.8em; 118 background-image: url(<?php echo get_option('siteurl'); ?>/wp-content/plugins/wp-tinyforum-widget/images/topic.png); 119 background-repeat: no-repeat; 120 background-position: 0 .3em; 121 } 122 </style> 123 <div id="widget_wptinyForum" class="widget widget_wp_tinyForum"><h3 class="widget-title"><span><?php _e('Recent Forum Topics','wp-tinyforum-widget'); ?></span></h3> 124 <ul id="latestTopics"> 110 125 <?php if(mysqli_num_rows($q) > 0) { 111 126 while($row = mysqli_fetch_assoc($q)) { … … 121 136 <?php 122 137 } 123 wp_register_sidebar_widget('widget_wp_tinyForum_init_2012', 'WP tinyForum Replies', 'widget_wp_tinyForum', array('description' => 'Adds a sidebar widget showing a set number of topics from your tinyForum installation.'));138 wp_register_sidebar_widget('widget_wp_tinyForum_init_2012', 'WP tinyForum Topics', 'widget_wp_tinyForum', array('description' => 'Adds a sidebar widget showing a set number of topics from your tinyForum installation.')); 124 139 } 125 140 add_action('plugins_loaded', 'widget_wp_tinyForum_init'); 141 142 // i18n 143 $plugin_dir = basename(dirname(__FILE__)). '/languages'; 144 load_plugin_textdomain( 'wp-tinyforum-widget', WP_PLUGIN_DIR.'/'.$plugin_dir, $plugin_dir );
Note: See TracChangeset
for help on using the changeset viewer.