This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
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/theme.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('ak_akucom_style_url', '_ak_disable_alkivia_styles');
add_filter('ak_pagelist_style_url', '_ak_disable_alkivia_styles');
add_filter('ak_sideposts_style_url', '_ak_disable_alkivia_styles');
/* ====================================================== LOAD THE THEME === */
ak_create_theme(new akChameleonTheme());