diff --git a/configure.phtml b/configure.phtml deleted file mode 100644 index a34e780..0000000 --- a/configure.phtml +++ /dev/null @@ -1,48 +0,0 @@ -
- -
- -
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
- permission_problem)) { ?> -

permission_problem); ?>

- -
- - -
- -
-
\ No newline at end of file diff --git a/extension.php b/extension.php index 031abad..faea2c4 100644 --- a/extension.php +++ b/extension.php @@ -1,9 +1,6 @@ registerTranslates(); @@ -13,31 +10,8 @@ class RedditImageExtension extends Minz_Extension { $this->registerHook('entry_before_insert', array($this, 'fetchStuff')); } - public function handleConfigureAction() { - $this->registerTranslates(); - - $current_user = Minz_Session::param('currentUser'); - $filename = 'configuration.' . $current_user . '.json'; - $filepath = join_path($this->getPath(), 'static', $filename); - - if (Minz_Request::isPost()) { - $configuration = array( - 'imageHeight' => (int) Minz_Request::param('image-height', static::DEFAULT_HEIGHT), - 'mutedVideo' => (bool) Minz_Request::param('muted-video'), - 'displayImage' => (bool) Minz_Request::param('display-image'), - 'displayVideo' => (bool) Minz_Request::param('display-video'), - ); - file_put_contents($filepath, json_encode($configuration)); - file_put_contents(join_path($this->getPath(), 'static', "style.{$current_user}.css"), sprintf( - 'img.reddit-image, video.reddit-image {max-height:%svh;}', - $configuration['imageHeight'] - )); - } - - $this->getConfiguration(); - } - public function fetchStuff($entry) { + $data = "{\"url\": \"" . $entry->link() ."\"}"; $headers[] = 'Content-Type: application/json'; diff --git a/i18n/en/ext.php b/i18n/en/ext.php deleted file mode 100644 index bb92c4c..0000000 --- a/i18n/en/ext.php +++ /dev/null @@ -1,12 +0,0 @@ - array( - 'display_image' => 'Display images', - 'display_video' => 'Display videos', - 'image_height' => 'Media height', - 'image_height_unit' => '%% of the viewport', - 'muted_video' => 'Muted video', - 'permission_problem' => 'Your configuration file is not writable, please change the file permissions for %s', - ), -); \ No newline at end of file diff --git a/i18n/fr/ext.php b/i18n/fr/ext.php deleted file mode 100644 index eb9c792..0000000 --- a/i18n/fr/ext.php +++ /dev/null @@ -1,12 +0,0 @@ - array( - 'display_image' => 'Afficher les images', - 'display_video' => 'Afficher les vidéos', - 'image_height' => 'Hauteur des médias', - 'image_height_unit' => '%% de la fenêtre', - 'muted_video' => 'Vidéo silencieuse', - 'permission_problem' => 'Votre fichier de configuration est en lecture seule ; veuillez adapter les permissions pour %s', - ), -); \ No newline at end of file diff --git a/metadata.json b/metadata.json index 7eeb602..cc1cce8 100644 --- a/metadata.json +++ b/metadata.json @@ -1,7 +1,7 @@ { - "name": "Reddit Image", - "author": "Alexis Degrugillier", - "description": "Modify reddit entries by displaying known medias and easing access to the linked resource", + "name": "Readability Enhance", + "author": "printfuck", + "description": "fetch article content for every feed with readability", "version": "0.7.1", "entrypoint": "RedditImage", "type": "user" diff --git a/static/.gitkeep b/static/.gitkeep deleted file mode 100644 index e69de29..0000000