Файл: oc-admin/themes/modern/appearance/view.php
Строк: 49
<?php if ( ! defined('OC_ADMIN')) exit('Direct access is not allowed.');
/*
* Copyright 2014 Osclass
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
$file = __get('file');
osc_add_hook('admin_page_header','customPageHeader');
function customPageHeader() { ?>
<h1><?php echo osc_apply_filter('custom_appearance_title', __('Appearance')); ?></h1>
<?php
}
function customPageTitle($string) {
return sprintf(__('Appearance » %s'), $string);
}
osc_add_filter('admin_title', 'customPageTitle');
osc_current_admin_theme_path( 'parts/header.php' ); ?>
<!-- theme files -->
<div class="theme-files">
<?php
if(strpos($file, '../')===false && strpos($file, '..\')==false && file_exists($file)) {
require_once $file;
}
?>
</div>
<!-- /theme files -->
<?php osc_current_admin_theme_path( 'parts/footer.php' ); ?>