Commit 71888aae authored by Simon's avatar Simon

Merge branch 'published-logic' into dev

parents 88b5869d 5902e9bd
......@@ -185,8 +185,8 @@ services:
wp plugin install pods --version=2.7.14 --activate-network;
# wp plugin update pods --version=2.7.14;
wp plugin install polylang --version=2.6.1 --activate-network;
# wp plugin update polylang --version=2.6.1;
wp plugin install polylang --version=2.6.2 --activate-network;
# wp plugin update polylang --version=2.6.2;
wp plugin install wordpress-seo --version=11.6 --activate-network;
# wp plugin update wordpress-seo --version=11.6;
......
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Biuro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-04 13:03+0000\n"
"PO-Revision-Date: 2019-05-04 13:04+0000\n"
"POT-Creation-Date: 2019-06-04 08:20+0000\n"
"PO-Revision-Date: 2019-07-16 10:33+0000\n"
"Last-Translator: biuro <info@biuro.eu>\n"
"Language-Team: Lithuanian\n"
"Language: lt_LT\n"
......@@ -13,68 +13,50 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.2.2; wp-5.1.1"
"X-Loco-Version: 2.3.0; wp-5.2.2"
#: 404.php:25
msgid "Sorry, the page you are looking for does not exist!"
msgstr "Atsiprašome, bet puslapis kurio jūs ieškote, neegzistuoja!"
#: 404.php:27
msgid "Return to homepage"
msgstr "Grįžti į pagrindinį puslapį"
#: single-job.php:48
msgid "Salary from"
msgstr "Darbo užmokestis nuo"
#: single-job.php:54
msgid "Salary to"
msgstr "Darbo užmokestis iki"
#: single-job.php:66
msgid "Published"
msgstr "Paskelbta"
#: page-vasaros-darbu-bankas.php:196
msgid "900"
msgstr "910"
#: single-job.php:68
msgid "Valid till"
msgstr "Galioja iki"
#: page-divisions.php:53
msgid "All"
msgstr "Visi"
#: single-job.php:75
msgid "Apply"
msgstr "Kandidatuoti"
#: header.php:137
msgid "Get an offer"
msgstr "Gaukite pasiūlymą"
#: header.php:155 page-vasaros-darbu-bankas.php:186
#: template-parts/layout/aside-job-list.php:215
msgid "Get a job offer"
msgstr "Gauk darbo pasiūlymą"
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr "Biuro"
#: front-page.php:43
msgid "Recent job ads"
msgstr "Naujausi darbo skelbimai"
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr "Biuro multiregion theme"
#: front-page.php:70 template-parts/jobs/jobs-not-found.php:25
msgid "More job ads"
msgstr "Daugiau darbo skelbimų"
#: template-parts/layout/aside-job-list.php:100
msgid "City"
msgstr "Miestas"
#: front-page.php:80 sales-page.php:57
msgid "Trust in us"
msgstr "Mumis pasitiki"
#: page-vasaros-darbu-bankas.php:170
#: template-parts/layout/aside-job-list.php:131
msgid "Didn't find a job offer you like?"
msgstr "Neradai tau tinkančio pasiūlymo?"
#. Name of the template
msgid "Search & Jobs page"
msgstr "Paieškos ir darbo skelbimų puslapis"
#: search.php:32 page-vasaros-darbu-bankas.php:39
msgid "Other filters"
msgstr "Kiti paieškos filtrai"
msgid "Divisions page"
msgstr "Padalinių puslapis"
#. Name of the template
msgid "VDB page"
msgstr "VDB puslapis"
msgid "Employees Landing Page I"
msgstr "Darbuotojų Landing Page I"
#: page-vasaros-darbu-bankas.php:172
#: template-parts/layout/aside-job-list.php:133
msgid "Fill out the form and we will contact you"
msgstr "Užpildyk formą ir mes su tavimi susisieksime"
#: page-vasaros-darbu-bankas.php:30
msgid ""
......@@ -84,109 +66,131 @@ msgstr ""
"Kviečiame surasti darbą vasarai - peržvelk pasiūlymus, juos nuolat papildome "
"naujais!"
#: page-vasaros-darbu-bankas.php:170
#: template-parts/layout/aside-job-list.php:199
msgid "Didn't find a job offer you like?"
msgstr "Neradai tau tinkančio pasiūlymo?"
#: header.php:118 page-vasaros-darbu-bankas.php:186
#: template-parts/layout/aside-job-list.php:147
msgid "Get a job offer"
msgstr "Gauk darbo pasiūlymą"
#: page-vasaros-darbu-bankas.php:172
#: template-parts/layout/aside-job-list.php:201
msgid "Fill out the form and we will contact you"
msgstr "Užpildyk formą ir mes su tavimi susisieksime"
#: header.php:100
msgid "Get an offer"
msgstr "Gaukite pasiūlymą"
#: page-vasaros-darbu-bankas.php:196
msgid "900"
msgstr "900"
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr "https://www.biuro.lt/"
#: page-vasaros-darbu-bankas.php:197
msgid ""
"This is how many people we employed during summer at 2018.<br/>Join us this "
"summer!"
msgstr ""
"Tiek 2018 m. vasarą įdarbinome žmonių.<br/>Šiais metais kviečiame "
"prisijungti ir tave!"
#: template-parts/layout/aside-job.php:11
msgid "I think you might like this job offer"
msgstr "Manau, tau turėtų patikti šis darbo pasiūlymas"
#: searchform.php:114
msgid "Locations"
msgstr "Vietovė"
#: template-parts/layout/aside-job-inactive.php:1
msgid "Job ad is inactive"
msgstr "Darbo skelbimas yra neaktyvus"
#: searchform.php:230
msgid "Keyword"
msgstr "Raktažodis"
#: template-parts/layout/aside-job-list.php:104
msgid "Job area"
msgstr "Darbo sritis"
#: searchform.php:238
msgid "Search"
msgstr "Ieškoti"
#: template-parts/layout/aside-job.php:11
msgid "Job position"
msgstr "Darbo pasiūlymas"
#. Name of the template
msgid "Sales page"
msgstr "Pardavimų puslapis"
#: template-parts/layout/aside-job-list.php:108
msgid "Job type"
msgstr "Darbo tipas"
#. Name of the template
msgid "Regions page"
msgstr "Regionų puslapis"
#: searchform.php:61
msgid "Keyword"
msgstr "Raktažodis"
#. Name of the template
msgid "Divisions page"
msgstr "Padalinių puslapis"
#: searchform.php:44
msgid "Locations"
msgstr "Miestas"
#: page-divisions.php:70
msgid "All"
msgstr "Visi"
#: template-parts/layout/aside-job-list.php:67
msgid "More ..."
msgstr "Daugiau..."
#: template-parts/jobs/jobs-none.php:14
msgid "There are currently no job ads."
msgstr "Šiuo metu nėra darbo pasiūlymų pagal Jūsų paiešką."
#: front-page.php:70 template-parts/jobs/jobs-not-found.php:25
msgid "More job ads"
msgstr "Daugiau darbo skelbimų"
#: template-parts/jobs/jobs-not-found.php:14
msgid "No search results were found."
msgstr "Pagal Jūsų paiešką, darbo skelbimų šiuo metu neturime."
#: template-parts/layout/aside-job-list.php:144
msgid "More ..."
msgstr "Daugiau..."
#: page-vasaros-darbu-bankas.php:39 search.php:32
msgid "Other filters"
msgstr "Kiti paieškos filtrai"
#: template-parts/layout/aside-job-list.php:168
msgid "City"
msgstr "Miestas"
#: single-job.php:66
msgid "Published"
msgstr "Paskelbta"
#: template-parts/layout/aside-job-list.php:172
msgid "Job area"
msgstr "Darbo sritis"
#: front-page.php:43
msgid "Recent job ads"
msgstr "Naujausi darbo skelbimai"
#: template-parts/layout/aside-job-list.php:176
msgid "Job type"
msgstr "Darbo tipas"
#. Name of the template
msgid "Regions page"
msgstr "Regionų puslapis"
#: template-parts/layout/aside-job-list.php:185
#: template-parts/layout/aside-job-list.php:117
msgid "Reset filters"
msgstr "Atstatyti paieškos filtrus"
#: template-parts/layout/aside-job.php:11
msgid "Job position"
msgstr "Darbo pasiūlymas"
#: 404.php:27
msgid "Return to homepage"
msgstr "Grįžti į pagrindinį puslapį"
#: template-parts/layout/aside-job.php:11
msgid "I think you might like this job offer"
msgstr "Manau, tau turėtų patikti šis darbo pasiūlymas"
#: single-job.php:48
msgid "Salary from"
msgstr "Darbo užmokestis nuo"
#: single-job.php:54
msgid "Salary to"
msgstr "Darbo užmokestis iki"
#. Name of the template
msgid "Sales page"
msgstr "Pardavimų puslapis"
#: searchform.php:66
msgid "Search"
msgstr "Ieškoti"
#. Name of the template
msgid "Search & Jobs page"
msgstr "Paieškos ir darbo skelbimų puslapis"
#: 404.php:25
msgid "Sorry, the page you are looking for does not exist!"
msgstr "Atsiprašome, bet puslapis kurio jūs ieškote, neegzistuoja!"
#: template-parts/layout/aside-job.php:43
msgid "Suggest a friend"
msgstr "Pasiūlyk draugui"
#: template-parts/layout/aside-job-inactive.php:1
msgid "Job ad is inactive"
msgstr "Darbo skelbimas yra neaktyvus"
#: template-parts/jobs/jobs-none.php:14
msgid "There are currently no job ads."
msgstr "Šiuo metu nėra darbo pasiūlymų pagal Jūsų paiešką."
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr "Biuro"
#: page-vasaros-darbu-bankas.php:197
msgid ""
"This is how many people we employed during summer at 2018.<br/>Join us this "
"summer!"
msgstr ""
"Tiek 2018 m. vasarą įdarbinome žmonių.<br/>Šiais metais kviečiame "
"prisijungti ir tave!"
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr "Biuro multiregion theme"
#: front-page.php:80 sales-page.php:57
msgid "Trust in us"
msgstr "Mumis pasitiki"
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr "https://www.biuro.lt/"
#: single-job.php:68
msgid "Valid till"
msgstr "Galioja iki"
#. Name of the template
msgid "VDB page"
msgstr "VDB puslapis"
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Biuro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-04 13:03+0000\n"
"PO-Revision-Date: 2019-06-19 05:52+0000\n"
"POT-Creation-Date: 2019-06-04 08:20+0000\n"
"PO-Revision-Date: 2019-07-16 10:33+0000\n"
"Last-Translator: biuro <info@biuro.eu>\n"
"Language-Team: Lithuanian\n"
"Language: lt_LT\n"
......@@ -13,68 +13,50 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.3.0; wp-5.2.1"
"X-Loco-Version: 2.3.0; wp-5.2.2"
#: 404.php:25
msgid "Sorry, the page you are looking for does not exist!"
msgstr "Atsiprašome, bet puslapis kurio jūs ieškote, neegzistuoja!"
#: 404.php:27
msgid "Return to homepage"
msgstr "Grįžti į pagrindinį puslapį"
#: single-job.php:48
msgid "Salary from"
msgstr "Darbo užmokestis nuo"
#: single-job.php:54
msgid "Salary to"
msgstr "Darbo užmokestis iki"
#: single-job.php:66
msgid "Published"
msgstr "Paskelbta"
#: page-vasaros-darbu-bankas.php:196
msgid "900"
msgstr "900"
#: single-job.php:68
msgid "Valid till"
msgstr "Galioja iki"
#: page-divisions.php:53
msgid "All"
msgstr "Visi"
#: single-job.php:75
msgid "Apply"
msgstr "Kandidatuoti"
#: header.php:137
msgid "Get an offer"
msgstr "Gaukite pasiūlymą"
#: header.php:155 page-vasaros-darbu-bankas.php:186
#: template-parts/layout/aside-job-list.php:215
msgid "Get a job offer"
msgstr "Gauk darbo pasiūlymą"
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr "Biuro"
#: front-page.php:43
msgid "Recent job ads"
msgstr "Naujausi darbo skelbimai"
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr "Biuro multiregion theme"
#: front-page.php:70 template-parts/jobs/jobs-not-found.php:25
msgid "More job ads"
msgstr "Daugiau darbo skelbimų"
#: template-parts/layout/aside-job-list.php:100
msgid "City"
msgstr "Miestas"
#: front-page.php:80 sales-page.php:57
msgid "Trust in us"
msgstr "Mumis pasitiki"
#: page-vasaros-darbu-bankas.php:170
#: template-parts/layout/aside-job-list.php:131
msgid "Didn't find a job offer you like?"
msgstr "Neradai tau tinkančio pasiūlymo?"
#. Name of the template
msgid "Search & Jobs page"
msgstr "Paieškos ir darbo skelbimų puslapis"
#: search.php:32 page-vasaros-darbu-bankas.php:39
msgid "Other filters"
msgstr "Kiti paieškos filtrai"
msgid "Divisions page"
msgstr "Padalinių puslapis"
#. Name of the template
msgid "VDB page"
msgstr "VDB puslapis"
msgid "Employees Landing Page I"
msgstr "Darbuotojų Landing Page I"
#: page-vasaros-darbu-bankas.php:172
#: template-parts/layout/aside-job-list.php:133
msgid "Fill out the form and we will contact you"
msgstr "Užpildyk formą ir mes su tavimi susisieksime"
#: page-vasaros-darbu-bankas.php:30
msgid ""
......@@ -84,109 +66,131 @@ msgstr ""
"Kviečiame surasti darbą vasarai - peržvelk pasiūlymus, juos nuolat papildome "
"naujais!"
#: page-vasaros-darbu-bankas.php:170
#: template-parts/layout/aside-job-list.php:199
msgid "Didn't find a job offer you like?"
msgstr "Neradai tau tinkančio pasiūlymo?"
#: header.php:118 page-vasaros-darbu-bankas.php:186
#: template-parts/layout/aside-job-list.php:147
msgid "Get a job offer"
msgstr "Gauk darbo pasiūlymą"
#: page-vasaros-darbu-bankas.php:172
#: template-parts/layout/aside-job-list.php:201
msgid "Fill out the form and we will contact you"
msgstr "Užpildyk formą ir mes su tavimi susisieksime"
#: header.php:100
msgid "Get an offer"
msgstr "Gaukite pasiūlymą"
#: page-vasaros-darbu-bankas.php:196
msgid "900"
msgstr "900"
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr "https://www.biuro.lt/"
#: page-vasaros-darbu-bankas.php:197
msgid ""
"This is how many people we employed during summer at 2018.<br/>Join us this "
"summer!"
msgstr ""
"Tiek 2018 m. vasarą įdarbinome žmonių.<br/>Šiais metais kviečiame "
"prisijungti ir tave!"
#: template-parts/layout/aside-job.php:11
msgid "I think you might like this job offer"
msgstr "Manau, tau turėtų patikti šis darbo pasiūlymas"
#: searchform.php:114
msgid "Locations"
msgstr "Miestas"
#: template-parts/layout/aside-job-inactive.php:1
msgid "Job ad is inactive"
msgstr "Darbo skelbimas yra neaktyvus"
#: searchform.php:230
msgid "Keyword"
msgstr "Raktažodis"
#: template-parts/layout/aside-job-list.php:104
msgid "Job area"
msgstr "Darbo sritis"
#: searchform.php:238
msgid "Search"
msgstr "Ieškoti"
#: template-parts/layout/aside-job.php:11
msgid "Job position"
msgstr "Darbo pasiūlymas"
#. Name of the template
msgid "Sales page"
msgstr "Pardavimų puslapis"
#: template-parts/layout/aside-job-list.php:108
msgid "Job type"
msgstr "Darbo tipas"
#. Name of the template
msgid "Regions page"
msgstr "Regionų puslapis"
#: searchform.php:61
msgid "Keyword"
msgstr "Raktažodis"
#. Name of the template
msgid "Divisions page"
msgstr "Padalinių puslapis"
#: searchform.php:44
msgid "Locations"
msgstr "Miestas"
#: page-divisions.php:70
msgid "All"
msgstr "Visi"
#: template-parts/layout/aside-job-list.php:67
msgid "More ..."
msgstr "Daugiau..."
#: template-parts/jobs/jobs-none.php:14
msgid "There are currently no job ads."
msgstr "Šiuo metu nėra darbo pasiūlymų pagal Jūsų paiešką."
#: front-page.php:70 template-parts/jobs/jobs-not-found.php:25
msgid "More job ads"
msgstr "Daugiau darbo skelbimų"
#: template-parts/jobs/jobs-not-found.php:14
msgid "No search results were found."
msgstr "Pagal Jūsų paiešką, darbo skelbimų šiuo metu neturime."
#: template-parts/layout/aside-job-list.php:144
msgid "More ..."
msgstr "Daugiau..."
#: page-vasaros-darbu-bankas.php:39 search.php:32
msgid "Other filters"
msgstr "Kiti paieškos filtrai"
#: template-parts/layout/aside-job-list.php:168
msgid "City"
msgstr "Miestas"
#: single-job.php:66
msgid "Published"
msgstr "Paskelbta"
#: template-parts/layout/aside-job-list.php:172
msgid "Job area"
msgstr "Darbo sritis"
#: front-page.php:43
msgid "Recent job ads"
msgstr "Naujausi darbo skelbimai"
#: template-parts/layout/aside-job-list.php:176
msgid "Job type"
msgstr "Darbo tipas"
#. Name of the template
msgid "Regions page"
msgstr "Regionų puslapis"
#: template-parts/layout/aside-job-list.php:185
#: template-parts/layout/aside-job-list.php:117
msgid "Reset filters"
msgstr "Atstatyti paieškos filtrus"
#: template-parts/layout/aside-job.php:11
msgid "Job position"
msgstr "Darbo pasiūlymas"
#: 404.php:27
msgid "Return to homepage"
msgstr "Grįžti į pagrindinį puslapį"
#: template-parts/layout/aside-job.php:11
msgid "I think you might like this job offer"
msgstr "Manau, tau turėtų patikti šis darbo pasiūlymas"
#: single-job.php:48
msgid "Salary from"
msgstr "Darbo užmokestis nuo"
#: single-job.php:54
msgid "Salary to"
msgstr "Darbo užmokestis iki"
#. Name of the template
msgid "Sales page"
msgstr "Pardavimų puslapis"
#: searchform.php:66
msgid "Search"
msgstr "Ieškoti"
#. Name of the template
msgid "Search & Jobs page"
msgstr "Paieškos ir darbo skelbimų puslapis"
#: 404.php:25
msgid "Sorry, the page you are looking for does not exist!"
msgstr "Atsiprašome, bet puslapis kurio jūs ieškote, neegzistuoja!"
#: template-parts/layout/aside-job.php:43
msgid "Suggest a friend"
msgstr "Pasiūlyk draugui"
#: template-parts/layout/aside-job-inactive.php:1
msgid "Job ad is inactive"
msgstr "Darbo skelbimas yra neaktyvus"
#: template-parts/jobs/jobs-none.php:14
msgid "There are currently no job ads."
msgstr "Šiuo metu nėra darbo pasiūlymų pagal Jūsų paiešką."
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr "Biuro"
#: page-vasaros-darbu-bankas.php:197
msgid ""
"This is how many people we employed during summer at 2018.<br/>Join us this "
"summer!"
msgstr ""
"Tiek 2018 m. vasarą įdarbinome žmonių.<br/>Šiais metais kviečiame "
"prisijungti ir tave!"
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr "Biuro multiregion theme"
#: front-page.php:80 sales-page.php:57
msgid "Trust in us"
msgstr "Mumis pasitiki"
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr "https://www.biuro.lt/"
#: single-job.php:68
msgid "Valid till"
msgstr "Galioja iki"
#. Name of the template
msgid "VDB page"
msgstr "VDB puslapis"
......@@ -2,6 +2,77 @@
This file contains only old changelog. See readme.txt for newer versions.
= 2.5.4 (2019-05-28) =
* Add Kannada to the predefined languages list
* Yoast SEO: Fix primary product cat not copied or synchronized
* WPMU Domain Mapping: Fix incorrect domain used for the theme
* Fix style-rtl.css not loaded when the language is set from the content #356
* Fix Jetpack featured pages not working. Props Anis Ladram. #357
* Fix Call to undefined function wp_generate_attachment_metadata()
= 2.5.3 (2019-04-16) =
* Add de_AT and pt_AO to the predefined languages list
* Pro: Add filter pll_translate_blocks
* Pro: fix PHP notice when the queried post type has been modified to an array
* Pro: fix PHP warning when combined with The Event Calendar and Page builder by SiteOrigin
= 2.5.2 (2019-02-12) =
* Pro: Fix translated slugs not accepting forward slashes
* Pro: Fix fatal error with ACF Pro 5.7.11
* Fix parent categories incorrectly synchronized #327
= 2.5.1 (2019-01-16) =
* Security: Fix categories and media duplication not protected from CSRF
* Pro: Allow to update the plugin with WP CLI
* Pro: Fix search in the button block not filtered in the correct language (needs WP 5.1)
* Add Saraiki to the predefined languages list
* Fix a conflict causing a blank page with Divi
= 2.5 (2018-12-06) =
* Add compatibility with WP 5.0
* Fix custom flags when the WP content folder is not in the WP install folder
* Fix PHP notice if a language has no flag
= 2.4.1 (2018-11-27) =
* Pro: Add compatibility with REST API changes made in WP 5.0
* Pro: Fix sticky posts in the REST API
* Pro: Fix overwritten custom post slug when the post is updated with the REST API
* Pro: Fix bulk translate for media
* Fix a conflict with Custom sidebars and Content aware sidebars
* Fix a conflict with the theme Pokemania
* Fix PHP notices when using the function 'icl_link_to_element' for terms
* Fix title slugs for posts written in German
= 2.4 (2018-11-12) =
* Minimum WordPress version is now 4.7
* Pro: Add the possibility to bulk duplicate or bulk synchronize posts.
* Pro: Add compatibility with Admin Columns
* Pro: Add synchronized posts to the REST API
* Pro: Fix variations messed when changing WooCommerce attributes slugs
* Pro: Fix incorrect language for ajax requests made on front by The Events Calendar
* Pro: Fix term not duplicated correctly when the language is set from the content
* Refactor the core to activate on front and for the REST api actions that were previously available only in the backend (language checks, synchronizations...).
* Add flags to widgets displayed in only one language (Props Jory Hogeveen) #257
* Honor the filter 'pll_the_language_args' for all options in menus #237
* Add better filters for default flags and custom flags
* Custom flags can now be stored in the polylang directory in the theme
* Custom flags can now use SVG
* Add compatibility with Jetpack featured content module
* Fix Twenty Fourteen featured posts possibly not filtered per language
* Fix home url not working with WordPress MU Domain mapping
* Fix Assigning a parent category breaking the hierarchy of translated category
* Fix: Accept 0,1 and 1.0 as q factors in browser preferred language detection (Props Dominic Rubas)
* Fix performance issue when using hundreds of widgets
* Fix translations possibly wrong if the post language is changed without saving the post after
= 2.3.11 (2018-10-03) =
* Pro: Add action 'pll_created_sync_post'
......
......@@ -160,6 +160,10 @@ class PLL_Translated_Post extends PLL_Translated_Object {
public function current_user_can_read( $post_id, $context = 'view' ) {
$post = get_post( $post_id );
if ( empty( $post ) ) {
return false;
}
if ( 'inherit' === $post->post_status && $post->post_parent ) {
$post = get_post( $post->post_parent );
}
......
......@@ -154,16 +154,17 @@ class PLL_T15S {
return $translations->{$slug};
}
$result = json_decode( wp_remote_retrieve_body( wp_remote_get( $url, array( 'timeout' => 2 ) ) ), true );
if ( is_array( $result ) ) {
$result = json_decode( wp_remote_retrieve_body( wp_remote_get( $url, array( 'timeout' => 3 ) ) ), true );
// Nothing found.
if ( ! is_array( $result ) ) {
$result = array();
}
$translations->{$slug} = $result;
$translations->_last_checked = time();
set_site_transient( self::TRANSIENT_KEY_PLUGIN, $translations );
return $result;
}
// Nothing found.
return array();
}
}
......@@ -3,7 +3,7 @@
/**
Plugin Name: Polylang
Plugin URI: https://polylang.pro
Version: 2.6.1
Version: 2.6.2
Author: WP SYNTEX
Author uri: https://polylang.pro
Description: Adds multilingual capability to WordPress
......@@ -51,7 +51,7 @@ if ( defined( 'POLYLANG_BASENAME' ) ) {
}
} else {
// Go on loading the plugin
define( 'POLYLANG_VERSION', '2.6.1' );
define( 'POLYLANG_VERSION', '2.6.2' );
define( 'PLL_MIN_WP_VERSION', '4.7' );
define( 'POLYLANG_FILE', __FILE__ ); // this file
......
......@@ -4,7 +4,7 @@ Donate link: https://polylang.pro
Tags: multilingual, bilingual, translate, translation, language, multilanguage, international, localization
Requires at least: 4.7
Tested up to: 5.2
Stable tag: 2.6.1
Stable tag: 2.6.2
License: GPLv3 or later
Making WordPress multilingual
......@@ -76,6 +76,12 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
== Changelog ==
= 2.6.2 (2019-07-16) =
* Pro: Fix slow admin in case the translations update server can't be reached
* Pro: Fix value not correctly translated for ACF clone fields in repeater
* Fix strings translations mixed when registered via the WPML compatibility. #381
= 2.6.1 (2019-07-03) =
* Pro: Fix Yoast SEO sitemap for inactive languages when using subdomains or multiple domains
......@@ -119,74 +125,4 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
* Fix a conflict with Pods in the block editor. Props Jory Hogeveen. #369
* Fix fatal error with Twenty Fourteen introduced in version 2.5.4. #374
= 2.5.4 (2019-05-28) =
* Add Kannada to the predefined languages list
* Yoast SEO: Fix primary product cat not copied or synchronized
* WPMU Domain Mapping: Fix incorrect domain used for the theme
* Fix style-rtl.css not loaded when the language is set from the content #356
* Fix Jetpack featured pages not working. Props Anis Ladram. #357
* Fix Call to undefined function wp_generate_attachment_metadata()
= 2.5.3 (2019-04-16) =
* Add de_AT and pt_AO to the predefined languages list
* Pro: Add filter pll_translate_blocks
* Pro: fix PHP notice when the queried post type has been modified to an array
* Pro: fix PHP warning when combined with The Event Calendar and Page builder by SiteOrigin
= 2.5.2 (2019-02-12) =
* Pro: Fix translated slugs not accepting forward slashes
* Pro: Fix fatal error with ACF Pro 5.7.11
* Fix parent categories incorrectly synchronized #327
= 2.5.1 (2019-01-16) =
* Security: Fix categories and media duplication not protected from CSRF
* Pro: Allow to update the plugin with WP CLI
* Pro: Fix search in the button block not filtered in the correct language (needs WP 5.1)
* Add Saraiki to the predefined languages list
* Fix a conflict causing a blank page with Divi
= 2.5 (2018-12-06) =
* Add compatibility with WP 5.0
* Fix custom flags when the WP content folder is not in the WP install folder
* Fix PHP notice if a language has no flag
= 2.4.1 (2018-11-27) =
* Pro: Add compatibility with REST API changes made in WP 5.0
* Pro: Fix sticky posts in the REST API
* Pro: Fix overwritten custom post slug when the post is updated with the REST API
* Pro: Fix bulk translate for media
* Fix a conflict with Custom sidebars and Content aware sidebars
* Fix a conflict with the theme Pokemania
* Fix PHP notices when using the function 'icl_link_to_element' for terms
* Fix title slugs for posts written in German
= 2.4 (2018-11-12) =
* Minimum WordPress version is now 4.7
* Pro: Add the possibility to bulk duplicate or bulk synchronize posts.
* Pro: Add compatibility with Admin Columns
* Pro: Add synchronized posts to the REST API
* Pro: Fix variations messed when changing WooCommerce attributes slugs
* Pro: Fix incorrect language for ajax requests made on front by The Events Calendar
* Pro: Fix term not duplicated correctly when the language is set from the content
* Refactor the core to activate on front and for the REST api actions that were previously available only in the backend (language checks, synchronizations...).
* Add flags to widgets displayed in only one language (Props Jory Hogeveen) #257
* Honor the filter 'pll_the_language_args' for all options in menus #237
* Add better filters for default flags and custom flags
* Custom flags can now be stored in the polylang directory in the theme
* Custom flags can now use SVG
* Add compatibility with Jetpack featured content module
* Fix Twenty Fourteen featured posts possibly not filtered per language
* Fix home url not working with WordPress MU Domain mapping
* Fix Assigning a parent category breaking the hierarchy of translated category
* Fix: Accept 0,1 and 1.0 as q factors in browser preferred language detection (Props Dominic Rubas)
* Fix performance issue when using hundreds of widgets
* Fix translations possibly wrong if the post language is changed without saving the post after
See [changelog.txt](https://plugins.svn.wordpress.org/polylang/trunk/changelog.txt) for older changelog
......@@ -250,7 +250,7 @@ class PLL_Table_String extends WP_List_Table {
$this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns() );
$total_items = count( $data );
$this->items = array_slice( $data, ( $this->get_pagenum() - 1 ) * $per_page, $per_page );
$this->items = array_slice( $data, ( $this->get_pagenum() - 1 ) * $per_page, $per_page, true );
$this->set_pagination_args(
array(
......
......@@ -12,6 +12,24 @@
global $jobs;
$date_format = get_option( 'date_format' );
function showPosted($published, $valid) {
$today = date('Y-m-d');
if ($published == $today) :
_e('Today', 'biuro');
else:
$earlier = new DateTime($today);
$later = new DateTime($valid);
$count = $later->diff($earlier)->format("%a");
if ($count < 4):
printf( __( 'Left %1$s d.!', 'biuro' ), $count ); // Liko 2 d.!
else:
printf( __( 'Before %s d.', 'biuro' ), $count ); // Prieš 28 d.
endif;
endif;
}
?>
<table cellspacing="0" cellpadding="0" class="c-jobs--table">
......@@ -19,7 +37,6 @@ $date_format = get_option( 'date_format' );
while ( $jobs->fetch() ) :
$ID = $jobs->display( 'ID' );
$name = $jobs->display( 'name' );
?>
<tr>
<td class="c-jobs--col c-jobs--col-position">
......@@ -63,7 +80,7 @@ $date_format = get_option( 'date_format' );
?>
</td>
<td class="c-jobs--col c-jobs--col-valid">
<?php echo date_i18n( $date_format, strtotime( $jobs->field( 'valid' ) ) ); ?>
<?php showPosted( substr($jobs->field('date'), 0, 10), $jobs->field( 'valid' )); ?>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment