Subversion Repositories oidplus

Rev

Rev 1033 | Rev 1116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1033 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
-
 
20
use ViaThinkSoft\OIDplus\OIDplus;
-
 
21
use ViaThinkSoft\OIDplus\OIDplusDesignPlugin;
20
use MatthiasMullie\Minify;
22
use MatthiasMullie\Minify;
21
 
23
 
22
require_once __DIR__ . '/includes/oidplus.inc.php';
24
require_once __DIR__ . '/includes/oidplus.inc.php';
23
 
25
 
24
error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0);
26
error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0);
Line 99... Line 101...
99
if (file_exists(__DIR__ . '/userdata/styles/oidplus_base.css')) {
101
if (file_exists(__DIR__ . '/userdata/styles/oidplus_base.css')) {
100
        // There is a user defined CSS (not recommended, use design plugins instead!)
102
        // There is a user defined CSS (not recommended, use design plugins instead!)
101
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_base.css');
103
        $out .= process_file(__DIR__ . '/userdata/styles/oidplus_base.css');
102
} else {
104
} else {
103
        // Use CSS of the design plugin
105
        // Use CSS of the design plugin
104
        OIDplus::registerAllPlugins('design', 'OIDplusDesignPlugin', array('OIDplus','registerDesignPlugin'));
106
        OIDplus::registerAllPlugins('design', OIDplusDesignPlugin::class, array(OIDplus::class,'registerDesignPlugin'));
105
        $plugins = OIDplus::getDesignPlugins();
107
        $plugins = OIDplus::getDesignPlugins();
106
        foreach ($plugins as $plugin) {
108
        foreach ($plugins as $plugin) {
107
                if ((basename($plugin->getPluginDirectory())) == $theme) {
109
                if ((basename($plugin->getPluginDirectory())) == $theme) {
108
                        $manifest = $plugin->getManifest();
110
                        $manifest = $plugin->getManifest();
109
                        foreach ($manifest->getCSSFiles() as $css_file) {
111
                        foreach ($manifest->getCSSFiles() as $css_file) {