This program 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 3 of the License, or
(at your option) any later version.
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, see .
*/
require_once ( TEMPLATEPATH . '/framework/loader.php');
require_once ( TEMPLATEPATH . '/includes/styling.php');
require_once ( TEMPLATEPATH . '/includes/class.chameleon.php');
require_once ( TEMPLATEPATH . '/includes/deprecated.php');
/* ========================================================= THEME HOOKS === */
/**
* Sets the styles for the WordPress Gallery.
* As styles are included in CSS files, here we just start the DIV for gallery.
*
* @hook filter 'gallery_style'
* @param string $style Default WordPress styles
* @return string New theme styles
*/
function _ak_chameleon_gallery_style( $style ) {
return '
';
}
/**
* Filter to disable the default stylesheet for Alkivia plugins.
* The styles needed are included in the theme style, so don't need to load them again.
*
* @hook filter '{pluginID}_style_url
* @param $url Default stylesheed url
* @return string An empty string as URL to disable the default style.
*/
function _ak_disable_alkivia_styles( $url ) {
return '';
}
/* =================================================== ADD THEME FILTERS === */
add_filter('gallery_style', '_ak_chameleon_gallery_style');
add_filter('akucom_style_url', '_ak_disable_alkivia_styles');
add_filter('pagelist_style_url', '_ak_disable_alkivia_styles');
add_filter('sideposts_style_url', '_ak_disable_alkivia_styles');
/* ====================================================== LOAD THE THEME === */
ak_store_theme(new akChameleonTheme());