diff --git a/app/config/config.yml b/app/config/config.yml index 5bf12a6bc..4fb79896e 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -43,6 +43,7 @@ framework: # Twig Configuration twig: + default_path: '%kernel.project_dir%/templates' debug: "%kernel.debug%" strict_variables: "%kernel.debug%" form_themes: @@ -198,13 +199,13 @@ scheb_two_factor: google: enabled: true issuer: "%server_name%" - template: "@WallabagCore/Authentication/form.html.twig" + template: "Authentication/form.html.twig" email: enabled: true sender_email: "%twofactor_sender%" digits: 6 - template: "@WallabagCore/Authentication/form.html.twig" + template: "Authentication/form.html.twig" mailer: Wallabag\CoreBundle\Mailer\AuthCodeMailer rulerz: diff --git a/src/Wallabag/CoreBundle/Controller/Api/DeveloperController.php b/src/Wallabag/CoreBundle/Controller/Api/DeveloperController.php index 34c162ea4..647c55f67 100644 --- a/src/Wallabag/CoreBundle/Controller/Api/DeveloperController.php +++ b/src/Wallabag/CoreBundle/Controller/Api/DeveloperController.php @@ -26,7 +26,7 @@ class DeveloperController extends AbstractController { $clients = $repo->findByUser($this->getUser()->getId()); - return $this->render('@WallabagCore/Developer/index.html.twig', [ + return $this->render('Developer/index.html.twig', [ 'clients' => $clients, ]); } @@ -54,14 +54,14 @@ class DeveloperController extends AbstractController $translator->trans('flashes.developer.notice.client_created', ['%name%' => $client->getName()]) ); - return $this->render('@WallabagCore/Developer/client_parameters.html.twig', [ + return $this->render('Developer/client_parameters.html.twig', [ 'client_id' => $client->getPublicId(), 'client_secret' => $client->getSecret(), 'client_name' => $client->getName(), ]); } - return $this->render('@WallabagCore/Developer/client.html.twig', [ + return $this->render('Developer/client.html.twig', [ 'form' => $clientForm->createView(), ]); } @@ -103,7 +103,7 @@ class DeveloperController extends AbstractController */ public function howtoFirstAppAction() { - return $this->render('@WallabagCore/Developer/howto_app.html.twig', [ + return $this->render('Developer/howto_app.html.twig', [ 'wallabag_url' => $this->getParameter('domain_name'), ]); } diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 3fc6b0d34..17d9e87ca 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -243,7 +243,7 @@ class ConfigController extends AbstractController return $this->redirect($this->generateUrl('config') . '#set6'); } - return $this->render('@WallabagCore/Config/index.html.twig', [ + return $this->render('Config/index.html.twig', [ 'form' => [ 'config' => $configForm->createView(), 'feed' => $feedForm->createView(), @@ -373,7 +373,7 @@ class ConfigController extends AbstractController 'flashes.config.notice.otp_enabled' ); - return $this->render('@WallabagCore/Config/otp_app.html.twig', [ + return $this->render('Config/otp_app.html.twig', [ 'backupCodes' => $backupCodes, 'qr_code' => $googleAuthenticator->getQRContent($user), 'secret' => $secret, diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 206189abc..101c5dbac 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -156,7 +156,7 @@ class EntryController extends AbstractController return $this->showEntries('search', $request, $page); } - return $this->render('@WallabagCore/Entry/search_form.html.twig', [ + return $this->render('Entry/search_form.html.twig', [ 'form' => $form->createView(), 'currentRoute' => $currentRoute, ]); @@ -198,7 +198,7 @@ class EntryController extends AbstractController return $this->redirect($this->generateUrl('homepage')); } - return $this->render('@WallabagCore/Entry/new_form.html.twig', [ + return $this->render('Entry/new_form.html.twig', [ 'form' => $form->createView(), ]); } @@ -233,7 +233,7 @@ class EntryController extends AbstractController */ public function addEntryAction() { - return $this->render('@WallabagCore/Entry/new.html.twig'); + return $this->render('Entry/new.html.twig'); } /** @@ -263,7 +263,7 @@ class EntryController extends AbstractController return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); } - return $this->render('@WallabagCore/Entry/edit.html.twig', [ + return $this->render('Entry/edit.html.twig', [ 'form' => $form->createView(), ]); } @@ -390,7 +390,7 @@ class EntryController extends AbstractController $this->checkUserAction($entry); return $this->render( - '@WallabagCore/Entry/entry.html.twig', + 'Entry/entry.html.twig', ['entry' => $entry] ); } @@ -581,7 +581,7 @@ class EntryController extends AbstractController } return $this->render( - '@WallabagCore/Entry/share.html.twig', + 'Entry/share.html.twig', ['entry' => $entry] ); } @@ -671,7 +671,7 @@ class EntryController extends AbstractController } return $this->render( - '@WallabagCore/Entry/entries.html.twig', [ + 'Entry/entries.html.twig', [ 'form' => $form->createView(), 'entries' => $entries, 'currentPage' => $page, diff --git a/src/Wallabag/CoreBundle/Controller/FeedController.php b/src/Wallabag/CoreBundle/Controller/FeedController.php index 3484af4c9..b6d93d52d 100644 --- a/src/Wallabag/CoreBundle/Controller/FeedController.php +++ b/src/Wallabag/CoreBundle/Controller/FeedController.php @@ -144,7 +144,7 @@ class FeedController extends AbstractController } return $this->render( - '@WallabagCore/Entry/entries.xml.twig', + 'Entry/entries.xml.twig', [ 'type' => 'tag', 'url' => $url, @@ -226,7 +226,7 @@ class FeedController extends AbstractController } } - return $this->render('@WallabagCore/Entry/entries.xml.twig', [ + return $this->render('Entry/entries.xml.twig', [ 'type' => $type, 'url' => $url, 'entries' => $entries, diff --git a/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php b/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php index db50553b4..c45555b8f 100644 --- a/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php +++ b/src/Wallabag/CoreBundle/Controller/IgnoreOriginInstanceRuleController.php @@ -39,7 +39,7 @@ class IgnoreOriginInstanceRuleController extends AbstractController { $rules = $repository->findAll(); - return $this->render('@WallabagCore/IgnoreOriginInstanceRule/index.html.twig', [ + return $this->render('IgnoreOriginInstanceRule/index.html.twig', [ 'rules' => $rules, ]); } @@ -70,7 +70,7 @@ class IgnoreOriginInstanceRuleController extends AbstractController return $this->redirectToRoute('ignore_origin_instance_rules_index'); } - return $this->render('@WallabagCore/IgnoreOriginInstanceRule/new.html.twig', [ + return $this->render('IgnoreOriginInstanceRule/new.html.twig', [ 'rule' => $ignoreOriginInstanceRule, 'form' => $form->createView(), ]); @@ -101,7 +101,7 @@ class IgnoreOriginInstanceRuleController extends AbstractController return $this->redirectToRoute('ignore_origin_instance_rules_index'); } - return $this->render('@WallabagCore/IgnoreOriginInstanceRule/edit.html.twig', [ + return $this->render('IgnoreOriginInstanceRule/edit.html.twig', [ 'rule' => $ignoreOriginInstanceRule, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), diff --git a/src/Wallabag/CoreBundle/Controller/Import/ChromeController.php b/src/Wallabag/CoreBundle/Controller/Import/ChromeController.php index 61636f4ff..6f4f18a02 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/ChromeController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/ChromeController.php @@ -46,6 +46,6 @@ class ChromeController extends BrowserController protected function getImportTemplate() { - return '@WallabagCore/Import/Chrome/index.html.twig'; + return 'Import/Chrome/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/DeliciousController.php b/src/Wallabag/CoreBundle/Controller/Import/DeliciousController.php index c0d9b5084..b7308f8b0 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/DeliciousController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/DeliciousController.php @@ -76,7 +76,7 @@ class DeliciousController extends AbstractController $this->addFlash('notice', 'flashes.import.notice.failed_on_file'); } - return $this->render('@WallabagCore/Import/Delicious/index.html.twig', [ + return $this->render('Import/Delicious/index.html.twig', [ 'form' => $form->createView(), 'import' => $delicious, ]); diff --git a/src/Wallabag/CoreBundle/Controller/Import/ElcuratorController.php b/src/Wallabag/CoreBundle/Controller/Import/ElcuratorController.php index 95b846ec9..b8672dc8f 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/ElcuratorController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/ElcuratorController.php @@ -46,6 +46,6 @@ class ElcuratorController extends WallabagController protected function getImportTemplate() { - return '@WallabagCore/Import/Elcurator/index.html.twig'; + return 'Import/Elcurator/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/FirefoxController.php b/src/Wallabag/CoreBundle/Controller/Import/FirefoxController.php index b28d2555e..411c76de7 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/FirefoxController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/FirefoxController.php @@ -46,6 +46,6 @@ class FirefoxController extends BrowserController protected function getImportTemplate() { - return '@WallabagCore/Import/Firefox/index.html.twig'; + return 'Import/Firefox/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/ImportController.php b/src/Wallabag/CoreBundle/Controller/Import/ImportController.php index 8361f8240..54d82bad4 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/ImportController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/ImportController.php @@ -24,7 +24,7 @@ class ImportController extends AbstractController */ public function importAction(ImportChain $importChain) { - return $this->render('@WallabagCore/Import/index.html.twig', [ + return $this->render('Import/index.html.twig', [ 'imports' => $importChain->getAll(), ]); } @@ -41,7 +41,7 @@ class ImportController extends AbstractController $rabbitNotInstalled = false; if (!$authorizationChecker->isGranted('ROLE_SUPER_ADMIN')) { - return $this->render('@WallabagCore/Import/check_queue.html.twig'); + return $this->render('Import/check_queue.html.twig'); } if ($craueConfig->get('import_with_rabbitmq')) { @@ -85,7 +85,7 @@ class ImportController extends AbstractController } } - return $this->render('@WallabagCore/Import/check_queue.html.twig', [ + return $this->render('Import/check_queue.html.twig', [ 'nbRedisMessages' => $nbRedisMessages, 'nbRabbitMessages' => $nbRabbitMessages, 'redisNotInstalled' => $redisNotInstalled, diff --git a/src/Wallabag/CoreBundle/Controller/Import/InstapaperController.php b/src/Wallabag/CoreBundle/Controller/Import/InstapaperController.php index 655784d22..2b9f85a5b 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/InstapaperController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/InstapaperController.php @@ -76,7 +76,7 @@ class InstapaperController extends AbstractController $this->addFlash('notice', 'flashes.import.notice.failed_on_file'); } - return $this->render('@WallabagCore/Import/Instapaper/index.html.twig', [ + return $this->render('Import/Instapaper/index.html.twig', [ 'form' => $form->createView(), 'import' => $instapaper, ]); diff --git a/src/Wallabag/CoreBundle/Controller/Import/PinboardController.php b/src/Wallabag/CoreBundle/Controller/Import/PinboardController.php index 2e39eff22..53e0b26f5 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/PinboardController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/PinboardController.php @@ -76,7 +76,7 @@ class PinboardController extends AbstractController $this->addFlash('notice', 'flashes.import.notice.failed_on_file'); } - return $this->render('@WallabagCore/Import/Pinboard/index.html.twig', [ + return $this->render('Import/Pinboard/index.html.twig', [ 'form' => $form->createView(), 'import' => $pinboard, ]); diff --git a/src/Wallabag/CoreBundle/Controller/Import/PocketController.php b/src/Wallabag/CoreBundle/Controller/Import/PocketController.php index ba95d3874..b650a5835 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/PocketController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/PocketController.php @@ -43,7 +43,7 @@ class PocketController extends AbstractController ]) ->getForm(); - return $this->render('@WallabagCore/Import/Pocket/index.html.twig', [ + return $this->render('Import/Pocket/index.html.twig', [ 'import' => $pocket, 'has_consumer_key' => '' === trim($this->getUser()->getConfig()->getPocketConsumerKey()) ? false : true, 'form' => $form->createView(), diff --git a/src/Wallabag/CoreBundle/Controller/Import/PocketHtmlController.php b/src/Wallabag/CoreBundle/Controller/Import/PocketHtmlController.php index 2812202db..af00312f4 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/PocketHtmlController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/PocketHtmlController.php @@ -46,6 +46,6 @@ class PocketHtmlController extends HtmlController protected function getImportTemplate() { - return '@WallabagCore/Import/PocketHtml/index.html.twig'; + return 'Import/PocketHtml/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/ReadabilityController.php b/src/Wallabag/CoreBundle/Controller/Import/ReadabilityController.php index d7af59322..5ad686893 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/ReadabilityController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/ReadabilityController.php @@ -76,7 +76,7 @@ class ReadabilityController extends AbstractController $this->addFlash('notice', 'flashes.import.notice.failed_on_file'); } - return $this->render('@WallabagCore/Import/Readability/index.html.twig', [ + return $this->render('Import/Readability/index.html.twig', [ 'form' => $form->createView(), 'import' => $readability, ]); diff --git a/src/Wallabag/CoreBundle/Controller/Import/ShaarliController.php b/src/Wallabag/CoreBundle/Controller/Import/ShaarliController.php index 52973042e..7c95ede92 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/ShaarliController.php +++ b/src/Wallabag/CoreBundle/Controller/Import/ShaarliController.php @@ -46,6 +46,6 @@ class ShaarliController extends HtmlController protected function getImportTemplate() { - return '@WallabagCore/Import/Shaarli/index.html.twig'; + return 'Import/Shaarli/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/WallabagV1Controller.php b/src/Wallabag/CoreBundle/Controller/Import/WallabagV1Controller.php index bb2f8a9ae..3cf79bc16 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/WallabagV1Controller.php +++ b/src/Wallabag/CoreBundle/Controller/Import/WallabagV1Controller.php @@ -46,6 +46,6 @@ class WallabagV1Controller extends WallabagController protected function getImportTemplate() { - return '@WallabagCore/Import/WallabagV1/index.html.twig'; + return 'Import/WallabagV1/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/Import/WallabagV2Controller.php b/src/Wallabag/CoreBundle/Controller/Import/WallabagV2Controller.php index 3cf267719..5ca0291e7 100644 --- a/src/Wallabag/CoreBundle/Controller/Import/WallabagV2Controller.php +++ b/src/Wallabag/CoreBundle/Controller/Import/WallabagV2Controller.php @@ -46,6 +46,6 @@ class WallabagV2Controller extends WallabagController protected function getImportTemplate() { - return '@WallabagCore/Import/WallabagV2/index.html.twig'; + return 'Import/WallabagV2/index.html.twig'; } } diff --git a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php index 864c6aaa4..a0deb93be 100644 --- a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php +++ b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php @@ -48,7 +48,7 @@ class SiteCredentialController extends AbstractController $credentials = $repository->findByUser($this->getUser()); - return $this->render('@WallabagCore/SiteCredential/index.html.twig', [ + return $this->render('SiteCredential/index.html.twig', [ 'credentials' => $credentials, ]); } @@ -84,7 +84,7 @@ class SiteCredentialController extends AbstractController return $this->redirectToRoute('site_credentials_index'); } - return $this->render('@WallabagCore/SiteCredential/new.html.twig', [ + return $this->render('SiteCredential/new.html.twig', [ 'credential' => $credential, 'form' => $form->createView(), ]); @@ -122,7 +122,7 @@ class SiteCredentialController extends AbstractController return $this->redirectToRoute('site_credentials_index'); } - return $this->render('@WallabagCore/SiteCredential/edit.html.twig', [ + return $this->render('SiteCredential/edit.html.twig', [ 'credential' => $siteCredential, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index fb0d3674d..123e6696d 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -14,7 +14,7 @@ class StaticController extends AbstractController $addonsUrl = $this->getParameter('addons_url'); return $this->render( - '@WallabagCore/Static/howto.html.twig', + 'Static/howto.html.twig', [ 'addonsUrl' => $addonsUrl, ] @@ -27,7 +27,7 @@ class StaticController extends AbstractController public function aboutAction() { return $this->render( - '@WallabagCore/Static/about.html.twig', + 'Static/about.html.twig', [ 'version' => $this->getParameter('wallabag_core.version'), 'paypal_url' => $this->getParameter('wallabag_core.paypal_url'), @@ -41,7 +41,7 @@ class StaticController extends AbstractController public function quickstartAction() { return $this->render( - '@WallabagCore/Static/quickstart.html.twig' + 'Static/quickstart.html.twig' ); } } diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index f2b202395..57ae9f19c 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -77,7 +77,7 @@ class TagController extends AbstractController return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); } - return $this->render('@WallabagCore/Tag/new_form.html.twig', [ + return $this->render('Tag/new_form.html.twig', [ 'form' => $form->createView(), 'entry' => $entry, ]); @@ -125,7 +125,7 @@ class TagController extends AbstractController $renameForms[$tag['id']] = $this->createForm(RenameTagType::class, new Tag())->createView(); } - return $this->render('@WallabagCore/Tag/tags.html.twig', [ + return $this->render('Tag/tags.html.twig', [ 'tags' => $tags, 'renameForms' => $renameForms, 'nbEntriesUntagged' => $nbEntriesUntagged, @@ -162,7 +162,7 @@ class TagController extends AbstractController } } - return $this->render('@WallabagCore/Entry/entries.html.twig', [ + return $this->render('Entry/entries.html.twig', [ 'form' => null, 'entries' => $entries, 'currentPage' => $page, diff --git a/src/Wallabag/CoreBundle/Controller/UserController.php b/src/Wallabag/CoreBundle/Controller/UserController.php index fbe230ba0..5bfaa1e21 100644 --- a/src/Wallabag/CoreBundle/Controller/UserController.php +++ b/src/Wallabag/CoreBundle/Controller/UserController.php @@ -67,7 +67,7 @@ class UserController extends AbstractController return $this->redirectToRoute('user_edit', ['id' => $user->getId()]); } - return $this->render('@WallabagCore/User/new.html.twig', [ + return $this->render('User/new.html.twig', [ 'user' => $user, 'form' => $form->createView(), ]); @@ -108,7 +108,7 @@ class UserController extends AbstractController return $this->redirectToRoute('user_edit', ['id' => $user->getId()]); } - return $this->render('@WallabagCore/User/edit.html.twig', [ + return $this->render('User/edit.html.twig', [ 'user' => $user, 'edit_form' => $form->createView(), 'delete_form' => $deleteForm->createView(), @@ -173,7 +173,7 @@ class UserController extends AbstractController } } - return $this->render('@WallabagCore/User/index.html.twig', [ + return $this->render('User/index.html.twig', [ 'searchForm' => $form->createView(), 'users' => $pagerFanta, ]); diff --git a/src/Wallabag/CoreBundle/Mailer/AuthCodeMailer.php b/src/Wallabag/CoreBundle/Mailer/AuthCodeMailer.php index 823ef4187..108524661 100644 --- a/src/Wallabag/CoreBundle/Mailer/AuthCodeMailer.php +++ b/src/Wallabag/CoreBundle/Mailer/AuthCodeMailer.php @@ -78,7 +78,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface */ public function sendAuthCode(TwoFactorInterface $user): void { - $template = $this->twig->load('@WallabagCore/TwoFactor/email_auth_code.html.twig'); + $template = $this->twig->load('TwoFactor/email_auth_code.html.twig'); $subject = $template->renderBlock('subject', []); $bodyHtml = $template->renderBlock('body_html', [ diff --git a/src/Wallabag/CoreBundle/Resources/views/Authentication/form.html.twig b/templates/Authentication/form.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Authentication/form.html.twig rename to templates/Authentication/form.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig b/templates/Config/index.html.twig similarity index 99% rename from src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig rename to templates/Config/index.html.twig index 34e556505..e152ce690 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig +++ b/templates/Config/index.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'config.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Config/otp_app.html.twig b/templates/Config/otp_app.html.twig similarity index 98% rename from src/Wallabag/CoreBundle/Resources/views/Config/otp_app.html.twig rename to templates/Config/otp_app.html.twig index 6d5d402b1..c1808b943 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Config/otp_app.html.twig +++ b/templates/Config/otp_app.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'config.page_title'|trans }} > {{ 'config.otp.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Developer/client.html.twig b/templates/Developer/client.html.twig similarity index 96% rename from src/Wallabag/CoreBundle/Resources/views/Developer/client.html.twig rename to templates/Developer/client.html.twig index 2911f6a4e..bcfdc9ee5 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Developer/client.html.twig +++ b/templates/Developer/client.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'developer.client.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Developer/client_parameters.html.twig b/templates/Developer/client_parameters.html.twig similarity index 97% rename from src/Wallabag/CoreBundle/Resources/views/Developer/client_parameters.html.twig rename to templates/Developer/client_parameters.html.twig index 59412a708..b17d3ea34 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Developer/client_parameters.html.twig +++ b/templates/Developer/client_parameters.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'developer.client_parameter.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig b/templates/Developer/howto_app.html.twig similarity index 98% rename from src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig rename to templates/Developer/howto_app.html.twig index 7e3d8e4fc..d4795d5c4 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig +++ b/templates/Developer/howto_app.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'developer.howto.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Developer/index.html.twig b/templates/Developer/index.html.twig similarity index 98% rename from src/Wallabag/CoreBundle/Resources/views/Developer/index.html.twig rename to templates/Developer/index.html.twig index 379a79230..fa437d0ae 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Developer/index.html.twig +++ b/templates/Developer/index.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'developer.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/Card/_content.html.twig b/templates/Entry/Card/_content.html.twig similarity index 72% rename from src/Wallabag/CoreBundle/Resources/views/Entry/Card/_content.html.twig rename to templates/Entry/Card/_content.html.twig index 34bf483d7..39bb8447c 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/Card/_content.html.twig +++ b/templates/Entry/Card/_content.html.twig @@ -9,9 +9,9 @@
{{ entry.domainName|removeWww }} {% if withMetadata is defined %} - {% include "@WallabagCore/Entry/_tags.html.twig" with {'tags': entry.tags|slice(0, 3), 'entryId': entry.id, 'listClass': ' hide-on-med-and-down'} only %} + {% include "Entry/_tags.html.twig" with {'tags': entry.tags|slice(0, 3), 'entryId': entry.id, 'listClass': ' hide-on-med-and-down'} only %}
-
{% include "@WallabagCore/Entry/_reading_time.html.twig" with {'entry': entry} only %}
+
{% include "Entry/_reading_time.html.twig" with {'entry': entry} only %}
{% endif %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/Card/_mass_checkbox.html.twig b/templates/Entry/Card/_mass_checkbox.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/Card/_mass_checkbox.html.twig rename to templates/Entry/Card/_mass_checkbox.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_actions.html.twig b/templates/Entry/_card_actions.html.twig similarity index 93% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_card_actions.html.twig rename to templates/Entry/_card_actions.html.twig index d77a48ec0..88c5029e3 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_actions.html.twig +++ b/templates/Entry/_card_actions.html.twig @@ -1,6 +1,6 @@
-
{% include "@WallabagCore/Entry/_reading_time.html.twig" with {'entry': entry} only %}
+
{% include "Entry/_reading_time.html.twig" with {'entry': entry} only %}
today  {{ entry.createdAt|date('Y-m-d') }} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_full_image.html.twig b/templates/Entry/_card_full_image.html.twig similarity index 79% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_card_full_image.html.twig rename to templates/Entry/_card_full_image.html.twig index 2624ae451..e4d79ed30 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_full_image.html.twig +++ b/templates/Entry/_card_full_image.html.twig @@ -12,8 +12,8 @@ {% endif %}
- {% include "@WallabagCore/Entry/Card/_content.html.twig" with {'entry': entry} only %} + {% include "Entry/Card/_content.html.twig" with {'entry': entry} only %}
- {% include "@WallabagCore/Entry/_card_actions.html.twig" with {'entry': entry} only %} + {% include "Entry/_card_actions.html.twig" with {'entry': entry} only %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_list.html.twig b/templates/Entry/_card_list.html.twig similarity index 88% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_card_list.html.twig rename to templates/Entry/_card_list.html.twig index 4e112e774..99b89c7b8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_list.html.twig +++ b/templates/Entry/_card_list.html.twig @@ -1,5 +1,5 @@
- {% include "@WallabagCore/Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %} + {% include "Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %} {% if app.user.config.displayThumbnails %}
@@ -8,7 +8,7 @@
{% endif %} - {% include "@WallabagCore/Entry/Card/_content.html.twig" with {'entry': entry, 'withMetadata': true, 'subClass': 'metadata'} only %} + {% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withMetadata': true, 'subClass': 'metadata'} only %} {% set current_path = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_preview.html.twig b/templates/Entry/_card_preview.html.twig similarity index 84% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_card_preview.html.twig rename to templates/Entry/_card_preview.html.twig index 5fba482fc..2ea6c6eba 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/_card_preview.html.twig +++ b/templates/Entry/_card_preview.html.twig @@ -1,5 +1,5 @@
- {% include "@WallabagCore/Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %} + {% include "Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %}
- {% include "@WallabagCore/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} + {% include "Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}
@@ -34,5 +34,5 @@
- {% include "@WallabagCore/Entry/_card_actions.html.twig" with {'entry': entry} only %} + {% include "Entry/_card_actions.html.twig" with {'entry': entry} only %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig b/templates/Entry/_feed_link.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_feed_link.html.twig rename to templates/Entry/_feed_link.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_reading_time.html.twig b/templates/Entry/_reading_time.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_reading_time.html.twig rename to templates/Entry/_reading_time.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_tags.html.twig b/templates/Entry/_tags.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_tags.html.twig rename to templates/Entry/_tags.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/_title.html.twig b/templates/Entry/_title.html.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/_title.html.twig rename to templates/Entry/_title.html.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/edit.html.twig b/templates/Entry/edit.html.twig similarity index 97% rename from src/Wallabag/CoreBundle/Resources/views/Entry/edit.html.twig rename to templates/Entry/edit.html.twig index a775d7107..c4e1cad00 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/edit.html.twig +++ b/templates/Entry/edit.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ 'entry.edit.page_title'|trans }}{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig b/templates/Entry/entries.html.twig similarity index 94% rename from src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig rename to templates/Entry/entries.html.twig index 1a0829343..bb63a8d4f 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.html.twig +++ b/templates/Entry/entries.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block head %} {{ parent() }} @@ -15,7 +15,7 @@ {% if searchTerm is defined and searchTerm is not empty %} {% set filter = searchTerm %} {% endif %} - {% include "@WallabagCore/Entry/_title.html.twig" with {'filter': filter} %} + {% include "Entry/_title.html.twig" with {'filter': filter} %} {% endblock %} {% block content %} @@ -37,7 +37,7 @@ {% endif %} {% if app.user.config.feedToken %} - {% include "@WallabagCore/Entry/_feed_link.html.twig" %} + {% include "Entry/_feed_link.html.twig" %} {% endif %}
{% if current_route == 'search' %}
{{ 'entry.list.assign_search_tag'|trans }}
{% endif %} @@ -67,11 +67,11 @@ {% for entry in entries %}
  • {% if list_mode == 1 %} - {% include "@WallabagCore/Entry/_card_list.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} + {% include "Entry/_card_list.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %} - {% include "@WallabagCore/Entry/_card_full_image.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} + {% include "Entry/_card_full_image.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% else %} - {% include "@WallabagCore/Entry/_card_preview.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} + {% include "Entry/_card_preview.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% endif %}
  • {% endfor %} diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig b/templates/Entry/entries.xml.twig similarity index 100% rename from src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig rename to templates/Entry/entries.xml.twig diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig b/templates/Entry/entry.html.twig similarity index 98% rename from src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig rename to templates/Entry/entry.html.twig index c6bb64e3e..1bae4b8f7 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig +++ b/templates/Entry/entry.html.twig @@ -1,4 +1,4 @@ -{% extends "@WallabagCore/layout.html.twig" %} +{% extends "layout.html.twig" %} {% block title %}{{ entry.title|striptags|default('entry.default_title'|trans)|raw }} ({{ entry.domainName|removeWww }}){% endblock %} @@ -241,7 +241,7 @@
    - {% include "@WallabagCore/Entry/_tags.html.twig" with {'tags': entry.tags, 'entryId': entry.id, 'withRemove': true} only %} + {% include "Entry/_tags.html.twig" with {'tags': entry.tags, 'entryId': entry.id, 'withRemove': true} only %}