source: trunk/www.guidonia.net/wp/wp-content/themes/carrington-mobile-1.0.2/functions.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 1.8 KB
Line 
1<?php
2
3// This file is part of the Carrington Mobile Theme for WordPress
4// http://carringtontheme.com
5//
6// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
7// http://crowdfavorite.com
8//
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
12// **********************************************************************
13// This program is distributed in the hope that it will be useful, but
14// WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16// **********************************************************************
17
18if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
19
20load_theme_textdomain('carrington-mobile');
21
22define('CFCT_DEBUG', false);
23define('CFCT_PATH', trailingslashit(TEMPLATEPATH));
24define('CFCT_HOME_LIST_LENGTH', 5);
25define('CFCT_HOME_LATEST_LENGTH', 250);
26
27$cfct_options = array(
28 'cfct_about_text'
29 , 'cfct_credit'
30 , 'cfct_posts_per_archive_page'
31 , 'cfct_wp_footer'
32);
33
34function cfct_blog_init() {
35 if (cfct_get_option('cfct_ajax_load') == 'yes') {
36 cfct_ajax_load();
37 }
38}
39add_action('init', 'cfct_blog_init');
40
41function cfct_archive_title() {
42 if(is_author()) {
43 $output = __('Inviato da:');
44 } elseif(is_category()) {
45 $output = __('Archivi Categoria:');
46 } elseif(is_tag()) {
47 $output = __('Tag Archivi:');
48 } elseif(is_archive()) {
49 $output = __('Archivei:');
50 }
51 $output .= ' ';
52 echo $output;
53}
54
55function cfct_mobile_post_gallery_columns($columns) {
56 return 1;
57}
58add_filter('cfct_post_gallery_columns', 'cfct_mobile_post_gallery_columns');
59
60if (!is_admin()) {
61 wp_enqueue_script('jquery');
62 wp_enqueue_script('carrington-mobile', get_bloginfo('template_directory').'/js/mobile.js', array('jquery'), '1.0');
63}
64
65include_once(CFCT_PATH.'carrington-core/carrington.php');
66
67?>
Note: See TracBrowser for help on using the repository browser.