XPressME Integration Kit

Trac

Changeset 217


Ignore:
Timestamp:
May 20, 2009, 12:41:15 PM (15 years ago)
Author:
toemon
Message:

WordPress? MU用の ホームテーマを修正

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_mu_home/home.php

    r213 r217  
    11<?php get_header(); ?> 
    22 
    3 <div id="content" class="widecolumn"> 
    4                                  
    5 <h2>WordPress &micro;</h2> 
    6 <p>This is a <a href="http://mu.wordpress.org/">WordPress Mu</a> powered site.</p> 
    7 <p>You can: <ul><?php wp_register(); ?><li> <?php wp_loginout(); ?></li><li> <a href="wp-signup.php">Create a new blog</a></li><li> Edit this file at <code>wp-content/themes/home/home.php</code> with your favourite text editor and customize this screen.</li></ul></p> 
    8 <h3>The Latest News</h3> 
    9 <ul> 
    10 <strong>Site News</strong> 
    11 <?php  
    12 query_posts('showposts=7'); 
    13 if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?> 
    14 <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title();?> </a></li> 
    15 <?php endwhile; ?><?php endif; ?> 
    16 </ul> 
    17 <?php 
    18 $blogs = get_last_updated(); 
    19 if( is_array( $blogs ) ) { 
    20         ?> 
     3<div id="content" class="widecolumn">                    
     4        <h3><?php _e('Site News', 'xpress'); ?></h3> 
    215        <ul> 
    22         <strong>Updated Blogs</strong> 
    23         <?php foreach( $blogs as $details ) { 
    24                 ?><li><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a></li><?php 
     6                <?php  
     7                query_posts('showposts=7'); 
     8                if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?> 
     9                <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title();?> </a></li> 
     10                <?php endwhile; ?><?php endif; ?> 
     11        </ul> 
     12        <br />   
     13        <h3><?php _e('Blogs List', 'xpress'); ?></h3> 
     14        <?php 
     15        $blog_list = get_blog_list( 0, 'all' ); 
     16        echo "<ul>\n"; 
     17        foreach ($blog_list AS $blog) { 
     18                $url =  'http://' .$blog['domain'] .$blog['path']; 
     19                $blog_name = get_blog_option( $blog['blog_id'], 'blogname' ); 
     20                $post_count = $blog['postcount']; 
     21                 
     22                echo  "<li><a href=\" $url \"> $blog_name </a>  (" . __('post count','xpress') . ":$post_count) </li>"; 
     23        } 
     24        echo "</ul>\n"; 
     25        ?>  
     26        <br />   
     27        <h3><?php _e('Updated Blogs', 'xpress'); ?></h3> 
     28        <?php 
     29        $blogs = get_last_updated(); 
     30        if( is_array( $blogs ) ) { 
     31                ?> 
     32                <ul> 
     33                <?php foreach( $blogs as $details ) { 
     34                        ?><li><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a></li><?php 
     35                } 
     36                ?> 
     37                </ul> 
     38                <?php 
    2539        } 
    2640        ?> 
    27         </ul> 
    28         <?php 
    29 } 
    30 ?> 
     41        <br />   
     42        <?php    
     43                $current_uid = get_current_user_id(); 
     44                if (!empty($current_uid)) { 
     45                        $user_info = get_userdata($current_uid); 
     46                        $display_name = $user_info->display_name; 
     47                        echo '<h3>'; 
     48                        printf(__('Howdy %s', 'xpress'),$display_name); 
     49                        echo "</h3>\n"; 
     50                        echo "<ul>\n"; 
     51                 
     52                        $user_blogs = get_blogs_of_user($current_uid); 
     53                        if( is_array($user_blogs) ) { 
     54                                echo '<li>' . __('Your Blogs list','xpress') ; 
     55                                        echo "<ul>\n"; 
     56                                        foreach( $user_blogs as $blog ) { 
     57                                                $url =  'http://' .$blog->domain .$blog->path; 
     58                                                $blog_name = $blog->blogname; 
     59                                                echo  "<li><a href=\" $url \"> $blog_name </a></li>"; 
     60                                        } 
     61                                        echo "</ul>\n";                  
     62                                echo "</li>\n"; 
     63                                wp_register(); 
     64                        } 
     65                        echo '<li> <a href="wp-signup.php">' . __('Create a new blog','xpress') .  "</a></li>\n"; 
     66                        echo "</ul>\n";                  
     67                } 
     68 
     69        ?> 
     70 
    3171</div> 
    3272 
  • trunk/wp-content/themes/xpress_mu_home/ja.po

    r213 r217  
    1818"Report-Msgid-Bugs-To: wp-polyglots@lists.automattic.com\n" 
    1919"POT-Creation-Date: 2008-08-15 21:16+0900\n" 
    20 "PO-Revision-Date: 2009-04-11 14:12+0900\n" 
     20"PO-Revision-Date: 2009-05-20 12:39+0900\n" 
    2121"Last-Translator: toemon <toychee@toemon.com>\n" 
    2222"Language-Team: toemon <info@toemon.com>\n" 
     
    2828"X-Poedit-SourceCharset: utf-8\n" 
    2929"X-Poedit-KeywordsList: __;_e;_c\n" 
    30 "X-Poedit-Basepath: C:\\XPressME_Ver2_SVN\\trunk\\wp-content\\themes\\xpress_default\n" 
     30"X-Poedit-Basepath: C:\\XPressME_Ver2_SVN\\trunk\\wp-content\\themes\\xpress_mu_home\n" 
    3131"Plural-Forms: nplurals=1; plural=0;\n" 
    3232"X-Poedit-SearchPath-0: .\n" 
     
    341341msgid "Post New" 
    342342msgstr "新規投稿" 
     343 
     344#: home.php:4 
     345msgid "Site News" 
     346msgstr "サイトニュース" 
     347 
     348#: home.php:13 
     349msgid "Blogs List" 
     350msgstr "ブログリスト" 
     351 
     352#: home.php:22 
     353msgid "post count" 
     354msgstr "投稿数" 
     355 
     356#: home.php:27 
     357msgid "Updated Blogs" 
     358msgstr "最近更新があったブログ" 
     359 
     360#: home.php:48 
     361#, php-format 
     362msgid "Howdy %s" 
     363msgstr "こんにちは %s さん" 
     364 
     365#: home.php:54 
     366msgid "Your Blogs list" 
     367msgstr "あなたのブログリスト" 
     368 
     369#: home.php:65 
     370msgid "Create a new blog" 
     371msgstr "新しいブログを作成する" 
    343372 
    344373#: image.php:13 
     
    398427#: index.php:28 
    399428#: single.php:23 
    400 #: blocks/recent_posts_content_block_theme.php:111 
     429#: blocks/recent_posts_content_block_theme.php:113 
    401430#, php-format 
    402431msgid "Permanent Link to %s" 
     
    405434#: index.php:40 
    406435#: single.php:38 
    407 #: blocks/recent_posts_content_block_theme.php:133 
     436#: blocks/recent_posts_content_block_theme.php:125 
    408437#, php-format 
    409438msgid "Views :%d" 
     
    412441#: index.php:43 
    413442#: single.php:41 
    414 #: blocks/recent_posts_content_block_theme.php:136 
     443#: blocks/recent_posts_content_block_theme.php:128 
    415444#, php-format 
    416445msgid "Posted in %s" 
     
    419448#: index.php:45 
    420449#: single.php:43 
    421 #: blocks/recent_posts_content_block_theme.php:138 
     450#: blocks/recent_posts_content_block_theme.php:130 
    422451msgid "Edit" 
    423452msgstr "編集" 
     
    425454#: index.php:46 
    426455#: single.php:44 
    427 #: blocks/recent_posts_content_block_theme.php:139 
     456#: blocks/recent_posts_content_block_theme.php:131 
    428457msgid "No Comments &#187;" 
    429458msgstr "コメントはまだありません &#187;" 
     
    431460#: index.php:46 
    432461#: single.php:44 
    433 #: blocks/recent_posts_content_block_theme.php:139 
     462#: blocks/recent_posts_content_block_theme.php:131 
    434463msgid "1 Comment &#187;" 
    435464msgstr "1 件のコメント &#187;" 
     
    437466#: index.php:46 
    438467#: single.php:44 
    439 #: blocks/recent_posts_content_block_theme.php:139 
     468#: blocks/recent_posts_content_block_theme.php:131 
    440469msgid "% Comments &#187;" 
    441470msgstr "% 件のコメント &#187;" 
     
    443472#: index.php:46 
    444473#: single.php:44 
    445 #: blocks/recent_posts_content_block_theme.php:139 
     474#: blocks/recent_posts_content_block_theme.php:131 
    446475msgid "Comments Closed" 
    447476msgstr "コメントは受け付けていません。" 
     
    592621msgid "All Authors" 
    593622msgstr "全ての投稿者" 
    594  
    595 #: blocks/calender_block_theme.php:71 
    596 msgid "Calendar" 
    597 msgstr "カレンダー" 
    598  
    599 #: blocks/calender_block_theme.php:72 
    600 #, php-format 
    601 msgid "%1$s %2$s|Used as a calendar caption" 
    602 msgstr "%2$s 年 %1$s|カレンダーのキャプションに使われます" 
    603  
    604 #: blocks/calender_block_theme.php:104 
    605 #: blocks/calender_block_theme.php:114 
    606 #, php-format 
    607 msgid "View posts for %1$s %2$s" 
    608 msgstr "%2$s 年 %1$s の投稿を表示" 
    609623 
    610624#: blocks/enhanced_block_theme.php:11 
     
    661675 
    662676#: blocks/popular_posts_block_theme.php:135 
    663 #: blocks/recent_posts_content_block_theme.php:100 
     677#: blocks/recent_posts_content_block_theme.php:102 
    664678#: blocks/recent_posts_list_block_theme.php:93 
    665679msgid "Comments (0)" 
     
    667681 
    668682#: blocks/popular_posts_block_theme.php:135 
    669 #: blocks/recent_posts_content_block_theme.php:100 
     683#: blocks/recent_posts_content_block_theme.php:102 
    670684#: blocks/recent_posts_list_block_theme.php:93 
    671685msgid "Comments (1)" 
     
    673687 
    674688#: blocks/popular_posts_block_theme.php:135 
    675 #: blocks/recent_posts_content_block_theme.php:100 
     689#: blocks/recent_posts_content_block_theme.php:102 
    676690#: blocks/recent_posts_list_block_theme.php:93 
    677691msgid "Comments (%)" 
     
    689703 
    690704#: blocks/recent_posts_content_block_theme.php:75 
    691 #: blocks/recent_posts_content_block_theme.php:122 
    692705msgid "more" 
    693706msgstr "続きを読む" 
  • trunk/wp-content/themes/xpress_mu_home/style.css

    r213 r217  
    22Theme Name: XPressMU HOME Themes 
    33Theme URI: http://trac.xpressme.info/XPressME 
    4 Description: The theme for XPressME series 
     4Description: The theme for XPressMU (XPressME included WordPress MU) 
    55Version: 1.6 
    66Author: toemon 
  • trunk/xoops_version.php

    r214 r217  
    4040 
    4141// status 
    42 $modversion['codename'] = "RC1(r214)"; 
     42$modversion['codename'] = "RC1(r217)"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.