File: /home/sarlight.ru/public_html/wp-content/themes/addison/php/config.php
<?php
/**
* Color schemes
*/
if ( ! function_exists( 'addison_color_schemes' ) ) {
function addison_color_schemes( $color_scheme_arr ) {
$theme_color_schemes = array();
$theme_color_schemes[] = 'dark-skin;Light font, dark background;#ffffff;#181818';
$theme_color_schemes[] = 'light-skin;Dark font, light background;#181818;#ffffff';
$theme_color_schemes[] = 'accent-light-skin;Accent font, dark background (or details);' . boldthemes_get_option( 'accent_color' ) . ';#181818';
$theme_color_schemes[] = 'accent-dark-skin;Accent font, light background (or details);' . boldthemes_get_option( 'accent_color' ) . ';#ffffff';
$theme_color_schemes[] = 'light-accent-skin;Dark font, accent background (or details);#181818;' . boldthemes_get_option( 'accent_color' );
$theme_color_schemes[] = 'dark-accent-skin;Light font, accent background (or details);#ffffff;' . boldthemes_get_option( 'accent_color' );
return array_merge( $theme_color_schemes, $color_scheme_arr );
}
}
/*
* set content width
*/
if ( ! isset( $content_width ) ) {
$content_width = 1200;
}
/**
* Change number of related products
*/
if ( ! function_exists( 'boldthemes_change_number_related_products' ) ) {
function boldthemes_change_number_related_products( $args ) {
$args['posts_per_page'] = 4; // # of related products
$args['columns'] = 4; // # of columns per row
return $args;
}
}
/**
* Loop shop per page
*/
if ( ! function_exists( 'boldthemes_loop_shop_per_page' ) ) {
function boldthemes_loop_shop_per_page( $cols ) {
return 9;
}
}
/**
* Loop columns
*/
if ( ! function_exists( 'boldthemes_loop_shop_columns' ) ) {
function boldthemes_loop_shop_columns() {
return 3; // 3 products per row
}
}