diff --git a/admin/404.html b/admin/404.html deleted file mode 100644 index 40d481ee..00000000 --- a/admin/404.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Page Not Found :( - - - -
-

Not found :(

-

Sorry, but the page you were trying to view does not exist.

-

It looks like this was the result of either:

- -
- - diff --git a/admin/common-js.php b/admin/common-js.php index cb41b53c..7a0db800 100644 --- a/admin/common-js.php +++ b/admin/common-js.php @@ -7,10 +7,7 @@ $(document).ready(function() { highlight): ?> //增加高亮效果 - $('#highlight; ?>').addClass('nohover') - .effect('highlight', '#AACB36', 1000, function () { - $(this).removeClass('nohover'); - }); + $('#highlight; ?>').effect('highlight', 1000); //增加淡出效果 @@ -18,31 +15,59 @@ var p = $('.popup'); if (p.length > 0) { - if (p.hasClass('notice')) { - p.effect('bounce'); - } else if (p.hasClass('error')) { - p.effect('shake'); - } else { - p.slideDown(); + var head = $('.typecho-head-nav'), + offset = head.length > 0 ? head.outerHeight() : 0; + + function checkScroll () { + if ($(window).scrollTop() >= offset) { + p.css({ + 'position' : 'fixed', + 'top' : 0 + }); + } else { + p.css({ + 'position' : 'absolute', + 'top' : offset + }); + } } - - p.sticky({ - getWidthFrom : document.body - }).delay(5000).fadeOut(); + + $(window).scroll(function () { + checkScroll(); + }); + + checkScroll(); + + p.slideDown(function () { + var t = $(this), color = '#C6D880'; + + if (t.hasClass('error')) { + color = '#FBC2C4'; + } else if (t.hasClass('notice')) { + color = '#FFD324'; + } + + t.effect('highlight', {color : color}) + .delay(5000).slideUp(function () { + $(this).remove(); + }); + }); } })(); - $('a').each(function () { - var t = $(this), href = t.attr('href'); + if ($('.typecho-login').length == 0) { + $('a').each(function () { + var t = $(this), href = t.attr('href'); - if ((href.length > 1 && href[0] == '#') - || /^adminUrl, '/'); ?>.*$/.exec(href) - || /^index), '/'), 0, -1); ?>action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) { - return; - } + if ((href.length > 1 && href[0] == '#') + || /^adminUrl, '/'); ?>.*$/.exec(href) + || /^index), '/'), 0, -1); ?>action\/[_a-zA-Z0-9\/]+.*$/.exec(href)) { + return; + } - t.attr('target', '_blank'); - }); + t.attr('target', '_blank'); + }); + } }); })(); diff --git a/admin/css/style.css b/admin/css/style.css index 526e2561..bf8ecb95 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -427,12 +427,16 @@ button.primary:active, button.primary.active { /** 增加顶部消息样式 by 70 */ .popup { border-width: 0 0 1px 0; - position: relative; + position: absolute; + top: 0; + left: 0; + width: 100%; z-index: 10; text-align: center; font-weight: bold; display: none; margin: 0; + padding: 5px 0; -moz-border-radius: 0; -moz-border-radius: 0; @@ -448,6 +452,12 @@ button.primary:active, button.primary.active { list-style: none; margin: 0; padding: 0; + text-align: center; +} + +.popup ul li { + display: inline-block; + margin-right: 10px; } /** @@ -1216,26 +1226,6 @@ ul.typecho-list-notable li { padding: 5px 0; } -ul.typecho-list-notable li span.comment, -ul.typecho-list-notable li span.pingback, -ul.typecho-list-notable li span.trackback { - background: url(../images/comment.gif) top no-repeat; - width: 16px; - height: 16px; - display: block; - float: left; - margin: 4px 3px -4px 0; - _margin-right: 0; -} - -ul.typecho-list-notable li span.pingback { - background-position: center; -} - -ul.typecho-list-notable li span.trackback { - background-position: bottom; -} - ul.typecho-list-notable li .comment-body { overflow: visible; } diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index 8eceb6cf..334e8da8 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -41,7 +41,7 @@ $(document).ready(function() { + data.cid + '">' + data.title + ' ' + data.bytes + ' ' + ' ×') - .effect('highlight', '#AACB36', 1000); + .effect('highlight', 1000); attachInsertEvent(li); attachDeleteEvent(li); diff --git a/admin/images/arrow.gif b/admin/images/arrow.gif deleted file mode 100644 index 391cba04..00000000 Binary files a/admin/images/arrow.gif and /dev/null differ diff --git a/admin/images/attach.gif b/admin/images/attach.gif deleted file mode 100644 index b48d9925..00000000 Binary files a/admin/images/attach.gif and /dev/null differ diff --git a/admin/images/comment.gif b/admin/images/comment.gif deleted file mode 100644 index d2b2c9af..00000000 Binary files a/admin/images/comment.gif and /dev/null differ diff --git a/admin/images/notice.gif b/admin/images/notice.gif deleted file mode 100644 index 878d3b11..00000000 Binary files a/admin/images/notice.gif and /dev/null differ diff --git a/admin/images/progress.gif b/admin/images/progress.gif deleted file mode 100644 index bda2b5a9..00000000 Binary files a/admin/images/progress.gif and /dev/null differ diff --git a/admin/images/sprite.png b/admin/images/sprite.png deleted file mode 100644 index 3e776f88..00000000 Binary files a/admin/images/sprite.png and /dev/null differ diff --git a/admin/javascript/jquery-ui.js b/admin/javascript/jquery-ui.js index 9a94562f..5e24f394 100755 --- a/admin/javascript/jquery-ui.js +++ b/admin/javascript/jquery-ui.js @@ -1,6 +1,6 @@ /*! jQuery UI - v1.10.3 - 2013-10-16 * http://jqueryui.com -* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.datepicker.js, jquery.ui.slider.js, jquery.ui.effect.js, jquery.ui.effect-bounce.js, jquery.ui.effect-highlight.js, jquery.ui.effect-shake.js +* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.datepicker.js, jquery.ui.slider.js, jquery.ui.effect.js, jquery.ui.effect-highlight.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function( $, undefined ) { @@ -4943,106 +4943,6 @@ $.each( baseEasings, function( name, easeIn ) { })(jQuery); (function( $, undefined ) { -$.effects.effect.bounce = function( o, done ) { - var el = $( this ), - props = [ "position", "top", "bottom", "left", "right", "height", "width" ], - - // defaults: - mode = $.effects.setMode( el, o.mode || "effect" ), - hide = mode === "hide", - show = mode === "show", - direction = o.direction || "up", - distance = o.distance, - times = o.times || 5, - - // number of internal animations - anims = times * 2 + ( show || hide ? 1 : 0 ), - speed = o.duration / anims, - easing = o.easing, - - // utility: - ref = ( direction === "up" || direction === "down" ) ? "top" : "left", - motion = ( direction === "up" || direction === "left" ), - i, - upAnim, - downAnim, - - // we will need to re-assemble the queue to stack our animations in place - queue = el.queue(), - queuelen = queue.length; - - // Avoid touching opacity to prevent clearType and PNG issues in IE - if ( show || hide ) { - props.push( "opacity" ); - } - - $.effects.save( el, props ); - el.show(); - $.effects.createWrapper( el ); // Create Wrapper - - // default distance for the BIGGEST bounce is the outer Distance / 3 - if ( !distance ) { - distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3; - } - - if ( show ) { - downAnim = { opacity: 1 }; - downAnim[ ref ] = 0; - - // if we are showing, force opacity 0 and set the initial position - // then do the "first" animation - el.css( "opacity", 0 ) - .css( ref, motion ? -distance * 2 : distance * 2 ) - .animate( downAnim, speed, easing ); - } - - // start at the smallest distance if we are hiding - if ( hide ) { - distance = distance / Math.pow( 2, times - 1 ); - } - - downAnim = {}; - downAnim[ ref ] = 0; - // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here - for ( i = 0; i < times; i++ ) { - upAnim = {}; - upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; - - el.animate( upAnim, speed, easing ) - .animate( downAnim, speed, easing ); - - distance = hide ? distance * 2 : distance / 2; - } - - // Last Bounce when Hiding - if ( hide ) { - upAnim = { opacity: 0 }; - upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; - - el.animate( upAnim, speed, easing ); - } - - el.queue(function() { - if ( hide ) { - el.hide(); - } - $.effects.restore( el, props ); - $.effects.removeWrapper( el ); - done(); - }); - - // inject all the animations we just queued to be first in line (after "inprogress") - if ( queuelen > 1) { - queue.splice.apply( queue, - [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) ); - } - el.dequeue(); - -}; - -})(jQuery); -(function( $, undefined ) { - $.effects.effect.highlight = function( o, done ) { var elem = $( this ), props = [ "backgroundImage", "backgroundColor", "opacity" ], @@ -5078,64 +4978,3 @@ $.effects.effect.highlight = function( o, done ) { }; })(jQuery); -(function( $, undefined ) { - -$.effects.effect.shake = function( o, done ) { - - var el = $( this ), - props = [ "position", "top", "bottom", "left", "right", "height", "width" ], - mode = $.effects.setMode( el, o.mode || "effect" ), - direction = o.direction || "left", - distance = o.distance || 20, - times = o.times || 3, - anims = times * 2 + 1, - speed = Math.round(o.duration/anims), - ref = (direction === "up" || direction === "down") ? "top" : "left", - positiveMotion = (direction === "up" || direction === "left"), - animation = {}, - animation1 = {}, - animation2 = {}, - i, - - // we will need to re-assemble the queue to stack our animations in place - queue = el.queue(), - queuelen = queue.length; - - $.effects.save( el, props ); - el.show(); - $.effects.createWrapper( el ); - - // Animation - animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance; - animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2; - animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2; - - // Animate - el.animate( animation, speed, o.easing ); - - // Shakes - for ( i = 1; i < times; i++ ) { - el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing ); - } - el - .animate( animation1, speed, o.easing ) - .animate( animation, speed / 2, o.easing ) - .queue(function() { - if ( mode === "hide" ) { - el.hide(); - } - $.effects.restore( el, props ); - $.effects.removeWrapper( el ); - done(); - }); - - // inject all the animations we just queued to be first in line (after "inprogress") - if ( queuelen > 1) { - queue.splice.apply( queue, - [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) ); - } - el.dequeue(); - -}; - -})(jQuery); diff --git a/admin/javascript/typecho.js b/admin/javascript/typecho.js index 78c0e961..d27dbd4d 100644 --- a/admin/javascript/typecho.js +++ b/admin/javascript/typecho.js @@ -1031,133 +1031,3 @@ jQuery.cookie = function (key, value, options) { return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; }; -// Sticky Plugin v1.0.0 for jQuery -// ============= -// Author: Anthony Garand -// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk) -// Improvements by Leonardo C. Daronco (daronco) -// Created: 2/14/2011 -// Date: 2/12/2012 -// Website: http://labs.anthonygarand.com/sticky -// Description: Makes an element on the page stick on the screen as you scroll -// It will only set the 'top' and 'position' of your element, you -// might need to adjust the width in some cases. - -(function($) { - var defaults = { - topSpacing: 0, - bottomSpacing: 0, - className: 'is-sticky', - wrapperClassName: 'sticky-wrapper', - center: false, - getWidthFrom: '' - }, - $window = $(window), - $document = $(document), - sticked = [], - windowHeight = $window.height(), - scroller = function() { - var scrollTop = $window.scrollTop(), - documentHeight = $document.height(), - dwh = documentHeight - windowHeight, - extra = (scrollTop > dwh) ? dwh - scrollTop : 0; - - for (var i = 0; i < sticked.length; i++) { - var s = sticked[i], - elementTop = s.stickyWrapper.offset().top, - etse = elementTop - s.topSpacing - extra; - - if (scrollTop <= etse) { - if (s.currentTop !== null) { - s.stickyElement - .css('position', '') - .css('top', ''); - s.stickyElement.parent().removeClass(s.className); - s.currentTop = null; - } - } - else { - var newTop = documentHeight - s.stickyElement.outerHeight() - - s.topSpacing - s.bottomSpacing - scrollTop - extra; - if (newTop < 0) { - newTop = newTop + s.topSpacing; - } else { - newTop = s.topSpacing; - } - if (s.currentTop != newTop) { - s.stickyElement - .css('position', 'fixed') - .css('top', newTop); - - if (typeof s.getWidthFrom !== 'undefined') { - s.stickyElement.css('width', $(s.getWidthFrom).width()); - } - - s.stickyElement.parent().addClass(s.className); - s.currentTop = newTop; - } - } - } - }, - resizer = function() { - windowHeight = $window.height(); - }, - methods = { - init: function(options) { - var o = $.extend(defaults, options); - return this.each(function() { - var stickyElement = $(this); - - var stickyId = stickyElement.attr('id'); - var wrapper = $('
') - .attr('id', stickyId + '-sticky-wrapper') - .addClass(o.wrapperClassName); - stickyElement.wrapAll(wrapper); - - if (o.center) { - stickyElement.parent().css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); - } - - if (stickyElement.css("float") == "right") { - stickyElement.css({"float":"none"}).parent().css({"float":"right"}); - } - - var stickyWrapper = stickyElement.parent(); - // stickyWrapper.css('height', stickyElement.outerHeight()); - sticked.push({ - topSpacing: o.topSpacing, - bottomSpacing: o.bottomSpacing, - stickyElement: stickyElement, - currentTop: null, - stickyWrapper: stickyWrapper, - className: o.className, - getWidthFrom: o.getWidthFrom - }); - }); - }, - update: scroller - }; - - // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): - if (window.addEventListener) { - window.addEventListener('scroll', scroller, false); - window.addEventListener('resize', resizer, false); - } else if (window.attachEvent) { - window.attachEvent('onscroll', scroller); - window.attachEvent('onresize', resizer); - } - - $.fn.sticky = function(method) { - if (methods[method]) { - return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); - } else if (typeof method === 'object' || !method ) { - return methods.init.apply( this, arguments ); - } else { - $.error('Method ' + method + ' does not exist on jQuery.sticky'); - } - }; - $(function() { - setTimeout(scroller, 0); - }); -})(jQuery); - diff --git a/admin/login.php b/admin/login.php index 2f0a44cb..0b4601c3 100644 --- a/admin/login.php +++ b/admin/login.php @@ -25,8 +25,8 @@ Typecho_Cookie::delete('__typecho_remember_name');

Typecho

-

-

+

+

diff --git a/admin/manage-comments.php b/admin/manage-comments.php index 500ea934..554dcae1 100644 --- a/admin/manage-comments.php +++ b/admin/manage-comments.php @@ -251,7 +251,7 @@ $(document).ready(function () { reply.html('

' + textarea.val() + '

'); $.post(t.attr('action'), t.serialize(), function (o) { reply.html(o.comment.content) - .effect('highlight', '#AACB36'); + .effect('highlight'); }); t.remove(); @@ -317,13 +317,13 @@ $(document).ready(function () { + (comment.ip ? '
' + comment.ip + '' : ''); $('.comment-meta', oldTr).html(html) - .effect('highlight', '#AACB36'); + .effect('highlight'); $('.comment-content', oldTr).html('

' + comment.text + '

'); oldTr.data('comment', comment); $.post(t.attr('action'), comment, function (o) { $('.comment-content', oldTr).html(o.comment.content) - .effect('highlight', '#AACB36'); + .effect('highlight'); }); oldTr.show(); diff --git a/admin/media.php b/admin/media.php index 571d80f5..41499ff6 100644 --- a/admin/media.php +++ b/admin/media.php @@ -83,7 +83,7 @@ $(document).ready(function() { function fileUploadComplete (id, url, data) { $('#' + id).html(''.replace('%s', data.title)) - .effect('highlight', '#AACB36', 1000, function () { + .effect('highlight', 1000, function () { $(this).remove(); }); } diff --git a/admin/write-js.php b/admin/write-js.php index 93d535d9..ae6eb22d 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -122,7 +122,7 @@ $(document).ready(function() { $.post(formAction + '?do=save', data, function (o) { lastSaveTime = o.time; idInput.val(o.cid); - autoSave.text('' + ' (' + o.time + ')').effect('highlight', '#AACB36', 1000); + autoSave.text('' + ' (' + o.time + ')').effect('highlight', 1000); locked = false; }); } diff --git a/tools/Makefile b/tools/Makefile index 06e6c7fa..da1ccc04 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,7 +12,7 @@ update: git clone https://github.com/typecho/typecho-replica.git build rm -Rf build/.git rm -Rf build/.gitignore - for i in `find build/ -name '*.source.css'`; do echo $$i && java -Xmx32m -jar yuicompressor-2.4.2.jar $$i --charset UTF-8 -o $$i; done; + 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/javascript/ -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; @@ -22,21 +22,8 @@ package: rm -Rf build/mockup/ rm -Rf build/tools/ rm -Rf build/todo.txt - rm -Rf build/usr/plugins/Akismet/ - rm -Rf build/usr/plugins/MagikeToTypecho/ - rm -Rf build/usr/plugins/WordpressToTypecho/ - rm -Rf build/usr/plugins/Textile2/ - rm -Rf build/usr/plugins/PostToQzone/ - rm -Rf build/usr/plugins/SimpleCode.php - rm -Rf build/usr/plugins/PageToLinks.php - rm -Rf build/usr/plugins/Creole/ - rm -Rf build/usr/plugins/TinyMCE/ - rm -Rf build/usr/plugins/FlashMp3Player/ - rm -Rf build/usr/plugins/ConnectToTwitter/ - rm -Rf build/usr/plugins/ShareCode/ - rm -Rf build/usr/plugins/ZenCoding/ - rm -Rf build/usr/plugins/GoogleCodePrettify/ - rm -Rf build/usr/plugins/GoogleCodeSVN/ + rm -Rf build/usr/plugins/* + rm -Rf build/admin/scss mkdir build/usr/uploads/ chmod 777 build/usr/uploads/ tar -cvvzf build.tar.gz build/ @@ -105,21 +92,7 @@ install: make update rm -Rf build/tools/ rm -Rf build/todo.txt - rm -Rf ${DIR}/usr/plugins/Akismet/ - rm -Rf ${DIR}/usr/plugins/MagikeToTypecho/ - rm -Rf ${DIR}/usr/plugins/WordpressToTypecho/ - rm -Rf ${DIR}/usr/plugins/Textile2/ - rm -Rf ${DIR}/usr/plugins/PostToQzone/ - rm -Rf ${DIR}/usr/plugins/SimpleCode.php - rm -Rf ${DIR}/usr/plugins/PageToLinks.php - rm -Rf ${DIR}/usr/plugins/Creole/ - rm -Rf ${DIR}/usr/plugins/TinyMCE/ - rm -Rf ${DIR}/usr/plugins/FlashMp3Player/ - rm -Rf ${DIR}/usr/plugins/ConnectToTwitter/ - rm -Rf ${DIR}/usr/plugins/ShareCode/ - rm -Rf ${DIR}/usr/plugins/ZenCoding/ - rm -Rf ${DIR}/usr/plugins/GoogleCodePrettify/ - rm -Rf ${DIR}/usr/plugins/GoogleCodeSVN/ + rm -Rf ${DIR}/usr/plugins/* cp -Rf build/* ${DIR} make clear diff --git a/tools/tabsize.php b/tools/tabsize.php deleted file mode 100644 index 927244ba..00000000 --- a/tools/tabsize.php +++ /dev/null @@ -1,106 +0,0 @@ -isFile()) - { - $file = $file->__toString(); - $fileExt = (false === ($pos = strrpos($file,'.'))) ? NULL : substr($file,$pos + 1); - $fileName = (false === $pos) ? $file : substr($file,0,$pos); - - if(NULL !== $stamp && in_array($fileExt,$stamp)) - { - $files[] = $trim ? $file : $fileName; - } - else if(NULL === $stamp) - { - $files[] = $trim ? $file : $fileName; - } - } - } - return $files; -} - -//获取一个目录下的目录 -function mgGetDir($inpath) -{ - $dirs = array(); - - if(!is_dir($inpath)) - { - return $dirs; - } - $it = new DirectoryIterator($inpath); - - foreach($it as $dir) - { - if($dir->isDir() && !$dir->isDot()) - { - $dirs[] = $dir->__toString(); - } - } - return $dirs; -} - -function tabsize($dir = ROOT_DIR) -{ - if($files = mgGetFile($dir, true, 'php')) - { - foreach($files as $file) - { - if($contents = file_get_contents($dir . '/' . $file)) - { - $lines = preg_split("(\r\n|\r|\n)", $contents); - $result = array(); - foreach($lines as $line) - { - preg_match("/^(\s+)(.*)$/", $line, $out); - if($out && strlen($out[1]) > 0) - { - $line = str_replace("\t", ' ', $out[1]) . $out[2]; - } - - $result[] = rtrim($line, "\r\n") . "\n"; - } - - file_put_contents($dir . '/' . $file, trim(implode('', $result)) . "\n"); - } - } - } - - - if($dirs = mgGetDir($dir)) - { - foreach($dirs as $indir) - { - tabsize($dir . '/' . $indir); - } - } -} - -tabsize(); diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 79b3c092..939308eb 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -255,12 +255,6 @@ class Typecho_Common */ public static function init() { - /** 输出logo */ - if (isset($_GET['464D-E63E-9D08-97E2-16DD-6A37-BDEC-6021'])) { - header('content-Type: image/gif', true); - die(base64_decode('R0lGODlhXQAVANUAAP////Pz8+bm5tnZ2c3NzcDAwLOzs5mZmY2NjeR+ANp6A9l5A4CAgM51BsNwCsNwCbhrDXNzc61nEKxmEKFiE6JiE2ZmZpddFpZdFoxZGYtYGoFUHYBUHVlZWXZPIHVPIGtLI2pKI01NTV9GJlRBKVRBKkBAQEk8LT44MD03MDMzMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAABdABUAAAb/QJVwSCwaj8ikUgjxLJ9Gj+JELBSg2OwyodFCSYkKkUDwms3cs5E0GlYSVCFZTX+m60IpSnhKXIZzeEonI21HKIVxQlyIhkaEjkVOQg2TKhIKKggHAgIHCEMmByZEERFCHaAmEQcHp0ckDgmzCxlEKG+zCRAkiw4LtCBEIw26CbZFEIYXD0MeCSQBANMAAUMWABZjZSoHAAzS1AGvQyAJDRwjIRQJDnsoshSFGAsLVLPKIbKGz+jq7A6KjBCjAsweFSgSbJDD7Vq2bUK8ARjwKsIAAORQLHBHREKaCQlKEDmhIYWKdkNSLKCg4sTGg3nuDGm2yJGCPyoCOdQGiJu3/wGkQg0IEJQDtCEjIJwr0QdDEpkqIEBQgQGOkQkLilSIAwFZ1Kk5GwrBxpNhxIdFsDFg0oDPmwUchIxIEKkIVKlRAxrZQJdIBkNdh+ANmxat2W4AkAA4wOQBigyzMJgUEqIvkrtTB0uyLOQvE6+DdY41TBhxUCImFgupqmCXIhInSkC120Xw1Kow3SSYLGTr55kSDu+EiJhxEW8d+CRYEAmMUwgLehERdrI2k6mygxMBw5IIzZOOjgkpIECIieQmAlxBBcDntLVDGABYL8QoBGEoNtSjUqKeBxQneFCMSJgJocEuwpyQgQIN8KbCQEIYJFcC1EXQHiflqSDfAAcYIJ+NexdxeECIpwnxATC6QKBICbLo0kAIi1j31RAcoIiPg1Et890FCcAUgQAACACfChZVY8AA7nVz0URDFpFCCBp8oAgRJWigAYxDSDlMJCl8oAEHIkUxRCVDKABWFoF4I8iaUOgRkyVIdFCWCgKspyabeCLBxphtLVEAAKoYgNadeRZ6BF9wImHCku8NQaihkAqRXxasICACEalEqqkRQQAAOw==')); - } - /** 设置自动载入函数 */ function __autoLoad($className) { @@ -387,66 +381,52 @@ class Typecho_Common } else { echo << - - - - {$code} + + + + + {$code} + - - -
-

{$code}

-

{$message}

- -
- + html, + input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } + body { + max-width: 500px; + _width: 500px; + padding: 30px 20px 50px; + margin: 0 auto; + background: #FFF; + } + h1 { + font-size: 50px; + text-align: center; + } + h1 span { color: #bbb; } + ul { + padding: 0 0 0 40px; + } + .container { + max-width: 380px; + _width: 380px; + margin: 0 auto; + } + + + +
+

{$code}

+ {$message} +
+ EOF; } diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 945c0692..81e6ee85 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -563,6 +563,14 @@ class Widget_Archive extends Widget_Abstract_Contents return $this->_total; } + /** + * @return the $_currentPage + */ + public function getCurrentPage() + { + return $this->_currentPage; + } + /** * @return the $_themeFile */