├── README.md ├── manage.py └── realblog ├── __init__.py ├── admin ├── __init__.py ├── article.py ├── articles.html ├── base.html ├── blog-plugins.html ├── blog-settings.html ├── category.py ├── edit-article.html ├── edit-category.html ├── edit-link.html ├── image │ ├── a-button.png │ ├── blank.png │ ├── blue-button.png │ ├── button-bg.png │ ├── comment-notes.png │ ├── content-holder.png │ ├── deep-blue.png │ ├── dialog.png │ ├── dianlog-sprite.png │ ├── editor-control.png │ ├── editor-promote.png │ ├── feed-bg-sprites.png │ ├── feed-exif-detail.png │ ├── feed-ft-triangle.png │ ├── feed-icons.png │ ├── feed-img-too-high-tip.png │ ├── feed-new-post-guide.png │ ├── gp-bg.png │ ├── gp-complete.png │ ├── gray-button.png │ ├── green.png │ ├── grey-tip.png │ ├── header.png │ ├── helpcenter-bg.png │ ├── home.png │ ├── hot-tag-icon.png │ ├── htmlbg.png │ ├── icon.png │ ├── input-text.png │ ├── loading-small.gif │ ├── logo-0317.png │ ├── msg-load-more.png │ ├── msg-title.png │ ├── msgbox-bg.png │ ├── no-login-search.png │ ├── pb-main-bg.png │ ├── pb-tag-bg.png │ ├── photo-reply.png │ ├── player.png │ ├── post-by-timer.png │ ├── progress.png │ ├── publisher-audio-drag.png │ ├── publisher-photo-drag.png │ ├── publisher-share-tip.png │ ├── publisher-video.png │ ├── publisher.png │ ├── publisher_photo.png │ ├── radar.png │ ├── round.png │ ├── side-search-tip.png │ ├── sidemenu-item.png │ ├── sidemenu-sub-item.png │ ├── sidemenu.png │ ├── small-close-icon.png │ ├── small-round-loading.gif │ ├── split.png │ ├── startpage-0410.png │ ├── startpage-1231.png │ ├── startpage-button.png │ ├── startpage-error.png │ ├── startpage.png │ ├── wall-player.png │ ├── x-close.png │ ├── xiami_player.png │ └── yellow-tip.png ├── img │ └── uploadify-cancel.png ├── import-and-export.html ├── install.html ├── link.py ├── login.html ├── other.py ├── redirect.html ├── region-footer.html ├── region-header.html ├── region-sidebar.html ├── register.html ├── script │ ├── crypto-min.js │ ├── crypto-sha1.js │ ├── jquery-1.8.3.min.js │ ├── jquery.uploadify.min.js │ ├── timezone.js │ └── uploadify.swf ├── show-categories.html ├── show-hidden-article.html ├── show-links.html ├── style │ ├── dd.css │ ├── home.css │ ├── login-style.css │ ├── login.css │ ├── publisher.css │ ├── setting-blog.css │ └── uploadify.css ├── timezone.py └── urls.py ├── config ├── __init__.py └── server.py ├── editor ├── CHANGELOG.TXT ├── dialogs │ ├── anchor │ │ └── anchor.html │ ├── attachment │ │ ├── attachment.css │ │ ├── attachment.html │ │ ├── callbacks.js │ │ ├── fileTypeImages │ │ │ ├── icon_chm.gif │ │ │ ├── icon_default.png │ │ │ ├── icon_doc.gif │ │ │ ├── icon_exe.gif │ │ │ ├── icon_mp3.gif │ │ │ ├── icon_mv.gif │ │ │ ├── icon_pdf.gif │ │ │ ├── icon_ppt.gif │ │ │ ├── icon_psd.gif │ │ │ ├── icon_rar.gif │ │ │ ├── icon_txt.gif │ │ │ └── icon_xls.gif │ │ └── fileTypeMaps.js │ ├── background │ │ ├── background.css │ │ ├── background.html │ │ └── background.js │ ├── emotion │ │ ├── emotion.css │ │ ├── emotion.html │ │ ├── emotion.js │ │ └── images │ │ │ ├── 0.gif │ │ │ ├── bface.gif │ │ │ ├── cface.gif │ │ │ ├── fface.gif │ │ │ ├── jxface2.gif │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── tface.gif │ │ │ ├── wface.gif │ │ │ └── yface.gif │ ├── gmap │ │ └── gmap.html │ ├── help │ │ ├── help.css │ │ ├── help.html │ │ └── help.js │ ├── highlightcode │ │ └── highlightcode.html │ ├── image │ │ ├── image.css │ │ ├── image.html │ │ ├── image.js │ │ ├── imageUploader.swf │ │ └── images │ │ │ ├── center_focus.jpg │ │ │ ├── left_focus.jpg │ │ │ ├── none_focus.jpg │ │ │ └── right_focus.jpg │ ├── insertframe │ │ └── insertframe.html │ ├── internal.js │ ├── link │ │ └── link.html │ ├── map │ │ └── map.html │ ├── music │ │ ├── music.css │ │ ├── music.html │ │ └── music.js │ ├── scrawl │ │ ├── images │ │ │ ├── addimg.png │ │ │ ├── brush.png │ │ │ ├── delimg.png │ │ │ ├── delimgH.png │ │ │ ├── empty.png │ │ │ ├── emptyH.png │ │ │ ├── eraser.png │ │ │ ├── redo.png │ │ │ ├── redoH.png │ │ │ ├── scale.png │ │ │ ├── scaleH.png │ │ │ ├── size.png │ │ │ ├── undo.png │ │ │ └── undoH.png │ │ ├── scrawl.css │ │ ├── scrawl.html │ │ └── scrawl.js │ ├── searchreplace │ │ ├── searchreplace.html │ │ └── searchreplace.js │ ├── snapscreen │ │ └── snapscreen.html │ ├── spechars │ │ ├── spechars.html │ │ └── spechars.js │ ├── table │ │ ├── edittd.html │ │ ├── table.css │ │ ├── table.html │ │ └── table.js │ ├── tangram.js │ ├── template │ │ ├── config.js │ │ ├── images │ │ │ ├── bg.gif │ │ │ ├── pre0.png │ │ │ ├── pre1.png │ │ │ ├── pre2.png │ │ │ ├── pre3.png │ │ │ └── pre4.png │ │ ├── template.css │ │ ├── template.html │ │ └── template.js │ ├── video │ │ ├── images │ │ │ ├── center_focus.jpg │ │ │ ├── left_focus.jpg │ │ │ ├── none_focus.jpg │ │ │ └── right_focus.jpg │ │ ├── video.css │ │ ├── video.html │ │ └── video.js │ ├── webapp │ │ └── webapp.html │ └── wordimage │ │ ├── fClipboard_ueditor.swf │ │ ├── imageUploader.swf │ │ ├── wordimage.html │ │ └── wordimage.js ├── editor_all.js ├── editor_all_min.js ├── editor_config.js ├── lang │ ├── en │ │ ├── en.js │ │ └── images │ │ │ ├── addimage.png │ │ │ ├── alldeletebtnhoverskin.png │ │ │ ├── alldeletebtnupskin.png │ │ │ ├── background.png │ │ │ ├── button.png │ │ │ ├── copy.png │ │ │ ├── deletedisable.png │ │ │ ├── deleteenable.png │ │ │ ├── imglabel.png │ │ │ ├── listbackground.png │ │ │ ├── localimage.png │ │ │ ├── music.png │ │ │ ├── rotateleftdisable.png │ │ │ ├── rotateleftenable.png │ │ │ ├── rotaterightdisable.png │ │ │ ├── rotaterightenable.png │ │ │ └── upload.png │ └── zh-cn │ │ ├── images │ │ ├── copy.png │ │ ├── imglabel.png │ │ ├── localimage.png │ │ ├── music.png │ │ └── upload.png │ │ └── zh-cn.js ├── themes │ ├── default │ │ ├── css │ │ │ └── ueditor.css │ │ ├── dialogbase.css │ │ └── images │ │ │ ├── anchor.gif │ │ │ ├── arrow.png │ │ │ ├── button-bg.gif │ │ │ ├── cancelbutton.gif │ │ │ ├── cursor_h.gif │ │ │ ├── cursor_v.gif │ │ │ ├── dialog-title-bg.png │ │ │ ├── filescan.png │ │ │ ├── highlighted.gif │ │ │ ├── icons-all.gif │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── lock.gif │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── pagebreak.gif │ │ │ ├── scale.png │ │ │ ├── spacer.gif │ │ │ ├── sparator_v.png │ │ │ ├── toolbar_bg.png │ │ │ ├── unhighlighted.gif │ │ │ ├── upload.png │ │ │ ├── videologo.gif │ │ │ └── word.gif │ ├── gorgeous │ │ ├── css │ │ │ └── ueditor.css │ │ ├── dialogbase.css │ │ └── images │ │ │ ├── anchor.gif │ │ │ ├── arrow.png │ │ │ ├── bottom.png │ │ │ ├── button-bg.gif │ │ │ ├── cancelbutton.gif │ │ │ ├── cursor_h.gif │ │ │ ├── cursor_v.gif │ │ │ ├── dialog-title-bg.png │ │ │ ├── dialog_title.png │ │ │ ├── filescan.png │ │ │ ├── highlighted.gif │ │ │ ├── icons-all.gif │ │ │ ├── icons-all.png │ │ │ ├── icons-checked.gif │ │ │ ├── icons-checked.png │ │ │ ├── icons-hover.gif │ │ │ ├── icons-hover.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── lock.gif │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── pagebreak.gif │ │ │ ├── scale.png │ │ │ ├── spacer.gif │ │ │ ├── sparator_v.png │ │ │ ├── toolbar-bg.png │ │ │ ├── unhighlighted.gif │ │ │ ├── upload.png │ │ │ ├── videologo.gif │ │ │ └── word.gif │ ├── iframe.css │ └── modern │ │ ├── css │ │ └── ueditor.css │ │ ├── dialogbase.css │ │ └── images │ │ ├── anchor.gif │ │ ├── arrow.png │ │ ├── bottom.png │ │ ├── button-bg.gif │ │ ├── cancelbutton.gif │ │ ├── cursor_h.gif │ │ ├── cursor_v.gif │ │ ├── dialog-title-bg.png │ │ ├── dialog_title.png │ │ ├── filescan.png │ │ ├── highlighted.gif │ │ ├── icons-all.gif │ │ ├── icons-all.png │ │ ├── icons-checked.gif │ │ ├── icons-checked.png │ │ ├── icons-hover.gif │ │ ├── icons-hover.png │ │ ├── icons.gif │ │ ├── icons.png │ │ ├── lock.gif │ │ ├── neweditor-tab-bg.png │ │ ├── pagebreak.gif │ │ ├── scale.png │ │ ├── spacer.gif │ │ ├── sparator_v.png │ │ ├── toolbar-bg.png │ │ ├── unhighlighted.gif │ │ ├── upload.png │ │ ├── videologo.gif │ │ └── word.gif └── third-party │ ├── SyntaxHighlighter │ ├── shCore.js │ └── shCoreDefault.css │ └── codemirror │ ├── codemirror.css │ └── codemirror.js ├── func.py ├── middleware.py ├── settings.py ├── themes ├── Zine │ ├── base.html │ ├── bg.png │ ├── detail.html │ ├── dot.gif │ ├── footer.html │ ├── header.html │ ├── index.html │ ├── logo-django.png │ ├── logo-linode.png │ ├── logo-mongodb.png │ ├── nav.gif │ ├── pagenavi-css.css │ ├── paginator.html │ ├── relatedPosts.png │ ├── sidebar-index.html │ ├── style.css │ ├── switch_collapsed.png │ ├── switch_expanded.png │ ├── switch_item.png │ ├── toolbar.png │ ├── toolbar_sina.png │ └── wp-syntax.css └── default │ ├── base.html │ ├── bullet_black.gif │ ├── bullet_red.gif │ ├── detail.html │ ├── footer.html │ ├── header.html │ ├── index.html │ ├── logo-django.png │ ├── logo-linode.png │ ├── logo-mongodb.png │ ├── reset.css │ ├── root.html │ ├── rss.png │ ├── sidebar-detail.html │ ├── sidebar-index.html │ ├── style.css │ ├── switch_collapsed.png │ ├── switch_expanded.png │ └── switch_item.png ├── urls.py ├── views.py └── wsgi.py /manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import os 3 | import sys 4 | 5 | if __name__ == "__main__": 6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "realBlog.settings") 7 | 8 | from django.core.management import execute_from_command_line 9 | execute_from_command_line(sys.argv) 10 | -------------------------------------------------------------------------------- /realblog/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/__init__.py -------------------------------------------------------------------------------- /realblog/admin/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/__init__.py -------------------------------------------------------------------------------- /realblog/admin/articles.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block ref %} 4 | 22 | {% endblock %} 23 | {% block content %} 24 |
25 |
26 |
27 | {% for i in articles %} 28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |

36 | {% if i.IsPublic %} 37 | {% if i.IsEncrypted %}${% endif %} 38 | {{ i.Title }} 39 | {% else %} 40 | *{% if i.IsEncrypted %}${% endif %} 41 | {{ i.Title }} 42 | {% endif %} 43 | {{ i.Author.Nickname }} 44 |

45 | {{ i.PostOn|date:"N j, Y H:i" }} {{ i.Timezone|default_if_none:"" }} {{ i.TimezoneOffset|default_if_none:"" }} {{ i.IsDst|yesno:"夏令时,," }} 46 |
47 | 删除 48 | 编辑 49 |
50 |
51 |
52 | 56 |
57 |
58 | {% endfor %} 59 |
60 |
    61 | {% if page_current > 1 %} 62 |
  • 上一页
  • 63 | {% endif %} 64 | {% for i in page_range %} 65 | {% if i == page_current %} 66 |
  • {{ i }}
  • 67 | {% else %} 68 |
  • {{ i }}
  • 69 | {% endif %} 70 | {% endfor %} 71 | 72 | {% if page_current < page_count %} 73 |
  • 下一页
  • 74 | {% endif %} 75 |
76 |
77 |
78 |
79 | {% include 'region-sidebar.html' %} 80 |
81 | 82 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ title }} | {{ page }} 6 | 7 | 8 | 9 | 10 | 11 | {% block ref %} 12 | {% endblock %} 13 | 14 | 15 | 16 |
17 |
18 | {% include 'region-header.html' %} 19 |
20 | 21 |
22 | {% block content %}{% endblock %} 23 |
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /realblog/admin/blog-plugins.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block ref %} 3 | 4 | 5 | 6 | 28 | {% endblock %} 29 | 30 | {% block content %} 31 |
32 |
33 |
34 |
35 |

博客设置

36 |
37 |
38 |
39 |
    40 |
  • 41 |
    微博插件代码:
    42 |
    43 | 44 |
    45 |
  • 46 |
  • 47 |
    评论插件代码:
    48 |
    49 | 50 |
    51 |
  • 52 |
  • 53 |
    最近评论插件代码:
    54 |
    55 | 56 |
    57 |
  • 58 |
  • 59 |
    统计插件代码:
    60 |
    61 | 62 | 66 |
    67 |
  • 68 |
69 |
70 |
71 |
72 |
73 |
74 | 75 |
76 | 保存 77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 | {% include 'region-sidebar.html' %} 86 |
87 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/image/a-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/a-button.png -------------------------------------------------------------------------------- /realblog/admin/image/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/blank.png -------------------------------------------------------------------------------- /realblog/admin/image/blue-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/blue-button.png -------------------------------------------------------------------------------- /realblog/admin/image/button-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/button-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/comment-notes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/comment-notes.png -------------------------------------------------------------------------------- /realblog/admin/image/content-holder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/content-holder.png -------------------------------------------------------------------------------- /realblog/admin/image/deep-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/deep-blue.png -------------------------------------------------------------------------------- /realblog/admin/image/dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/dialog.png -------------------------------------------------------------------------------- /realblog/admin/image/dianlog-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/dianlog-sprite.png -------------------------------------------------------------------------------- /realblog/admin/image/editor-control.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/editor-control.png -------------------------------------------------------------------------------- /realblog/admin/image/editor-promote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/editor-promote.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-bg-sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-bg-sprites.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-exif-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-exif-detail.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-ft-triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-ft-triangle.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-icons.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-img-too-high-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-img-too-high-tip.png -------------------------------------------------------------------------------- /realblog/admin/image/feed-new-post-guide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/feed-new-post-guide.png -------------------------------------------------------------------------------- /realblog/admin/image/gp-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/gp-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/gp-complete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/gp-complete.png -------------------------------------------------------------------------------- /realblog/admin/image/gray-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/gray-button.png -------------------------------------------------------------------------------- /realblog/admin/image/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/green.png -------------------------------------------------------------------------------- /realblog/admin/image/grey-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/grey-tip.png -------------------------------------------------------------------------------- /realblog/admin/image/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/header.png -------------------------------------------------------------------------------- /realblog/admin/image/helpcenter-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/helpcenter-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/home.png -------------------------------------------------------------------------------- /realblog/admin/image/hot-tag-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/hot-tag-icon.png -------------------------------------------------------------------------------- /realblog/admin/image/htmlbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/htmlbg.png -------------------------------------------------------------------------------- /realblog/admin/image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/icon.png -------------------------------------------------------------------------------- /realblog/admin/image/input-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/input-text.png -------------------------------------------------------------------------------- /realblog/admin/image/loading-small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/loading-small.gif -------------------------------------------------------------------------------- /realblog/admin/image/logo-0317.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/logo-0317.png -------------------------------------------------------------------------------- /realblog/admin/image/msg-load-more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/msg-load-more.png -------------------------------------------------------------------------------- /realblog/admin/image/msg-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/msg-title.png -------------------------------------------------------------------------------- /realblog/admin/image/msgbox-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/msgbox-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/no-login-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/no-login-search.png -------------------------------------------------------------------------------- /realblog/admin/image/pb-main-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/pb-main-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/pb-tag-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/pb-tag-bg.png -------------------------------------------------------------------------------- /realblog/admin/image/photo-reply.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/photo-reply.png -------------------------------------------------------------------------------- /realblog/admin/image/player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/player.png -------------------------------------------------------------------------------- /realblog/admin/image/post-by-timer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/post-by-timer.png -------------------------------------------------------------------------------- /realblog/admin/image/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/progress.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher-audio-drag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher-audio-drag.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher-photo-drag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher-photo-drag.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher-share-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher-share-tip.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher-video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher-video.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher.png -------------------------------------------------------------------------------- /realblog/admin/image/publisher_photo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/publisher_photo.png -------------------------------------------------------------------------------- /realblog/admin/image/radar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/radar.png -------------------------------------------------------------------------------- /realblog/admin/image/round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/round.png -------------------------------------------------------------------------------- /realblog/admin/image/side-search-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/side-search-tip.png -------------------------------------------------------------------------------- /realblog/admin/image/sidemenu-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/sidemenu-item.png -------------------------------------------------------------------------------- /realblog/admin/image/sidemenu-sub-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/sidemenu-sub-item.png -------------------------------------------------------------------------------- /realblog/admin/image/sidemenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/sidemenu.png -------------------------------------------------------------------------------- /realblog/admin/image/small-close-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/small-close-icon.png -------------------------------------------------------------------------------- /realblog/admin/image/small-round-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/small-round-loading.gif -------------------------------------------------------------------------------- /realblog/admin/image/split.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/split.png -------------------------------------------------------------------------------- /realblog/admin/image/startpage-0410.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/startpage-0410.png -------------------------------------------------------------------------------- /realblog/admin/image/startpage-1231.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/startpage-1231.png -------------------------------------------------------------------------------- /realblog/admin/image/startpage-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/startpage-button.png -------------------------------------------------------------------------------- /realblog/admin/image/startpage-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/startpage-error.png -------------------------------------------------------------------------------- /realblog/admin/image/startpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/startpage.png -------------------------------------------------------------------------------- /realblog/admin/image/wall-player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/wall-player.png -------------------------------------------------------------------------------- /realblog/admin/image/x-close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/x-close.png -------------------------------------------------------------------------------- /realblog/admin/image/xiami_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/xiami_player.png -------------------------------------------------------------------------------- /realblog/admin/image/yellow-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/image/yellow-tip.png -------------------------------------------------------------------------------- /realblog/admin/img/uploadify-cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/img/uploadify-cancel.png -------------------------------------------------------------------------------- /realblog/admin/import-and-export.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block ref %} 3 | 4 | 5 | 6 | 20 | {% endblock %} 21 | 22 | {% block content %} 23 |
24 |
25 |
26 |
27 |

导入导出

28 |
29 |
30 |
31 |
    32 |
  • 33 |
    从WordPress导入日志:
    34 |
    35 | 36 | 51 | 70 |
    71 |
  • 72 |
73 |
74 |
75 |
76 |
77 | {% include 'region-sidebar.html' %} 78 |
79 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/install.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RealBlog | 自己的博客 6 | 7 | 8 | 9 | 10 | 11 | 12 | 34 | 35 | 36 | 37 |
38 |
39 |

RealBlog

40 |
41 |
42 |
    43 |
  • 44 |
    博客地址
    45 |
    46 | 47 |
    48 |
    主机地址,如www.chenyan.fr
    49 |
  • 50 |
  • 51 |
    博客名称
    52 |
    53 | 54 |
    55 |
    仅限字母、数字和下划线
    56 |
  • 57 |
  • 58 |
    所有管理员
    59 |
    60 | 61 |
    62 |
    仅限字母、数字和下划线
    63 |
  • 64 |
  • 65 |
     
    66 |
    如有错误,请到config/server.py中修改
    67 |
  • 68 |
  • 69 |
     
    70 | 71 |
    72 | 75 |
    76 |
  • 77 |
  • 78 | 79 |
  • 80 |
81 |
82 |
83 | 86 |
87 |
88 | 89 | -------------------------------------------------------------------------------- /realblog/admin/link.py: -------------------------------------------------------------------------------- 1 | # encoding: utf8 2 | import pymongo 3 | from bson.objectid import ObjectId 4 | from django.views.decorators.csrf import csrf_exempt 5 | from realblog.func import redirect, render_admin_and_back, connect_blog_database 6 | 7 | __author__ = '在何方' 8 | 9 | def show_all(request): 10 | 11 | db = connect_blog_database(request) 12 | info = db.infos.find_one() 13 | links = list(db.links.find(sort=[('Order', pymongo.ASCENDING)])) 14 | for link in links: 15 | link['Id'] = str(link['_id']) 16 | 17 | return render_admin_and_back(request, 'show-links.html', { 18 | 'page': u'链接', 19 | 'links':links, 20 | 'selection':'links', 21 | }) 22 | 23 | @csrf_exempt 24 | def new(request): 25 | 26 | db = connect_blog_database(request) 27 | 28 | # 普通访问 29 | if request.method == 'GET': 30 | return render_admin_and_back(request, 'edit-link.html', { 31 | 'page': u'新链接', 32 | }) 33 | 34 | elif request.method == 'POST': 35 | 36 | d = request.POST 37 | order = int(d['link-order']) if d['link-order'] else 0 38 | update = { 39 | 'Title':d['link-title'], 40 | 'Address':d['link-address'], 41 | 'Description':d['link-description'], 42 | 'Order': order, 43 | } 44 | # 插入新的Link 45 | db.links.insert(update) 46 | 47 | # 对链接重新排序 48 | links = list(db.links.find(sort=[('Order', pymongo.ASCENDING)])) 49 | for i in xrange(0, len(links)): 50 | if links[i]['Order'] != i: 51 | db.links.update(links[i], {"$set":{'Order': i}}) 52 | 53 | return redirect(request, '新建链接成功', 'admin/show-links/') 54 | 55 | @csrf_exempt 56 | def edit(request, objectId): 57 | 58 | db = connect_blog_database(request) 59 | id = ObjectId(objectId) 60 | 61 | # 普通访问 62 | if request.method == 'GET': 63 | link = db.links.find_one({'_id':id}) 64 | return render_admin_and_back(request, 'edit-link.html', { 65 | 'page': u'编辑链接', 66 | 'link': link 67 | }) 68 | 69 | elif request.method == 'POST': 70 | 71 | d = request.POST 72 | order = int(d['link-order']) if d['link-order'] else 0 73 | update = { 74 | 'Title':d['link-title'], 75 | 'Address':d['link-address'], 76 | 'Description':d['link-description'], 77 | 'Order':order, 78 | } 79 | # 取得所有链接 80 | links = list(db.links.find(sort=[('Order', pymongo.ASCENDING)])) 81 | 82 | # 创建或取得编辑中的Link 83 | link = filter(lambda i: i['_id'] == id, links)[0] 84 | db.links.update(link, {'$set': update}) 85 | links.remove(link) 86 | links.insert(order, link) 87 | 88 | # 对所有链接重新排序 89 | for i in xrange(0, len(links)): 90 | if links[i]['Order'] != i: 91 | db.links.update(links[i], {"$set":{'Order': i}}) 92 | 93 | return redirect(request, '编辑链接成功', 'admin/show-links/') 94 | 95 | @csrf_exempt 96 | def delete(request, objectId): 97 | 98 | db = connect_blog_database(request) 99 | id = ObjectId(objectId) 100 | 101 | # 普通访问 102 | if request.method == 'GET': 103 | db.links.remove({'_id':id}) 104 | 105 | # 取得所有链接 106 | links = list(db.links.find(sort=[('Order', pymongo.ASCENDING)])) 107 | 108 | # 对所有链接重新排序 109 | for i in xrange(0, len(links)): 110 | if links[i]['Order'] != i: 111 | db.links.update(links[i], {"$set":{'Order': i}}) 112 | 113 | return redirect(request, '删除链接成功', 'admin/show-links/') 114 | 115 | -------------------------------------------------------------------------------- /realblog/admin/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RealBlog | 自己的博客 6 | 7 | 8 | 9 | 10 | 32 | 33 | 34 | 35 |
36 |
37 |

RealBlog

38 |
39 |
40 |
41 | 42 | 43 | 44 | 45 |
46 |
47 | 48 | 49 | 50 | 51 |
52 | 53 | 54 | 55 |
56 |
57 | 59 |
60 |
61 | 62 | -------------------------------------------------------------------------------- /realblog/admin/redirect.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 正在跳转 5 | 12 | 13 | 14 | {{ title }} 15 | 16 | -------------------------------------------------------------------------------- /realblog/admin/region-footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/admin/region-header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/admin/region-sidebar.html: -------------------------------------------------------------------------------- 1 |
2 | 35 | 36 | 55 | 78 |
-------------------------------------------------------------------------------- /realblog/admin/register.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RealBlog | 自己的博客 6 | 7 | 8 | 9 | 10 | 11 | 12 | 34 | 35 | 36 | 37 |
38 |
39 |

RealBlog

40 |
41 |
42 |
    43 |
  • 44 |
    用户名
    45 |
    46 | 47 |
    48 |
    {{ is_to_install|yesno:"创建指定管理员账户,为安装做准备,仅限字母、数字和下划线" }}
    49 | 50 |
  • 51 |
  • 52 |
    密码
    53 |
    54 | 55 |
    56 |
    密码不能少于6位
    57 |
  • 58 |
  • 59 |
    重复密码
    60 |
    61 | 62 |
    63 |
    64 |
  • 65 |
  • 66 |
    昵称
    67 |
    68 | 69 |
    70 |
    昵称作为文章的作者显示
    71 |
  • 72 |
  • 73 |
    电子邮箱
    74 |
    75 | 76 |
    77 |
    78 |
  • 79 |
  • 80 | 81 |
  • 82 |
83 | 84 |
85 |
86 | 89 |
90 |
91 | 92 | -------------------------------------------------------------------------------- /realblog/admin/script/crypto-min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Crypto-JS v2.5.3 3 | * http://code.google.com/p/crypto-js/ 4 | * (c) 2009-2012 by Jeff Mott. All rights reserved. 5 | * http://code.google.com/p/crypto-js/wiki/License 6 | */ 7 | (typeof Crypto=="undefined"||!Crypto.util)&&function(){var e=window.Crypto={},g=e.util={rotl:function(a,b){return a<>>32-b},rotr:function(a,b){return a<<32-b|a>>>b},endian:function(a){if(a.constructor==Number)return g.rotl(a,8)&16711935|g.rotl(a,24)&4278255360;for(var b=0;b0;a--)b.push(Math.floor(Math.random()*256));return b},bytesToWords:function(a){for(var b=[],c=0,d=0;c>>5]|=(a[c]&255)<< 8 | 24-d%32;return b},wordsToBytes:function(a){for(var b=[],c=0;c>>5]>>>24-c%32&255);return b},bytesToHex:function(a){for(var b=[],c=0;c>>4).toString(16)),b.push((a[c]&15).toString(16));return b.join("")},hexToBytes:function(a){for(var b=[],c=0;c>>6*(3-e)&63)):b.push("=");return b.join("")},base64ToBytes:function(a){if(typeof atob=="function")return f.stringToBytes(atob(a));for(var a=a.replace(/[^A-Z0-9+\/]/ig,""),b=[],c=0,d=0;c>> 10 | 6-d*2);return b}},e=e.charenc={};e.UTF8={stringToBytes:function(a){return f.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(f.bytesToString(a)))}};var f=e.Binary={stringToBytes:function(a){for(var b=[],c=0;c>>32-c},rotr:function(a,c){return a<<32-c|a>>>c},endian:function(a){if(a.constructor==Number)return m.rotl(a,8)&16711935|m.rotl(a,24)&4278255360;for(var c=0;c0;a--)c.push(Math.floor(Math.random()*256));return c},bytesToWords:function(a){for(var c=[],b=0,i=0;b>>5]|=(a[b]&255)<< 8 | 24-i%32;return c},wordsToBytes:function(a){for(var c=[],b=0;b>>5]>>>24-b%32&255);return c},bytesToHex:function(a){for(var c=[],b=0;b>>4).toString(16)),c.push((a[b]&15).toString(16));return c.join("")},hexToBytes:function(a){for(var c=[],b=0;b>>6*(3-l)&63)):c.push("=");return c.join("")},base64ToBytes:function(a){if(typeof atob=="function")return f.stringToBytes(atob(a));for(var a=a.replace(/[^A-Z0-9+\/]/ig,""),c=[],b=0,i=0;b>> 10 | 6-i*2);return c}},d=d.charenc={};d.UTF8={stringToBytes:function(a){return f.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(f.bytesToString(a)))}};var f=d.Binary={stringToBytes:function(a){for(var c=[],b=0;b>5]|=128<<24-g%32;c[(g+64>>>9<<4)+15]=g;for(g=0;g>>31}n=(d<<5|d>>>27)+f+(b[e]>>>0)+(e<20?(h&j|~h&k)+1518500249:e<40?(h^j^k)+1859775393:e<60?(h&j|h&k|j&k)-1894007588:(h^j^k)-899497514);f=k;k=j;j=h<<30|h>>>2;h=d;d=n}d+=o;h+=p;j+=q;k+=r;f+=s}return[d,h,j,k,f]};b._blocksize=16;b._digestsize=20})(); 13 | -------------------------------------------------------------------------------- /realblog/admin/script/uploadify.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/admin/script/uploadify.swf -------------------------------------------------------------------------------- /realblog/admin/show-categories.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block ref %} 4 | 10 | {% endblock %} 11 | 12 | {% block content %} 13 |
14 |
15 |
16 | {% for i in categories %} 17 | 37 | {% endfor %} 38 |
39 |
40 |
41 |
42 |
43 | 44 |
45 | 新分类 46 |
47 |
48 |
49 |
50 |
51 |
52 | {% include 'region-sidebar.html' %} 53 |
54 | 55 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/show-hidden-article.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 |
5 |
6 |
7 |
8 | 9 |
10 |
11 |
12 |
13 |

{{ article.Title }} 14 | {{ article.Author.Nickname }} 15 |

16 | 17 |
18 |
19 |
{{ article.HiddenContent|safe }}
20 |
21 |
22 | 23 |
24 |
25 |
26 | 喜欢 27 | 删除 28 | 编辑 29 |
30 |
31 |
32 |
33 |
34 |
35 | {% include 'region-sidebar.html' %} 36 |
37 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/show-links.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | 3 | {% block ref %} 4 | 10 | {% endblock %} 11 | 12 | {% block content %} 13 |
14 |
15 |
16 | {% for i in links %} 17 | 38 | {% endfor %} 39 |
40 |
41 |
42 |
43 |
44 | 45 |
46 | 新链接 47 |
48 |
49 |
50 |
51 |
52 |
53 | {% include 'region-sidebar.html' %} 54 |
55 | 56 | {% endblock %} -------------------------------------------------------------------------------- /realblog/admin/style/login-style.css: -------------------------------------------------------------------------------- 1 | .list .li{ 2 | margin: 10px 0 10px 0; 3 | } 4 | .list .li .item-title { 5 | float: left; 6 | display: inline; 7 | width: 125px; 8 | line-height: 38px; 9 | text-align: right; 10 | color: #444; 11 | } 12 | 13 | .list .li .item { 14 | float: left; 15 | width: 230px; 16 | padding: 0 20px; 17 | position: relative; 18 | display: inline; 19 | overflow: hidden; 20 | } 21 | 22 | .list .li .item-des{ 23 | float: left; 24 | width: 200px; 25 | height: 38px; 26 | line-height: 38px; 27 | display: inline; 28 | overflow: hidden; 29 | } 30 | 31 | .item-current-info{ 32 | font-size: 14px; 33 | margin: 8px 0 8px 0; 34 | } 35 | 36 | .ui-text{ 37 | width: 224px; 38 | } -------------------------------------------------------------------------------- /realblog/admin/style/uploadify.css: -------------------------------------------------------------------------------- 1 | /* 2 | Uploadify 3 | Copyright (c) 2012 Reactive Apps, Ronnie Garcia 4 | Released under the MIT License 5 | */ 6 | 7 | .uploadify { 8 | position: relative; 9 | margin-bottom: 1em; 10 | } 11 | .uploadify-button { 12 | background-color: #505050; 13 | background-image: linear-gradient(bottom, #505050 0%, #707070 100%); 14 | background-image: -o-linear-gradient(bottom, #505050 0%, #707070 100%); 15 | background-image: -moz-linear-gradient(bottom, #505050 0%, #707070 100%); 16 | background-image: -webkit-linear-gradient(bottom, #505050 0%, #707070 100%); 17 | background-image: -ms-linear-gradient(bottom, #505050 0%, #707070 100%); 18 | background-image: -webkit-gradient( 19 | linear, 20 | left bottom, 21 | left top, 22 | color-stop(0, #505050), 23 | color-stop(1, #707070) 24 | ); 25 | background-position: center top; 26 | background-repeat: no-repeat; 27 | -webkit-border-radius: 30px; 28 | -moz-border-radius: 30px; 29 | border-radius: 30px; 30 | border: 2px solid #808080; 31 | color: #FFF; 32 | font: bold 12px Arial, Helvetica, sans-serif; 33 | text-align: center; 34 | text-shadow: 0 -1px 0 rgba(0,0,0,0.25); 35 | width: 100%; 36 | } 37 | .uploadify:hover .uploadify-button { 38 | background-color: #606060; 39 | background-image: linear-gradient(top, #606060 0%, #808080 100%); 40 | background-image: -o-linear-gradient(top, #606060 0%, #808080 100%); 41 | background-image: -moz-linear-gradient(top, #606060 0%, #808080 100%); 42 | background-image: -webkit-linear-gradient(top, #606060 0%, #808080 100%); 43 | background-image: -ms-linear-gradient(top, #606060 0%, #808080 100%); 44 | background-image: -webkit-gradient( 45 | linear, 46 | left bottom, 47 | left top, 48 | color-stop(0, #606060), 49 | color-stop(1, #808080) 50 | ); 51 | background-position: center bottom; 52 | } 53 | .uploadify-button.disabled { 54 | background-color: #D0D0D0; 55 | color: #808080; 56 | } 57 | .uploadify-queue { 58 | margin-bottom: 1em; 59 | } 60 | .uploadify-queue-item { 61 | background-color: #F5F5F5; 62 | -webkit-border-radius: 3px; 63 | -moz-border-radius: 3px; 64 | border-radius: 3px; 65 | font: 11px Verdana, Geneva, sans-serif; 66 | margin-top: 5px; 67 | max-width: 350px; 68 | padding: 10px; 69 | } 70 | .uploadify-error { 71 | background-color: #FDE5DD !important; 72 | } 73 | .uploadify-queue-item .cancel a { 74 | background: url('../img/uploadify-cancel.png') 0 0 no-repeat; 75 | float: right; 76 | height: 16px; 77 | text-indent: -9999px; 78 | width: 16px; 79 | } 80 | .uploadify-queue-item.completed { 81 | background-color: #E5E5E5; 82 | } 83 | .uploadify-progress { 84 | background-color: #E5E5E5; 85 | margin-top: 10px; 86 | width: 100%; 87 | } 88 | .uploadify-progress-bar { 89 | background-color: #0099FF; 90 | height: 3px; 91 | width: 1px; 92 | } -------------------------------------------------------------------------------- /realblog/admin/timezone.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | from datetime import datetime 3 | import pytz 4 | 5 | def get_timezone_object(timezone, offset): 6 | if timezone not in pytz.all_timezones: 7 | return None 8 | 9 | # 验证客户端给出的时区是否有效 10 | tz = pytz.timezone(timezone) 11 | cal_offset = tz.utcoffset(datetime(2000, 1, 1, 0, 0)) 12 | if cal_offset.seconds / 3600 == int(offset): 13 | return tz 14 | 15 | def is_daylight_saving_time(timezone, date): 16 | return timezone.dst(date).seconds != 0 17 | -------------------------------------------------------------------------------- /realblog/admin/urls.py: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | import os 3 | 4 | from django.conf.urls import patterns, include, url 5 | from django.http import HttpResponse 6 | from django.views.decorators.csrf import csrf_exempt 7 | from realblog.admin import article, category, link, other 8 | # Uncomment the next two lines to enable the admin: 9 | # from django.contrib import admin 10 | # admin.autodiscover() 11 | 12 | urlpatterns = patterns('', 13 | 14 | url( r'^$', article.show_articles), 15 | 16 | # Articles 17 | url( r'^show-articles/(\d+)/$', article.show_articles), 18 | url( r'^new-article/$', article.new), 19 | url( r'^edit-article/(\d+)/$', article.edit), 20 | url( r'^delete-article/(\d+)/$', article.delete), 21 | url( r'^show-hidden-article/(\d+)/$', article.show_hidden_article), 22 | 23 | # Categories 24 | url( r'^show-categories/$', category.show_all), 25 | url( r'^new-category/$', category.new), 26 | url( r'^edit-category/([0-9a-f]+)/$', category.edit), 27 | url( r'^delete-category/([0-9a-f]+)/$', category.delete), 28 | 29 | # Links 30 | url( r'^show-links/$', link.show_all), 31 | url( r'^new-link/$', link.new), 32 | url( r'^edit-link/([0-9a-f]+)/$', link.edit), 33 | url( r'^delete-link/([0-9a-f]+)/$', link.delete), 34 | 35 | # Settings 36 | url( r'^blog-settings/$', other.show_settings), 37 | url( r'^blog-plugins/$', other.show_plugins), 38 | 39 | url( r'^upload-xml/$', other.upload_xml), 40 | url( r'^import-xml/(.+?)/$', other.import_xml), 41 | url( r'^import-and-export/$', other.import_and_export), 42 | 43 | url( r'^refresh-archive-information/$', other.refresh_archive_information), 44 | ) 45 | 46 | 47 | -------------------------------------------------------------------------------- /realblog/config/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /realblog/config/server.py: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | 3 | DEBUG = True 4 | 5 | DATABASE_HOST = '127.0.0.1' 6 | DATABASE_PORT = 27017 7 | DATABASE_USERNAME = None 8 | DATABASE_PASSWORD = None 9 | 10 | STR_NAME = 'Name' 11 | STR_ADMINS = 'Administrators' 12 | 13 | BLOGS = { 14 | '127.0.0.1:8000':{ 15 | STR_NAME: 'realBlog', 16 | STR_ADMINS: 'real', 17 | } 18 | } -------------------------------------------------------------------------------- /realblog/editor/dialogs/anchor/anchor.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 |
16 | 17 |
18 | 19 | 39 | 40 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/attachment.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | * {margin: 0;padding: 0;} 4 | .wrapper { width: 460px;height: 340px; border: 1px solid #ddd;margin: 8px;overflow-y: hidden;} 5 | .controller { 6 | height: 30px; 7 | padding-top: 10px; 8 | padding-left: 6px; 9 | } 10 | #divStatus {display:inline-block; width:336px;color: #aaa;font-size: 12px; } 11 | #startUpload{cursor: pointer;margin-right: 10px; float: right; display: inline-block; width: 100px;height: 30px} 12 | div.fieldset { 13 | border: 1px solid #afe14c; 14 | padding: 10px 10px; 15 | } 16 | div.fieldset span.legend{position: relative;top:-20px;} 17 | div.flash { 18 | width: 420px; 19 | height: 236px; 20 | margin: 2px 5px 8px 9px; 21 | border-color: #D9E4FF; 22 | overflow-y: auto; 23 | -moz-border-radius-topleft : 5px; 24 | -webkit-border-top-left-radius : 5px; 25 | -moz-border-radius-topright : 5px; 26 | -webkit-border-top-right-radius : 5px; 27 | -moz-border-radius-bottomleft : 5px; 28 | -webkit-border-bottom-left-radius : 5px; 29 | -moz-border-radius-bottomright : 5px; 30 | -webkit-border-bottom-right-radius : 5px; 31 | 32 | } 33 | 34 | .progressWrapper { 35 | width: 412px; 36 | overflow: hidden; 37 | } 38 | 39 | .progressContainer { 40 | margin: 0 0px 5px 0; 41 | /*padding: 3px 0 3px 4px;*/ 42 | border: solid 1px #E8E8E8; 43 | background-color: #F7F7F7; 44 | overflow: hidden; 45 | } 46 | /* Message */ 47 | .message { 48 | margin: 1em 0; 49 | padding: 10px 20px; 50 | border: solid 1px #FFDD99; 51 | background-color: #FFFFCC; 52 | overflow: hidden; 53 | } 54 | /* Error */ 55 | .red { 56 | border: solid 1px #B50000; 57 | background-color: #FFEBEB; 58 | } 59 | 60 | /* Current */ 61 | .green { 62 | border: solid 1px #DDF0DD; 63 | background-color: #EBFFEB; 64 | } 65 | 66 | /* Complete */ 67 | .blue { 68 | border: solid 1px #CEE2F2; 69 | background-color: #F0F5FF; 70 | } 71 | 72 | .progressName { 73 | font-size: 10px; 74 | color: #555; 75 | width: 360px; 76 | height: 14px; 77 | text-align: left; 78 | white-space: nowrap; 79 | overflow: hidden; 80 | } 81 | 82 | .progressBarInProgress, 83 | .progressBarComplete, 84 | .progressBarError { 85 | font-size: 0; 86 | width: 0%; 87 | height: 2px; 88 | background-color: blue; 89 | margin-top: 2px; 90 | } 91 | 92 | .progressBarComplete { 93 | width: 100%; 94 | background-color: green; 95 | visibility: hidden; 96 | } 97 | 98 | .progressBarError { 99 | width: 100%; 100 | background-color: red; 101 | visibility: hidden; 102 | } 103 | a.progressCancel { 104 | font-size: 0; 105 | display: block; 106 | height: 14px; 107 | width: 14px; 108 | background: url(../../themes/default/images/cancelbutton.gif) -14px 0 no-repeat ; 109 | float: right; 110 | } 111 | 112 | a.progressCancel:hover { 113 | background-position: 0 0; 114 | } 115 | 116 | 117 | .progressBarStatus { 118 | margin-top: 2px; 119 | width: 337px; 120 | font-size: 7pt; 121 | text-align: left; 122 | white-space: nowrap; 123 | } 124 | 125 | /* -- SWFUpload Object Styles ------------------------------- */ 126 | .swfupload { 127 | vertical-align: top; 128 | } 129 | 130 | 131 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_chm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_chm.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_default.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_doc.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_exe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_exe.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_mp3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_mp3.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_mv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_mv.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_pdf.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_ppt.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_psd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_psd.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_rar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_rar.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_txt.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeImages/icon_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/attachment/fileTypeImages/icon_xls.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/attachment/fileTypeMaps.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by JetBrains PhpStorm. 3 | * User: taoqili 4 | * Date: 12-2-10 5 | * Time: 下午3:50 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | //文件类型图标索引 9 | var fileTypeMaps = { 10 | ".rar":"icon_rar.gif", 11 | ".zip":"icon_rar.gif", 12 | ".doc":"icon_doc.gif", 13 | ".docx":"icon_doc.gif", 14 | ".pdf":"icon_pdf.gif", 15 | ".mp3":"icon_mp3.gif", 16 | ".xls":"icon_xls.gif", 17 | ".chm":"icon_chm.gif", 18 | ".ppt":"icon_ppt.gif", 19 | ".pptx":"icon_ppt.gif", 20 | ".avi":"icon_mv.gif", 21 | ".rmvb":"icon_mv.gif", 22 | ".wmv":"icon_mv.gif", 23 | ".flv":"icon_mv.gif", 24 | ".swf":"icon_mv.gif", 25 | ".rm":"icon_mv.gif", 26 | ".exe":"icon_exe.gif", 27 | ".psd":"icon_psd.gif", 28 | ".txt":"icon_txt.gif" 29 | }; -------------------------------------------------------------------------------- /realblog/editor/dialogs/background/background.css: -------------------------------------------------------------------------------- 1 | .wrapper{ width: 424px;margin: 10px auto; zoom:1;position: relative} 2 | .tabbody{height:225px;} 3 | .panel { position: absolute;width:100%; height:100%;background: #fff;} 4 | 5 | body{font-size: 12px;color: #888;overflow: hidden;} 6 | input,label{vertical-align:middle} 7 | .clear{clear: both;} 8 | .pl{padding-left: 23px;padding-left: 28px\9;} 9 | 10 | #imageList {width: 420px;height: 215px;margin-top: 10px;overflow: hidden;overflow-y: auto;} 11 | #imageList div {float: left;width: 100px;height: 95px;margin: 5px 10px;} 12 | #imageList img {cursor: pointer;border: 2px solid white;} 13 | 14 | .bgarea{margin: 10px;padding: 5px;height: 84%;border: 1px solid #A8A297;} 15 | .content div{margin: 10px 0 10px 5px;} 16 | .content .iptradio{margin-right: 10px;} 17 | .txt{width:280px;} 18 | 19 | .wrapcolor{height: 19px;} 20 | div.color{float: left;margin: 0;} 21 | #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;margin: 0;float: left;} 22 | div.alignment,#custom{margin-left: 30px;margin-left: 35px\9;} 23 | #custom input{height: 15px;min-height: 15px;width:20px;} 24 | #repeatType{width:100px;} -------------------------------------------------------------------------------- /realblog/editor/dialogs/background/background.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 |
11 | 12 | 13 |
14 |
15 |
16 |
17 | 18 |
19 |
20 | 21 |
22 |
23 |
24 | 25 |
26 |
27 |
28 |
29 |
30 | 31 |
32 |
33 | : 40 |
41 |
42 | :x:px  y:px 43 |
44 |
45 |
46 | 47 |
48 |
49 |
50 |
51 |
52 |
53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/emotion.css: -------------------------------------------------------------------------------- 1 | .jd img{ 2 | background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top; 3 | cursor:pointer;width:35px;height:35px;display:block; 4 | } 5 | .pp img{ 6 | background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top; 7 | cursor:pointer;width:25px;height:25px;display:block; 8 | } 9 | .ldw img{ 10 | background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top; 11 | cursor:pointer;width:35px;height:35px;display:block; 12 | } 13 | .tsj img{ 14 | background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top; 15 | cursor:pointer;width:35px;height:35px;display:block; 16 | } 17 | .cat img{ 18 | background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top; 19 | cursor:pointer;width:35px;height:35px;display:block; 20 | } 21 | .bb img{ 22 | background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top; 23 | cursor:pointer;width:35px;height:35px;display:block; 24 | } 25 | .youa img{ 26 | background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top; 27 | cursor:pointer;width:35px;height:35px;display:block; 28 | } 29 | 30 | .smileytable td {height: 37px;} 31 | #tabPanel{margin-left:5px;overflow: hidden;} 32 | #tabContent {float:left;background:#FFFFFF;} 33 | #tabContent div{display: none;width:480px;overflow:hidden;} 34 | #tabIconReview.show{left:17px;display:block;} 35 | .menuFocus{background:#ACCD3C;} 36 | .menuDefault{background:#FFFFFF;} 37 | #tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;} 38 | img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;} 39 | 40 | .wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;} 41 | .tabbody div{border:4px solid #F2F2F2;} 42 | .tabbody table{width: 100%;} 43 | .tabbody td{border:1px solid #BAC498;} 44 | .tabbody td span{padding-left: 1px;} 45 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/0.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/bface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/bface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/cface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/cface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/fface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/fface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/jxface2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/jxface2.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/tface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/tface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/wface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/wface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/emotion/images/yface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/emotion/images/yface.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/help/help.css: -------------------------------------------------------------------------------- 1 | .wrapper{width: 370px;margin: 10px auto;zoom: 1;} 2 | .tabbody{height: 360px;} 3 | .tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;} 4 | .tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;} 5 | .tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;} 6 | .tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;} 7 | .tabbody table thead{font-weight: bold;line-height: 25px;} -------------------------------------------------------------------------------- /realblog/editor/dialogs/help/help.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 帮助 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 | 15 |
16 |
17 |
18 |

UEditor

19 |

20 |

21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
ctrl+b
ctrl+c
ctrl+x
ctrl+v
ctrl+y
ctrl+z
ctrl+i
ctrl+u
ctrl+a
ctrl+shift+c
ctrl+shift+l
ctrl+shift+r
shift+enter
85 |
86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/help/help.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-9-26 5 | * Time: 下午1:06 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | /** 9 | * tab点击处理事件 10 | * @param tabHeads 11 | * @param tabBodys 12 | * @param obj 13 | */ 14 | function clickHandler( tabHeads,tabBodys,obj ) { 15 | //head样式更改 16 | for ( var k = 0, len = tabHeads.length; k < len; k++ ) { 17 | tabHeads[k].className = ""; 18 | } 19 | obj.className = "focus"; 20 | //body显隐 21 | var tabSrc = obj.getAttribute( "tabSrc" ); 22 | for ( var j = 0, length = tabBodys.length; j < length; j++ ) { 23 | var body = tabBodys[j], 24 | id = body.getAttribute( "id" ); 25 | body.onclick = function(){ 26 | this.style.zoom = 1; 27 | }; 28 | if ( id != tabSrc ) { 29 | body.style.zIndex = 1; 30 | } else { 31 | body.style.zIndex = 200; 32 | } 33 | } 34 | 35 | } 36 | 37 | /** 38 | * TAB切换 39 | * @param tabParentId tab的父节点ID或者对象本身 40 | */ 41 | function switchTab( tabParentId ) { 42 | var tabElements = $G( tabParentId ).children, 43 | tabHeads = tabElements[0].children, 44 | tabBodys = tabElements[1].children; 45 | 46 | for ( var i = 0, length = tabHeads.length; i < length; i++ ) { 47 | var head = tabHeads[i]; 48 | if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head ); 49 | head.onclick = function () { 50 | clickHandler(tabHeads,tabBodys,this); 51 | } 52 | } 53 | } 54 | switchTab("helptab"); -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/image.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | .wrapper{ width: 623px;margin: 10px auto;zoom:1;position: relative;} 3 | .tabbody{ height:325px;_height:330px;}/*tab样式框大小*/ 4 | .panel { position: absolute;width:100%; height:100%;background: #fff;} 5 | 6 | #remote{ z-index: 200;} 7 | #remote table{border-collapse: collapse;width: 620px; height: 300px; margin-top: 5px;} 8 | #remote td.label{text-align: center;width: 80px; } 9 | #remote td{height: 40px;} 10 | td input { 11 | width: 150px; 12 | height: 21px; 13 | line-height: 21px; 14 | background: #FFF; 15 | border: 1px solid #d7d7d7; 16 | } 17 | #url {width: 520px;margin-bottom: 2px;} 18 | #preview{width: 260px; height: 260px; position: absolute;top:50px; left: 341px; z-index: 9999;background-color: #eee} 19 | .lock{ 20 | position: absolute; 21 | width: 45px; 22 | height: 40px; 23 | top: 68px; 24 | left: 260px; 25 | background: url("../../themes/default/images/lock.gif") -2px -3px no-repeat; 26 | line-height: 40px; 27 | padding-top:13px; 28 | } 29 | #duiqi{ width: 62px; height: 38px;float: left} 30 | #remoteFloat div,#localFloat div{cursor:pointer;opacity: 0.5;filter: alpha(opacity = 50);margin-left:1px;width:38px;height:36px;float:left;} 31 | #remoteFloat .focus,#localFloat .focus{opacity: 1;filter: alpha(opacity = 100)} 32 | #maskIframe{ width: 620px; height: 325px; position: absolute;z-index: 100; } 33 | #flashContainer { margin: 6px;position: relative;} 34 | #upload{width: 100px;height: 30px;float: right; margin:3px 6px 0 0;cursor: pointer;} 35 | #imageList{width: 620px;height: 315px; margin-top: 10px;overflow:hidden;overflow-y: auto;} 36 | #imageList img{cursor: pointer ;border: 2px solid #fff} 37 | #imgManager #imageList div{float: left;width: 100px;height: 100px;margin: 5px 10px;} 38 | #imgSearchTxt{padding-left:2px;margin-left:15px;background: #FFF;width:200px;height:21px;line-height:21px;border: 1px solid #d7d7d7;} 39 | #searchList{width: 620px;overflow: auto;zoom:1;height: 270px;} 40 | #searchList div{float: left;width: 116px;height: 135px;margin: 5px 15px;_margin:5px 10px;} 41 | #searchList img{margin: 2px 8px;cursor: pointer;border: 2px solid #fff} /*不用缩略图*/ 42 | #searchList p{margin-left: 10px;_margin-left:8px;} 43 | #imgType{ 44 | width: 65px; 45 | height: 23px; 46 | line-height: 22px; 47 | border: 1px solid #d7d7d7; 48 | } 49 | #imgSearchBtn,#imgSearchReset{ 50 | width: 100%; 51 | height: 25px; 52 | margin: 0 3px; 53 | line-height: 25px; 54 | background: #eee; 55 | border: 1px solid #d7d7d7; 56 | cursor: pointer 57 | } 58 | .msg{margin-left: 5px;} -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/image/imageUploader.swf -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/image/images/center_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/image/images/left_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/image/images/none_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/image/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/image/images/right_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/internal.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | var parent = window.parent; 3 | //dialog对象 4 | dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )]; 5 | //当前打开dialog的编辑器实例 6 | editor = dialog.editor; 7 | 8 | UE = parent.UE; 9 | 10 | domUtils = UE.dom.domUtils; 11 | 12 | utils = UE.utils; 13 | 14 | browser = UE.browser; 15 | 16 | ajax = UE.ajax; 17 | 18 | $G = function ( id ) { 19 | return document.getElementById( id ) 20 | }; 21 | //focus元素 22 | $focus = function ( node ) { 23 | setTimeout( function () { 24 | if ( browser.ie ) { 25 | var r = node.createTextRange(); 26 | r.collapse( false ); 27 | r.select(); 28 | } else { 29 | node.focus() 30 | } 31 | }, 0 ) 32 | }; 33 | utils.loadFile(document,{ 34 | href:editor.options.themePath + editor.options.theme + "/dialogbase.css?cache="+Math.random(), 35 | tag:"link", 36 | type:"text/css", 37 | rel:"stylesheet" 38 | }); 39 | lang = editor.getLang(dialog.className.split( "-" )[2]); 40 | 41 | domUtils.on(window,'load',function () { 42 | 43 | var langImgPath = editor.options.langPath + editor.options.lang + "/images/"; 44 | //针对静态资源 45 | for ( var i in lang.static ) { 46 | var dom = $G( i ); 47 | if(!dom) continue; 48 | var tagName = dom.tagName, 49 | content = lang.static[i]; 50 | if(content.src){ 51 | //clone 52 | content = utils.extend({},content,false); 53 | content.src = langImgPath + content.src; 54 | } 55 | if(content.style){ 56 | content = utils.extend({},content,false); 57 | content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath) 58 | } 59 | switch ( tagName.toLowerCase() ) { 60 | case "var": 61 | dom.parentNode.replaceChild( document.createTextNode( content ), dom ); 62 | break; 63 | case "select": 64 | var ops = dom.options; 65 | for ( var j = 0, oj; oj = ops[j]; ) { 66 | oj.innerHTML = content.options[j++]; 67 | } 68 | for ( var p in content ) { 69 | p != "options" && dom.setAttribute( p, content[p] ); 70 | } 71 | break; 72 | default : 73 | domUtils.setAttributes( dom, content); 74 | } 75 | } 76 | } ); 77 | 78 | })(); 79 | 80 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/music/music.css: -------------------------------------------------------------------------------- 1 | .wrapper{margin: 5px 10px;} 2 | 3 | .searchBar{height:30px;padding:7px 0 3px;text-align:center;} 4 | .searchBtn{font-size:13px;height:24px;} 5 | 6 | .resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;} 7 | 8 | .listPanel{overflow: hidden;} 9 | .panelon{display:block;} 10 | .paneloff{display:none} 11 | 12 | .page{width:220px;margin:20px auto;overflow: hidden;} 13 | .pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center} 14 | .pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff; 15 | border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;} 16 | 17 | .m-box{width:460px;} 18 | .m-m{float: left;line-height: 20px;height: 20px;} 19 | .m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;} 20 | .m-l{float:left;width:40px; } 21 | .m-t{float:left;width:140px;} 22 | .m-s{float:left;width:110px;} 23 | .m-z{float:left;width:100px;} 24 | .m-try-t{float: left;width: 60px;;} 25 | 26 | .m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;} 27 | .m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;} 28 | 29 | .loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat} 30 | .empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;} -------------------------------------------------------------------------------- /realblog/editor/dialogs/music/music.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 插入音乐 6 | 7 | 8 | 9 | 10 |
11 | 15 |
16 | 17 |
18 |
19 |
20 |
21 | 22 | 31 | 32 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/addimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/addimg.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/brush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/brush.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/delimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/delimg.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/delimgH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/delimgH.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/empty.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/emptyH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/emptyH.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/eraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/eraser.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/redo.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/redoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/redoH.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/scale.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/scaleH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/scaleH.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/size.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/undo.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/scrawl/images/undoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/scrawl/images/undoH.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/searchreplace/searchreplace.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 16 | 17 | 18 |
19 | 23 |
24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 | 41 | 42 |
:
33 | 34 |
38 | 39 | 40 |
43 |
44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 59 | 60 | 61 | 67 | 68 |
:
:
57 | 58 |
62 | 63 | 64 | 65 | 66 |
69 |
70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/snapscreen/snapscreen.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 48 | 49 | 50 |
51 |

52 |
53 |
54 |
55 |
56 |
57 |
58 | 59 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/spechars/spechars.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/spechars/spechars.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-9-26 5 | * Time: 下午1:09 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | var charsContent = [ 9 | { name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,~,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,$,¤,¢,£,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,¬,¦,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")}, 10 | { name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")}, 11 | { name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")}, 12 | { name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")}, 13 | { name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")}, 14 | { name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")}, 15 | { name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")}, 16 | { name:"zyzf", title:lang.zyzf, content:toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ")} 17 | ]; 18 | (function createTab(content) { 19 | for (var i = 0, ci; ci = content[i++];) { 20 | var span = document.createElement("span"); 21 | span.setAttribute("tabSrc", ci.name); 22 | span.innerHTML = ci.title; 23 | if (i == 1)span.className = "focus"; 24 | domUtils.on(span, "click", function () { 25 | var tmps = $G("tabHeads").children; 26 | for (var k = 0, sk; sk = tmps[k++];) { 27 | sk.className = ""; 28 | } 29 | tmps = $G("tabBodys").children; 30 | for (var k = 0, sk; sk = tmps[k++];) { 31 | sk.style.display = "none"; 32 | } 33 | this.className = "focus"; 34 | $G(this.getAttribute("tabSrc")).style.display = ""; 35 | }); 36 | $G("tabHeads").appendChild(span); 37 | domUtils.insertAfter(span, document.createTextNode("\n")); 38 | var div = document.createElement("div"); 39 | div.id = ci.name; 40 | div.style.display = (i == 1) ? "" : "none"; 41 | var cons = ci.content; 42 | for (var j = 0, con; con = cons[j++];) { 43 | var charSpan = document.createElement("span"); 44 | charSpan.innerHTML = con; 45 | domUtils.on(charSpan, "click", function () { 46 | editor.execCommand("insertHTML", this.innerHTML); 47 | dialog.close(); 48 | }); 49 | div.appendChild(charSpan); 50 | } 51 | $G("tabBodys").appendChild(div); 52 | } 53 | })(charsContent); 54 | function toArray(str) { 55 | return str.split(","); 56 | } 57 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/table/table.css: -------------------------------------------------------------------------------- 1 | .wrapper{margin-left: 2px;} 2 | .base{width: 472px;height: 70px; margin-left: 10px;margin-top:10px;border: 1px solid #ddd;} 3 | .wrapper legend{margin-left: 5px; font-weight: bold;font-size: 12px;color: #0066cc;} 4 | .wrapper fieldset table{margin-left: 5px;float: left;} 5 | .wrapper input{ width: 50px;border:1px solid #ccc;} 6 | .wrapper select{width: 50px} 7 | 8 | .base table{margin-left: 10px;} 9 | .base table tr{height: 25px;} 10 | .extend {width: 300px;height: 160px;margin:10px;;float: left;border: 1px solid #ddd;} 11 | .extend table{height: 135px;} 12 | #preview{width: 160px;height: 155px;float: left;border: 1px solid #ccc;margin: 16px 0;background-color: #eee} 13 | span.bold{font-weight: bold} 14 | #preview table {margin:3px 5px;} 15 | #preview table td{width: 30px;height: 20px;border: 1px solid #000;} 16 | #message{float: left;width: 110px;margin-left: 10px;font-size: 10px;color: red;line-height: 15px} 17 | #messageContent{color: green;margin-top: 5px;} 18 | .extend select{width: 90px} 19 | #bgColor{width: 85px;} -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/bg.gif -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/pre0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/pre0.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/pre1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/pre1.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/pre2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/pre2.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/pre3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/pre3.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/images/pre4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/template/images/pre4.png -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/template.css: -------------------------------------------------------------------------------- 1 | .wrap{ padding: 5px;font-size: 14px;} 2 | .left{width:425px;float: left;} 3 | .right{width:160px;border: 1px solid #ccc;float: right;padding: 5px;margin-right: 5px;} 4 | .right .pre{height: 332px;overflow-y: auto;} 5 | .right .preitem{border: white 1px solid;margin: 5px 0;padding: 2px 0;} 6 | .right .preitem:hover{background-color: lemonChiffon;cursor: pointer;border: #ccc 1px solid;} 7 | .right .preitem img{display: block;margin: 0 auto;width:100px;} 8 | .clear{clear: both;} 9 | .top{height:26px;line-height: 26px;padding: 5px;} 10 | .bottom{height:320px;width:100%;margin: 0 auto;} 11 | .transparent{ background: url("images/bg.gif") repeat;} 12 | .bottom table tr td{border:1px dashed #ccc;} 13 | #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;} 14 | .border_style1{padding:2px;border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;} 15 | p{margin: 5px 0} 16 | table{clear:both;margin-bottom:10px;border-collapse:collapse;word-break:break-all;} 17 | li{clear:both} 18 | ol{padding-left:40px; } -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | 14 |
15 |
16 |
17 |
18 | 19 |
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/template/template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-8-8 5 | * Time: 下午2:09 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | (function () { 9 | var me = editor, 10 | preview = $G( "preview" ), 11 | preitem = $G( "preitem" ), 12 | tmps = templates, 13 | currentTmp; 14 | var initPre = function () { 15 | var str = ""; 16 | for ( var i = 0, tmp; tmp = tmps[i++]; ) { 17 | str += '
'; 18 | } 19 | preitem.innerHTML = str; 20 | }; 21 | var pre = function ( n ) { 22 | var tmp = tmps[n - 1]; 23 | currentTmp = tmp; 24 | clearItem(); 25 | domUtils.setStyles( preitem.childNodes[n - 1], { 26 | "background-color":"lemonChiffon", 27 | "border":"#ccc 1px solid" 28 | } ); 29 | preview.innerHTML = tmp.preHtml ? tmp.preHtml : ""; 30 | }; 31 | var clearItem = function () { 32 | var items = preitem.children; 33 | for ( var i = 0, item; item = items[i++]; ) { 34 | domUtils.setStyles( item, { 35 | "background-color":"", 36 | "border":"white 1px solid" 37 | } ); 38 | } 39 | }; 40 | dialog.onok = function () { 41 | if ( !$G( "issave" ).checked ){ 42 | me.execCommand( "cleardoc" ); 43 | } 44 | var obj = { 45 | html:currentTmp && currentTmp.html 46 | }; 47 | me.execCommand( "template", obj ); 48 | }; 49 | initPre(); 50 | window.pre = pre; 51 | pre(2) 52 | 53 | })(); -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/video/images/center_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/video/images/left_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/video/images/none_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/video/images/right_focus.jpg -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/video.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | .wrapper{ width: 570px;_width:575px;margin: 10px auto; zoom:1;position: relative} 3 | .tabbody{height:335px;} 4 | .panel { position: absolute;width:100%; height:100%;background: #fff;} 5 | .panel table td{vertical-align: middle;} 6 | #videoUrl { 7 | width: 490px; 8 | height: 21px; 9 | line-height: 21px; 10 | margin: 8px 5px; 11 | background: #FFF; 12 | border: 1px solid #d7d7d7; 13 | } 14 | #videoSearchTxt{margin-left:15px;background: #FFF;width:200px;height:21px;line-height:21px;border: 1px solid #d7d7d7;} 15 | #searchList{width: 570px;overflow: auto;zoom:1;height: 270px;} 16 | #searchList div{float: left;width: 120px;height: 135px;margin: 5px 15px;} 17 | #searchList img{margin: 2px 8px;cursor: pointer;border: 2px solid #fff} /*不用缩略图*/ 18 | #searchList p{margin-left: 10px;} 19 | #videoType{ 20 | width: 65px; 21 | height: 23px; 22 | line-height: 22px; 23 | border: 1px solid #d7d7d7; 24 | } 25 | #videoSearchBtn,#videoSearchReset{ 26 | /*width: 80px;*/ 27 | height: 25px; 28 | line-height: 25px; 29 | background: #eee; 30 | border: 1px solid #d7d7d7; 31 | cursor: pointer; 32 | padding: 0 5px; 33 | } 34 | 35 | 36 | 37 | #preview{width: 420px; margin-left: 10px; _margin-left:5px; height: 280px;background-color: #ddd;float: left} 38 | #videoInfo {width: 120px;float: left;margin-left: 10px;_margin-left:7px;} 39 | fieldset{ 40 | border: 1px solid #ddd; 41 | padding-left: 5px; 42 | margin-bottom: 20px; 43 | padding-bottom: 5px; 44 | width: 115px; 45 | } 46 | fieldset legend{font-weight: bold;} 47 | fieldset p{line-height: 30px;} 48 | fieldset input.txt{ 49 | width: 65px; 50 | height: 21px; 51 | line-height: 21px; 52 | margin: 8px 5px; 53 | background: #FFF; 54 | border: 1px solid #d7d7d7; 55 | } 56 | label.url{font-weight: bold;margin-left: 5px;color: #06c;} 57 | #videoFloat div{cursor:pointer;opacity: 0.5;filter: alpha(opacity = 50);margin:9px;_margin:5px;width:38px;height:36px;float:left;} 58 | #videoFloat .focus{opacity: 1;filter: alpha(opacity = 100)} 59 | span.view{display: inline-block;width: 30px;float: right;cursor: pointer;color: blue} -------------------------------------------------------------------------------- /realblog/editor/dialogs/video/video.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | 15 | 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 | 31 |
32 |
33 |
34 |
35 | 56 |
57 |
58 |
59 | 60 | 66 | 67 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/webapp/webapp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 |
15 |
16 |
17 | 52 | 53 | -------------------------------------------------------------------------------- /realblog/editor/dialogs/wordimage/fClipboard_ueditor.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/wordimage/fClipboard_ueditor.swf -------------------------------------------------------------------------------- /realblog/editor/dialogs/wordimage/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/dialogs/wordimage/imageUploader.swf -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/addimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/addimage.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/alldeletebtnhoverskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/alldeletebtnhoverskin.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/alldeletebtnupskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/alldeletebtnupskin.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/background.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/button.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/copy.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/deletedisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/deletedisable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/deleteenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/deleteenable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/imglabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/imglabel.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/listbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/listbackground.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/localimage.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/music.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/rotateleftdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/rotateleftdisable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/rotateleftenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/rotateleftenable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/rotaterightdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/rotaterightdisable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/rotaterightenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/rotaterightenable.png -------------------------------------------------------------------------------- /realblog/editor/lang/en/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/en/images/upload.png -------------------------------------------------------------------------------- /realblog/editor/lang/zh-cn/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/zh-cn/images/copy.png -------------------------------------------------------------------------------- /realblog/editor/lang/zh-cn/images/imglabel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/zh-cn/images/imglabel.png -------------------------------------------------------------------------------- /realblog/editor/lang/zh-cn/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/zh-cn/images/localimage.png -------------------------------------------------------------------------------- /realblog/editor/lang/zh-cn/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/zh-cn/images/music.png -------------------------------------------------------------------------------- /realblog/editor/lang/zh-cn/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/lang/zh-cn/images/upload.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/dialogbase.css: -------------------------------------------------------------------------------- 1 | /*弹出对话框页面样式组件 2 | */ 3 | 4 | /*reset 5 | */ 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, font, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td { 15 | margin: 0; 16 | padding: 0; 17 | outline: 0; 18 | font-size: 100%; 19 | } 20 | 21 | body { 22 | line-height: 1; 23 | } 24 | 25 | ol, ul { 26 | list-style: none; 27 | } 28 | 29 | blockquote, q { 30 | quotes: none; 31 | } 32 | 33 | ins { 34 | text-decoration: none; 35 | } 36 | 37 | del { 38 | text-decoration: line-through; 39 | } 40 | 41 | table { 42 | border-collapse: collapse; 43 | border-spacing: 0; 44 | } 45 | 46 | /*module 47 | */ 48 | body { 49 | background-color: #fff; 50 | font: 12px/1.5 "宋体", "Arial Narrow", HELVETICA; 51 | color: #646464; 52 | } 53 | 54 | /*tab*/ 55 | .tabhead { 56 | position: relative; 57 | z-index: 10; 58 | } 59 | 60 | .tabhead span { 61 | display: inline-block; 62 | padding: 0 5px; 63 | height: 30px; 64 | border: 1px solid #ccc; 65 | background: url("images/dialog-title-bg.png") repeat-x; 66 | text-align: center; 67 | line-height: 30px; 68 | cursor: pointer; 69 | *margin-right: 5px; 70 | } 71 | 72 | .tabhead span.focus { 73 | height: 31px; 74 | border-bottom: none; 75 | background: #fff; 76 | } 77 | 78 | .tabbody { 79 | position: relative; 80 | top: -1px; 81 | margin: 0 auto; 82 | border: 1px solid #ccc; 83 | } 84 | 85 | /*button*/ 86 | a.button { 87 | display: block; 88 | text-align: center; 89 | line-height: 24px; 90 | text-decoration: none; 91 | height: 24px; 92 | width: 95px; 93 | border: 0; 94 | color: #838383; 95 | background: url(../../themes/default/images/icons-all.gif) no-repeat; 96 | } 97 | 98 | a.button:hover { 99 | background-position: 0 -30px; 100 | } -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/anchor.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/arrow.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/button-bg.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/cancelbutton.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/cursor_h.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/cursor_v.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/dialog-title-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/filescan.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/highlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/icons-all.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/icons.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/icons.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/lock.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/pagebreak.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/scale.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/spacer.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/sparator_v.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/toolbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/toolbar_bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/unhighlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/upload.png -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/videologo.gif -------------------------------------------------------------------------------- /realblog/editor/themes/default/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/default/images/word.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/dialogbase.css: -------------------------------------------------------------------------------- 1 | /*弹出对话框页面样式组件 2 | */ 3 | 4 | /*reset 5 | */ 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, font, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td { 15 | margin: 0; 16 | padding: 0; 17 | outline: 0; 18 | font-size: 100%; 19 | } 20 | 21 | body { 22 | line-height: 1; 23 | } 24 | 25 | ol, ul { 26 | list-style: none; 27 | } 28 | 29 | blockquote, q { 30 | quotes: none; 31 | } 32 | 33 | ins { 34 | text-decoration: none; 35 | } 36 | 37 | del { 38 | text-decoration: line-through; 39 | } 40 | 41 | table { 42 | border-collapse: collapse; 43 | border-spacing: 0; 44 | } 45 | 46 | /*module 47 | */ 48 | body { 49 | font: 12px/1.5 "Microsoft Yahei", "微软雅黑", Tahoma, Arial, Helvetica, STHeiti; 50 | color: #131f40 51 | } 52 | 53 | /*tab*/ 54 | .tabhead { 55 | position: relative; 56 | z-index: 10; 57 | margin-left: 16px; 58 | } 59 | 60 | .tabhead span { 61 | display: inline-block; 62 | position: relative; 63 | height: 26px; 64 | line-height: 26px; 65 | width: 87px; 66 | margin-left: -16px; 67 | text-align: center; 68 | cursor: pointer; 69 | background-image: url(images/dialog-title-bg.png); 70 | background-position: 0 0; 71 | z-index: 1 72 | } 73 | .tabhead span.focus { 74 | background-position: 0 -42px; 75 | top:1px; 76 | z-index: 100; 77 | } 78 | 79 | .tabbody { 80 | position: relative; 81 | top: -1px; 82 | margin: 0 auto; 83 | border: 1px solid #60739b; 84 | box-shadow: 3px 3px 5px #D3D6DA; 85 | background-color: #fff; 86 | } 87 | 88 | /*button*/ 89 | a.button { 90 | display: block; 91 | text-decoration: none; 92 | height: 27px; 93 | width: 96px; 94 | font-size: 12px; 95 | color: #131f40; 96 | line-height: 27px; 97 | text-align: center; 98 | cursor: default; 99 | background-image: url(images/icons-all.gif); 100 | background-position:0 -35px; 101 | } 102 | 103 | a.button:hover { 104 | background-position: 0 0; 105 | } 106 | 107 | /*滚动条*/ 108 | ::-webkit-scrollbar-track-piece{ 109 | background-color:#fff; 110 | -webkit-border-radius:0; 111 | } 112 | ::-webkit-scrollbar{ 113 | width:10px; 114 | height:8px; 115 | } 116 | ::-webkit-scrollbar-thumb{ 117 | height:50px; 118 | background-color:#999; 119 | -webkit-border-radius:5px; 120 | outline:2px solid #fff; 121 | outline-offset:-2px; 122 | border: 2px solid #fff; 123 | } 124 | ::-webkit-scrollbar-thumb:hover{ 125 | height:50px; 126 | background-color:#9f9f9f; 127 | -webkit-border-radius:4px; 128 | } -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/anchor.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/arrow.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/bottom.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/button-bg.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/cancelbutton.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/cursor_h.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/cursor_v.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/dialog-title-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/dialog_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/dialog_title.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/filescan.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/highlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-all.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-all.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-checked.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-checked.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-checked.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-hover.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons-hover.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/icons.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/lock.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/pagebreak.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/scale.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/spacer.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/sparator_v.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/toolbar-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/toolbar-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/unhighlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/upload.png -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/videologo.gif -------------------------------------------------------------------------------- /realblog/editor/themes/gorgeous/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/gorgeous/images/word.gif -------------------------------------------------------------------------------- /realblog/editor/themes/iframe.css: -------------------------------------------------------------------------------- 1 | /*可以在这里添加你自己的css*/ 2 | -------------------------------------------------------------------------------- /realblog/editor/themes/modern/dialogbase.css: -------------------------------------------------------------------------------- 1 | /*弹出对话框页面样式组件 2 | */ 3 | 4 | /*reset 5 | */ 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, font, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td { 15 | margin: 0; 16 | padding: 0; 17 | outline: 0; 18 | font-size: 100%; 19 | } 20 | 21 | body { 22 | line-height: 1; 23 | } 24 | 25 | ol, ul { 26 | list-style: none; 27 | } 28 | 29 | blockquote, q { 30 | quotes: none; 31 | } 32 | 33 | ins { 34 | text-decoration: none; 35 | } 36 | 37 | del { 38 | text-decoration: line-through; 39 | } 40 | 41 | table { 42 | border-collapse: collapse; 43 | border-spacing: 0; 44 | } 45 | 46 | /*module 47 | */ 48 | body { 49 | font: 12px/1.5 "Microsoft Yahei", "微软雅黑", Tahoma, Arial, Helvetica, STHeiti; 50 | color: #131f40 51 | } 52 | 53 | /*tab*/ 54 | .tabhead { 55 | position: relative; 56 | z-index: 10; 57 | margin-left: 16px; 58 | } 59 | 60 | .tabhead span { 61 | display: inline-block; 62 | position: relative; 63 | height: 26px; 64 | line-height: 26px; 65 | width: 87px; 66 | margin-left: -16px; 67 | text-align: center; 68 | cursor: pointer; 69 | background-image: url(images/dialog-title-bg.png); 70 | background-position: 0 0; 71 | z-index: 1 72 | } 73 | .tabhead span.focus { 74 | background-position: 0 -42px; 75 | top:1px; 76 | z-index: 100; 77 | } 78 | 79 | .tabbody { 80 | position: relative; 81 | top: -1px; 82 | margin: 0 auto; 83 | border: 1px solid #60739b; 84 | box-shadow: 3px 3px 5px #D3D6DA; 85 | background-color: #fff; 86 | } 87 | 88 | /*button*/ 89 | a.button { 90 | display: block; 91 | text-decoration: none; 92 | height: 27px; 93 | width: 96px; 94 | font-size: 12px; 95 | color: #131f40; 96 | line-height: 27px; 97 | text-align: center; 98 | cursor: default; 99 | background-image: url(images/icons-all.gif); 100 | background-position:0 -35px; 101 | } 102 | 103 | a.button:hover { 104 | background-position: 0 0; 105 | } 106 | 107 | /*滚动条*/ 108 | ::-webkit-scrollbar-track-piece{ 109 | background-color:#fff; 110 | -webkit-border-radius:0; 111 | } 112 | ::-webkit-scrollbar{ 113 | width:10px; 114 | height:8px; 115 | } 116 | ::-webkit-scrollbar-thumb{ 117 | height:50px; 118 | background-color:#999; 119 | -webkit-border-radius:5px; 120 | outline:2px solid #fff; 121 | outline-offset:-2px; 122 | border: 2px solid #fff; 123 | } 124 | ::-webkit-scrollbar-thumb:hover{ 125 | height:50px; 126 | background-color:#9f9f9f; 127 | -webkit-border-radius:4px; 128 | } -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/anchor.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/arrow.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/bottom.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/button-bg.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/cancelbutton.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/cursor_h.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/cursor_v.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/dialog-title-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/dialog_title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/dialog_title.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/filescan.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/highlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-all.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-all.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-checked.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-checked.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-checked.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-hover.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons-hover.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/icons.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/lock.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/pagebreak.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/scale.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/spacer.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/sparator_v.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/toolbar-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/toolbar-bg.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/unhighlighted.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/upload.png -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/videologo.gif -------------------------------------------------------------------------------- /realblog/editor/themes/modern/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/editor/themes/modern/images/word.gif -------------------------------------------------------------------------------- /realblog/editor/third-party/codemirror/codemirror.css: -------------------------------------------------------------------------------- 1 | .CodeMirror { 2 | line-height: 1em; 3 | font-family: monospace; 4 | } 5 | 6 | .CodeMirror-scroll { 7 | overflow: auto; 8 | height: 300px; 9 | /* This is needed to prevent an IE[67] bug where the scrolled content 10 | is visible outside of the scrolling box. */ 11 | position: relative; 12 | } 13 | 14 | .CodeMirror-gutter { 15 | position: absolute; left: 0; top: 0; 16 | z-index: 10; 17 | background-color: #f7f7f7; 18 | border-right: 1px solid #eee; 19 | min-width: 2em; 20 | height: 100%; 21 | } 22 | .CodeMirror-gutter-text { 23 | color: #aaa; 24 | text-align: right; 25 | padding: .4em .2em .4em .4em; 26 | white-space: pre !important; 27 | } 28 | .CodeMirror-lines { 29 | padding: .4em; 30 | } 31 | 32 | .CodeMirror pre { 33 | -moz-border-radius: 0; 34 | -webkit-border-radius: 0; 35 | -o-border-radius: 0; 36 | border-radius: 0; 37 | border-width: 0; margin: 0; padding: 0; background: transparent; 38 | font-family: inherit; 39 | font-size: inherit; 40 | padding: 0; margin: 0; 41 | white-space: pre; 42 | word-wrap: normal; 43 | } 44 | 45 | .CodeMirror-wrap pre { 46 | word-wrap: break-word; 47 | white-space: pre-wrap; 48 | } 49 | .CodeMirror-wrap .CodeMirror-scroll { 50 | overflow-x: hidden; 51 | } 52 | 53 | .CodeMirror textarea { 54 | outline: none !important; 55 | } 56 | 57 | .CodeMirror pre.CodeMirror-cursor { 58 | z-index: 10; 59 | position: absolute; 60 | visibility: hidden; 61 | border-left: 1px solid black; 62 | } 63 | .CodeMirror-focused pre.CodeMirror-cursor { 64 | visibility: visible; 65 | } 66 | 67 | span.CodeMirror-selected { background: #d9d9d9; } 68 | .CodeMirror-focused span.CodeMirror-selected { background: #d2dcf8; } 69 | 70 | .CodeMirror-searching {background: #ffa;} 71 | 72 | /* Default theme */ 73 | 74 | .cm-s-default span.cm-keyword {color: #708;} 75 | .cm-s-default span.cm-atom {color: #219;} 76 | .cm-s-default span.cm-number {color: #164;} 77 | .cm-s-default span.cm-def {color: #00f;} 78 | .cm-s-default span.cm-variable {color: black;} 79 | .cm-s-default span.cm-variable-2 {color: #05a;} 80 | .cm-s-default span.cm-variable-3 {color: #085;} 81 | .cm-s-default span.cm-property {color: black;} 82 | .cm-s-default span.cm-operator {color: black;} 83 | .cm-s-default span.cm-comment {color: #a50;} 84 | .cm-s-default span.cm-string {color: #a11;} 85 | .cm-s-default span.cm-string-2 {color: #f50;} 86 | .cm-s-default span.cm-meta {color: #555;} 87 | .cm-s-default span.cm-error {color: #f00;} 88 | .cm-s-default span.cm-qualifier {color: #555;} 89 | .cm-s-default span.cm-builtin {color: #30a;} 90 | .cm-s-default span.cm-bracket {color: #cc7;} 91 | .cm-s-default span.cm-tag {color: #170;} 92 | .cm-s-default span.cm-attribute {color: #00c;} 93 | .cm-s-default span.cm-header {color: #a0a;} 94 | .cm-s-default span.cm-quote {color: #090;} 95 | .cm-s-default span.cm-hr {color: #999;} 96 | .cm-s-default span.cm-link {color: #00c;} 97 | 98 | span.cm-header, span.cm-strong {font-weight: bold;} 99 | span.cm-em {font-style: italic;} 100 | span.cm-emstrong {font-style: italic; font-weight: bold;} 101 | span.cm-link {text-decoration: underline;} 102 | 103 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 104 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 105 | -------------------------------------------------------------------------------- /realblog/middleware.py: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | import urllib2 3 | from django.http import HttpResponseRedirect 4 | from func import get_current_blog 5 | from realblog.config.server import * 6 | 7 | __author__ = 'Home' 8 | 9 | 10 | class CheckIsAdminMiddleware(object): 11 | def process_view(self, request, view, args, kwargs): 12 | module = view.__module__ 13 | if module.find("realblog.admin.") == 0: 14 | url = urllib2.quote(request.get_full_path()[1:]) 15 | 16 | user = request.session.get('user') 17 | if user is None or not is_admin(user, request): 18 | return HttpResponseRedirect('/login/?redirect='+url) 19 | 20 | return None 21 | 22 | def is_admin(user, request): 23 | blog = get_current_blog(request) 24 | if blog is not None: 25 | admins = blog[STR_ADMINS] 26 | if isinstance(admins, str) and admins == user['Username']: 27 | return True 28 | elif isinstance(admins, list) and user['Username'] in admins: 29 | return True 30 | 31 | return False -------------------------------------------------------------------------------- /realblog/themes/Zine/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {% if info.DisallowSpider %}{% endif %} 6 | {{ title }} | {{ page }} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 28 | {% if info.StatisticsCodeInHead %} 29 | {% if info.StatisticsCode %} {{ info.StatisticsCode|safe }} {% endif %} 30 | {% endif %} 31 | 32 | 43 | 44 | 45 | 46 | {% include 'header.html' %} 47 | 48 |
49 | {% block 'main' %}{% endblock %} 50 |
51 | 52 | {% include 'footer.html' %} 53 | {% if not info.StatisticsCodeInHead %} 54 | {% if info.StatisticsCode %} {{ info.StatisticsCode|safe }} {% endif %} 55 | {% endif %} 56 | 57 | -------------------------------------------------------------------------------- /realblog/themes/Zine/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/bg.png -------------------------------------------------------------------------------- /realblog/themes/Zine/detail.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block 'main' %} 4 |
5 |
6 |

7 | {{ article.Title }} 8 |

9 | 30 |
31 | {% if article.IsEncrypted %} 32 | 请输入访问密码: 33 | 34 | 35 | {% else %} 36 | {{ article.Content|safe }} 37 | {% endif %} 38 |
39 |
40 | {% if info.CommentCode %}{{ info.CommentCode|safe }}{% endif %} 41 |
42 | {% include 'sidebar-index.html' %} 43 | 44 |
45 | {% endblock %} -------------------------------------------------------------------------------- /realblog/themes/Zine/dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/dot.gif -------------------------------------------------------------------------------- /realblog/themes/Zine/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/Zine/header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/Zine/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block 'main' %} 4 |
5 | {% for i in articles %} 6 |
7 |

8 | {{ i.Title }} 9 |

10 | 31 |
32 | {% if i.IsEncrypted %} 33 | 请输入访问密码: 34 | 35 | 36 | {% else %} 37 | {{ i.Content|safe }} 38 | {% endif %} 39 |
40 |
41 | {% endfor %} 42 | {% include 'paginator.html' %} 43 |
44 | {% include 'sidebar-index.html' %} 45 | 46 |
47 | {% endblock %} -------------------------------------------------------------------------------- /realblog/themes/Zine/logo-django.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/logo-django.png -------------------------------------------------------------------------------- /realblog/themes/Zine/logo-linode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/logo-linode.png -------------------------------------------------------------------------------- /realblog/themes/Zine/logo-mongodb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/logo-mongodb.png -------------------------------------------------------------------------------- /realblog/themes/Zine/nav.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/nav.gif -------------------------------------------------------------------------------- /realblog/themes/Zine/pagenavi-css.css: -------------------------------------------------------------------------------- 1 | /* 2 | Default style for WP-PageNavi plugin 3 | 4 | http://wordpress.org/extend/plugins/wp-pagenavi/ 5 | */ 6 | 7 | .wp-pagenavi { 8 | clear: both; 9 | } 10 | 11 | .wp-pagenavi a, .wp-pagenavi span { 12 | text-decoration: none; 13 | border: 1px solid #BFBFBF; 14 | padding: 3px 5px; 15 | margin: 2px; 16 | } 17 | 18 | .wp-pagenavi a:hover, .wp-pagenavi span.current { 19 | border-color: #000; 20 | } 21 | 22 | .wp-pagenavi span.current { 23 | font-weight: bold; 24 | } 25 | -------------------------------------------------------------------------------- /realblog/themes/Zine/paginator.html: -------------------------------------------------------------------------------- 1 | 5 | 17 | -------------------------------------------------------------------------------- /realblog/themes/Zine/relatedPosts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/relatedPosts.png -------------------------------------------------------------------------------- /realblog/themes/Zine/sidebar-index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/Zine/switch_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/switch_collapsed.png -------------------------------------------------------------------------------- /realblog/themes/Zine/switch_expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/switch_expanded.png -------------------------------------------------------------------------------- /realblog/themes/Zine/switch_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/switch_item.png -------------------------------------------------------------------------------- /realblog/themes/Zine/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/toolbar.png -------------------------------------------------------------------------------- /realblog/themes/Zine/toolbar_sina.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/Zine/toolbar_sina.png -------------------------------------------------------------------------------- /realblog/themes/Zine/wp-syntax.css: -------------------------------------------------------------------------------- 1 | .wp_syntax { 2 | color: #100; 3 | background-color: #f9f9f9; 4 | border: 1px solid silver; 5 | margin: 0 0 1.5em 0; 6 | overflow: auto; 7 | } 8 | 9 | /* IE FIX */ 10 | .wp_syntax { 11 | overflow-x: auto; 12 | overflow-y: hidden; 13 | padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0); 14 | width: 100%; 15 | } 16 | 17 | .wp_syntax table { 18 | border-collapse: collapse; 19 | } 20 | 21 | .wp_syntax div, .wp_syntax td { 22 | vertical-align: top; 23 | padding: 2px 4px; 24 | } 25 | 26 | .wp_syntax .line_numbers { 27 | text-align: right; 28 | background-color: #def; 29 | color: gray; 30 | overflow: visible; 31 | } 32 | 33 | /* potential overrides for other styles */ 34 | .wp_syntax pre { 35 | margin: 0; 36 | width: auto; 37 | float: none; 38 | clear: none; 39 | overflow: visible; 40 | font-size: 12px; 41 | line-height: 1.333; 42 | white-space: pre; 43 | } 44 | -------------------------------------------------------------------------------- /realblog/themes/default/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {% if info.DisallowSpider %}{% endif %} 7 | {{ title }} | {{ page }} 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {% if info.StatisticsCodeInHead %} 18 | {% if info.StatisticsCode %} {{ info.StatisticsCode|safe }} {% endif %} 19 | {% endif %} 20 | 31 | 32 | 33 | 34 |
35 | 36 | {% include 'header.html' %} 37 | {% block content %}{% endblock %} 38 | {% block sidebar %}{% endblock %} 39 | {% include 'footer.html' %} 40 | 41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /realblog/themes/default/bullet_black.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/bullet_black.gif -------------------------------------------------------------------------------- /realblog/themes/default/bullet_red.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/bullet_red.gif -------------------------------------------------------------------------------- /realblog/themes/default/detail.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 |
5 |
6 |

{{ article.Title }}

7 | 8 | Author: 9 | | Filed under: 10 | {% for c in article.Categories %} 11 | 12 | {% if not forloop.last %}, {% endif %} 13 | {% endfor %} 14 | {% if article.Tags %} 15 | | Tags: 16 | {% for t in article.Tags %} 17 | 18 | {% if not forloop.last %}, {% endif %} 19 | {% endfor %} 20 | {% endif %} 21 |
22 | Posted: {{ article.PostOn|date:"N j, Y H:i" }} 23 | | Timezone: {{ article.Timezone }} {{ article.TimezoneOffset }} {{ article.IsDst|yesno:"夏令时," }} 24 |
25 |

26 | {% if article.IsEncrypted %} 27 | 请输入访问密码: 28 | 29 | 30 | {% else %} 31 | {{ article.Content|safe }} 32 | {% endif %} 33 |

34 | 38 | {% if info.CommentCode %}{{ info.CommentCode|safe }}{% endif %} 39 |
40 |
41 | {% endblock %} 42 | {% block sidebar %} 43 | {% include 'sidebar-detail.html' %} 44 | {% endblock %} -------------------------------------------------------------------------------- /realblog/themes/default/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/default/header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/default/index.html: -------------------------------------------------------------------------------- 1 | {% extends 'base.html' %} 2 | 3 | {% block content %} 4 |
5 | {% for i in articles %} 6 |
7 |

{{ i.Title }}

8 | 9 | Author: 10 | | Filed under: 11 | {% for c in i.Categories %} 12 | 13 | {% if not forloop.last %}, {% endif %} 14 | {% endfor %} 15 | {% if i.Tags %} 16 | | Tags: 17 | {% for t in i.Tags %} 18 | 19 | {% if not forloop.last %}, {% endif %} 20 | {% endfor %} 21 | {% endif %} 22 |
23 | Posted: {{ i.PostOn|date:"N j, Y H:i" }} 24 | | Timezone: {{ i.Timezone }} {{ i.TimezoneOffset }} {{ i.IsDst|yesno:"夏令时," }} 25 |
26 |

27 | {% if i.IsEncrypted %} 28 | 请输入访问密码: 29 | 30 | 31 | {% else %} 32 | {{ i.Content|safe }} 33 | 阅读全文 » 34 | {% endif %} 35 |

36 |
37 |
38 | {% endfor %} 39 | 47 |
48 | {% endblock %} 49 | 50 | {% block sidebar %} 51 | {% include 'sidebar-index.html' %} 52 | {% endblock %} 53 | -------------------------------------------------------------------------------- /realblog/themes/default/logo-django.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/logo-django.png -------------------------------------------------------------------------------- /realblog/themes/default/logo-linode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/logo-linode.png -------------------------------------------------------------------------------- /realblog/themes/default/logo-mongodb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/logo-mongodb.png -------------------------------------------------------------------------------- /realblog/themes/default/reset.css: -------------------------------------------------------------------------------- 1 | html, body, div, span, applet, object, iframe, 2 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 3 | a, abbr, acronym, big, cite, code, 4 | del, dfn, em, font, img, ins, kbd, q, s, samp, 5 | small, strike, sub, sup, tt, var, 6 | dl, dt, dd, ol, ul, li, 7 | fieldset, form, label, legend, 8 | table, caption, tbody, tfoot, thead, tr, th, td { 9 | margin: 0; 10 | padding: 0; 11 | border: 0; 12 | outline: 0; 13 | font-weight: inherit; 14 | font-style: inherit; 15 | font-size: 100%; 16 | font-family: inherit; 17 | vertical-align: baseline; 18 | background-color:transparent; 19 | } 20 | /* remember to define focus styles! */ 21 | :focus { 22 | outline: 0; 23 | } 24 | body { 25 | line-height: 1; 26 | color: black; 27 | background: transparent; 28 | } 29 | ol, ul { 30 | list-style: none; 31 | } 32 | /* tables still need 'cellspacing="0"' in the markup */ 33 | table { 34 | border-collapse: separate; 35 | border-spacing: 0; 36 | } 37 | caption, th, td { 38 | text-align: left; 39 | font-weight: normal; 40 | } 41 | blockquote:before, blockquote:after, 42 | q:before, q:after { 43 | content: ""; 44 | } 45 | blockquote, q { 46 | quotes: "" ""; 47 | } -------------------------------------------------------------------------------- /realblog/themes/default/root.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ title }} | {{ page }} 7 | 8 | 9 | 10 | 11 | 12 | 13 | {% if info.StatisticsCodeInHead %} 14 | {% if info.StatisticsCode %} {{ info.StatisticsCode|safe }} {% endif %} 15 | {% endif %} 16 | 17 | 18 | 19 |
20 | 21 | {% include 'header.html' %} 22 | {% block content %}{% endblock %} 23 | {% block sidebar %}{% endblock %} 24 | {% include 'footer.html' %} 25 | 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /realblog/themes/default/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/rss.png -------------------------------------------------------------------------------- /realblog/themes/default/sidebar-detail.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /realblog/themes/default/sidebar-index.html: -------------------------------------------------------------------------------- 1 | 88 | -------------------------------------------------------------------------------- /realblog/themes/default/switch_collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/switch_collapsed.png -------------------------------------------------------------------------------- /realblog/themes/default/switch_expanded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/switch_expanded.png -------------------------------------------------------------------------------- /realblog/themes/default/switch_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kailunio/RealBlog/784286ad3c177624145f6218e0f53d0507906dff/realblog/themes/default/switch_item.png -------------------------------------------------------------------------------- /realblog/urls.py: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | from django.conf.urls import patterns, include, url 3 | import views 4 | # Uncomment the next two lines to enable the admin: 5 | # from django.contrib import admin 6 | # admin.autodiscover() 7 | 8 | 9 | urlpatterns = patterns('', 10 | # Examples: 11 | # url(r'^$', 'realblog.views.home', name='home'), 12 | # url(r'^realblog/', include('realblog.foo.urls')), 13 | 14 | # 首页 15 | url(r'^$', views.show_homepage, {'page': 1}), 16 | url(r'^page/(\d+?)/$', views.show_homepage), 17 | 18 | # 调试时取得静态文件 19 | url(r'\.(css|js|png|jpg|gif|xml|swf|html)$', views.get_file), 20 | 21 | url(r'^login/', views.login), 22 | url(r'^logout/', views.logout), 23 | url(r'^register/$', views.register), 24 | url(r'^install/$', views.install), 25 | url(r'^article/(\d+?)/$', views.show_article), 26 | url(r'^article-encrypted/(\d+?)/(\w+?)/$', views.show_article_encrypted), 27 | url(r'^category/(.+?)/$', views.show_category), 28 | url(r'^tag/(.+?)/$', views.show_tag), 29 | url(r'^rss/$', views.rss), 30 | url(r'^archive/(\d+?)/(\d+?)/', views.show_archive), 31 | 32 | # Admin 33 | url(r'^admin/', include('realblog.admin.urls')), 34 | 35 | 36 | # Uncomment the admin/doc line below to enable admin documentation: 37 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), 38 | # Uncomment the next line to enable the admin: 39 | # url(r'^admin/', include(admin.site.urls)), 40 | ) 41 | -------------------------------------------------------------------------------- /realblog/wsgi.py: -------------------------------------------------------------------------------- 1 | import os 2 | os.environ['DJANGO_SETTINGS_MODULE'] = 'realblog.settings' 3 | 4 | import django.core.handlers.wsgi 5 | application = django.core.handlers.wsgi.WSGIHandler() --------------------------------------------------------------------------------