diff --git a/.env.example b/.env.example index 907bb477..cd7fdb90 100644 --- a/.env.example +++ b/.env.example @@ -37,3 +37,4 @@ VANILLA_FORUM_SECRET= DISQUS_API_KEY= DISQUS_API_SECRET= DISQUS_DOMAIN= +DISQUS_ENABLED=false diff --git a/app/Http/Controllers/AccountApiController.php b/app/Http/Controllers/AccountApiController.php index 14b81839..139142ad 100644 --- a/app/Http/Controllers/AccountApiController.php +++ b/app/Http/Controllers/AccountApiController.php @@ -52,8 +52,9 @@ public function update($id) if (!Input::has('password')) { $this->validator->setData(Input::except(['password', 'password_confirmation'])); } - $input = $this->validator->validate('update'); $user = $this->userRepo->getById($id); + $input = $this->validator->bind('nickName', ['userId' => $user->id])->bind('email', ['userId' => $user->id]) + ->validate('update'); $this->userRepo->update($user, $input); return Response::json(['success' => true]); } catch (ValidationException $e) { diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index dd000d93..0acdf167 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -100,42 +100,27 @@ public function postRegister() } try { - $input = $this->validator->validate('register'); - $existingUser = $this->userRepo->getByEmail($input['email']); - // duplicated user verification - if ($existingUser === null) { - $input['password'] = Hash::make($input['password']); - $user = $this->userRepo->create($input); - if (!empty($user)) { - Auth::login($user); - try { - $subject = Lang::get('emails.welcome.subject', ['siteName' => Config::get('gzero.siteName')]); - Mail::send( // welcome email - 'emails.auth.welcome', - ['user' => $user], - function ($message) use ($input, $subject) { - $message->subject($subject) - ->to($input['email'], $input['firstName'] . ' ' . $input['lastName']); - } - ); - } catch (\Swift_TransportException $e) { - /**@TODO Better way to handle exceptions on production */ - Log::error('Unable to send welcome email: ' . $e->getMessage()); - } + $input = $this->validator->validate('register'); + $input['password'] = Hash::make($input['password']); + $user = $this->userRepo->create($input); + if (!empty($user)) { + Auth::login($user); + try { + $subject = Lang::get('emails.welcome.subject', ['siteName' => Config::get('gzero.siteName')]); + Mail::send( // welcome email + 'emails.auth.welcome', + ['user' => $user], + function ($message) use ($input, $subject) { + $message->subject($subject) + ->to($input['email'], $input['firstName'] . ' ' . $input['lastName']); + } + ); + } catch (\Swift_TransportException $e) { + /**@TODO Better way to handle exceptions on production */ + Log::error('Unable to send welcome email: ' . $e->getMessage()); } - return redirect()->intended('account'); - } else { - Session::flash( - 'messages', - [ - [ - 'code' => 'error', - 'text' => Lang::get('common.emailAlreadyInUseMessage') - ] - ] - ); - return redirect()->route('register')->withInput(); } + return redirect()->intended('account'); } catch (ValidationException $e) { return redirect()->route('register')->withInput()->withErrors($e->getErrors()); } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index b1160400..03821542 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -38,7 +38,7 @@ function ($view) { if ($user) { $data = [ "id" => $user["id"], - "username" => $user["firstName"] . ' ' . $user["lastName"], + "username" => $user->getPresenter()->displayName(), "email" => $user["email"], //"avatar" => $user["avatar"], ]; diff --git a/changelog.md b/changelog.md index f88de85a..f433a8d8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,41 @@ ###Changelog: +##v0.0.6 +*GZERO PLATFORM* + +- Added user nickName field +- Added email field to edit user account form +- Added missing disquss counter +- Added handling social accounts without email field +- Fixed api url on edit account when multi language is disabled +- Fixed SEO fields formatting issues +- Fixed lang code in html tag +- Fixed loading mask dimensions + +*GZERO ADMIN* + +- Added user nickName field + +*GZERO API* + +- Added user nickName field + +*GZERO CMS* + +- Added user nickName field +- Added unique nickname for users with empty on user creation +- Fixed SEO fields in translation presenter + +*GZERO SOCIAL* + +- Added user email from social response for user creation +- Unique social id is now used as fallback for response with missing email +- Fixed social login buttons so that they are visible only for configured services +- Fixed loading mask + +*GZERO VANILLA-INTEGRATION* + +- Added user nickName field + ##v0.0.5 *GZERO PLATFORM* diff --git a/composer.lock b/composer.lock index 2a4f7f59..98b3cd81 100644 --- a/composer.lock +++ b/composer.lock @@ -684,16 +684,16 @@ }, { "name": "gzero/admin", - "version": "v0.0.5", + "version": "v0.0.6", "source": { "type": "git", "url": "https://github.com/GrupaZero/admin.git", - "reference": "91d26ff1343af8fce90f20ab283b270f16540b5d" + "reference": "c37d3e4f51186a1d18a0344ce9e21fa13d70fecd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrupaZero/admin/zipball/91d26ff1343af8fce90f20ab283b270f16540b5d", - "reference": "91d26ff1343af8fce90f20ab283b270f16540b5d", + "url": "https://api.github.com/repos/GrupaZero/admin/zipball/c37d3e4f51186a1d18a0344ce9e21fa13d70fecd", + "reference": "c37d3e4f51186a1d18a0344ce9e21fa13d70fecd", "shasum": "" }, "require": { @@ -726,20 +726,20 @@ "gzero cms", "laravel" ], - "time": "2016-03-26 10:52:14" + "time": "2016-04-09 17:29:02" }, { "name": "gzero/api", - "version": "v0.0.5", + "version": "v0.0.6", "source": { "type": "git", "url": "https://github.com/GrupaZero/api.git", - "reference": "9934bc87c430140f65ccaabc31cf8be0918095bf" + "reference": "cfb4d3d761ce2a7f8aca3222e6e015ca8ac217aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrupaZero/api/zipball/9934bc87c430140f65ccaabc31cf8be0918095bf", - "reference": "9934bc87c430140f65ccaabc31cf8be0918095bf", + "url": "https://api.github.com/repos/GrupaZero/api/zipball/cfb4d3d761ce2a7f8aca3222e6e015ca8ac217aa", + "reference": "cfb4d3d761ce2a7f8aca3222e6e015ca8ac217aa", "shasum": "" }, "require": { @@ -785,20 +785,20 @@ "cms", "laravel" ], - "time": "2016-03-26 10:47:33" + "time": "2016-04-09 17:27:11" }, { "name": "gzero/cms", - "version": "v0.0.5", + "version": "v0.0.6", "source": { "type": "git", "url": "https://github.com/GrupaZero/cms.git", - "reference": "8174fa694ba80e965709a3b2d50bf8dff5a112ba" + "reference": "3068086679e76e8db5ae804000ec61e6000b9f01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrupaZero/cms/zipball/8174fa694ba80e965709a3b2d50bf8dff5a112ba", - "reference": "8174fa694ba80e965709a3b2d50bf8dff5a112ba", + "url": "https://api.github.com/repos/GrupaZero/cms/zipball/3068086679e76e8db5ae804000ec61e6000b9f01", + "reference": "3068086679e76e8db5ae804000ec61e6000b9f01", "shasum": "" }, "require": { @@ -849,7 +849,7 @@ "framework", "laravel" ], - "time": "2016-03-25 17:32:26" + "time": "2016-04-09 14:12:53" }, { "name": "gzero/eloquent-tree", @@ -901,16 +901,16 @@ }, { "name": "gzero/social", - "version": "v1.1", + "version": "v1.2", "source": { "type": "git", "url": "https://github.com/GrupaZero/social.git", - "reference": "0db632f92a5f450ce488582c777c83a7eb804cfd" + "reference": "936c5de59bd5fa40e28b52e9e92c97b243500b6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrupaZero/social/zipball/0db632f92a5f450ce488582c777c83a7eb804cfd", - "reference": "0db632f92a5f450ce488582c777c83a7eb804cfd", + "url": "https://api.github.com/repos/GrupaZero/social/zipball/936c5de59bd5fa40e28b52e9e92c97b243500b6e", + "reference": "936c5de59bd5fa40e28b52e9e92c97b243500b6e", "shasum": "" }, "require": { @@ -954,20 +954,20 @@ "plugin", "social" ], - "time": "2016-03-26 10:57:44" + "time": "2016-04-09 14:13:14" }, { "name": "gzero/vanilla-integration", - "version": "v1.0", + "version": "v1.1", "source": { "type": "git", "url": "https://github.com/GrupaZero/vanilla-integration.git", - "reference": "14b1bc646fb71eda2aada85e66eaaf97b9b064c0" + "reference": "7e758c61f075d692009cf97b9bbb80322366a2ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrupaZero/vanilla-integration/zipball/14b1bc646fb71eda2aada85e66eaaf97b9b064c0", - "reference": "14b1bc646fb71eda2aada85e66eaaf97b9b064c0", + "url": "https://api.github.com/repos/GrupaZero/vanilla-integration/zipball/7e758c61f075d692009cf97b9bbb80322366a2ca", + "reference": "7e758c61f075d692009cf97b9bbb80322366a2ca", "shasum": "" }, "require": { @@ -1011,7 +1011,7 @@ "laravel", "vanilla forum" ], - "time": "2016-01-02 15:50:22" + "time": "2016-04-03 21:23:07" }, { "name": "jakub-onderka/php-console-color", @@ -1160,16 +1160,16 @@ }, { "name": "laravel/framework", - "version": "v5.1.31", + "version": "v5.1.34", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "d899fbda59bf3ffcde11a9b443c01043b76f40b3" + "reference": "0e73cba565b0ef5b158da62f641dc6770b806102" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/d899fbda59bf3ffcde11a9b443c01043b76f40b3", - "reference": "d899fbda59bf3ffcde11a9b443c01043b76f40b3", + "url": "https://api.github.com/repos/laravel/framework/zipball/0e73cba565b0ef5b158da62f641dc6770b806102", + "reference": "0e73cba565b0ef5b158da62f641dc6770b806102", "shasum": "" }, "require": { @@ -1183,7 +1183,7 @@ "monolog/monolog": "~1.11", "mtdowling/cron-expression": "~1.0", "nesbot/carbon": "~1.19", - "paragonie/random_compat": "~1.1", + "paragonie/random_compat": "~1.4", "php": ">=5.5.9", "psy/psysh": "0.7.*", "swiftmailer/swiftmailer": "~5.1", @@ -1284,7 +1284,7 @@ "framework", "laravel" ], - "time": "2016-02-24 15:13:21" + "time": "2016-04-07 14:12:37" }, { "name": "laravel/socialite", @@ -1551,16 +1551,16 @@ }, { "name": "monolog/monolog", - "version": "1.18.1", + "version": "1.18.2", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "a5f2734e8c16f3aa21b3da09715d10e15b4d2d45" + "reference": "064b38c16790249488e7a8b987acf1c9d7383c09" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/a5f2734e8c16f3aa21b3da09715d10e15b4d2d45", - "reference": "a5f2734e8c16f3aa21b3da09715d10e15b4d2d45", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/064b38c16790249488e7a8b987acf1c9d7383c09", + "reference": "064b38c16790249488e7a8b987acf1c9d7383c09", "shasum": "" }, "require": { @@ -1575,13 +1575,13 @@ "doctrine/couchdb": "~1.0@dev", "graylog2/gelf-php": "~1.0", "jakub-onderka/php-parallel-lint": "0.9", + "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "phpunit/phpunit": "~4.5", "phpunit/phpunit-mock-objects": "2.3.0", "raven/raven": "^0.13", "ruflin/elastica": ">=0.90 <3.0", - "swiftmailer/swiftmailer": "~5.3", - "videlalvaro/php-amqplib": "~2.4" + "swiftmailer/swiftmailer": "~5.3" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -1590,11 +1590,11 @@ "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", "php-console/php-console": "Allow sending log messages to Google Chrome", "raven/raven": "Allow sending log messages to a Sentry server", "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib" + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" }, "type": "library", "extra": { @@ -1625,7 +1625,7 @@ "logging", "psr-3" ], - "time": "2016-03-13 16:08:35" + "time": "2016-04-02 13:12:58" }, { "name": "mtdowling/cron-expression", @@ -2132,16 +2132,16 @@ }, { "name": "symfony/console", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ee91ec301cd88ee38ab14505025fe94bbc19a9c1" + "reference": "6100a40569b2be1b6aba1cc6a92fe6cb71024fc8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ee91ec301cd88ee38ab14505025fe94bbc19a9c1", - "reference": "ee91ec301cd88ee38ab14505025fe94bbc19a9c1", + "url": "https://api.github.com/repos/symfony/console/zipball/6100a40569b2be1b6aba1cc6a92fe6cb71024fc8", + "reference": "6100a40569b2be1b6aba1cc6a92fe6cb71024fc8", "shasum": "" }, "require": { @@ -2187,20 +2187,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2016-02-28 16:19:47" + "time": "2016-03-09 16:30:49" }, { "name": "symfony/css-selector", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "5377825bb6496514f63603af417fa07afaa12357" + "reference": "b6e5e9087ed7affbd4c38948da8f93513a87de43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/5377825bb6496514f63603af417fa07afaa12357", - "reference": "5377825bb6496514f63603af417fa07afaa12357", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/b6e5e9087ed7affbd4c38948da8f93513a87de43", + "reference": "b6e5e9087ed7affbd4c38948da8f93513a87de43", "shasum": "" }, "require": { @@ -2240,20 +2240,20 @@ ], "description": "Symfony CssSelector Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:09:39" + "time": "2016-03-04 07:52:28" }, { "name": "symfony/debug", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "e96f1ff28e2b8b2f3b906245b18d5e6a52e73648" + "reference": "ef78aaaa3e54d2e4b873cc4c7d591969f9bf0b5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/e96f1ff28e2b8b2f3b906245b18d5e6a52e73648", - "reference": "e96f1ff28e2b8b2f3b906245b18d5e6a52e73648", + "url": "https://api.github.com/repos/symfony/debug/zipball/ef78aaaa3e54d2e4b873cc4c7d591969f9bf0b5f", + "reference": "ef78aaaa3e54d2e4b873cc4c7d591969f9bf0b5f", "shasum": "" }, "require": { @@ -2297,20 +2297,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2016-01-25 23:34:19" + "time": "2016-03-13 10:12:56" }, { "name": "symfony/dom-crawler", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "c7a6dfd2720581a61d06c04489e9b3df1e4f7eaf" + "reference": "f7cbc7b68f5c55615f752b6dd80ba1403b2eab83" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/c7a6dfd2720581a61d06c04489e9b3df1e4f7eaf", - "reference": "c7a6dfd2720581a61d06c04489e9b3df1e4f7eaf", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/f7cbc7b68f5c55615f752b6dd80ba1403b2eab83", + "reference": "f7cbc7b68f5c55615f752b6dd80ba1403b2eab83", "shasum": "" }, "require": { @@ -2352,20 +2352,20 @@ ], "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2016-02-28 16:19:47" + "time": "2016-03-22 08:55:46" }, { "name": "symfony/event-dispatcher", - "version": "v2.8.3", + "version": "v2.8.4", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "78c468665c9568c3faaa9c416a7134308f2d85c3" + "reference": "47d2d8cade9b1c3987573d2943bb9352536cdb87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/78c468665c9568c3faaa9c416a7134308f2d85c3", - "reference": "78c468665c9568c3faaa9c416a7134308f2d85c3", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/47d2d8cade9b1c3987573d2943bb9352536cdb87", + "reference": "47d2d8cade9b1c3987573d2943bb9352536cdb87", "shasum": "" }, "require": { @@ -2412,20 +2412,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2016-01-27 05:14:19" + "time": "2016-03-07 14:04:32" }, { "name": "symfony/finder", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "addcb70b33affbca4f3979b0d000259b63dd6711" + "reference": "0bacc7c9fc1905cfce20212633013a5b300dce52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/addcb70b33affbca4f3979b0d000259b63dd6711", - "reference": "addcb70b33affbca4f3979b0d000259b63dd6711", + "url": "https://api.github.com/repos/symfony/finder/zipball/0bacc7c9fc1905cfce20212633013a5b300dce52", + "reference": "0bacc7c9fc1905cfce20212633013a5b300dce52", "shasum": "" }, "require": { @@ -2461,24 +2461,25 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2016-02-22 16:12:29" + "time": "2016-03-10 10:49:29" }, { "name": "symfony/http-foundation", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "6aeb70d26da8f30753111b3f9cf47eb0421c0735" + "reference": "b69b6e103712870a3137e9132115d800b2713aac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/6aeb70d26da8f30753111b3f9cf47eb0421c0735", - "reference": "6aeb70d26da8f30753111b3f9cf47eb0421c0735", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b69b6e103712870a3137e9132115d800b2713aac", + "reference": "b69b6e103712870a3137e9132115d800b2713aac", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.9", + "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { "symfony/expression-language": "~2.4" @@ -2516,20 +2517,20 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2016-02-28 16:19:47" + "time": "2016-03-25 17:55:03" }, { "name": "symfony/http-kernel", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "11082f03c03e17dd2ca9c149988b229e04829fdc" + "reference": "22abe7c5d7f1856661b32306f32a615f6a364835" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/11082f03c03e17dd2ca9c149988b229e04829fdc", - "reference": "11082f03c03e17dd2ca9c149988b229e04829fdc", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/22abe7c5d7f1856661b32306f32a615f6a364835", + "reference": "22abe7c5d7f1856661b32306f32a615f6a364835", "shasum": "" }, "require": { @@ -2598,7 +2599,66 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2016-02-28 20:37:08" + "time": "2016-03-25 18:14:10" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "1289d16209491b584839022f29257ad859b8532d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/1289d16209491b584839022f29257ad859b8532d", + "reference": "1289d16209491b584839022f29257ad859b8532d", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-01-20 09:13:37" }, { "name": "symfony/polyfill-php56", @@ -2710,16 +2770,16 @@ }, { "name": "symfony/process", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "faa89438017392585abdf7f5a47f3f5f282d93c1" + "reference": "19beeea4abd3b1566a1e6cdb15f72d0bae2e1fff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/faa89438017392585abdf7f5a47f3f5f282d93c1", - "reference": "faa89438017392585abdf7f5a47f3f5f282d93c1", + "url": "https://api.github.com/repos/symfony/process/zipball/19beeea4abd3b1566a1e6cdb15f72d0bae2e1fff", + "reference": "19beeea4abd3b1566a1e6cdb15f72d0bae2e1fff", "shasum": "" }, "require": { @@ -2755,20 +2815,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2016-02-02 13:32:58" + "time": "2016-03-17 11:37:14" }, { "name": "symfony/routing", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "c63128f6dd5095351a87cd7c8801963001e22aff" + "reference": "f3fad0ea232dcce8cd20388db5a4f492f9a24ed5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/c63128f6dd5095351a87cd7c8801963001e22aff", - "reference": "c63128f6dd5095351a87cd7c8801963001e22aff", + "url": "https://api.github.com/repos/symfony/routing/zipball/f3fad0ea232dcce8cd20388db5a4f492f9a24ed5", + "reference": "f3fad0ea232dcce8cd20388db5a4f492f9a24ed5", "shasum": "" }, "require": { @@ -2829,20 +2889,20 @@ "uri", "url" ], - "time": "2016-02-04 13:52:46" + "time": "2016-03-18 18:55:39" }, { "name": "symfony/translation", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "4c61cf815af17eee4cebf0e4c66f56a2f704cfd8" + "reference": "e75d88c9af3c9c06341f4dad7ce776c9bddf94de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/4c61cf815af17eee4cebf0e4c66f56a2f704cfd8", - "reference": "4c61cf815af17eee4cebf0e4c66f56a2f704cfd8", + "url": "https://api.github.com/repos/symfony/translation/zipball/e75d88c9af3c9c06341f4dad7ce776c9bddf94de", + "reference": "e75d88c9af3c9c06341f4dad7ce776c9bddf94de", "shasum": "" }, "require": { @@ -2892,20 +2952,20 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2016-02-01 20:45:15" + "time": "2016-03-24 09:06:43" }, { "name": "symfony/var-dumper", - "version": "v2.7.10", + "version": "v2.7.11", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "e4fdc92abb3dae0d840f4276af701d58ddc9b733" + "reference": "c88d135c41c10d178e9724c69cbf699c5112883d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e4fdc92abb3dae0d840f4276af701d58ddc9b733", - "reference": "e4fdc92abb3dae0d840f4276af701d58ddc9b733", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c88d135c41c10d178e9724c69cbf699c5112883d", + "reference": "c88d135c41c10d178e9724c69cbf699c5112883d", "shasum": "" }, "require": { @@ -2951,7 +3011,7 @@ "debug", "dump" ], - "time": "2016-02-12 17:39:33" + "time": "2016-03-07 11:06:07" }, { "name": "thomaswelton/gravatarlib", @@ -4536,16 +4596,16 @@ }, { "name": "symfony/browser-kit", - "version": "v2.8.3", + "version": "v2.8.4", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "6b2085020b4e86fcb7ae44c3ab8ddb91774b33d2" + "reference": "745c19467255cf32eaf311f000eecafd83ca5586" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/6b2085020b4e86fcb7ae44c3ab8ddb91774b33d2", - "reference": "6b2085020b4e86fcb7ae44c3ab8ddb91774b33d2", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/745c19467255cf32eaf311f000eecafd83ca5586", + "reference": "745c19467255cf32eaf311f000eecafd83ca5586", "shasum": "" }, "require": { @@ -4589,20 +4649,20 @@ ], "description": "Symfony BrowserKit Component", "homepage": "https://symfony.com", - "time": "2016-01-27 11:34:40" + "time": "2016-03-04 07:54:35" }, { "name": "symfony/class-loader", - "version": "v2.8.3", + "version": "v2.8.4", "source": { "type": "git", "url": "https://github.com/symfony/class-loader.git", - "reference": "517ab0554b6a5744d04480cb06873ffbd9442d73" + "reference": "7d362c22710980730d46a5d039e788946a2938cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/class-loader/zipball/517ab0554b6a5744d04480cb06873ffbd9442d73", - "reference": "517ab0554b6a5744d04480cb06873ffbd9442d73", + "url": "https://api.github.com/repos/symfony/class-loader/zipball/7d362c22710980730d46a5d039e788946a2938cb", + "reference": "7d362c22710980730d46a5d039e788946a2938cb", "shasum": "" }, "require": { @@ -4642,20 +4702,20 @@ ], "description": "Symfony ClassLoader Component", "homepage": "https://symfony.com", - "time": "2016-01-30 15:58:35" + "time": "2016-03-10 19:33:53" }, { "name": "symfony/config", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "79a97025f7bf4bbf8352b5df1905aa136a531066" + "reference": "980ee40c28f00acff8906c11b778aab5f0db74c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/79a97025f7bf4bbf8352b5df1905aa136a531066", - "reference": "79a97025f7bf4bbf8352b5df1905aa136a531066", + "url": "https://api.github.com/repos/symfony/config/zipball/980ee40c28f00acff8906c11b778aab5f0db74c2", + "reference": "980ee40c28f00acff8906c11b778aab5f0db74c2", "shasum": "" }, "require": { @@ -4695,20 +4755,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2016-02-23 15:16:06" + "time": "2016-03-04 07:55:57" }, { "name": "symfony/filesystem", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "23ae8f9648d0a7fe94a47c8e20e5bf37c489a451" + "reference": "f82499a459dcade2ea56df94cc58b19c8bde3d20" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/23ae8f9648d0a7fe94a47c8e20e5bf37c489a451", - "reference": "23ae8f9648d0a7fe94a47c8e20e5bf37c489a451", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/f82499a459dcade2ea56df94cc58b19c8bde3d20", + "reference": "f82499a459dcade2ea56df94cc58b19c8bde3d20", "shasum": "" }, "require": { @@ -4744,7 +4804,7 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2016-02-23 15:16:06" + "time": "2016-03-27 10:24:39" }, { "name": "symfony/polyfill-apcu", @@ -4801,16 +4861,16 @@ }, { "name": "symfony/stopwatch", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "4a204804952ff267ace88cf499e0b4bb302a475e" + "reference": "6015187088421e9499d8f8316bdb396f8b806c06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/4a204804952ff267ace88cf499e0b4bb302a475e", - "reference": "4a204804952ff267ace88cf499e0b4bb302a475e", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/6015187088421e9499d8f8316bdb396f8b806c06", + "reference": "6015187088421e9499d8f8316bdb396f8b806c06", "shasum": "" }, "require": { @@ -4846,20 +4906,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2016-01-03 15:35:16" + "time": "2016-03-04 07:55:57" }, { "name": "symfony/yaml", - "version": "v2.8.3", + "version": "v2.8.4", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "2a4ee40acb880c56f29fb1b8886e7ffe94f3b995" + "reference": "584e52cb8f788a887553ba82db6caacb1d6260bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/2a4ee40acb880c56f29fb1b8886e7ffe94f3b995", - "reference": "2a4ee40acb880c56f29fb1b8886e7ffe94f3b995", + "url": "https://api.github.com/repos/symfony/yaml/zipball/584e52cb8f788a887553ba82db6caacb1d6260bb", + "reference": "584e52cb8f788a887553ba82db6caacb1d6260bb", "shasum": "" }, "require": { @@ -4895,7 +4955,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2016-02-23 07:41:20" + "time": "2016-03-04 07:54:35" } ], "aliases": [], diff --git a/config/disqus.php b/config/disqus.php index 2f65c80a..6054d1d5 100644 --- a/config/disqus.php +++ b/config/disqus.php @@ -3,5 +3,5 @@ 'api_key' => env('DISQUS_API_KEY', ''), 'api_secret' => env('DISQUS_API_SECRET', ''), 'domain' => env('DISQUS_DOMAIN', ''), //.disqus.com/embed.js - 'enabled' => false, + 'enabled' => env('DISQUS_ENABLED', 'false'), ]; diff --git a/config/gzero.php b/config/gzero.php index 3f4468b3..31abbfab 100644 --- a/config/gzero.php +++ b/config/gzero.php @@ -6,6 +6,7 @@ 'seoTitleAlternativeField' => 'title', 'seoDescriptionAlternativeField' => 'body', 'seoDescLength' => 160, + 'useUsersNickNames' => true, 'siteDesc' => 'Content management system.', 'multilang' => [ 'enabled' => true, diff --git a/public/js/all.js b/public/js/all.js index ab7751b7..aa50f4bd 100644 --- a/public/js/all.js +++ b/public/js/all.js @@ -1 +1 @@ -function addLoadEvent(){var t=window.onload;"function"!=typeof window.onload?window.onload=checkCookie:window.onload=function(){t&&t(),checkCookie()}}function getCookie(t){var e,i,n,o=document.cookie.split(";");for(e=0;e'+e+"

")}function setGlobalMessage(t,e){$("#content").prepend('
")}function clearFormValidationErrors(){var t=$(".form-group.has-error");t.removeClass("has-error"),t.find(".help-block").remove()}function hideMessages(){setTimeout(clearMessages,5e3)}function clearMessages(){var t=$("div.message-box div.alert");t.fadeOut("slow",function(){t.remove()}),$("div.message-box").slideToggle("slow",function(){$(this).remove()})}addLoadEvent(),function(t){jQuery.fn.rPage=function(){function e(e){this.label=function(){var e=this.els.filter(".active").index(),i=this;this.els.each(function(){0==i.isNextOrPrevLink(t(this))?t(this).addClass("page-away-"+Math.abs(e-t(this).index()).toString()):t(this).index()>e?t(this).addClass("right-etc"):t(this).addClass("left-etc")})},this.makeResponsive=function(){this.reset();for(var t=this.calculateWidth();t>this.els.parent().parent().width()-10;){var e=this.removeOne();if(0==e)break;t=this.calculateWidth()}},this.isNextOrPrevLink=function(t){return t.hasClass("pagination-prev")||t.hasClass("pagination-next")||"»"==t.text()||"«"==t.text()},this.isRemovable=function(t){if(this.isNextOrPrevLink(t))return!1;var i=this.els.filter(t).index();return 1==i||this.isNextOrPrevLink(e.find("li").eq(i+1))?!1:"..."==t.text()?!1:!0},this.removeOne=function(){for(var t=this.els.filter(".active").index(),i=e.find("li").length-1,n=i-1;n>0;n--){var o=this.els.filter(".page-away-"+n.toString()),a=o.filter(function(){return"none"!=this.style.display});if(a.length>0)for(var s=0;s..."),this.needsEtcSign(1,t)&&this.els.eq(1).after("
  • ...
  • "),!0}}return!1},this.needsEtcSign=function(t,i){if(1>=i-t)return!1;for(var n=!1,o=!1,a=t+1;i>a;a++){var s=e.find("li").eq(a);"none"==s.css("display")&&(o=!0),"..."==s.text()&&(n=!0)}return 1==o&&0==n?!0:!1},this.reset=function(){for(var t=0;tn;n++)new e(t(i[n]))}}(jQuery),function(t,e,i,n){function o(e,i){this.element=e,this.settings=t.extend({},s,i),this._defaults=s,this._name=a,this.init()}var a="metisMenu",s={toggle:!0};o.prototype={init:function(){var e=t(this.element),i=this.settings.toggle;e.find("li.active").has("ul").children("ul").addClass("collapse in"),e.find("li").not(".active").has("ul").children("ul").addClass("collapse"),e.find("li").has("ul").children("a").on("click",function(e){e.preventDefault(),t(this).parent("li").toggleClass("active").children("ul").collapse("toggle"),i&&t(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide")})}},t.fn[a]=function(e){return this.each(function(){t.data(this,"plugin_"+a)||t.data(this,"plugin_"+a,new o(this,e))})}}(jQuery,window,document),function(t,e,i){function n(i,n,o){var a=e.createElement(i);return n&&(a.id=Z+n),o&&(a.style.cssText=o),t(a)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function a(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function s(t){var e=E.length,i=(z+t)%e;return 0>i?e+i:i}function r(t,e){return Math.round((/%/.test(t)?("x"===e?H.width():o())/100:1)*parseInt(t,10))}function l(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function h(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function c(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==w[0]&&(t.stopPropagation(),y.focus())}function d(t){d.str!==t&&(y.add(w).removeClass(d.str).addClass(t),d.str=t)}function u(e){z=0,e&&e!==!1&&"nofollow"!==e?(E=t("."+tt).filter(function(){var i=t.data(this,Y),n=new a(this,i);return n.get("rel")===e}),z=E.index(P.el),-1===z&&(E=E.add(P.el),z=E.length-1)):E=t(P.el)}function f(i){t(e).trigger(i),rt.triggerHandler(i)}function g(i){var o;if(!Q){if(o=t(i).data(Y),P=new a(i,o),u(P.get("rel")),!K){K=U=!0,d(P.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),$=n(lt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),x.css({width:"",height:""}).append($),F=k.height()+T.height()+x.outerHeight(!0)-x.height(),D=C.width()+_.width()+x.outerWidth(!0)-x.width(),B=$.outerHeight(!0),N=$.outerWidth(!0);var s=r(P.get("initialWidth"),"x"),l=r(P.get("initialHeight"),"y"),h=P.get("maxWidth"),g=P.get("maxHeight");P.w=Math.max((h!==!1?Math.min(s,r(h,"x")):s)-N-D,0),P.h=Math.max((g!==!1?Math.min(l,r(g,"y")):l)-B-F,0),$.css({width:"",height:P.h}),V.position(),f(et),P.get("onOpen"),q.add(W).hide(),y.focus(),P.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",c,!0),rt.one(at,function(){e.removeEventListener("focus",c,!0)})),P.get("returnFocus")&&rt.one(at,function(){t(P.el).focus()})}var p=parseFloat(P.get("opacity"));w.css({opacity:p===p?p:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?I.html(P.get("close")).appendTo(x):I.appendTo("
    "),v()}}function p(){y||(J=!1,H=t(i),y=n(lt).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=n(lt,"Overlay").hide(),L=t([n(lt,"LoadingOverlay")[0],n(lt,"LoadingGraphic")[0]]),b=n(lt,"Wrapper"),x=n(lt,"Content").append(W=n(lt,"Title"),O=n(lt,"Current"),j=t(''+e+"
    ")}function clearFormValidationErrors(){var t=$(".form-group.has-error");t.removeClass("has-error"),t.find(".help-block").remove()}function hideMessages(){setTimeout(clearMessages,5e3)}function clearMessages(){var t=$("div.message-box div.alert");t.fadeOut("slow",function(){t.remove()}),$("div.message-box").slideToggle("slow",function(){$(this).remove()})}addLoadEvent(),function(t){jQuery.fn.rPage=function(){function e(e){this.label=function(){var e=this.els.filter(".active").index(),i=this;this.els.each(function(){0==i.isNextOrPrevLink(t(this))?t(this).addClass("page-away-"+Math.abs(e-t(this).index()).toString()):t(this).index()>e?t(this).addClass("right-etc"):t(this).addClass("left-etc")})},this.makeResponsive=function(){this.reset();for(var t=this.calculateWidth();t>this.els.parent().parent().width()-10;){var e=this.removeOne();if(0==e)break;t=this.calculateWidth()}},this.isNextOrPrevLink=function(t){return t.hasClass("pagination-prev")||t.hasClass("pagination-next")||"»"==t.text()||"«"==t.text()},this.isRemovable=function(t){if(this.isNextOrPrevLink(t))return!1;var i=this.els.filter(t).index();return 1==i||this.isNextOrPrevLink(e.find("li").eq(i+1))?!1:"..."==t.text()?!1:!0},this.removeOne=function(){for(var t=this.els.filter(".active").index(),i=e.find("li").length-1,n=i-1;n>0;n--){var o=this.els.filter(".page-away-"+n.toString()),a=o.filter(function(){return"none"!=this.style.display});if(a.length>0)for(var s=0;s..."),this.needsEtcSign(1,t)&&this.els.eq(1).after("
  • ...
  • "),!0}}return!1},this.needsEtcSign=function(t,i){if(1>=i-t)return!1;for(var n=!1,o=!1,a=t+1;i>a;a++){var s=e.find("li").eq(a);"none"==s.css("display")&&(o=!0),"..."==s.text()&&(n=!0)}return 1==o&&0==n?!0:!1},this.reset=function(){for(var t=0;tn;n++)new e(t(i[n]))}}(jQuery),function(t,e,i,n){function o(e,i){this.element=e,this.settings=t.extend({},s,i),this._defaults=s,this._name=a,this.init()}var a="metisMenu",s={toggle:!0};o.prototype={init:function(){var e=t(this.element),i=this.settings.toggle;e.find("li.active").has("ul").children("ul").addClass("collapse in"),e.find("li").not(".active").has("ul").children("ul").addClass("collapse"),e.find("li").has("ul").children("a").on("click",function(e){e.preventDefault(),t(this).parent("li").toggleClass("active").children("ul").collapse("toggle"),i&&t(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide")})}},t.fn[a]=function(e){return this.each(function(){t.data(this,"plugin_"+a)||t.data(this,"plugin_"+a,new o(this,e))})}}(jQuery,window,document),function(t,e,i){function n(i,n,o){var a=e.createElement(i);return n&&(a.id=Z+n),o&&(a.style.cssText=o),t(a)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function a(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function s(t){var e=H.length,i=(z+t)%e;return 0>i?e+i:i}function r(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function l(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function h(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function c(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==w[0]&&(t.stopPropagation(),y.focus())}function d(t){d.str!==t&&(y.add(w).removeClass(d.str).addClass(t),d.str=t)}function u(e){z=0,e&&e!==!1&&"nofollow"!==e?(H=t("."+tt).filter(function(){var i=t.data(this,Y),n=new a(this,i);return n.get("rel")===e}),z=H.index(P.el),-1===z&&(H=H.add(P.el),z=H.length-1)):H=t(P.el)}function f(i){t(e).trigger(i),rt.triggerHandler(i)}function g(i){var o;if(!Q){if(o=t(i).data(Y),P=new a(i,o),u(P.get("rel")),!K){K=U=!0,d(P.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),$=n(lt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),x.css({width:"",height:""}).append($),F=k.height()+T.height()+x.outerHeight(!0)-x.height(),D=C.width()+_.width()+x.outerWidth(!0)-x.width(),B=$.outerHeight(!0),N=$.outerWidth(!0);var s=r(P.get("initialWidth"),"x"),l=r(P.get("initialHeight"),"y"),h=P.get("maxWidth"),g=P.get("maxHeight");P.w=Math.max((h!==!1?Math.min(s,r(h,"x")):s)-N-D,0),P.h=Math.max((g!==!1?Math.min(l,r(g,"y")):l)-B-F,0),$.css({width:"",height:P.h}),V.position(),f(et),P.get("onOpen"),q.add(W).hide(),y.focus(),P.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",c,!0),rt.one(at,function(){e.removeEventListener("focus",c,!0)})),P.get("returnFocus")&&rt.one(at,function(){t(P.el).focus()})}var p=parseFloat(P.get("opacity"));w.css({opacity:p===p?p:"",cursor:P.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),P.get("closeButton")?I.html(P.get("close")).appendTo(x):I.appendTo("
    "),v()}}function p(){y||(J=!1,E=t(i),y=n(lt).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),w=n(lt,"Overlay").hide(),L=t([n(lt,"LoadingOverlay")[0],n(lt,"LoadingGraphic")[0]]),b=n(lt,"Wrapper"),x=n(lt,"Content").append(W=n(lt,"Title"),O=n(lt,"Current"),j=t(' +
    diff --git a/resources/views/content/category.blade.php b/resources/views/content/category.blade.php index 849e4c2b..1c575fe4 100644 --- a/resources/views/content/category.blade.php +++ b/resources/views/content/category.blade.php @@ -2,13 +2,8 @@ @section('bodyClass', $content->theme) translation($lang->code); ?> -@section('title') - {{ $activeTranslation->seoTitle() }} -@stop - -@section('seoDescription') - {{ $activeTranslation->seoDescription() }} -@stop +@section('title'){{ $activeTranslation->seoTitle() }}@stop +@section('seoDescription'){{ $activeTranslation->seoDescription() }}@stop @section('breadcrumbs')
    @@ -86,3 +81,8 @@ class="disqus-comment-count"> {!! $children->render() !!} @endif @stop +@section('footerScripts') + @if(config('disqus.enabled') && config('disqus.domain')) + + @endif +@stop diff --git a/resources/views/content/content.blade.php b/resources/views/content/content.blade.php index ad87efca..96dac48f 100644 --- a/resources/views/content/content.blade.php +++ b/resources/views/content/content.blade.php @@ -9,13 +9,8 @@ @endif @stop -@section('title') - {{ $activeTranslation->seoTitle() }} -@stop - -@section('seoDescription') - {{ $activeTranslation->seoDescription() }} -@stop +@section('title'){{ $activeTranslation->seoTitle() }}@stop +@section('seoDescription'){{ $activeTranslation->seoDescription() }}@stop @section('breadcrumbs')
    diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 5549b680..35ea7ba6 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -71,3 +71,8 @@ class="disqus-comment-count"> @endforeach {!! $contents->render() !!} @stop +@section('footerScripts') + @if(config('disqus.enabled') && config('disqus.domain')) + + @endif +@stop diff --git a/resources/views/includes/head.blade.php b/resources/views/includes/head.blade.php index d49d5b07..aa674960 100644 --- a/resources/views/includes/head.blade.php +++ b/resources/views/includes/head.blade.php @@ -2,7 +2,7 @@ -@yield('title') - {{ option('general', 'siteName') }} +@yield('title', option('general', 'siteName')) @yield('metaData') @if(option('seo', 'googleAnalyticsId')) diff --git a/resources/views/includes/navbar.blade.php b/resources/views/includes/navbar.blade.php index 3b74cb6c..4d6af022 100644 --- a/resources/views/includes/navbar.blade.php +++ b/resources/views/includes/navbar.blade.php @@ -35,7 +35,7 @@ - {{ Auth::user()->firstName }} {{ Auth::user()->lastName }} + {{ Auth::user()->getPresenter()->displayName() }}