Changeset 489725
- Timestamp:
- 01/14/2012 04:53:17 AM (14 years ago)
- File:
-
- 1 edited
-
wordpress-weather-widget/trunk/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-weather-widget/trunk/index.php
r487653 r489725 2 2 /** 3 3 * Plugin Name: Weather widget for wordpress 4 * Plugin URI: http:// show.yasiradnan.com4 * Plugin URI: http://yasiradnan.com 5 5 * Description: A widget adds weather forecast to your wordpress sidebar 6 6 * Version: 1.0 7 7 * Author: Yasir Adnan 8 8 * Author URI: http://yasiradnan.com 9 *License: GPLv2 or later 10 */ 11 12 /* 13 This program is free software; you can redistribute it and/or 14 modify it under the terms of the GNU General Public License 15 as published by the Free Software Foundation; either version 2 16 of the License, or (at your option) any later version. 17 18 This program is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26 */ 27 /** 9 */ 10 /** 28 11 * Add function to widgets_init that'll load our widget. 29 12 */ … … 41 24 42 25 function add_my_stylesheet() { 43 $myStyleUrl = plugins_url(' style.css', __FILE__); // Respects SSL, Style.css is relative to the current file44 $myStyleFile = WP_PLUGIN_DIR . '/w eather/style.css';26 $myStyleUrl = plugins_url('weatherstyle.css', __FILE__); // Respects SSL, Style.css is relative to the current file 27 $myStyleFile = WP_PLUGIN_DIR . '/wordpress-weather-widget/weatherstyle.css'; 45 28 if ( file_exists($myStyleFile) ) { 46 29 wp_register_style('myStyleSheets', $myStyleUrl); … … 93 76 /** 94 77 *Weather API 95 *To use this as a PHP script for your another website copy below codes here to </html> tag96 78 */ 97 79 … … 137 119 </body> 138 120 </html> 121 139 122 <? echo '</ul>'; 140 123 /* After widget (defined by themes). */
Note: See TracChangeset
for help on using the changeset viewer.