Esempio n. 1
0
 function axiom_get_logo_icon($slug)
 {
     global $AXIOM_GLOBALS;
     $skin = axiom_esc($AXIOM_GLOBALS['theme_skin']);
     if (($logo_icon = axiom_get_custom_option($slug)) == '' && file_exists(axiom_get_file_dir('skins/' . $skin . '/images/' . $slug . '.png'))) {
         $logo_icon = axiom_get_file_url('skins/' . $skin . '/images/' . $slug . '.png');
     }
     return $logo_icon;
 }
Esempio n. 2
0
<?php

/**
 * The Header for our theme.
 */
global $AXIOM_GLOBALS;
// Theme init - don't remove next row! Load custom options
axiom_core_init_theme();
$theme_skin = axiom_esc(axiom_get_custom_option('theme_skin'));
$blog_style = axiom_get_custom_option(is_singular() && !axiom_get_global('blog_streampage') ? 'single_style' : 'blog_style');
$body_style = axiom_get_custom_option('body_style');
$logo_style = axiom_get_custom_option('top_panel_style');
$article_style = axiom_get_custom_option('article_style');
$top_panel_style = axiom_get_custom_option('top_panel_style');
$top_panel_opacity = axiom_get_custom_option('top_panel_opacity');
$top_panel_position = axiom_get_custom_option('top_panel_position');
$video_bg_show = axiom_get_custom_option('show_video_bg') == 'yes' && (axiom_get_custom_option('video_bg_youtube_code') != '' || axiom_get_custom_option('video_bg_url') != '');
?>
<!DOCTYPE html>
<html <?php 
language_attributes();
?>
>
<head>
	<meta charset="<?php 
bloginfo('charset');
?>
" />
	<?php 
if (axiom_get_theme_option('responsive_layouts') == 'yes') {
    ?>
Esempio n. 3
0
 function load_po($suffix = '')
 {
     $rez = array('data' => '', 'error' => '');
     do {
         // Upload file
         if ($_POST['po_src' . trim($suffix)] == 'upload_') {
             $rez['data'] = isset($_FILES['po_file' . $suffix]['tmp_name']) && file_exists($_FILES['po_file' . $suffix]['tmp_name']) ? axiom_fga($_FILES['po_file' . $suffix]['tmp_name']) : '';
             if (empty($rez['data'])) {
                 $rez['error'] = sprintf(__('Error uploading or Empty .po-file: %s', 'axiom'), $_FILES['po_file' . $suffix]['tmp_name']);
                 break;
             }
             // or get content from textarea
         } else {
             if (!empty($_POST['po_text' . $suffix])) {
                 if (!empty($_POST['po_text' . $suffix])) {
                     $rez['data'] = explode("\n", stripslashes($_POST['po_text' . $suffix]));
                 } else {
                     $rez['error'] = __('Empty textarea with .po-file content!', 'axiom');
                     break;
                 }
                 // or load file from 'languages' folder
             } else {
                 if (substr($_POST['po_src' . $suffix], 0, 7) == 'parent_' || substr($_POST['po_src' . $suffix], 0, 6) == 'child_') {
                     $dir = substr($_POST['po_src' . $suffix], 0, 7) == 'parent_' ? $this->tpl_dir : $this->css_dir;
                     $name = axiom_esc(substr($_POST['po_src' . $suffix], strpos($_POST['po_src' . $suffix], '_') + 1));
                     $rez['data'] = file_exists($dir . '/' . $name . '.po') ? axiom_fga($dir . '/' . $name . '.po') : '';
                     if (empty($rez['data'])) {
                         $rez['error'] = sprintf(__('Error loading or Empty .po-file: %s', 'axiom'), $dir . '/' . $name . '.po');
                         break;
                     }
                     // 'Edit' selected, but textarea is empty
                 } else {
                     $rez['error'] = __('Empty textarea with .po-file content!', 'axiom');
                 }
             }
         }
     } while (false);
     return $rez;
 }