'') $logo = (get_option('arclite_logo')); else $logo=''; if(get_option('arclite_header')<>'') $header = (get_option('arclite_header')); else $header='default'; if(get_option('arclite_headerimage')<>'') $header1 = (get_option('arclite_headerimage')); else $header1=''; if(get_option('arclite_headerimage2')<>'') $header2 = (get_option('arclite_headerimage2')); else $header2=''; if(get_option('arclite_headercolor')<>'') $header_color = (get_option('arclite_headercolor')); else $header_color='#261c13'; if(get_option('arclite_logoimage')<>'') $logo = (get_option('arclite_logoimage')); else $logo=''; if(get_option('arclite_sidebarpos')<>'') $sidebar = (get_option('arclite_sidebarpos')); else $sidebar='right'; if(get_option('arclite_widgetbg')<>'') $widget_background = (get_option('arclite_widgetbg')); else $widget_background='default'; if(get_option('arclite_contentbg')<>'') $content_background = (get_option('arclite_contentbg')); else $content_background='default'; if(get_option('arclite_indexposts')<>'') $post_preview = (get_option('arclite_indexposts')); else $post_preview='full'; if(get_option('arclite_topnav')<>'') $navigation = (get_option('arclite_topnav')); else $navigation='pages'; if(get_option('arclite_excludenav')<>'') $navigation_exclude = (get_option('arclite_excludenav')); else $navigation_exclude=''; if(get_option('arclite_search')=='no') $search = '0'; else $search='1'; if(get_option('arclite_sidebarcat')=='no') $sidebar_categories = '0'; else $sidebar_categories='1'; delete_option('arclite_imageless'); delete_option('arclite_3col'); delete_option('arclite_jquery'); delete_option('arclite_logo'); delete_option('arclite_header'); delete_option('arclite_headerimage'); delete_option('arclite_headerimage2'); delete_option('arclite_headercolor'); delete_option('arclite_logoimage'); delete_option('arclite_sidebarpos'); delete_option('arclite_widgetbg'); delete_option('arclite_contentbg'); delete_option('arclite_indexposts'); delete_option('arclite_topnav'); delete_option('arclite_excludenav'); delete_option('arclite_search'); delete_option('arclite_sidebarcat'); delete_option('arclite_footer'); delete_option('arclite_css'); update_option( 'arclite' , apply_filters('theme_default_settings', array( 'theme_version' => THEME_VERSION, 'imageless' => $imageless, 'threecol' => $threecol, 'jquery' => $jquery, 'logo' => $logo, 'header' => $header, 'header1' => $header1, 'header2' => $header2, 'header_color' => $header_color, 'sidebar' => $sidebar, 'widget_background' => $widget_background, 'content_background' => $content_background, 'post_preview' => $post_preview, 'navigation' => $navigation, 'navigation_exclude' => $navigation_exclude, 'search' => $search, 'sidebar_categories' => $sidebar_categories, 'footer_content' => $footer_content, 'user_css' => $user_css, 'lightbox' => '1', 'remove_settings' => '0')) ); } function remove_options() { delete_option('arclite'); } function get_arclite_option( $option ) { $get_arclite_options = get_option('arclite'); return $get_arclite_options[$option]; } function print_arclite_option( $option ) { $get_arclite_options = get_option('arclite'); echo $get_arclite_options[$option]; } function get_upload_dir($dir) { $uploadpath = wp_upload_dir(); if ($uploadpath['baseurl']=='') $uploadpath['baseurl'] = get_bloginfo('siteurl').'/wp-content/uploads'; return $uploadpath[$dir]; } function arclite_update_options() { check_admin_referer('theme-settings'); if (!current_user_can('edit_themes')) wp_die(__('You are not authorised to perform this operation.', 'arclite')); $options = get_option('arclite'); if (isset($_POST['imageless'])) $options['imageless'] = 1; else $options['imageless'] = 0; if (isset($_POST['threecol'])) $options['threecol'] = 1; else $options['threecol'] = 0; if (isset($_POST['jquery'])) $options['jquery'] = 1; else $options['jquery'] = 0; if (isset($_POST['lightbox'])) $options['lightbox'] = 1; else $options['lightbox'] = 0; if (isset($_POST['header'])) $options['header'] = $_POST['header']; if (isset($_POST['header_color'])) $options['header_color'] = $_POST['header_color']; if (isset($_POST['sidebar'])) $options['sidebar'] = $_POST['sidebar']; if (isset($_POST['widget_background'])) $options['widget_background'] = $_POST['widget_background']; if (isset($_POST['content_background'])) $options['content_background'] = $_POST['content_background']; if (isset($_POST['post_preview'])) $options['post_preview'] = $_POST['post_preview']; if (isset($_POST['navigation'])) $options['navigation'] = $_POST['navigation']; if (isset($_POST['navigation_exclude'])) $options['navigation_exclude'] = $_POST['navigation_exclude']; if (isset($_POST['search'])) $options['search'] = 1; else $options['search'] = 0; if (isset($_POST['sidebar_categories'])) $options['sidebar_categories'] = 1; else $options['sidebar_categories'] = 0; if (isset($_POST['footer_content'])) $options['footer_content'] = stripslashes($_POST['footer_content']); if (isset($_POST['user_css'])) $options['user_css'] = stripslashes($_POST['user_css']); if (isset($_POST['remove_settings'])) $options['remove_settings'] = 1; else $options['remove_settings'] = 0; if (isset($_POST['remove-logo'])): $options['logo'] = ''; else: if ($_FILES["file-logo"]["type"]): $directory = get_upload_dir('basedir').'/'; move_uploaded_file($_FILES["file-logo"]["tmp_name"], $directory . $_FILES["file-logo"]["name"]); $options['logo'] = get_upload_dir('baseurl'). "/". $_FILES["file-logo"]["name"]; endif; endif; if (isset($_POST['remove-header1'])): $options['header1'] = ''; else: if ($_FILES["file-header1"]["type"]): $directory = get_upload_dir('basedir').'/'; move_uploaded_file($_FILES["file-header1"]["tmp_name"], $directory . $_FILES["file-header1"]["name"]); $options['header1'] = get_upload_dir('baseurl'). "/". $_FILES["file-header1"]["name"]; endif; endif; if (isset($_POST['remove-header2'])): $options['header2'] = ''; else: if ($_FILES["file-header2"]["type"]): $directory = get_upload_dir('basedir').'/'; move_uploaded_file($_FILES["file-header2"]["tmp_name"], $directory . $_FILES["file-header2"]["name"]); $options['header2'] = get_upload_dir('baseurl'). "/". $_FILES["file-header2"]["name"]; endif; endif; update_option('arclite', $options); wp_redirect(admin_url('themes.php?page=theme-settings&updated=true')); } function arclite_theme_settings() { if (current_user_can('edit_themes')): ?>

' . __('View site','arclite') . '' ); ?>

/>

/>



Change write permissions with CHMOD 755 or 777','arclite'), $uploadpath['baseurl']); ?>

/>

/>








Change write permissions with CHMOD 755 or 777','arclite'), $uploadpath['baseurl']); ?>









/>

/>

/>

" />


Arclite is a free theme developed by digitalnature.
You can support this project by donating.
'.PHP_EOL; $arclite_options = get_option('arclite'); if($arclite_options['imageless']): echo '@import "'.get_bloginfo('template_url').'/style-imageless.css";'.PHP_EOL; if($arclite_options['sidebar']=='left'): echo '@import "'.get_bloginfo('template_url').'/options/leftsidebar.css";'.PHP_EOL;endif; else: echo '@import "'.get_bloginfo('stylesheet_url').'";'.PHP_EOL; echo '@import "'.get_bloginfo('template_url').'/options/side-'.$arclite_options['widget_background'].'.css";'.PHP_EOL; echo '@import "'.get_bloginfo('template_url').'/options/content-'.$arclite_options['content_background'].'.css";'.PHP_EOL; if($arclite_options['sidebar']=='left') echo '@import "'.get_bloginfo('template_url').'/options/leftsidebar.css";'.PHP_EOL; switch($arclite_options['header']): case 'user-image': if($arclite_options('header1')<>'') echo '#header{ background: transparent url("'.$arclite_options['header1'].'") no-repeat center top; }'.PHP_EOL; if($arclite_options('header2')<>'') echo '#header-wrap{ background: transparent url("'.$arclite_options['header2'].'") repeat center top; }'.PHP_EOL; break; case 'user-color': echo '#header, #header-wrap{ background-color: '.$arclite_options['header_color'].'; }'.PHP_EOL;break; default: echo '@import "'.get_bloginfo('template_url').'/options/header-'.$arclite_options['header'].'.css";'.PHP_EOL; endswitch; endif; if ($arclite_options['user_css']): echo $arclite_options['user_css'].PHP_EOL;endif; echo ''.PHP_EOL; ?> $value): if ( sanitize_title($value['name']) == $index): $index = $key; break; endif; endforeach; endif; $sidebars_widgets = wp_get_sidebars_widgets(); if (empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index])) return false; else return true; } // register sidebars if (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Default sidebar', 'id' => 'sidebar-1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); register_sidebar(array( 'name' => 'Footer', 'id' => 'sidebar-2', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ' )); register_sidebar(array( 'name' => 'Secondary sidebar', 'id' => 'sidebar-3', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ' )); } // list pings function list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • comment_type == 'pingback' || $comment->comment_type == 'trackback') { ?>
  • comment_type == 'trackback') _e("Trackback:","arclite"); else _e("Pingback:","arclite"); ?>

  • id="comment-">

    '.get_comment_author().''; else: $authorlink=''.get_comment_author().''; endif; printf(__('%s by %s on %s', 'arclite'), '#'.++$commentcount.'', $authorlink, get_comment_time(get_option('date_format')).' - '.get_comment_time(get_option('time_format'))); ?>

    'comment-reply', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => ''.__('Reply','arclite').''.$my_comment_count))); } ?>

    comment_approved == '0') : ?>

    is added automatically } } ?>