PHP Classes

File: weather/weather.php

Recommend this page to a friend!
  Classes of Hillary Kollan   My WordPress Plugin List   weather/weather.php   Download  
File: weather/weather.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: My WordPress Plugin List
WordPress plugins for several purposes
Author: By
Last change:
Date: 1 year ago
Size: 812 bytes
 

Contents

Class file image Download
<?php
/**
 * Plugin Name: AppsMo Weather Project
 * Description: Enables a user to get the weather report
 * Version: 1.2
 * Author: Sadat Hillary Kollan
 * Company: AppsMo Ventures
 */

 //Exit if accessed directly
 
if(!defined('ABSPATH')){
    exit;
}
 
//Global options variable
 
$weather_options = get_option('weather_settings');
 
//Load scripts
 
if(is_admin()){
    require_once(
plugin_dir_path(__FILE__).'/includes/weather-settings.php');
 }
 require_once(
plugin_dir_path(__FILE__).'/includes/geoplugin.class.php');
 require_once(
plugin_dir_path(__FILE__).'/includes/weather-scripts.php');
 require_once(
plugin_dir_path(__FILE__).'/includes/weather-widget.php');


 function
register_weather_projects(){
    
register_widget('Weather_Widget');
 }

 
add_action('widgets_init', "register_weather_projects");