Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hello World

  • Loading branch information...
commit c2dd3fa521550e44c1bc178ac4b593f52cc668c7 0 parents
@Mamaduka Mamaduka authored
BIN  favico.ico
Binary file not shown
13 footer.php
@@ -0,0 +1,13 @@
+ </div>
+ <!-- /Content of the site -->
+
+ </div>
+ <!-- /Inner of the site -->
+
+ </div>
+ <!-- /Wrapper of the site -->
+ <?php wp_footer(); ?>
+ <?php echo ($strTmp = get_option('free01_google_analytics', '')) ? $strTmp : '' ?>
+ </body>
+</html>
+
143 functions.php
@@ -0,0 +1,143 @@
+<?php
+/***** Theme setup *****/
+
+load_theme_textdomain('free01', get_template_directory() . '/languages');
+add_theme_support( 'post-thumbnails' );
+add_theme_support( 'automatic-feed-links' );
+
+/**
+ * Add Home page to the menu handling
+ */
+function free01_home_page_menu_args( $args ) {
+ $args['show_home'] = true;
+ return $args;
+}
+add_filter( 'wp_page_menu_args', 'free01_home_page_menu_args' );
+
+function free01_remove_submenus() {
+ global $submenu;
+ remove_submenu_page( 'themes.php', 'widgets.php' );
+}
+add_action('admin_menu', 'free01_remove_submenus');
+
+function free01_setup() {
+
+ /***** Navigation & Menu *****/
+ $menus = array(
+ __('Main menu', 'free01') => __('Main menu', 'free01'),
+ );
+ foreach ( $menus as $key=>$value ) {
+ if ( !is_nav_menu( $key ) ) wp_update_nav_menu_item( wp_create_nav_menu( $key ), 1 );
+ }
+
+ if ( function_exists( 'register_nav_menus' ) ) {
+ register_nav_menus($menus);
+ }
+
+ remove_action('wp_head', '_admin_bar_bump_cb');
+}
+add_action( 'init', 'free01_setup' );
+
+/**
+ * Add items to the admin bar
+ */
+function free01_admin_bar() {
+ global $wp_admin_bar;
+ if ( !is_super_admin() || !is_admin_bar_showing() )
+ return;
+
+ $wp_admin_bar->add_menu( array( 'id' => 'wpshower_admin', 'title' => __( 'Expositio Theme', 'free01' ), 'href' => FALSE ) );
+ $wp_admin_bar->add_menu( array( 'parent' => 'wpshower_admin', 'title' => __( 'Support Forum', 'free01' ), 'href' => 'http://wpshower.com/forums' ) );
+ $wp_admin_bar->add_menu( array( 'parent' => 'wpshower_admin', 'title' => __( 'Theme Options', 'free01' ), 'href' => site_url().'/wp-admin/themes.php?page=theme_options.php' ) );
+
+
+}
+add_action( 'admin_bar_menu', 'free01_admin_bar', 1000 );
+
+/**
+ *
+ */
+function free01_get_comments_link($post_id ) {
+
+ if (!$post_id) return null;
+ $strResult = '';
+ $zero = __( 'No Comments', 'free01' );
+ $one = __( '1 Comment', 'free01' );
+ $more = __( '%d Comments', 'free01' );
+
+ $obj_count_comments = wp_count_comments( $post_id );
+ $numTmp = $obj_count_comments->approved;
+ $strResult .= '<a href="'.get_permalink($post_id) . '#respond'.'" title="'.__('Post comment for this entry', 'free01').'">';
+ if ($numTmp > 1) $strResult .= sprintf($more, $numTmp);
+ else if ($numTmp == 1) $strResult .= $one;
+ else $strResult .= $zero;
+ $strResult .= '</a>';
+ return $strResult;
+}
+
+/**
+ *
+ */
+function free01_get_intro($strText, $numTmp = 200, $strMore='') {
+ $strTmp = $strText;
+ $arrTmp = preg_split('/<!--more-->/', $strTmp);
+ $strIntro = strip_tags($arrTmp[0]);
+ if ($numTmp == 0)
+ {
+ return $strIntro;
+ }
+ else if (strlen($strIntro) > $numTmp)
+ {
+ $strIntro = @strpos($strIntro, ' ', $numTmp) ? substr($strIntro, 0, strpos($strIntro, ' ', $numTmp)) : $strIntro;
+ return $strIntro.$strMore;
+ }
+ else
+ {
+ return $strIntro;
+ }
+ }
+
+class extended_walker extends Walker_Nav_Menu{
+ function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
+ if ( !$element )
+ return;
+
+ $id_field = $this->db_fields['id'];
+
+ if ( is_array( $args[0] ) )
+ $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
+
+ if( ! empty( $children_elements[$element->$id_field] ) )
+ array_push($element->classes,'parent');
+
+ $cb_args = array_merge( array(&$output, $element, $depth), $args);
+
+ call_user_func_array(array(&$this, 'start_el'), $cb_args);
+
+ $id = $element->$id_field;
+
+ if ( ($max_depth == 0 || $max_depth > $depth+1 ) && isset( $children_elements[$id]) ) {
+
+ foreach( $children_elements[ $id ] as $child ){
+
+ if ( !isset($newlevel) ) {
+ $newlevel = true;
+ $cb_args = array_merge( array(&$output, $depth), $args);
+ call_user_func_array(array(&$this, 'start_lvl'), $cb_args);
+ }
+ $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output );
+ }
+ unset( $children_elements[ $id ] );
+ }
+
+ if ( isset($newlevel) && $newlevel ){
+ $cb_args = array_merge( array(&$output, $depth), $args);
+ call_user_func_array(array(&$this, 'end_lvl'), $cb_args);
+ }
+
+ $cb_args = array_merge( array(&$output, $element, $depth), $args);
+ call_user_func_array(array(&$this, 'end_el'), $cb_args);
+ }
+}
+
+require_once (TEMPLATEPATH . '/includes/theme_options.php');
94 header.php
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php bloginfo('text_direction'); ?>" xml:lang="<?php bloginfo('language'); ?>">
+ <head>
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+ <title>
+ <?php
+ global $page, $paged;
+ wp_title( '|', true, 'right' );
+ bloginfo( 'name' );
+ $site_description = get_bloginfo( 'description', 'display' );
+ if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description";
+ if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) );
+ ?>
+ </title>
+ <link rel="profile" href="http://gmpg.org/xfn/11" />
+ <?php
+ if ( get_option('free01_favicon_url') )
+ echo '<link rel="shortcut icon" href="' . get_option('free01_favicon_url') . '" type="image/x-icon" />';
+ else
+ echo '<link rel="shortcut icon" type="image/ico" href="'.get_bloginfo( 'template_url' ).'/favico.ico" />';
+ ?>
+
+ <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="all" />
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
+ <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>"/>
+ <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
+
+ <?php
+ wp_enqueue_script( 'jquery' );
+
+ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
+ wp_head();
+ ?>
+ <?php
+ $numTmpFontSize = (int)(get_option('free01_font_size', 14));
+ if ($numTmpFontSize < 12) $numTmpFontSize = 12;
+
+ $strFontFamily = get_option('free01_font_family', 'Helvetica');
+ if ($strFontFamily == 'Droid Sans Mono')
+ {
+ echo '<link href="http://fonts.googleapis.com/css?family=Droid+Sans+Mono&amp;v1" rel="stylesheet" type="text/css" />';
+ $strFontFamily = '"Droid Sans Mono", Sans-Serif';
+ }
+ if ($strFontFamily == 'Arvo')
+ {
+ echo '<link href="http://fonts.googleapis.com/css?family=Arvo&amp;v1" rel="stylesheet" type="text/css" />';
+ $strFontFamily = '"Arvo", Sans-Serif';
+ }
+ if ($strFontFamily == 'Bentham')
+ {
+ echo '<link href="http://fonts.googleapis.com/css?family=Bentham&amp;v1" rel="stylesheet" type="text/css" />';
+ $strFontFamily = '"Bentham", Sans-Serif';
+ }
+ if ($strFontFamily == 'Helvetica')
+ {
+ $strFontFamily = 'Helvetica, Arial, Sans-Serif';
+ }
+ if ($strFontFamily == 'Georgia')
+ {
+ $strFontFamily = 'Georgia, Times, Times New Roman, Serif';
+ }
+ if ($strFontFamily == 'Arial')
+ {
+ $strFontFamily = 'Arial, Sans-Serif';
+ }
+
+ $strTextColor = get_option('free01_text_color', '#000');
+ $strLinkColor = get_option('free01_link_color', '#000');
+ $strBgColor = get_option('free01_bg_color', '#fff');
+ ?>
+ <style media="all" type="text/css">
+ body, h1, h2, h3, h4, h5 { font-size: <?php echo $numTmpFontSize.'px' ?>;}
+ body { font-family: <?php echo $strFontFamily ?>;}
+ body { color: <?php echo $strTextColor ?>;}
+ a, a:hover { color: <?php echo $strLinkColor ?>;}
+ body, #wps-sidebar { background-color: <?php echo $strBgColor ?>;}
+
+ </style>
+ </head>
+ <body <?php body_class(); ?>>
+ <!--[if gt IE 8]> <div id="wps-site-wrapper" class="wpscls-ie wpscls-ie9"> <![endif]-->
+ <!--[if IE 8]> <div id="wps-site-wrapper" class="wpscls-ie wpscls-ie8"> <![endif]-->
+ <!--[if IE 7]> <div id="wps-site-wrapper" class="wpscls-ie wpscls-ie7"> <![endif]-->
+ <!--[if IE 6]> <div id="wps-site-wrapper" class="wpscls-ie wpscls-ie6"> <![endif]-->
+ <!--[if !IE]><!--> <div id="wps-site-wrapper"> <!--<![endif]-->
+
+ <!-- Inner of the site -->
+ <div id="wps-site-inner">
+
+ <?php get_sidebar(); ?>
+
+ <!-- Content of the site -->
+ <div id="wps-content">
+
14 includes/theme_options.css
@@ -0,0 +1,14 @@
+.free01 .inside h3 {background: none; border-radius: 0; -moz-border-radius: 0; -webkit-border-radius: 0; cursor: default; border-top: 1px solid #DFDFDF; padding-top: 15px !important; margin-top: 10px !important;}
+.free01 .inside h3.first {border-top: none; margin-top: 0 !important;}
+.free01 .hndle {cursor: default;}
+.free01 .form-table td input, .free01 .form-table td .description {vertical-align: middle;}
+.free01 .form-table td .description {margin-left: 5px;}
+.free01_options {padding: 40px 20px;}
+.getconnected-item {margin-bottom: 5px;}
+.getconnected-options {display: none;}
+.getconnected-title {font-size: 13px; display: block; margin-bottom: 5px;}
+
+#mColorPickerImg { background-image: url("../images/colorpicker.png") !important;}
+#mColorPickerImgGray { background-image: url("../images/gray.png") !important;}
+#colorpicker_text_color, #colorpicker_link_color, #colorpicker_bg_color { display: none;}
+#colorpicker_text_color_link, #colorpicker_link_color_link, #colorpicker_bg_color_link { margin-left: 8px;}
12 includes/theme_options.js
@@ -0,0 +1,12 @@
+jQuery(document).ready(function() {
+ jQuery('.getconnected-options').hide();
+ jQuery('.wrap').delegate('.getconnected-title', 'click',
+ function(){
+ jQuery(this).next().slideToggle(100);
+ }
+ );
+
+ jQuery('.postbox').children('h3, .handlediv').click(function(){
+ jQuery(this).siblings('.inside').toggle();
+ });
+});
1  includes/theme_options.php
@@ -0,0 +1 @@
+<?php
5 index.php
@@ -0,0 +1,5 @@
+<?php get_header(); ?>
+
+ <?php locate_template( array( 'tmpl_single.php'), true, false ) ?>
+
+<?php get_footer(); ?>
5 page.php
@@ -0,0 +1,5 @@
+<?php get_header(); ?>
+
+ <?php locate_template( array( 'tmpl_single.php'), true, false ) ?>
+
+<?php get_footer(); ?>
BIN  screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 sidebar.php
@@ -0,0 +1,73 @@
+ <!-- Left site bar -->
+ <div id="wps-sidebar">
+
+ <h1><a href="<?php echo site_url('') ?>" title="<?php echo __('Home page', 'free01') ?>"><?php echo bloginfo( 'name' ); ?> </a> </h1>
+
+ <!-- Main menu -->
+ <div class="wpscls-menu-main">
+ <?php wp_nav_menu(array('menu' => __('Main menu', 'free01'), 'theme_location' => __('Main menu', 'free01'), 'depth' => 0, 'walker' => new extended_walker)); ?>
+ <div class="clr"></div>
+ </div>
+ <!-- /Main menu -->
+
+ <!-- Cate post -->
+ <div class="wpscls-cate-post">
+ <?php
+ $arrArgs = array(
+ 'type' => 'post',
+ 'child_of' => 0,
+ 'orderby' => 'name',
+ 'order' => 'ASC',
+ 'taxonomy' => 'category',
+ 'pad_counts' => false
+ );
+
+ $rows_cate = get_categories($arrArgs);
+ $strResult = '';
+ foreach($rows_cate as $numKey => $row_cate) {
+ $strResult .= '<h4>'.$row_cate->cat_name.'</h4>';
+
+ $arrArgs = array(
+ 'cat' => $row_cate->cat_ID,
+ 'posts_per_page' => 0,
+ 'post_type' => '',
+ 'orderby' => 'menu_order',
+ 'order' => 'ASC'
+ );
+
+ $the_query = new WP_Query( $arrArgs );
+ $rows_tmp = $the_query->posts;
+
+ if (count($rows_tmp) > 0)
+ {
+ $strResult .= '<ul class="wpscls-cate-post-list">';
+ foreach ($rows_tmp as $numKey01 => $row_tmp)
+ {
+ $strClass = 'wps-item' ;
+ $strClass .= (is_singular() && $row_tmp->ID == get_the_ID()) ? ' current' : '' ;
+ $strResult .= '<li>'.'<a href="'.get_permalink( $row_tmp->ID ).'" title="'.$row_tmp->post_title.'" class="'.$strClass.'">'.$row_tmp->post_title.'</a>'.'</li>';
+ }
+ $strResult .= '</ul>';
+ }
+ }
+ echo $strResult;
+ ?>
+ <div class="clr"></div>
+ </div>
+ <!-- /Cate post -->
+
+ <!-- Copyright -->
+ <div class="wpscls-copyright">
+ <?php
+ $numStartYear = 2011;
+ $strYear = date('Y') > $numStartYear ? $numStartYear.' - '.date('Y') : $numStartYear;
+ ?>
+ <?php echo sprintf(__('&copy; %s'), $strYear) ?>
+ <br />
+ <?php echo sprintf(__('Theme by %s'), '<a class="wpscls-logowps" href="'.'http://wpshower.com/'.'"> WPShower </a>') ?>
+ </div>
+ <!-- /Copyright -->
+
+ <div class="clr"></div>
+ </div>
+ <!-- /Left site bar -->
1  single.php
@@ -0,0 +1 @@
+<?php get_header(); ?>
99 style.css
@@ -0,0 +1,99 @@
+/*
+Theme Name: Expositio Theme
+Author URI: http://www.wpshower.com
+Description: Expositio is a free portfolio-type WordPress theme for photographers and designers. Expositio theme allows you in several clicks to showcase your works to the whole world.
+Author: Wpshower
+Version: 1.0.0
+License: GNU/GPL Version 2 or later. http://www.gnu.org/licenses/gpl.html
+Copyright: (c) 2011 Wpshower
+*/
+
+@charset "UTF-8";
+/* CSS Document */
+
+/* Global reset of paddings and margins for all HTML elements */
+* { margin:0; padding: 0;}
+/* Correction: margin/padding reset caused too small select boxes. */
+option { padding-left: 0 0.4em; }
+select { padding: 1px; }
+/* Global fix of the Italics bugs in IE 5.x and IE 6 */
+* html body * { overflow:visible; }
+* html iframe, * html frame { overflow:auto; }
+* html frameset { overflow:hidden; }
+html { height: 100%; }
+/* default for body */
+body { font-size:12px; color: #000;font-family: Arial, Verdana, Tahoma, Geneva, sans-serif; background: white; text-align: left; }
+
+/* Lists */
+ul li { margin:0; padding:0;}
+ul.cls-menu li, ul.menu li { list-style:none;}
+/* Images */
+img, img a, a, a img { border: none; outline: none;}
+/* Border background */
+.Frame, .Ft, .Ftl, .Ftr, .Fb, .Fbl, .Fbr, .Fc { height:1%;}
+.Frame { background-repeat:repeat-y; background-position:center; }
+.Frame * { background-position:center; }
+.Ft { background-position:top; background-repeat:no-repeat;}
+.Fb { background-position:bottom; background-repeat:no-repeat}
+.Ftl { background-position:top left; background-repeat:no-repeat;}
+.Ftr { background-position:top right; background-repeat:no-repeat;}
+.Fbl { background-position:bottom left; background-repeat:no-repeat;}
+.Fbr { background-position:bottom right; background-repeat:no-repeat;}
+
+/* Common styles */
+/* default for link */
+a { color:#000; background:transparent; text-decoration:none; }
+a:focus, a:hover { color:#000; text-decoration: underline;}
+.f-left { float: left;}
+.f-right { float: right;}
+.clr { clear: both; background: url('./_css/blank.gif') repeat-x; height: 0px;}
+.notext-left { text-indent: -9999px;}
+.notext-right { text-indent: 9999px;}
+
+/* Website styles lie beneath */
+body { background: white; color: #000; font-size: 13px; margin-top: 0; font-family: "Helvetica Neue", Helvetica, Arial;}
+ #wps-site-wrapper {}
+ #wps-site-inner { }
+
+ h1 { font-size: 13px; font-weight: bold; margin-bottom: 20px; line-height: 20px;}
+ h2 { font-size: 13px; font-weight: bold; margin-bottom: 20px; line-height: 20px;}
+ h4 { font-size: 13px; font-weight: bold; line-height: 20px;}
+ h5 { font-size: 13px;}
+
+ #wps-sidebar { position: fixed; top: 0px; left: 40px; width: 220px; padding: 60px 14px 6px 14px; z-index: 10; background: white; line-height: 20px; height: 100%; }
+ #wps-sidebar h1 { padding: 0 6px;}
+ #wps-sidebar h2 { padding: 0 6px;}
+ #wps-sidebar h4 { padding: 0 6px;}
+
+ .wpscls-menu-main {margin-bottom: 20px;}
+ .wpscls-menu-main li { list-style: none;}
+ .wpscls-menu-main li a { padding: 1px 6px; display: block;}
+ .wpscls-menu-main li a:hover {}
+ .wpscls-menu-main li.current-menu-item a {font-weight: bold;}
+
+ .wpscls-cate-post {margin-bottom: 20px;}
+ .wpscls-cate-post ul { margin-bottom: 20px;}
+ .wpscls-cate-post ul li { list-style: none;}
+ .wpscls-cate-post ul li a { padding: 1px 6px; display: block;}
+ .wpscls-cate-post ul li a:hover { }
+ .wpscls-cate-post ul li a.current { font-weight: bold;}
+
+ table.cls-table-gallery { margin: 60px 0 0 300px;}
+ table.wpscls-with-content { }
+ table.cls-table-gallery td { vertical-align: top; padding-right: 28px;}
+ table.cls-table-gallery td.wpscls-post-content { }
+ table.cls-table-gallery td.wpscls-post-content h2 { width: 450px; padding: 0 3px; margin-top: -2px;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content { width: 450px; padding: 0 3px 16px 3px; line-height: 20px;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content p { margin-bottom: 20px; }
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content h1 { padding: 21px 0 21px 0; margin-bottom: 0; font-size: 21px; line-height: 26px;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content h2 { padding: 18px 0 18px 0; margin-bottom: 0; font-size: 18px; line-height: 23px;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content h3 { padding: 16px 0 16px 0; margin-bottom: 0; font-size: 16px; line-height: 21px;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content img { margin: 6px 0;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content img.alignright { margin-left: 8px; float: right;}
+ table.cls-table-gallery td.wpscls-post-content .wpscls-field-content img.alignleft { margin-right: 8px; float: left;}
+ table.cls-table-gallery td img {}
+ table.cls-table-gallery td h5 { font-weight: normal; line-height: 20px; margin: 10px 0 4px 0;}
+
+ .wpscls-copyright {padding: 0px 6px;}
+ .wpscls-copyright a {}
+ .wpscls-copyright a:hover {}
1  tmpl_single.php
@@ -0,0 +1 @@
+ <?php if ( have_posts() ) while ( have_posts() ) {
Please sign in to comment.
Something went wrong with that request. Please try again.