Changeset 382821
- Timestamp:
- 05/09/2011 02:22:49 PM (15 years ago)
- File:
-
- 1 edited
-
authorgrid/trunk/authorGrid.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
authorgrid/trunk/authorGrid.php
r381275 r382821 2 2 /* 3 3 Plugin Name: Author Grid 4 Plugin URI: http://www.miniaturebuddha.com/ authorgrid/4 Plugin URI: http://www.miniaturebuddha.com/ 5 5 Description: Display authors in a grid 6 6 Author: Matt Diamondstone … … 105 105 106 106 function widget_authorGrid($args) { 107 global $wpdb; 108 109 // GET OPTIONS FROM DATABASE, IF NO OPTIONS EXIST, SET DEFAULTS 110 if(get_option('authorGrid_options')) { 111 $authorGrid_options = get_option('authorGrid_options'); 112 } else { 113 $authorGrid_options = array( 'title' => 'Authors', 114 'displayType' => 'cols', 115 'number' => '1', 116 'avSize' => '60' 117 ); 118 } 107 119 extract($args); 108 120 echo $before_widget; 109 echo $before_title;?><a> Cult Jar Crew</a><?php echo $after_title;121 echo $before_title;?><a><?php echo $authorGrid_options['title']; ?></a><?php echo $after_title; 110 122 authorGrid(); 111 123 echo $after_widget;
Note: See TracChangeset
for help on using the changeset viewer.