From 7002dc5576f107a93a47233e1ad173ea897ac797 Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 12 Dec 2013 11:14:21 +0800 Subject: [PATCH 01/35] =?UTF-8?q?=E4=BF=AE=E6=AD=A3install=E7=9A=84markdow?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index 712027d2..f3e09362 100644 --- a/install.php +++ b/install.php @@ -333,11 +333,11 @@ list($prefixVersion, $suffixVersion) = explode('/', $currentVersion); /** 初始内容 */ $installDb->query($installDb->insert('table.contents')->rows(array('title' => _t('欢迎使用 Typecho'), 'slug' => 'start', 'created' => Typecho_Date::gmtTime(), 'modified' => Typecho_Date::gmtTime(), - 'text' => _t('如果您看到这篇文章,表示您的 blog 已经安装成功.'), 'authorId' => 1, 'type' => 'post', 'status' => 'publish', 'commentsNum' => 1, 'allowComment' => 1, + 'text' => _t('如果您看到这篇文章,表示您的 blog 已经安装成功.'), 'authorId' => 1, 'type' => 'post', 'status' => 'publish', 'commentsNum' => 1, 'allowComment' => 1, 'allowPing' => 1, 'allowFeed' => 1, 'parent' => 0))); $installDb->query($installDb->insert('table.contents')->rows(array('title' => _t('关于'), 'slug' => 'start-page', 'created' => Typecho_Date::gmtTime(), 'modified' => Typecho_Date::gmtTime(), - 'text' => _t('本页面由 Typecho 创建, 这只是个测试页面.'), 'authorId' => 1, 'order' => 0, 'type' => 'page', 'status' => 'publish', 'commentsNum' => 0, 'allowComment' => 1, + 'text' => _t('本页面由 Typecho 创建, 这只是个测试页面.'), 'authorId' => 1, 'order' => 0, 'type' => 'page', 'status' => 'publish', 'commentsNum' => 0, 'allowComment' => 1, 'allowPing' => 1, 'allowFeed' => 1, 'parent' => 0))); /** 初始评论 */ From c773d9e6cc1923de38d1b2038f86df4618351e72 Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 12 Dec 2013 11:18:39 +0800 Subject: [PATCH 02/35] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E5=87=86=E5=A4=87=E5=8F=91=E5=B8=83=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Typecho/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 2cacd2eb..4b6f63a9 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -20,7 +20,7 @@ class Typecho_Common { /** 程序版本 */ - const VERSION = '0.9/13.12.10'; + const VERSION = '0.9.1/13.12.12'; /** * 缓存的包含路径 From 59e01860d1b674f284199bd954cfba05b529846d Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 12 Dec 2013 11:20:25 +0800 Subject: [PATCH 03/35] =?UTF-8?q?0.9=E7=89=88=E6=9C=AC=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Typecho/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 4b6f63a9..4e00fea3 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -20,7 +20,7 @@ class Typecho_Common { /** 程序版本 */ - const VERSION = '0.9.1/13.12.12'; + const VERSION = '0.9/13.12.12'; /** * 缓存的包含路径 From b2b55e6412797eb672ee1c42caf2e6ee2aae3dcd Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 12 Dec 2013 21:02:00 +0800 Subject: [PATCH 04/35] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F=E5=90=8E=E8=BF=98=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=96=B0=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/upgrade.php | 9 ++++++++- var/Widget/Upgrade.php | 3 --- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/upgrade.php b/admin/upgrade.php index a05c2bde..ad0834ca 100644 --- a/admin/upgrade.php +++ b/admin/upgrade.php @@ -29,5 +29,12 @@ include 'menu.php'; + + diff --git a/var/Widget/Upgrade.php b/var/Widget/Upgrade.php index 5feae4a0..bb19d44b 100644 --- a/var/Widget/Upgrade.php +++ b/var/Widget/Upgrade.php @@ -104,9 +104,6 @@ class Widget_Upgrade extends Widget_Abstract_Options implements Widget_Interface $this->update(array('value' => 'Typecho ' . Typecho_Common::VERSION), $this->db->sql()->where('name = ?', 'generator')); - /** 删除更新cookie */ - Typecho_Cookie::delete('__typecho_check_version'); - $this->widget('Widget_Notice')->set(empty($message) ? _t("升级已经完成") : $message, empty($message) ? 'success' : 'notice'); } From 87a2191dbad4f784dd27c3401ca9ef8cbba38b09 Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 12 Dec 2013 21:44:27 +0800 Subject: [PATCH 05/35] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E7=AF=87=E3=80=81=E4=B8=8B=E4=B8=80=E7=AF=87=E6=BC=94=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/themes/default/post.php | 5 +++++ usr/themes/default/style.css | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/usr/themes/default/post.php b/usr/themes/default/post.php index e9dd3ab4..9d8ca23b 100644 --- a/usr/themes/default/post.php +++ b/usr/themes/default/post.php @@ -15,6 +15,11 @@ need('comments.php'); ?> + +
    +
  • 上一篇:thePrev('%s','没有了'); ?>
  • +
  • 下一篇:theNext('%s','没有了'); ?>
  • +
need('sidebar.php'); ?> diff --git a/usr/themes/default/style.css b/usr/themes/default/style.css index 96a382ab..06cf784b 100644 --- a/usr/themes/default/style.css +++ b/usr/themes/default/style.css @@ -195,6 +195,16 @@ textarea { clear: both; } +.post-near { + list-style: none; + margin: 30px 0; + padding: 0; + color: #999; +} +.post-near li { + margin: 10px 0; +} + .archive-title { margin: 1em 0 -1em; padding-top: 20px; @@ -364,7 +374,8 @@ textarea { .post-content video, .comment-content video { max-width: 100%; } -.post-content a img { +.post-content a img, +.comment-content a img { background: #FFF; position: relative; bottom: -4px; /* hidden img parent link border */ From e9798950063d9849083faedd402a0b1e6dcc92ca Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 10:43:12 +0800 Subject: [PATCH 06/35] fix build --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9de9256d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php + +php: + - 5.5 + - 5.4 + - 5.3 + - 5.2 + +jdk: + - openjdk7 + +install: make get-deps +script: cd ./tools/ && make all + From f6f35f221dccb567c37e8470b01bcacc0d60b26a Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 10:51:03 +0800 Subject: [PATCH 07/35] fix build env --- .travis.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9de9256d..a7904937 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,6 @@ php: - 5.5 - 5.4 - 5.3 - - 5.2 -jdk: - - openjdk7 - -install: make get-deps script: cd ./tools/ && make all From 81a99eb92310f8dd9af3031571dfbb9e562d83b7 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 11:59:17 +0800 Subject: [PATCH 08/35] =?UTF-8?q?=E6=9B=B4=E6=96=B0makefile=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E9=BB=98=E8=AE=A4=E7=9A=84readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ tools/Makefile | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..418a176c --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +Typecho Blogging Platform +========================= + +Please visit http://typecho.org for more information. diff --git a/tools/Makefile b/tools/Makefile index 548f7f29..61deef9b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,6 +12,7 @@ update: git clone https://github.com/typecho/typecho-replica.git build rm -Rf build/.git rm -Rf build/.gitignore + rm -Rf build/.gitattributes for i in `find build/ -name '*.css'`; do echo $$i && java -Xmx32m -jar yuicompressor-2.4.2.jar $$i --charset UTF-8 -o $$i; done; for i in `find build/admin/js/ -name '*.js'`; do echo $$i && java -Xmx32m -jar yuicompressor-2.4.2.jar $$i --charset UTF-8 -o $$i; done; for i in `find build/ -name '*.php'`; do php -l $$i; done; @@ -21,6 +22,9 @@ package: @echo 'package' rm -Rf build/tools/ rm -Rf build/todo.txt + rm -Rf build/changelog.txt + rm -Rf build/.travis.yml + rm -Rf build/README.md rm -Rf build/admin/scss rm -Rf build/admin/img/editor rm -Rf build/admin/img/icons @@ -61,6 +65,9 @@ install: make update rm -Rf build/tools/ rm -Rf build/todo.txt + rm -Rf build/changelog.txt + rm -Rf build/.travis.yml + rm -Rf build/README.md rm -Rf build/admin/scss rm -Rf build/admin/img/editor rm -Rf build/admin/img/icons From d2ed2217c78d886246112934e2d414227ac92e35 Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 12:29:26 +0800 Subject: [PATCH 09/35] =?UTF-8?q?=E5=88=A0=E6=8E=89=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/Makefile | 15 --------------- tools/mcecp.php | 38 -------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 tools/mcecp.php diff --git a/tools/Makefile b/tools/Makefile index 61deef9b..05c42c50 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -56,11 +56,6 @@ theme: make clear -typecho: - for i in `php list.php "build/var/Typecho/"`; do php tc.php "in=$$i&out=build/var/Typecho.php"; done; - rm -Rf build/var/Typecho/ - - install: make update rm -Rf build/tools/ @@ -78,16 +73,6 @@ install: make clear -tinymce: - wget http://prdownloads.sourceforge.net/tinymce/tinymce_${TINYMCE}.zip?download - unzip tinymce_${TINYMCE}.zip - for i in `find tinymce/jscripts/ -name '*.js'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done; - for i in `find tinymce/jscripts/ -name '*.htm'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done; - rm -Rf tinymce/ - rm -Rf tinymce_${TINYMCE}.zip - svn ci ../usr/plugins/TinyMCE/tiny_mce/ -m "upgrade tiny_mce to ${TINYMCE}" - - all: make update make package diff --git a/tools/mcecp.php b/tools/mcecp.php deleted file mode 100644 index 7f5ea8df..00000000 --- a/tools/mcecp.php +++ /dev/null @@ -1,38 +0,0 @@ - Date: Fri, 13 Dec 2013 12:36:01 +0800 Subject: [PATCH 10/35] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 418a176c..69fcb177 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,15 @@ Typecho Blogging Platform ========================= -Please visit http://typecho.org for more information. +####Homepage +http://typecho.org/ + +####Document +http://docs.typecho.org/ + +####Forum +http://forum.typecho.org/ + +####Download +http://typecho.org/download + From 718f36caa3f27d9fa43e44b04b1f00e155f421ed Mon Sep 17 00:00:00 2001 From: joyqi Date: Fri, 13 Dec 2013 15:32:49 +0800 Subject: [PATCH 11/35] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=96=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/manage-comments.php | 4 ++-- admin/manage-medias.php | 4 ++-- admin/manage-metas.php | 4 ++-- admin/manage-pages.php | 2 +- admin/manage-posts.php | 4 ++-- admin/manage-users.php | 4 ++-- install.php | 9 ++------- install/Mysql.php | 4 ++-- install/Pgsql.php | 4 ++-- usr/themes/default/comments.php | 2 +- var/Widget/Options/Discussion.php | 8 ++++---- var/Widget/Options/General.php | 2 +- var/Widget/Options/Permalink.php | 21 ++++++++++++--------- var/Widget/Options/Reading.php | 10 +++++----- var/Widget/Users/Edit.php | 20 ++++++++++---------- var/Widget/Users/Profile.php | 16 ++++++++-------- 16 files changed, 58 insertions(+), 60 deletions(-) diff --git a/admin/manage-comments.php b/admin/manage-comments.php index b80ca9e4..eb979418 100644 --- a/admin/manage-comments.php +++ b/admin/manage-comments.php @@ -50,7 +50,7 @@ $isAllComments = ('on' == $request->get('__typecho_all_comments') || 'on' == Typ
- +