Skip to content

Commit

Permalink
Reverts to allowing deprecated 0.9x theme calls for a few versions, n…
Browse files Browse the repository at this point in the history
…ext add deprecated notice message [#1043]
  • Loading branch information
dleffler committed Jun 22, 2013
1 parent 6002732 commit 3157b92
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 1 deletion.
115 changes: 115 additions & 0 deletions framework/core/compat/theme.php
@@ -0,0 +1,115 @@
<?php

##################################################
#
# Copyright (c) 2004-2013 OIC Group, Inc.
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################

/** exdoc
* This is the expTheme 1.0 compatibility layer
*/

function exponent_theme_remove_css() {
return expTheme::removeCss();
}

function exponent_theme_remove_smarty_cache() {
return expTheme::removeSmartyCache();
}

function exponent_theme_headerInfo($config) {
expTheme::head($config);
}

function headerInfo($config) {
return expTheme::headerInfo($config);
}

function exponent_theme_advertiseRSS() {
expTheme::advertiseRSS();
}

function exponent_theme_footerInfo($params = array()) {
expTheme::foot($params);
}

function footerInfo($params) {
expTheme::footerInfo($params);
}

function exponent_theme_sourceSelectorInfo() {
return;
}

function exponent_theme_showSectionalModule($module,$view,$title,$prefix = null, $pickable = false, $hide_menu=false) {
expTheme::showSectionalModule($module,$view,$title,$prefix, $pickable, $hide_menu);
}

function exponent_theme_showTopSectionalModule($module,$view,$title,$prefix = null, $pickable = false, $hide_menu=false) {
expTheme::showTopSectionalModule($module,$view,$title,$prefix, $pickable, $hide_menu);
}

function exponent_theme_showModule($module,$view="Default",$title="",$source=null,$pickable=false,$section=null,$hide_menu=false,$params=array()) {
expTheme::showModule($module,$view,$title,$source,$pickable,$section,$hide_menu,$params);
}

function exponent_theme_inAction() {
return expTheme::inAction();
}

function exponent_theme_reRoutActionTo($theme = "") {
return expTheme::reRoutActionTo($theme);
}

function exponent_theme_main() {
expTheme::main();
}

function exponent_theme_runAction() {
expTheme::runAction();
}

function exponent_theme_showAction($module, $action, $src="", $params="") {
expTheme::showAction($module, $action, $src, $params);
}

function exponent_theme_goDefaultSection() {
expTheme::goDefaultSection();
}

function exponent_theme_mainContainer() {
expTheme::mainContainer();
}

function exponent_theme_getSubthemes($include_default = true,$theme = DISPLAY_THEME) {
return expTheme::getSubthemes($include_default,$theme);
}

function exponent_theme_getPrinterFriendlyTheme() {
return expTheme::getPrinterFriendlyTheme();
}

function exponent_theme_getTheme() {
return expTheme::getTheme();
}

function exponent_theme_loadActionMaps() {
return expTheme::loadActionMaps();
}

function exponent_theme_satisfyThemeRequirements() {
expTheme::satisfyThemeRequirements();
}

?>
2 changes: 1 addition & 1 deletion framework/core/subsystems/expTheme.php
Expand Up @@ -29,7 +29,7 @@ public static function initialize() {
global $auto_dirs2;
// global $user;
// Initialize the theme subsystem 1.0 compatibility layer
// require_once(BASE.'framework/core/compat/theme.php');
require_once(BASE.'framework/core/compat/theme.php');

if (!defined('DISPLAY_THEME')) {
/* exdoc
Expand Down

0 comments on commit 3157b92

Please sign in to comment.