This repository has been archived by the owner. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Initial Commit
- Loading branch information
0 parents
commit b91bdf0
Showing
5 changed files
with
678 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/* | ||
Plugin Name: ISS | ||
Description: Grandchild theme for ISS. | ||
Author: Web Dev and Shemona Singh | ||
Author URI: http://www.webdev.uconn.edu | ||
Version: 1.0 | ||
*/ | ||
|
||
|
||
require_once( plugin_dir_path( __FILE__ ) . 'template-class.php' ); | ||
add_action( 'plugins_loaded', array( 'Page_Template_Plugin', 'get_instance' ) ); | ||
|
||
// Adds our new file with styles | ||
function grandchild_add_scripts_styles() { | ||
wp_register_script( 'grandchild-script', plugins_url( 'grandchild-scripts.js', __FILE__ ), array( 'jquery' ), '1.0' ); | ||
wp_enqueue_script( 'grandchild-script' ); | ||
|
||
wp_register_style( 'grandchild-style', plugins_url( 'grandchild-styles.css', __FILE__ ), array(), '1.0' ); | ||
wp_enqueue_style( 'grandchild-style' ); | ||
} | ||
add_action( 'wp_enqueue_scripts', 'grandchild_add_scripts_styles', 99999999 ); | ||
|
||
// Search for templates in plugin 'templates' dir, and load if exists | ||
function grandchild_template_include( $template ) { | ||
if ( file_exists( untrailingslashit( plugin_dir_path( __FILE__ ) ) . '/templates/' . basename( $template ) ) ) | ||
$template = untrailingslashit( plugin_dir_path( __FILE__ ) ) . '/templates/' . basename( $template ); | ||
|
||
return $template; | ||
} | ||
add_filter( 'template_include', 'grandchild_template_include', 11 ); | ||
/* | ||
if ( function_exists('register_sidebar') ) { | ||
register_sidebar( array( | ||
'name' => __( 'Header - Image' ), | ||
'id' => 'header-image', | ||
'description' => __( 'Widgets in this area will be shown in the header.' ), | ||
'before_title' => '<h1>', | ||
'after_title' => '</h1>', | ||
) ); | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
jQuery(document).ready(function() { | ||
|
||
//alert('grandchild'); | ||
|
||
}); |
Oops, something went wrong.