-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.php
More file actions
51 lines (46 loc) · 1.57 KB
/
Copy pathmain.php
File metadata and controls
51 lines (46 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/*
Plugin Name: Simple Lightbox: Custom Theme (Example)
Plugin URI: https://github.com/archetyped/slb-theme-example
Description: Custom theme example for Simple Lightbox
Version: 0.1
Author: Archetyped
Author URI: http://archetyped.com
Support URI: https://github.com/archetyped/slb-theme-example/wiki/Reporting-Issues
Copyright 2013 Sol Marchessault (sol@archetyped.com)
*/
/**
* Initialize custom theme for Simple Lightbox
* @param SLB_Themes $themes Themes controller
*/
function slb_theme_example_init($themes) {
//Path to theme's directory
$base_path = plugins_url();
$base_url = site_url();
if ( 0 === strpos($base_path, $base_url) ) {
$base_path = substr($base_path, strlen($base_url));
}
$base_path .= '/' . basename( dirname( __FILE__ ) );
//Theme properties
//Uncomment properties to override parent theme's properties
$properties = array (
//Theme name
'name' => __('Example Theme', 'slb-theme-example'),
//Parent theme
'parent' => 'slb_baseline',
//Custom layout file
/*'layout' => $base_path . '/layout.html',*/
//Custom scripts - Each script is an array containing the script's properties
//Example: array( $handle, $src [, $deps, $ver ] )
'scripts' => array (
/*array ( 'core', $base_path . '/js/client.js' ),*/
),
//Custom styles - Each style is an array containing the style's properties
//Example: array( $handle, $src [, $deps, $ver] )
'styles' => array (
/*array ( 'core', $base_path . '/css/styles.css' ),*/
),
);
$themes->add('slb_theme_example', $properties);
}
add_action('slb_themes_init', 'slb_theme_example_init');