diff options
-rwxr-xr-x | inc/poche/Poche.class.php | 32 | ||||
-rwxr-xr-x | themes/baggy/css/font.css | 2 | ||||
-rwxr-xr-x | themes/baggy/fonts/icomoon.eot (renamed from themes/baggy/font/icomoon.eot) | bin | 3724 -> 3724 bytes | |||
-rwxr-xr-x | themes/baggy/fonts/icomoon.svg (renamed from themes/baggy/font/icomoon.svg) | 0 | ||||
-rwxr-xr-x | themes/baggy/fonts/icomoon.ttf (renamed from themes/baggy/font/icomoon.ttf) | bin | 3560 -> 3560 bytes | |||
-rwxr-xr-x | themes/baggy/fonts/icomoon.woff (renamed from themes/baggy/font/icomoon.woff) | bin | 3528 -> 3528 bytes | |||
-rw-r--r-- | themes/baggy/fonts/ptsans.woff (renamed from themes/baggy/font/ptsans.woff) | bin | 24816 -> 24816 bytes | |||
-rw-r--r-- | themes/dmagenta/theme.ini | 2 | ||||
-rw-r--r-- | themes/solarized-dark/theme.ini | 2 |
9 files changed, 26 insertions, 12 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 23e51c7e..33dddf1e 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -307,6 +307,8 @@ class Poche | |||
307 | $themes[$theme] = $this->getThemeInfo($theme); | 307 | $themes[$theme] = $this->getThemeInfo($theme); |
308 | } | 308 | } |
309 | 309 | ||
310 | ksort($themes); | ||
311 | |||
310 | return $themes; | 312 | return $themes; |
311 | } | 313 | } |
312 | 314 | ||
@@ -403,7 +405,7 @@ class Poche | |||
403 | /** | 405 | /** |
404 | * Call action (mark as fav, archive, delete, etc.) | 406 | * Call action (mark as fav, archive, delete, etc.) |
405 | */ | 407 | */ |
406 | public function action($action, Url $url, $id = 0, $import = FALSE, $autoclose = FALSE) | 408 | public function action($action, Url $url, $id = 0, $import = FALSE, $autoclose = FALSE, $tags = null) |
407 | { | 409 | { |
408 | switch ($action) | 410 | switch ($action) |
409 | { | 411 | { |
@@ -499,8 +501,14 @@ class Poche | |||
499 | } | 501 | } |
500 | break; | 502 | break; |
501 | case 'add_tag' : | 503 | case 'add_tag' : |
502 | $tags = explode(',', $_POST['value']); | 504 | if($import){ |
503 | $entry_id = $_POST['entry_id']; | 505 | $entry_id = $id; |
506 | $tags = explode(',', $tags); | ||
507 | } | ||
508 | else{ | ||
509 | $tags = explode(',', $_POST['value']); | ||
510 | $entry_id = $_POST['entry_id']; | ||
511 | } | ||
504 | $entry = $this->store->retrieveOneById($entry_id, $this->user->getId()); | 512 | $entry = $this->store->retrieveOneById($entry_id, $this->user->getId()); |
505 | if (!$entry) { | 513 | if (!$entry) { |
506 | $this->messages->add('e', _('Article not found!')); | 514 | $this->messages->add('e', _('Article not found!')); |
@@ -527,7 +535,9 @@ class Poche | |||
527 | # we assign the tag to the article | 535 | # we assign the tag to the article |
528 | $this->store->setTagToEntry($tag_id, $entry_id); | 536 | $this->store->setTagToEntry($tag_id, $entry_id); |
529 | } | 537 | } |
530 | Tools::redirect(); | 538 | if(!$import) { |
539 | Tools::redirect(); | ||
540 | } | ||
531 | break; | 541 | break; |
532 | case 'remove_tag' : | 542 | case 'remove_tag' : |
533 | $tag_id = $_GET['tag_id']; | 543 | $tag_id = $_GET['tag_id']; |
@@ -889,14 +899,18 @@ class Poche | |||
889 | $a = $li->find('a'); | 899 | $a = $li->find('a'); |
890 | $url = new Url(base64_encode($a[0]->href)); | 900 | $url = new Url(base64_encode($a[0]->href)); |
891 | $this->action('add', $url, 0, TRUE); | 901 | $this->action('add', $url, 0, TRUE); |
902 | $sequence = ''; | ||
903 | if (STORAGE == 'postgres') { | ||
904 | $sequence = 'entries_id_seq'; | ||
905 | } | ||
906 | $last_id = $this->store->getLastId($sequence); | ||
892 | if ($read == '1') { | 907 | if ($read == '1') { |
893 | $sequence = ''; | ||
894 | if (STORAGE == 'postgres') { | ||
895 | $sequence = 'entries_id_seq'; | ||
896 | } | ||
897 | $last_id = $this->store->getLastId($sequence); | ||
898 | $this->action('toggle_archive', $url, $last_id, TRUE); | 908 | $this->action('toggle_archive', $url, $last_id, TRUE); |
899 | } | 909 | } |
910 | $tags = $a[0]->tags; | ||
911 | if(!empty($tags)) { | ||
912 | $this->action('add_tag',$url,$last_id,true,false,$tags); | ||
913 | } | ||
900 | } | 914 | } |
901 | 915 | ||
902 | # the second <ul> is for read links | 916 | # the second <ul> is for read links |
diff --git a/themes/baggy/css/font.css b/themes/baggy/css/font.css index ec662158..7c02a16f 100755 --- a/themes/baggy/css/font.css +++ b/themes/baggy/css/font.css | |||
@@ -2,5 +2,5 @@ | |||
2 | font-family: 'PT Sans'; | 2 | font-family: 'PT Sans'; |
3 | font-style: normal; | 3 | font-style: normal; |
4 | font-weight: 700; | 4 | font-weight: 700; |
5 | src: local('PT Sans Bold'), local('PTSans-Bold'), url(/themes/baggy/fonts/ptsans.woff) format('woff'); | 5 | src: local('PT Sans Bold'), local('PTSans-Bold'), url(../fonts/ptsans.woff) format('woff'); |
6 | } | 6 | } |
diff --git a/themes/baggy/font/icomoon.eot b/themes/baggy/fonts/icomoon.eot index 02f53b36..02f53b36 100755 --- a/themes/baggy/font/icomoon.eot +++ b/themes/baggy/fonts/icomoon.eot | |||
Binary files differ | |||
diff --git a/themes/baggy/font/icomoon.svg b/themes/baggy/fonts/icomoon.svg index d9c35b98..d9c35b98 100755 --- a/themes/baggy/font/icomoon.svg +++ b/themes/baggy/fonts/icomoon.svg | |||
diff --git a/themes/baggy/font/icomoon.ttf b/themes/baggy/fonts/icomoon.ttf index 3860dd04..3860dd04 100755 --- a/themes/baggy/font/icomoon.ttf +++ b/themes/baggy/fonts/icomoon.ttf | |||
Binary files differ | |||
diff --git a/themes/baggy/font/icomoon.woff b/themes/baggy/fonts/icomoon.woff index c3a91ed7..c3a91ed7 100755 --- a/themes/baggy/font/icomoon.woff +++ b/themes/baggy/fonts/icomoon.woff | |||
Binary files differ | |||
diff --git a/themes/baggy/font/ptsans.woff b/themes/baggy/fonts/ptsans.woff index cf7c62e1..cf7c62e1 100644 --- a/themes/baggy/font/ptsans.woff +++ b/themes/baggy/fonts/ptsans.woff | |||
Binary files differ | |||
diff --git a/themes/dmagenta/theme.ini b/themes/dmagenta/theme.ini index 24ff3c4a..78fa3a9c 100644 --- a/themes/dmagenta/theme.ini +++ b/themes/dmagenta/theme.ini | |||
@@ -1,2 +1,2 @@ | |||
1 | name = Dark Magenta | 1 | name = Dmagenta |
2 | requirements[] = default | 2 | requirements[] = default |
diff --git a/themes/solarized-dark/theme.ini b/themes/solarized-dark/theme.ini index 7b6b341e..c9948146 100644 --- a/themes/solarized-dark/theme.ini +++ b/themes/solarized-dark/theme.ini | |||
@@ -1,2 +1,2 @@ | |||
1 | name = Dark Solarized | 1 | name = Solarized Dark |
2 | requirements[] = default | 2 | requirements[] = default |