Plugin Directory

Changeset 382821


Ignore:
Timestamp:
05/09/2011 02:22:49 PM (15 years ago)
Author:
mdiamondstone
Message:

Corrected issue with hardcoded widget title.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • authorgrid/trunk/authorGrid.php

    r381275 r382821  
    22/*
    33Plugin Name: Author Grid
    4 Plugin URI: http://www.miniaturebuddha.com/authorgrid/
     4Plugin URI: http://www.miniaturebuddha.com/
    55Description: Display authors in a grid
    66Author: Matt Diamondstone
     
    105105 
    106106function 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    }
    107119    extract($args);
    108120    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;
    110122    authorGrid();
    111123    echo $after_widget;
Note: See TracChangeset for help on using the changeset viewer.