From 878e96202e8a22e4857b98e29b0a1fce68eccbc9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 15 Dec 2013 03:30:24 +0100 Subject: Grosse refactorisation pour permettre le chargement automatique des classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C'est parti de changements pour https://github.com/marienfressinaud/FreshRSS/issues/255 et finalement j'ai continué la refactorisation... Ajout de préfixes FreshRSS_ et Minz_ sur le modèle de SimplePie_. Toutes les classes sont maintenant en chargement automatique (devrait améliorer les performances en évitant de charger plein de classes inutilisées, et faciliter la maintenance). Suppression de set_include_path(). Si souhaité, certaines classes de Minz pourraient être déplacées dans un sous-répertoire, par exemple les exceptions. Tests et relecture nécessaires. --- app/views/configure/categorize.phtml | 22 +++---- app/views/configure/display.phtml | 106 ++++++++++++++++----------------- app/views/configure/feed.phtml | 54 ++++++++--------- app/views/configure/importExport.phtml | 18 +++--- app/views/configure/sharing.phtml | 30 +++++----- app/views/configure/shortcut.phtml | 30 +++++----- 6 files changed, 130 insertions(+), 130 deletions(-) (limited to 'app/views/configure') diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index d40f43411..a564e8cdd 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -1,28 +1,28 @@ partial ('aside_feed'); ?>
- +
- + -

defaultCategory->name ()); ?>

+

defaultCategory->name ()); ?>

categories as $cat) { $i++; ?>
nbFeed () > 0) { ?> - + - (nbFeed ()); ?>) + (nbFeed ()); ?>) id () == $this->defaultCategory->id ()) { ?> - + @@ -31,16 +31,16 @@
- +
- +
- - + +
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 6ddd99ba0..ad35d7c71 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -1,13 +1,13 @@ partial ('aside_configure'); ?>
- +
- +
- +
themes as $theme) { ?> @@ -32,68 +32,68 @@
- +
- +
- + conf->mailLogin (); ?>
- - + +
- + conf->token (); ?>
- - + +
- +
- +
- +
- +
@@ -102,8 +102,8 @@
@@ -112,8 +112,8 @@
@@ -122,61 +122,61 @@
- +
- +
- +
- - - - - - + + + + + + - + @@ -184,7 +184,7 @@ - + @@ -196,22 +196,22 @@
 
conf->toplineRead () ? ' checked="checked"' : ''; ?> /> conf->toplineFavorite () ? ' checked="checked"' : ''; ?> /> conf->toplineDate () ? ' checked="checked"' : ''; ?> /> conf->toplineLink () ? ' checked="checked"' : ''; ?> />
conf->bottomlineRead () ? ' checked="checked"' : ''; ?> /> conf->bottomlineFavorite () ? ' checked="checked"' : ''; ?> /> conf->bottomlineSharing () ? ' checked="checked"' : ''; ?> />
- +
-

nb_total; ?> , size_total); ?>.

+

nb_total; ?> , size_total); ?>.

- +

- +
- - + +
diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index d714a597b..191e44b9b 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -2,46 +2,46 @@ flux) { ?>
- +

flux->name (); ?>

flux->description (); ?> flux->inError ()) { ?> -

+

- +
- +
- +
- +
- +
- +
- -   + +  
- +
flux->keepHistory () == 'yes' ? ' checked="checked"' : ''; ?> /> - +
- +
- +
- +
- +
- - + +
flux->httpAuth (false); ?>
- +
- +
- +
@@ -112,13 +112,13 @@
- - + +
-
+
diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml index 4cc575356..29a0a682b 100644 --- a/app/views/configure/importExport.phtml +++ b/app/views/configure/importExport.phtml @@ -1,9 +1,9 @@ req == 'export') { ?> '; // résout bug sur certain serveur ?> - + - <?php echo Configuration::title (); ?> OPML Feed + <?php echo Minz_Configuration::title (); ?> OPML Feed @@ -14,12 +14,12 @@ partial ('aside_feed'); ?>
- + -
- + +
- +
@@ -27,9 +27,9 @@
- - - + + +
diff --git a/app/views/configure/sharing.phtml b/app/views/configure/sharing.phtml index 311910297..825537fc9 100644 --- a/app/views/configure/sharing.phtml +++ b/app/views/configure/sharing.phtml @@ -1,45 +1,45 @@ partial ('aside_configure'); ?>
- +
- +
- + - +
- + - +
- + - +
- +
@@ -56,8 +56,8 @@
- - + +
diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml index ac33a869a..e78d91820 100644 --- a/app/views/configure/shortcut.phtml +++ b/app/views/configure/shortcut.phtml @@ -1,7 +1,7 @@ partial ('aside_configure'); ?>
- + list_keys as $key) { ?> @@ -12,57 +12,57 @@ conf->shortcuts (); ?>
- + - +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -70,8 +70,8 @@
- - + +
-- cgit v1.2.3