This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ include_once 'moztools/mozbase.php'; define('MOZTHEME2011_OPTIONS', 'moztheme2011'); define('MOZTHEME2011_NAME', 'Twenty Eleven'); define('MOZTHEME2011_TEMPLATE', 'twentyeleven'); if (is_admin()) { include_once 'moztheme2011admin.php'; MozBaseClass_MozTheme2011::registerPluginAdmin('MozTheme2011Admin', 'setup_theme'); } else { MozBaseClass_MozTheme2011::registerPlugin('MozTheme2011', 'setup_theme'); } class MozTheme2011 extends MozBaseClass_MozTheme2011 { protected $pluginOptions = MOZTHEME2011_OPTIONS; private $themeExtensions = 'themes.php?page=moztheme2011'; private $themeOptions = 'themes.php?page=theme_options'; private $inSidebar = false; // True when processing sidebar template private $idHeadline = false; // Set to id of first stick post when encountered public static function create() { if (get_template() == MOZTHEME2011_TEMPLATE || strpos(get_current_theme(), MOZTHEME2011_NAME) !== false) {