├── .gitignore ├── .htaccess ├── LICENSE ├── README.md ├── app ├── config.ini ├── controller │ ├── auth.php │ ├── backend.php │ ├── base.php │ ├── comment.php │ ├── dashboard.php │ ├── post.php │ ├── resource.php │ ├── settings.php │ ├── tag.php │ └── user.php ├── data │ ├── config.json │ ├── fblg_comments │ ├── fblg_posts │ ├── fblg_posts__tags_mm_fblg_tags__post │ ├── fblg_tags │ └── fblg_user ├── dict │ ├── de.ini │ └── en.ini ├── inc │ ├── config.php │ ├── errorrenderer.php │ ├── files.php │ ├── setup.php │ ├── storage.php │ ├── template │ │ ├── fooforms.php │ │ ├── taghandler.php │ │ └── tags │ │ │ ├── image.php │ │ │ ├── input.php │ │ │ └── select.php │ └── validation.php ├── model │ ├── base.php │ ├── comment.php │ ├── post.php │ ├── tag.php │ └── user.php ├── routes.ini ├── routes_admin.ini ├── ui │ ├── css │ │ ├── backend.css │ │ ├── bootstrap.min.css │ │ ├── code.css │ │ ├── datepicker.css │ │ ├── font-awesome.min.css │ │ ├── jquery.fileupload.css │ │ ├── slate_bootstrap.min.css │ │ ├── summernote-bs3.css │ │ ├── summernote.css │ │ └── tagmanager.css │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ ├── fontawesome-webfont.woff2 │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── ico │ │ ├── apple-touch-icon-114-precomposed.png │ │ ├── apple-touch-icon-144-precomposed.png │ │ ├── apple-touch-icon-57-precomposed.png │ │ ├── apple-touch-icon-72-precomposed.png │ │ └── favicon.png │ ├── images │ │ ├── fabulog-small.png │ │ ├── fabulog.png │ │ ├── loading.gif │ │ └── pattern │ │ │ ├── escheresque.png │ │ │ └── escheresque_ste.png │ ├── js │ │ ├── app.js │ │ ├── bootstrap-datepicker.js │ │ ├── cors │ │ │ ├── jquery.postmessage-transport.js │ │ │ └── jquery.xdr-transport.js │ │ ├── editor.js │ │ ├── jq_borderflow.js │ │ ├── jquery.fileupload-jquery-ui.js │ │ ├── jquery.fileupload-process.js │ │ ├── jquery.fileupload-ui.js │ │ ├── jquery.fileupload-validate.js │ │ ├── jquery.fileupload.js │ │ ├── jquery.iframe-transport.js │ │ ├── login.js │ │ ├── summernote.min.js │ │ ├── tagmanager.js │ │ ├── typeahead.min.js │ │ └── vendor │ │ │ ├── bootstrap.min.js │ │ │ ├── html5shiv.js │ │ │ ├── jquery.js │ │ │ ├── jquery.ui.widget.js │ │ │ └── respond.min.js │ └── templates │ │ ├── alert.html │ │ ├── comment_edit.html │ │ ├── comment_layout.html │ │ ├── comment_list.html │ │ ├── error.html │ │ ├── install.html │ │ ├── layout.html │ │ ├── login.html │ │ ├── overview.html │ │ ├── pagebrowser.html │ │ ├── post_edit.html │ │ ├── post_layout.html │ │ ├── post_list.html │ │ ├── settings_database.html │ │ ├── settings_general.html │ │ ├── settings_layout.html │ │ ├── user_edit.html │ │ ├── user_layout.html │ │ └── user_list.html └── view │ ├── backend.php │ ├── base.php │ ├── frontend.php │ └── json.php ├── composer.json ├── composer.lock ├── index.php ├── res ├── geburtstag.jpg ├── koala.gif ├── luxuryliving-940x360.jpg ├── projekte-erfolgreich.jpg └── we-can-do-it-square.jpg ├── tmp └── placeholder └── ui ├── css ├── bootstrap.min.css └── styles.css ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── ico ├── apple-touch-icon-114-precomposed.png ├── apple-touch-icon-144-precomposed.png ├── apple-touch-icon-57-precomposed.png ├── apple-touch-icon-72-precomposed.png ├── favicon.ico └── favicon.png ├── images ├── concrete_wall.png ├── diagmonds.png ├── diagmonds2.png ├── diagmonds3.png ├── fabulog.png ├── flowers.png └── type.png ├── js ├── bootstrap.js ├── bootstrap.min.js ├── fancybox │ ├── blank.gif │ ├── fancybox_loading.gif │ ├── fancybox_loading@2x.gif │ ├── fancybox_overlay.png │ ├── fancybox_sprite.png │ ├── fancybox_sprite@2x.png │ ├── helpers │ │ ├── fancybox_buttons.png │ │ ├── jquery.fancybox-buttons.css │ │ ├── jquery.fancybox-buttons.js │ │ ├── jquery.fancybox-media.js │ │ ├── jquery.fancybox-thumbs.css │ │ └── jquery.fancybox-thumbs.js │ ├── jquery.fancybox.css │ ├── jquery.fancybox.js │ └── jquery.fancybox.pack.js ├── html5shiv.js ├── jquery.js ├── main.js └── respond.min.js └── templates ├── error.html ├── layout.html ├── pagebrowser.html ├── post_list.html └── post_single.html /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | /tmp/ 3 | /res/ 4 | /ui/compressed/ 5 | /.git/ 6 | /vendor/bcosca/fatfree-core/.git/ 7 | /vendor/ikkez/f3-assets/.git/ 8 | /vendor/ikkez/f3-cortex/.git/ 9 | /vendor/ 10 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | # Enable rewrite engine and route requests to framework 2 | RewriteEngine On 3 | 4 | # Some servers require you to specify the `RewriteBase` directive 5 | # In such cases, it should be the path (relative to the document root) 6 | # containing this .htaccess file 7 | # 8 | # RewriteBase / 9 | 10 | RewriteCond %{HTTP_HOST} ^www\. 11 | RewriteCond %{HTTPS}s ^on(s)|off 12 | RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www\.)?(.+)$ 13 | RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L] 14 | 15 | RewriteRule ^(dict|ns|app/data|tmp)\/|\.ini$ - [R=404] 16 | 17 | RewriteCond %{REQUEST_FILENAME} !-l 18 | RewriteCond %{REQUEST_FILENAME} !-f 19 | RewriteCond %{REQUEST_FILENAME} !-d 20 | RewriteRule .* index.php [L,QSA] 21 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | fabulog 2 | ======= 3 | 4 | fabulog is a lightweight blogging system, based on the awesome php fat-free framework. Check out the [demo](http://www.ikkez.de/fabulog) [admin:fabulog] 5 | 6 | fabulog currently has the following features: 7 | 8 | * Jig, SQL and Mongo database support with Cortex ORM 9 | * Post module with publishing by state and date 10 | * Tag management 11 | * Comment module with backend moderation 12 | * simple User management module 13 | * Sommernote Bootstrap WYSIWYG editor 14 | * powered by fat-free framework 15 | -------------------------------------------------------------------------------- /app/config.ini: -------------------------------------------------------------------------------- 1 | [globals] 2 | 3 | ;########################## 4 | ; general settings 5 | ;########################## 6 | AUTOLOAD = "app/;app/inc/" 7 | ; cache engine 8 | CACHE = true 9 | ; set the default serializer 10 | SERIALIZER = php 11 | ; path for logfiles 12 | LOGS = app/logs/ 13 | ; temp user uploads 14 | UPLOADS = res/ 15 | ; template root path 16 | UI = ui/ 17 | BACKEND_UI = app/ui/ 18 | 19 | 20 | ;########################## 21 | ; language & localization settiongs 22 | ;########################## 23 | ; default timezone 24 | TZ = Europe/Berlin 25 | ; dictionary key prefix 26 | ;PREFIX = ll. 27 | ; dictionary paths 28 | LOCALES = app/dict/ 29 | # overwrite auto-detection of language 30 | ;LANGUAGE = "de-DE,de" 31 | 32 | 33 | ;########################## 34 | ; additional system config 35 | ;########################## 36 | ; don't highlight the error stack by default 37 | ;HIGHLIGHT = false 38 | ; set error handler 39 | ONERROR = ErrorRenderer->render 40 | ; default development mode 41 | DEV = true 42 | ; debug verbosity 43 | DEBUG = 2 44 | 45 | 46 | ;########################## 47 | ; application settings 48 | 49 | ; prefix all your db table names to avoid conflict 50 | ; with other apps that are using the same database 51 | db_table_prefix = fblg_ 52 | 53 | ; use 'md5' for PHP < 5.3.7 and 'bcrypt' for best security 54 | password_hash_engine = md5 55 | password_md5_salt = jK$N!Lx5 56 | 57 | ; 'summernote' 58 | text_editor = sommernote 59 | 60 | ; if an error occurs, the debug text is being send to this email 61 | error_mail = 62 | 63 | [template] 64 | image.tempDir = res/tmp/ 65 | 66 | 67 | [ASSETS] 68 | ;# if this is false, you need to manually put the group markers like 69 | ;# and into your template 70 | auto_include = true 71 | 72 | ;# be greedy and also fetch all , 47 | 48 | 49 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /app/ui/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | fabulog backend - {{@CONFIG.blog_title}} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 60 | 61 |
62 | 63 |
64 | 65 |
66 | 67 |

{{ \Base::instance()->format('Page rendered by fabulog v{0}, using {1} in {2} msecs / Memory usage {3} KB',@APP_VERSION,@CONFIG->ACTIVE_DB,round(1e3*(microtime(TRUE)-$TIME),2),round(memory_get_usage(TRUE)/1e3,1)) }}

68 |
69 | 70 | 71 | 72 | 73 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /app/ui/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{@CONFIG.blog_title}} - fabulog backend 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 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 | -------------------------------------------------------------------------------- /app/ui/templates/overview.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

Dashboard

5 |
6 |
7 |

Hey, {{ @BACKEND_USER.name }}. This is fabulog v{{ @APP_VERSION }} ;)

8 |

fabulog is currently just a playground and demo blog application. It has the following features:

9 |
    10 |
  • It's powered by Fat-Free Framework {{ @VERSION }}!
  • 11 |
  • Cortex ORM with Jig, SQL and Mongo database support
  • 12 |
  • Post module with drafts and publishing by date
  • 13 |
  • add Tags to Posts with auto-completion
  • 14 |
  • Comment module with backend moderation
  • 15 |
  • simple User management module
  • 16 |
  • Twitter Bootstrap Backend, with Sommernote WYSIWYG editor
  • 17 |
  • F3 FooForms plugin for handling all form data, yeah!
  • 18 |
19 |
20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 |
28 |
29 |

System Check

30 |
31 |
32 |

Please check the following notices:

33 |
    34 | 35 |
  • The application data directoy {{ @BASE }}/app/data is not writeable!
  • 36 |
    37 | 38 |
  • The directory {{ @BASE.'/'.@TEMP }} for temporary files is not writeable!
  • 39 |
    40 | 41 |
  • The upload directory {{ @BASE.'/'.@UPLOADS }} is not writeable!
  • 42 |
    43 |
44 |
45 |
46 |
47 | 48 |
49 |
50 |

Comments

51 |
52 |
53 | 54 | 55 |

56 | You have {{ @new_comments }} new comments, that needs your review. 57 |

58 |
59 | 60 |

You have no new comments

61 |
62 |
63 |
64 |
65 |
-------------------------------------------------------------------------------- /app/ui/templates/pagebrowser.html: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /app/ui/templates/post_edit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

Edit Post

15 |
16 | 17 |

Create new Post

18 |
19 |
20 |
21 |
22 |
23 | 24 |
written by: {{ @post.author.name }}
25 | created at: {{ '{0,date}', strtotime(@post.created_at) | format }} 26 |
27 |
28 |
29 |
30 | 31 | 32 |
33 |
34 |
35 |
36 | 37 | 40 |
41 | 42 | 43 |
44 |
45 |
46 |
47 |
48 | 49 | 50 | 51 | 52 |


Upload an Image

53 | 54 | 55 | 56 |
57 |
58 |
59 | 60 |
61 |
62 | 63 | This is a little introduction text that mark out your article on overview pages or in RSS feed. 64 | 65 |
66 |
67 | 68 |
69 |
70 | 71 | 72 | 73 | 74 | 75 | 76 | 79 | 80 | 81 |
82 |
83 |
84 |
85 | 86 |
87 |
88 | 89 | 90 |
91 |
92 |
93 |
94 |
95 | 96 |
97 | 101 |
102 |
103 | 107 |
108 |
109 |
110 |
111 |
112 | 113 |
114 | 118 |
119 |
120 | 124 |
125 |
126 |
127 | 128 | 129 | 130 |
131 |
132 |
-------------------------------------------------------------------------------- /app/ui/templates/post_layout.html: -------------------------------------------------------------------------------- 1 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 |
-------------------------------------------------------------------------------- /app/ui/templates/post_list.html: -------------------------------------------------------------------------------- 1 |

Post list

2 |

total: {{ @content.total }}

3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

{{'{0,date}', strtotime(@lastDate) | format }}

11 |
12 |
13 | 14 | 15 |

{{'{0,date}', strtotime(@lastDate) | format }}

16 |
17 |
18 |
19 |
20 |
21 |

{{@item.title}}

22 |
23 |
24 |
25 |
26 | 27 | edit 28 | 29 | 32 | 51 |
52 |
53 |
54 |
55 |
56 | {{isset(@item.author)?@item.author.name:''}} 57 | 58 | 59 | 60 | active 61 | 62 | 63 | 64 | hidden 65 | 66 | 67 | {{count(@item.comments?:[])}} 68 |
69 |
70 |
-------------------------------------------------------------------------------- /app/ui/templates/settings_general.html: -------------------------------------------------------------------------------- 1 |

Settings: General

2 | 3 |
4 |
5 |
6 | 7 |
8 | 9 | 10 |
11 | 12 |
13 | 14 |
15 | 19 |
20 |
21 | 22 |
23 | 24 |
25 | 30 |
31 |
32 | 33 | 34 |
35 | 36 |
37 |
-------------------------------------------------------------------------------- /app/ui/templates/settings_layout.html: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 |
-------------------------------------------------------------------------------- /app/ui/templates/user_edit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Edit User

4 |
5 | 6 |

Create new User

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 |
36 |
37 | 38 |
39 |
40 |
-------------------------------------------------------------------------------- /app/ui/templates/user_layout.html: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 |
-------------------------------------------------------------------------------- /app/ui/templates/user_list.html: -------------------------------------------------------------------------------- 1 |

User list

2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
UsernameNameAction
{{ @item.username }}{{ @item.name }} 20 | edit 21 | delete 22 |
27 |
-------------------------------------------------------------------------------- /app/view/backend.php: -------------------------------------------------------------------------------- 1 | copy('BACKEND_UI','UI'); 15 | 16 | $f3->set('ASSETS.filter.js','combine'); 17 | 18 | // save last visited URL 19 | if ($f3->exists('SESSION.CurrentPageURL')) { 20 | if ($f3->get('SESSION.CurrentPageURL') != $f3->get('PARAMS.0')) 21 | $f3->copy('SESSION.CurrentPageURL', 'SESSION.LastPageURL'); 22 | } else 23 | $f3->set('SESSION.LastPageURL', ''); 24 | $f3->set('SESSION.CurrentPageURL', $f3->get('PARAMS.0')); 25 | } 26 | 27 | public function setTemplate($filepath) { 28 | $this->template = $filepath; 29 | } 30 | 31 | public function render() { 32 | // add template data to F3 hive 33 | if($this->data) 34 | \Base::instance()->mset($this->data); 35 | // render base layout, the rest happens in template 36 | return \Template::instance()->render($this->template); 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /app/view/base.php: -------------------------------------------------------------------------------- 1 | data) 11 | $f3->mset($this->data); 12 | return \Template::instance()->render('templates/layout.html'); 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /app/view/json.php: -------------------------------------------------------------------------------- 1 | data); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ikkez/fabulog", 3 | "description": "Your fabulous blogware", 4 | "type": "project", 5 | "require": { 6 | "bcosca/fatfree-core": "^3.8", 7 | "ikkez/f3-cortex": "^1.7", 8 | "ikkez/f3-flash": "1.*", 9 | "ikkez/f3-assets": "1.*", 10 | "ikkez/f3-pagination": "1.*" 11 | }, 12 | "license": "GPLv3", 13 | "authors": [ 14 | { 15 | "name": "ikkez", 16 | "email": "mail@ikkez.de" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 14 | * https://github.com/ikkez/fabulog/ 15 | * 16 | * For the full copyright and license information, please view the LICENSE 17 | * file that was distributed with this source code. 18 | * 19 | */ 20 | 21 | require('vendor/autoload.php'); 22 | 23 | /** @var \Base $f3 */ 24 | $f3 = \Base::instance(); 25 | 26 | $f3->set('APP_VERSION', '0.3.1'); 27 | $f3->BITMASK = ENT_COMPAT|ENT_SUBSTITUTE; 28 | 29 | //ini_set('display_errors', 1); 30 | //error_reporting(-1); 31 | 32 | $f3->config('app/config.ini'); 33 | 34 | // preflight system check 35 | $preErr = Setup::instance()->preflight(); 36 | if (!empty($preErr)) { 37 | header('Content-Type: text;'); 38 | die(implode("\n",$preErr)); 39 | } 40 | 41 | ## DB Setup 42 | $cfg = Config::instance(); 43 | if ($cfg->ACTIVE_DB) 44 | $f3->set('DB', Storage::instance()->get($cfg->ACTIVE_DB)); 45 | else { 46 | $f3->error(500,'Sorry, but there is no active DB setup.'); 47 | } 48 | 49 | $f3->set('CONFIG', $cfg); 50 | $f3->set('FLASH', \Flash::instance()); 51 | 52 | $tmpl = \Template::instance(); 53 | $tmpl->extend('image','\Template\Tags\Image::render'); 54 | $tmpl->extend('pagebrowser','\Pagination::renderTag'); 55 | // Handles all
data 56 | $tmpl->extend('input','\Template\Tags\Input::render'); 57 | $tmpl->extend('select','\Template\Tags\Select::render'); 58 | \Assets::instance(); 59 | 60 | $f3->config('app/routes.ini'); 61 | 62 | /////////////// 63 | // backend // 64 | /////////////// 65 | 66 | if (\Controller\Auth::isLoggedIn()) { 67 | $f3->config('app/routes_admin.ini'); 68 | } 69 | 70 | 71 | $f3->run(); 72 | -------------------------------------------------------------------------------- /res/geburtstag.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/res/geburtstag.jpg -------------------------------------------------------------------------------- /res/koala.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/res/koala.gif -------------------------------------------------------------------------------- /res/luxuryliving-940x360.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/res/luxuryliving-940x360.jpg -------------------------------------------------------------------------------- /res/projekte-erfolgreich.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/res/projekte-erfolgreich.jpg -------------------------------------------------------------------------------- /res/we-can-do-it-square.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/res/we-can-do-it-square.jpg -------------------------------------------------------------------------------- /tmp/placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/tmp/placeholder -------------------------------------------------------------------------------- /ui/css/styles.css: -------------------------------------------------------------------------------- 1 | 2 | body { 3 | background-color: #ddd; 4 | } 5 | 6 | .navbar { 7 | margin-bottom: 0; 8 | background: #000000; 9 | border-radius: 0; 10 | -webkit-border-radius: 0; 11 | } 12 | 13 | #hero { 14 | background: url("../images/diagmonds.png") 0 0 repeat; 15 | color: #fff; 16 | } 17 | .navbar-inverse { 18 | border: none; 19 | border-bottom: 1px solid #e95420; 20 | } 21 | .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { 22 | background-color: #e95420; 23 | } 24 | .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { 25 | background-color: #6a280d; 26 | } 27 | 28 | #hero .container { 29 | max-width: 860px; 30 | } 31 | 32 | #main { 33 | background-color: #fff; 34 | padding-top: 20px; 35 | } 36 | 37 | .container { 38 | max-width: 860px; 39 | } 40 | 41 | .post-entry { 42 | margin-bottom: 30px; 43 | /*background: #eee;*/ 44 | padding: 0 20px 30px 20px; 45 | border-bottom: 2px solid #dedede; 46 | } 47 | 48 | .post-entry .meta { 49 | margin-right: 10px; 50 | } 51 | 52 | .post-entry h2 { 53 | margin-top: 10px; 54 | font-size: 22px; 55 | } 56 | .post-entry hr { 57 | margin-bottom: 10px; 58 | margin-top: 5px; 59 | } 60 | 61 | .teaser-text { 62 | font-size: 1.4em; 63 | padding-bottom: 30px; 64 | } 65 | 66 | .post-entry figure { 67 | margin-bottom: 10px; 68 | } 69 | 70 | .post-entry figure img { 71 | margin-right: 10px; 72 | } 73 | 74 | .stats { 75 | font-size: 12px; 76 | color: #848385; 77 | } 78 | 79 | .error-trace { 80 | background: #191b1d; 81 | } 82 | .error-trace code { 83 | background-color: transparent; 84 | white-space: pre-wrap; /* CSS 3 */ 85 | white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ 86 | white-space: -pre-wrap; /* Opera 4-6 */ 87 | white-space: -o-pre-wrap; /* Opera 7 */ 88 | word-wrap: break-word; /* Internet Explorer 5.5+ */ 89 | } 90 | 91 | .bodytext ol, 92 | .bodytext ul { 93 | position: relative; 94 | overflow: hidden; 95 | } 96 | -------------------------------------------------------------------------------- /ui/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ui/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /ui/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ui/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /ui/ico/apple-touch-icon-114-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/apple-touch-icon-114-precomposed.png -------------------------------------------------------------------------------- /ui/ico/apple-touch-icon-144-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/apple-touch-icon-144-precomposed.png -------------------------------------------------------------------------------- /ui/ico/apple-touch-icon-57-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/apple-touch-icon-57-precomposed.png -------------------------------------------------------------------------------- /ui/ico/apple-touch-icon-72-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/apple-touch-icon-72-precomposed.png -------------------------------------------------------------------------------- /ui/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/favicon.ico -------------------------------------------------------------------------------- /ui/ico/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/ico/favicon.png -------------------------------------------------------------------------------- /ui/images/concrete_wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/concrete_wall.png -------------------------------------------------------------------------------- /ui/images/diagmonds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/diagmonds.png -------------------------------------------------------------------------------- /ui/images/diagmonds2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/diagmonds2.png -------------------------------------------------------------------------------- /ui/images/diagmonds3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/diagmonds3.png -------------------------------------------------------------------------------- /ui/images/fabulog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/fabulog.png -------------------------------------------------------------------------------- /ui/images/flowers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/flowers.png -------------------------------------------------------------------------------- /ui/images/type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/images/type.png -------------------------------------------------------------------------------- /ui/js/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/blank.gif -------------------------------------------------------------------------------- /ui/js/fancybox/fancybox_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/fancybox_loading.gif -------------------------------------------------------------------------------- /ui/js/fancybox/fancybox_loading@2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/fancybox_loading@2x.gif -------------------------------------------------------------------------------- /ui/js/fancybox/fancybox_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/fancybox_overlay.png -------------------------------------------------------------------------------- /ui/js/fancybox/fancybox_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/fancybox_sprite.png -------------------------------------------------------------------------------- /ui/js/fancybox/fancybox_sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/fancybox_sprite@2x.png -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/fancybox_buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikkez/fabulog/1a2f2aa87670225126906aec32fc7f96069110fc/ui/js/fancybox/helpers/fancybox_buttons.png -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/jquery.fancybox-buttons.css: -------------------------------------------------------------------------------- 1 | #fancybox-buttons { 2 | position: fixed; 3 | left: 0; 4 | width: 100%; 5 | z-index: 8050; 6 | } 7 | 8 | #fancybox-buttons.top { 9 | top: 10px; 10 | } 11 | 12 | #fancybox-buttons.bottom { 13 | bottom: 10px; 14 | } 15 | 16 | #fancybox-buttons ul { 17 | display: block; 18 | width: 166px; 19 | height: 30px; 20 | margin: 0 auto; 21 | padding: 0; 22 | list-style: none; 23 | border: 1px solid #111; 24 | border-radius: 3px; 25 | -webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 26 | -moz-box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 27 | box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); 28 | background: rgb(50,50,50); 29 | background: -moz-linear-gradient(top, rgb(68,68,68) 0%, rgb(52,52,52) 50%, rgb(41,41,41) 50%, rgb(51,51,51) 100%); 30 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(68,68,68)), color-stop(50%,rgb(52,52,52)), color-stop(50%,rgb(41,41,41)), color-stop(100%,rgb(51,51,51))); 31 | background: -webkit-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 32 | background: -o-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 33 | background: -ms-linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 34 | background: linear-gradient(top, rgb(68,68,68) 0%,rgb(52,52,52) 50%,rgb(41,41,41) 50%,rgb(51,51,51) 100%); 35 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 ); 36 | } 37 | 38 | #fancybox-buttons ul li { 39 | float: left; 40 | margin: 0; 41 | padding: 0; 42 | } 43 | 44 | #fancybox-buttons a { 45 | display: block; 46 | width: 30px; 47 | height: 30px; 48 | text-indent: -9999px; 49 | background-color: transparent; 50 | background-image: url('fancybox_buttons.png'); 51 | background-repeat: no-repeat; 52 | outline: none; 53 | opacity: 0.8; 54 | } 55 | 56 | #fancybox-buttons a:hover { 57 | opacity: 1; 58 | } 59 | 60 | #fancybox-buttons a.btnPrev { 61 | background-position: 5px 0; 62 | } 63 | 64 | #fancybox-buttons a.btnNext { 65 | background-position: -33px 0; 66 | border-right: 1px solid #3e3e3e; 67 | } 68 | 69 | #fancybox-buttons a.btnPlay { 70 | background-position: 0 -30px; 71 | } 72 | 73 | #fancybox-buttons a.btnPlayOn { 74 | background-position: -30px -30px; 75 | } 76 | 77 | #fancybox-buttons a.btnToggle { 78 | background-position: 3px -60px; 79 | border-left: 1px solid #111; 80 | border-right: 1px solid #3e3e3e; 81 | width: 35px 82 | } 83 | 84 | #fancybox-buttons a.btnToggleOn { 85 | background-position: -27px -60px; 86 | } 87 | 88 | #fancybox-buttons a.btnClose { 89 | border-left: 1px solid #111; 90 | width: 35px; 91 | background-position: -56px 0px; 92 | } 93 | 94 | #fancybox-buttons a.btnDisabled { 95 | opacity : 0.4; 96 | cursor: default; 97 | } -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/jquery.fancybox-buttons.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Buttons helper for fancyBox 3 | * version: 1.0.5 (Mon, 15 Oct 2012) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * buttons: { 10 | * position : 'top' 11 | * } 12 | * } 13 | * }); 14 | * 15 | */ 16 | (function ($) { 17 | //Shortcut for fancyBox object 18 | var F = $.fancybox; 19 | 20 | //Add helper object 21 | F.helpers.buttons = { 22 | defaults : { 23 | skipSingle : false, // disables if gallery contains single image 24 | position : 'top', // 'top' or 'bottom' 25 | tpl : '
' 26 | }, 27 | 28 | list : null, 29 | buttons: null, 30 | 31 | beforeLoad: function (opts, obj) { 32 | //Remove self if gallery do not have at least two items 33 | 34 | if (opts.skipSingle && obj.group.length < 2) { 35 | obj.helpers.buttons = false; 36 | obj.closeBtn = true; 37 | 38 | return; 39 | } 40 | 41 | //Increase top margin to give space for buttons 42 | obj.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30; 43 | }, 44 | 45 | onPlayStart: function () { 46 | if (this.buttons) { 47 | this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn'); 48 | } 49 | }, 50 | 51 | onPlayEnd: function () { 52 | if (this.buttons) { 53 | this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn'); 54 | } 55 | }, 56 | 57 | afterShow: function (opts, obj) { 58 | var buttons = this.buttons; 59 | 60 | if (!buttons) { 61 | this.list = $(opts.tpl).addClass(opts.position).appendTo('body'); 62 | 63 | buttons = { 64 | prev : this.list.find('.btnPrev').click( F.prev ), 65 | next : this.list.find('.btnNext').click( F.next ), 66 | play : this.list.find('.btnPlay').click( F.play ), 67 | toggle : this.list.find('.btnToggle').click( F.toggle ), 68 | close : this.list.find('.btnClose').click( F.close ) 69 | } 70 | } 71 | 72 | //Prev 73 | if (obj.index > 0 || obj.loop) { 74 | buttons.prev.removeClass('btnDisabled'); 75 | } else { 76 | buttons.prev.addClass('btnDisabled'); 77 | } 78 | 79 | //Next / Play 80 | if (obj.loop || obj.index < obj.group.length - 1) { 81 | buttons.next.removeClass('btnDisabled'); 82 | buttons.play.removeClass('btnDisabled'); 83 | 84 | } else { 85 | buttons.next.addClass('btnDisabled'); 86 | buttons.play.addClass('btnDisabled'); 87 | } 88 | 89 | this.buttons = buttons; 90 | 91 | this.onUpdate(opts, obj); 92 | }, 93 | 94 | onUpdate: function (opts, obj) { 95 | var toggle; 96 | 97 | if (!this.buttons) { 98 | return; 99 | } 100 | 101 | toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn'); 102 | 103 | //Size toggle button 104 | if (obj.canShrink) { 105 | toggle.addClass('btnToggleOn'); 106 | 107 | } else if (!obj.canExpand) { 108 | toggle.addClass('btnDisabled'); 109 | } 110 | }, 111 | 112 | beforeClose: function () { 113 | if (this.list) { 114 | this.list.remove(); 115 | } 116 | 117 | this.list = null; 118 | this.buttons = null; 119 | } 120 | }; 121 | 122 | }(jQuery)); 123 | -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/jquery.fancybox-media.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Media helper for fancyBox 3 | * version: 1.0.6 (Fri, 14 Jun 2013) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * media: true 10 | * } 11 | * }); 12 | * 13 | * Set custom URL parameters: 14 | * $(".fancybox").fancybox({ 15 | * helpers : { 16 | * media: { 17 | * youtube : { 18 | * params : { 19 | * autoplay : 0 20 | * } 21 | * } 22 | * } 23 | * } 24 | * }); 25 | * 26 | * Or: 27 | * $(".fancybox").fancybox({, 28 | * helpers : { 29 | * media: true 30 | * }, 31 | * youtube : { 32 | * autoplay: 0 33 | * } 34 | * }); 35 | * 36 | * Supports: 37 | * 38 | * Youtube 39 | * http://www.youtube.com/watch?v=opj24KnzrWo 40 | * http://www.youtube.com/embed/opj24KnzrWo 41 | * http://youtu.be/opj24KnzrWo 42 | * http://www.youtube-nocookie.com/embed/opj24KnzrWo 43 | * Vimeo 44 | * http://vimeo.com/40648169 45 | * http://vimeo.com/channels/staffpicks/38843628 46 | * http://vimeo.com/groups/surrealism/videos/36516384 47 | * http://player.vimeo.com/video/45074303 48 | * Metacafe 49 | * http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/ 50 | * http://www.metacafe.com/watch/7635964/ 51 | * Dailymotion 52 | * http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people 53 | * Twitvid 54 | * http://twitvid.com/QY7MD 55 | * Twitpic 56 | * http://twitpic.com/7p93st 57 | * Instagram 58 | * http://instagr.am/p/IejkuUGxQn/ 59 | * http://instagram.com/p/IejkuUGxQn/ 60 | * Google maps 61 | * http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17 62 | * http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16 63 | * http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56 64 | */ 65 | (function ($) { 66 | "use strict"; 67 | 68 | //Shortcut for fancyBox object 69 | var F = $.fancybox, 70 | format = function( url, rez, params ) { 71 | params = params || ''; 72 | 73 | if ( $.type( params ) === "object" ) { 74 | params = $.param(params, true); 75 | } 76 | 77 | $.each(rez, function(key, value) { 78 | url = url.replace( '$' + key, value || '' ); 79 | }); 80 | 81 | if (params.length) { 82 | url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params; 83 | } 84 | 85 | return url; 86 | }; 87 | 88 | //Add helper object 89 | F.helpers.media = { 90 | defaults : { 91 | youtube : { 92 | matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i, 93 | params : { 94 | autoplay : 1, 95 | autohide : 1, 96 | fs : 1, 97 | rel : 0, 98 | hd : 1, 99 | wmode : 'opaque', 100 | enablejsapi : 1 101 | }, 102 | type : 'iframe', 103 | url : '//www.youtube.com/embed/$3' 104 | }, 105 | vimeo : { 106 | matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/, 107 | params : { 108 | autoplay : 1, 109 | hd : 1, 110 | show_title : 1, 111 | show_byline : 1, 112 | show_portrait : 0, 113 | fullscreen : 1 114 | }, 115 | type : 'iframe', 116 | url : '//player.vimeo.com/video/$1' 117 | }, 118 | metacafe : { 119 | matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/, 120 | params : { 121 | autoPlay : 'yes' 122 | }, 123 | type : 'swf', 124 | url : function( rez, params, obj ) { 125 | obj.swf.flashVars = 'playerVars=' + $.param( params, true ); 126 | 127 | return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf'; 128 | } 129 | }, 130 | dailymotion : { 131 | matcher : /dailymotion.com\/video\/(.*)\/?(.*)/, 132 | params : { 133 | additionalInfos : 0, 134 | autoStart : 1 135 | }, 136 | type : 'swf', 137 | url : '//www.dailymotion.com/swf/video/$1' 138 | }, 139 | twitvid : { 140 | matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i, 141 | params : { 142 | autoplay : 0 143 | }, 144 | type : 'iframe', 145 | url : '//www.twitvid.com/embed.php?guid=$1' 146 | }, 147 | twitpic : { 148 | matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i, 149 | type : 'image', 150 | url : '//twitpic.com/show/full/$1/' 151 | }, 152 | instagram : { 153 | matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, 154 | type : 'image', 155 | url : '//$1/p/$2/media/?size=l' 156 | }, 157 | google_maps : { 158 | matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i, 159 | type : 'iframe', 160 | url : function( rez ) { 161 | return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed'); 162 | } 163 | } 164 | }, 165 | 166 | beforeLoad : function(opts, obj) { 167 | var url = obj.href || '', 168 | type = false, 169 | what, 170 | item, 171 | rez, 172 | params; 173 | 174 | for (what in opts) { 175 | if (opts.hasOwnProperty(what)) { 176 | item = opts[ what ]; 177 | rez = url.match( item.matcher ); 178 | 179 | if (rez) { 180 | type = item.type; 181 | params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null)); 182 | 183 | url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params ); 184 | 185 | break; 186 | } 187 | } 188 | } 189 | 190 | if (type) { 191 | obj.href = url; 192 | obj.type = type; 193 | 194 | obj.autoHeight = false; 195 | } 196 | } 197 | }; 198 | 199 | }(jQuery)); -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/jquery.fancybox-thumbs.css: -------------------------------------------------------------------------------- 1 | #fancybox-thumbs { 2 | position: fixed; 3 | left: 0; 4 | width: 100%; 5 | overflow: hidden; 6 | z-index: 8050; 7 | } 8 | 9 | #fancybox-thumbs.bottom { 10 | bottom: 2px; 11 | } 12 | 13 | #fancybox-thumbs.top { 14 | top: 2px; 15 | } 16 | 17 | #fancybox-thumbs ul { 18 | position: relative; 19 | list-style: none; 20 | margin: 0; 21 | padding: 0; 22 | } 23 | 24 | #fancybox-thumbs ul li { 25 | float: left; 26 | padding: 1px; 27 | opacity: 0.5; 28 | } 29 | 30 | #fancybox-thumbs ul li.active { 31 | opacity: 0.75; 32 | padding: 0; 33 | border: 1px solid #fff; 34 | } 35 | 36 | #fancybox-thumbs ul li:hover { 37 | opacity: 1; 38 | } 39 | 40 | #fancybox-thumbs ul li a { 41 | display: block; 42 | position: relative; 43 | overflow: hidden; 44 | border: 1px solid #222; 45 | background: #111; 46 | outline: none; 47 | } 48 | 49 | #fancybox-thumbs ul li img { 50 | display: block; 51 | position: relative; 52 | border: 0; 53 | padding: 0; 54 | max-width: none; 55 | } -------------------------------------------------------------------------------- /ui/js/fancybox/helpers/jquery.fancybox-thumbs.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Thumbnail helper for fancyBox 3 | * version: 1.0.7 (Mon, 01 Oct 2012) 4 | * @requires fancyBox v2.0 or later 5 | * 6 | * Usage: 7 | * $(".fancybox").fancybox({ 8 | * helpers : { 9 | * thumbs: { 10 | * width : 50, 11 | * height : 50 12 | * } 13 | * } 14 | * }); 15 | * 16 | */ 17 | (function ($) { 18 | //Shortcut for fancyBox object 19 | var F = $.fancybox; 20 | 21 | //Add helper object 22 | F.helpers.thumbs = { 23 | defaults : { 24 | width : 50, // thumbnail width 25 | height : 50, // thumbnail height 26 | position : 'bottom', // 'top' or 'bottom' 27 | source : function ( item ) { // function to obtain the URL of the thumbnail image 28 | var href; 29 | 30 | if (item.element) { 31 | href = $(item.element).find('img').attr('src'); 32 | } 33 | 34 | if (!href && item.type === 'image' && item.href) { 35 | href = item.href; 36 | } 37 | 38 | return href; 39 | } 40 | }, 41 | 42 | wrap : null, 43 | list : null, 44 | width : 0, 45 | 46 | init: function (opts, obj) { 47 | var that = this, 48 | list, 49 | thumbWidth = opts.width, 50 | thumbHeight = opts.height, 51 | thumbSource = opts.source; 52 | 53 | //Build list structure 54 | list = ''; 55 | 56 | for (var n = 0; n < obj.group.length; n++) { 57 | list += '
  • '; 58 | } 59 | 60 | this.wrap = $('
    ').addClass(opts.position).appendTo('body'); 61 | this.list = $('
      ' + list + '
    ').appendTo(this.wrap); 62 | 63 | //Load each thumbnail 64 | $.each(obj.group, function (i) { 65 | var href = thumbSource( obj.group[ i ] ); 66 | 67 | if (!href) { 68 | return; 69 | } 70 | 71 | $("").load(function () { 72 | var width = this.width, 73 | height = this.height, 74 | widthRatio, heightRatio, parent; 75 | 76 | if (!that.list || !width || !height) { 77 | return; 78 | } 79 | 80 | //Calculate thumbnail width/height and center it 81 | widthRatio = width / thumbWidth; 82 | heightRatio = height / thumbHeight; 83 | 84 | parent = that.list.children().eq(i).find('a'); 85 | 86 | if (widthRatio >= 1 && heightRatio >= 1) { 87 | if (widthRatio > heightRatio) { 88 | width = Math.floor(width / heightRatio); 89 | height = thumbHeight; 90 | 91 | } else { 92 | width = thumbWidth; 93 | height = Math.floor(height / widthRatio); 94 | } 95 | } 96 | 97 | $(this).css({ 98 | width : width, 99 | height : height, 100 | top : Math.floor(thumbHeight / 2 - height / 2), 101 | left : Math.floor(thumbWidth / 2 - width / 2) 102 | }); 103 | 104 | parent.width(thumbWidth).height(thumbHeight); 105 | 106 | $(this).hide().appendTo(parent).fadeIn(300); 107 | 108 | }).attr('src', href); 109 | }); 110 | 111 | //Set initial width 112 | this.width = this.list.children().eq(0).outerWidth(true); 113 | 114 | this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))); 115 | }, 116 | 117 | beforeLoad: function (opts, obj) { 118 | //Remove self if gallery do not have at least two items 119 | if (obj.group.length < 2) { 120 | obj.helpers.thumbs = false; 121 | 122 | return; 123 | } 124 | 125 | //Increase bottom margin to give space for thumbs 126 | obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15); 127 | }, 128 | 129 | afterShow: function (opts, obj) { 130 | //Check if exists and create or update list 131 | if (this.list) { 132 | this.onUpdate(opts, obj); 133 | 134 | } else { 135 | this.init(opts, obj); 136 | } 137 | 138 | //Set active element 139 | this.list.children().removeClass('active').eq(obj.index).addClass('active'); 140 | }, 141 | 142 | //Center list 143 | onUpdate: function (opts, obj) { 144 | if (this.list) { 145 | this.list.stop(true).animate({ 146 | 'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)) 147 | }, 150); 148 | } 149 | }, 150 | 151 | beforeClose: function () { 152 | if (this.wrap) { 153 | this.wrap.remove(); 154 | } 155 | 156 | this.wrap = null; 157 | this.list = null; 158 | this.width = 0; 159 | } 160 | } 161 | 162 | }(jQuery)); -------------------------------------------------------------------------------- /ui/js/fancybox/jquery.fancybox.css: -------------------------------------------------------------------------------- 1 | /*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 2 | .fancybox-wrap, 3 | .fancybox-skin, 4 | .fancybox-outer, 5 | .fancybox-inner, 6 | .fancybox-image, 7 | .fancybox-wrap iframe, 8 | .fancybox-wrap object, 9 | .fancybox-nav, 10 | .fancybox-nav span, 11 | .fancybox-tmp 12 | { 13 | padding: 0; 14 | margin: 0; 15 | border: 0; 16 | outline: none; 17 | vertical-align: top; 18 | } 19 | 20 | .fancybox-wrap { 21 | position: absolute; 22 | top: 0; 23 | left: 0; 24 | z-index: 8020; 25 | } 26 | 27 | .fancybox-skin { 28 | position: relative; 29 | background: #f9f9f9; 30 | color: #444; 31 | text-shadow: none; 32 | -webkit-border-radius: 4px; 33 | -moz-border-radius: 4px; 34 | border-radius: 4px; 35 | } 36 | 37 | .fancybox-opened { 38 | z-index: 8030; 39 | } 40 | 41 | .fancybox-opened .fancybox-skin { 42 | -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 43 | -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 44 | box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 45 | } 46 | 47 | .fancybox-outer, .fancybox-inner { 48 | position: relative; 49 | } 50 | 51 | .fancybox-inner { 52 | overflow: hidden; 53 | } 54 | 55 | .fancybox-type-iframe .fancybox-inner { 56 | -webkit-overflow-scrolling: touch; 57 | } 58 | 59 | .fancybox-error { 60 | color: #444; 61 | font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 62 | margin: 0; 63 | padding: 15px; 64 | white-space: nowrap; 65 | } 66 | 67 | .fancybox-image, .fancybox-iframe { 68 | display: block; 69 | width: 100%; 70 | height: 100%; 71 | } 72 | 73 | .fancybox-image { 74 | max-width: 100%; 75 | max-height: 100%; 76 | } 77 | 78 | #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { 79 | background-image: url('fancybox_sprite.png'); 80 | } 81 | 82 | #fancybox-loading { 83 | position: fixed; 84 | top: 50%; 85 | left: 50%; 86 | margin-top: -22px; 87 | margin-left: -22px; 88 | background-position: 0 -108px; 89 | opacity: 0.8; 90 | cursor: pointer; 91 | z-index: 8060; 92 | } 93 | 94 | #fancybox-loading div { 95 | width: 44px; 96 | height: 44px; 97 | background: url('fancybox_loading.gif') center center no-repeat; 98 | } 99 | 100 | .fancybox-close { 101 | position: absolute; 102 | top: -18px; 103 | right: -18px; 104 | width: 36px; 105 | height: 36px; 106 | cursor: pointer; 107 | z-index: 8040; 108 | } 109 | 110 | .fancybox-nav { 111 | position: absolute; 112 | top: 0; 113 | width: 40%; 114 | height: 100%; 115 | cursor: pointer; 116 | text-decoration: none; 117 | background: transparent url('blank.gif'); /* helps IE */ 118 | -webkit-tap-highlight-color: rgba(0,0,0,0); 119 | z-index: 8040; 120 | } 121 | 122 | .fancybox-prev { 123 | left: 0; 124 | } 125 | 126 | .fancybox-next { 127 | right: 0; 128 | } 129 | 130 | .fancybox-nav span { 131 | position: absolute; 132 | top: 50%; 133 | width: 36px; 134 | height: 34px; 135 | margin-top: -18px; 136 | cursor: pointer; 137 | z-index: 8040; 138 | visibility: hidden; 139 | } 140 | 141 | .fancybox-prev span { 142 | left: 10px; 143 | background-position: 0 -36px; 144 | } 145 | 146 | .fancybox-next span { 147 | right: 10px; 148 | background-position: 0 -72px; 149 | } 150 | 151 | .fancybox-nav:hover span { 152 | visibility: visible; 153 | } 154 | 155 | .fancybox-tmp { 156 | position: absolute; 157 | top: -99999px; 158 | left: -99999px; 159 | visibility: hidden; 160 | max-width: 99999px; 161 | max-height: 99999px; 162 | overflow: visible !important; 163 | } 164 | 165 | /* Overlay helper */ 166 | 167 | .fancybox-lock { 168 | overflow: hidden !important; 169 | width: auto; 170 | } 171 | 172 | .fancybox-lock body { 173 | overflow: hidden !important; 174 | } 175 | 176 | .fancybox-lock-test { 177 | overflow-y: hidden !important; 178 | } 179 | 180 | .fancybox-overlay { 181 | position: absolute; 182 | top: 0; 183 | left: 0; 184 | overflow: hidden; 185 | display: none; 186 | z-index: 8010; 187 | background: url('fancybox_overlay.png'); 188 | } 189 | 190 | .fancybox-overlay-fixed { 191 | position: fixed; 192 | bottom: 0; 193 | right: 0; 194 | } 195 | 196 | .fancybox-lock .fancybox-overlay { 197 | overflow: auto; 198 | overflow-y: scroll; 199 | } 200 | 201 | /* Title helper */ 202 | 203 | .fancybox-title { 204 | visibility: hidden; 205 | font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; 206 | position: relative; 207 | text-shadow: none; 208 | z-index: 8050; 209 | } 210 | 211 | .fancybox-opened .fancybox-title { 212 | visibility: visible; 213 | } 214 | 215 | .fancybox-title-float-wrap { 216 | position: absolute; 217 | bottom: 0; 218 | right: 50%; 219 | margin-bottom: -35px; 220 | z-index: 8050; 221 | text-align: center; 222 | } 223 | 224 | .fancybox-title-float-wrap .child { 225 | display: inline-block; 226 | margin-right: -100%; 227 | padding: 2px 20px; 228 | background: transparent; /* Fallback for web browsers that doesn't support RGBa */ 229 | background: rgba(0, 0, 0, 0.8); 230 | -webkit-border-radius: 15px; 231 | -moz-border-radius: 15px; 232 | border-radius: 15px; 233 | text-shadow: 0 1px 2px #222; 234 | color: #FFF; 235 | font-weight: bold; 236 | line-height: 24px; 237 | white-space: nowrap; 238 | } 239 | 240 | .fancybox-title-outside-wrap { 241 | position: relative; 242 | margin-top: 10px; 243 | color: #fff; 244 | } 245 | 246 | .fancybox-title-inside-wrap { 247 | padding-top: 10px; 248 | } 249 | 250 | .fancybox-title-over-wrap { 251 | position: absolute; 252 | bottom: 0; 253 | left: 0; 254 | color: #fff; 255 | padding: 10px; 256 | background: #000; 257 | background: rgba(0, 0, 0, .8); 258 | } 259 | 260 | /*Retina graphics!*/ 261 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 262 | only screen and (min--moz-device-pixel-ratio: 1.5), 263 | only screen and (min-device-pixel-ratio: 1.5){ 264 | 265 | #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { 266 | background-image: url('fancybox_sprite@2x.png'); 267 | background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ 268 | } 269 | 270 | #fancybox-loading div { 271 | background-image: url('fancybox_loading@2x.gif'); 272 | background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ 273 | } 274 | } -------------------------------------------------------------------------------- /ui/js/html5shiv.js: -------------------------------------------------------------------------------- 1 | /* 2 | HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); 5 | a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; 6 | c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| 7 | "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); 8 | for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d #mq-test-1 { width: 42px; }',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document); 4 | 5 | /*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ 6 | (function(a){"use strict";function x(){u(!0)}var b={};a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,b.mediaQueriesSupported;var q,r,t,c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=c.getElementsByTagName("base")[0],l=j.getElementsByTagName("link"),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!h[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!k||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var a=m.shift();v(a.href,function(b){p(b,a.href,a.media),h[a.href]=!0,setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c;b.length&&(b+="/"),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d[j].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],e.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:f.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},s=function(){var a,b=c.createElement("div"),e=c.body,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",e||(e=f=c.createElement("body"),e.style.background="none"),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(a){var b="clientWidth",h=d[b],k="CSS1Compat"===c.compatMode&&h||c.body[b]||h,m={},n=l[l.length-1],o=(new Date).getTime();if(a&&q&&i>o-q)return clearTimeout(r),r=setTimeout(u,i),void 0;q=o;for(var p in e)if(e.hasOwnProperty(p)){var v=e[p],w=v.minw,x=v.maxw,y=null===w,z=null===x,A="em";w&&(w=parseFloat(w)*(w.indexOf(A)>-1?t||s():1)),x&&(x=parseFloat(x)*(x.indexOf(A)>-1?t||s():1)),v.hasquery&&(y&&z||!(y||k>=w)||!(z||x>=k))||(m[v.media]||(m[v.media]=[]),m[v.media].push(f[v.rules]))}for(var B in g)g.hasOwnProperty(B)&&g[B]&&g[B].parentNode===j&&j.removeChild(g[B]);for(var C in m)if(m.hasOwnProperty(C)){var D=c.createElement("style"),E=m[C].join("\n");D.type="text/css",D.media=C,j.insertBefore(D,n.nextSibling),D.styleSheet?D.styleSheet.cssText=E:D.appendChild(c.createTextNode(E)),g.push(D)}},v=function(a,b){var c=w();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener("resize",x,!1):a.attachEvent&&a.attachEvent("onresize",x)})(this); 7 | -------------------------------------------------------------------------------- /ui/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
    5 |
    6 |

    {{ @headline }}

    7 |
    8 |
    9 | {{ @text }} 10 | 11 |
    12 |
    {{ @trace }}
    13 |
    14 | 15 |
    16 |
    {{ @db_log }}
    17 |
    18 |
    19 |
    -------------------------------------------------------------------------------- /ui/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{@@page.title}} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 38 | 39 |
    40 |
    41 | 42 |
    43 |
    44 | 45 | 46 |
    47 | 48 | 49 | 50 | 51 | 52 |

    {{ \Base::instance()->format('Page rendered by fabulog v{0}, using {1} in {2} msecs / Memory usage {3} KB',@APP_VERSION,@CONFIG->ACTIVE_DB,round(1e3*(microtime(TRUE)-$TIME),2),round(memory_get_usage(TRUE)/1e3,1)) }}

    53 |
    54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /ui/templates/pagebrowser.html: -------------------------------------------------------------------------------- 1 |
      2 | 3 |
    • <<
    • 4 |
      5 | 6 |
    • «
    • 7 |
      8 | 9 |
    • {{@page}}
    • 10 |
      11 | 12 |
    • »
    • 13 |
      14 | 15 |
    • >>
    • 16 |
      17 |
    18 | -------------------------------------------------------------------------------- /ui/templates/post_list.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 4 | 5 |

    {{ @headline }}

    6 |
    7 |
    8 | 9 | 10 | 11 | 12 |
    13 |

    {{@post.title | esc}}

    14 | 15 |

    16 | {{'{0,date}', strtotime(@post.publish_date) | format}} 17 | 18 | 19 | 20 | {{@tag.title | esc}} 21 | 22 | 23 | 24 | 25 | Comments: {{ @post.count_comments ?: 0 }} 26 | 27 |

    28 | 29 |
    30 | 31 |

    {{@post.teaser ?: substr(\Base::instance()->scrub(@text),0,350) | esc }}...

    32 | Read more 33 |
    34 |
    35 | 36 | 37 | 38 |
    39 |
    40 | 41 |
    42 |

    active Tags with count

    43 | 50 | {*

    Search

    51 |

    Last Posts

    52 |

    Last Comments

    53 |

    Meta Pages

    *} 54 |
    55 |
    -------------------------------------------------------------------------------- /ui/templates/post_single.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |

    {{@post.title | esc}}

    4 |

    5 | {{ '{0,date}', strtotime(@post.publish_date) | format }} 6 | 7 | {{@post.author.name}} 8 | 9 | 10 | 11 | 12 | {{@tag.title | esc}} 13 | 14 | 15 | 16 |

    17 |
    18 |
    19 | 20 |
    {{ @post.teaser | esc }}
    21 |
    22 | 23 |
    24 | 25 | 26 | 27 |
    28 |
    29 |
    30 | {{@post.text}} 31 |
    32 | 33 | 81 | 82 |
    83 | --------------------------------------------------------------------------------