From 55bc82bc8c96b84ebe3310dc8e30637ae545a4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Wed, 14 Aug 2024 23:22:42 +0300 Subject: [PATCH 1/5] TMS-1051: Add "Print page"-button to single program --- CHANGELOG.MD | 2 + assets/styles/views/_single-program.scss | 41 +++ lang/fi.mo | Bin 16672 -> 16783 bytes lang/fi.po | 117 ++++---- lang/sv_SE.mo | Bin 1478 -> 1551 bytes lang/sv_SE.po | 337 +++++++++++++---------- lang/tms-theme-base.pot | 115 ++++---- models/single-program.php | 22 +- models/strings.php | 1 + partials/single-program.dust | 5 + partials/ui/readspeaker.dust | 2 +- 11 files changed, 373 insertions(+), 269 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 9d465795..a67fa69b 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1051: Add "Print page"-button to single program + ## [1.8.16] - 2024-06-26 - TMS-925: diff --git a/assets/styles/views/_single-program.scss b/assets/styles/views/_single-program.scss index 572ef720..8d29687c 100644 --- a/assets/styles/views/_single-program.scss +++ b/assets/styles/views/_single-program.scss @@ -74,4 +74,45 @@ font-size: .94444444rem; line-height: 1.7; } + + // Print styles + @media print { + #rs-button, + .print-button, + .site-header, + footer, + .icon--external, + .icon--arrow-right, + [aria-hidden="true"] { + display: none !important; + } + + .breadcrumb svg { + order: 1; + } + + * { + color: $black !important; + } + + .entry__content > * { + padding: 0 !important; + } + + .icon { + fill: $black !important; + } + + a::after { + content: "\00a0(" attr(href) ")\00a0"; + } + + .single-program__hero { + .pt-8, + .pb-8, + .p-7 { + padding: .5rem !important; + } + } + } } diff --git a/lang/fi.mo b/lang/fi.mo index 3381c6e10f83336958548bfcda20ce315a6f9612..3b13b60bc42dec07fd061fda9c4c4e5694b6cca6 100644 GIT binary patch delta 5279 zcmZwK32;@_9m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^4duB4(2Z$#gQ7G#v-5@QV35{>{pH zcn3)%8^}2lO8!c8JWakJIYdV|X{+adRW&=tTV2$UX!0pJPMVH|6y7H7T3gFWEFi(E*Yt=U8D3MBoY5+zM`m_@LRNOKteofS TGS38L*Hm}U3ae@8wKMqt8SV3y diff --git a/lang/fi.po b/lang/fi.po index 6a82ba07..05c2808b 100644 --- a/lang/fi.po +++ b/lang/fi.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: TMS Theme Base\n" -"POT-Creation-Date: 2024-05-29 12:12+0300\n" -"PO-Revision-Date: 2024-05-29 12:13+0300\n" +"POT-Creation-Date: 2024-08-14 23:19+0300\n" +"PO-Revision-Date: 2024-08-14 23:19+0300\n" "Last-Translator: \n" "Language-Team: \n" "Language: fi\n" @@ -10,7 +10,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.4.2\n" +"X-Generator: Poedit 3.4.4\n" "X-Poedit-Basepath: ..\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n" "X-Poedit-WPHeader: style.css\n" @@ -53,7 +53,7 @@ msgstr "Sivun komponentit" #: lib/ACF/FrontPageGroup.php:90 lib/ACF/OnepagerGroup.php:126 #: lib/ACF/PageGroup.php:157 lib/ACF/PageProjectGroup.php:60 -#: lib/ACF/PostGroup.php:173 lib/ACF/ProgramGroup.php:304 +#: lib/ACF/PostGroup.php:173 lib/ACF/ProgramGroup.php:306 #: lib/ACF/ProjectGroup.php:425 msgctxt "theme ACF" msgid "Components" @@ -693,7 +693,7 @@ msgid "Search from site" msgstr "Etsi sivustolta" #: models/strings.php:56 models/strings.php:83 models/strings.php:146 -#: models/strings.php:159 models/strings.php:168 models/strings.php:267 +#: models/strings.php:159 models/strings.php:168 models/strings.php:268 msgctxt "theme-frontend" msgid "Close" msgstr "Sulje" @@ -843,12 +843,12 @@ msgctxt "theme-frontend" msgid "Articletype:" msgstr "Artikkelityyppi:" -#: models/strings.php:111 models/strings.php:223 +#: models/strings.php:111 models/strings.php:224 msgctxt "theme-frontend" msgid "Month" msgstr "Kuukausi" -#: models/strings.php:112 models/strings.php:224 +#: models/strings.php:112 models/strings.php:225 msgctxt "theme-frontend" msgid "Year" msgstr "Vuosi" @@ -868,62 +868,62 @@ msgctxt "theme-frontend" msgid "The page reloads after the selection." msgstr "Sivu latautuu uudelleen valinnan jälkeen." -#: models/strings.php:118 models/strings.php:237 +#: models/strings.php:118 models/strings.php:238 msgctxt "theme-frontend" msgid "January" msgstr "tammikuu" -#: models/strings.php:119 models/strings.php:238 +#: models/strings.php:119 models/strings.php:239 msgctxt "theme-frontend" msgid "February" msgstr "helmikuu" -#: models/strings.php:120 models/strings.php:239 +#: models/strings.php:120 models/strings.php:240 msgctxt "theme-frontend" msgid "March" msgstr "maaliskuu" -#: models/strings.php:121 models/strings.php:240 +#: models/strings.php:121 models/strings.php:241 msgctxt "theme-frontend" msgid "April" msgstr "huhtikuu" -#: models/strings.php:122 models/strings.php:241 models/strings.php:255 +#: models/strings.php:122 models/strings.php:242 models/strings.php:256 msgctxt "theme-frontend" msgid "May" msgstr "toukokuu" -#: models/strings.php:123 models/strings.php:242 +#: models/strings.php:123 models/strings.php:243 msgctxt "theme-frontend" msgid "June" msgstr "kesäkuu" -#: models/strings.php:124 models/strings.php:243 +#: models/strings.php:124 models/strings.php:244 msgctxt "theme-frontend" msgid "July" msgstr "heinäkuu" -#: models/strings.php:125 models/strings.php:244 +#: models/strings.php:125 models/strings.php:245 msgctxt "theme-frontend" msgid "August" msgstr "elokuu" -#: models/strings.php:126 models/strings.php:245 +#: models/strings.php:126 models/strings.php:246 msgctxt "theme-frontend" msgid "September" msgstr "syyskuu" -#: models/strings.php:127 models/strings.php:246 +#: models/strings.php:127 models/strings.php:247 msgctxt "theme-frontend" msgid "October" msgstr "lokakuu" -#: models/strings.php:128 models/strings.php:247 +#: models/strings.php:128 models/strings.php:248 msgctxt "theme-frontend" msgid "November" msgstr "marraskuu" -#: models/strings.php:129 models/strings.php:248 +#: models/strings.php:129 models/strings.php:249 msgctxt "theme-frontend" msgid "December" msgstr "joulukuu" @@ -1124,187 +1124,192 @@ msgctxt "theme-frontend" msgid "Starts" msgstr "Alkaa" -#: models/strings.php:203 +#: models/strings.php:201 +msgctxt "theme-frontend" +msgid "Print page" +msgstr "Tulosta sivu" + +#: models/strings.php:204 msgctxt "theme-frontend" msgid "Scope" msgstr "Laajuus" -#: models/strings.php:204 +#: models/strings.php:205 msgctxt "theme-frontend" msgid "Who can apply?" msgstr "Kuka voi hakea?" -#: models/strings.php:207 +#: models/strings.php:208 msgctxt "theme-frontend" msgid "Filter by type" msgstr "Rajaa tyypin mukaan" -#: models/strings.php:208 +#: models/strings.php:209 msgctxt "theme-frontend" msgid "Publish date" msgstr "Julkaisupäivä" -#: models/strings.php:209 +#: models/strings.php:210 msgctxt "theme-frontend" msgid "Write search terms" msgstr "Kirjoita hakusanat" -#: models/strings.php:210 +#: models/strings.php:211 msgctxt "theme-frontend" msgid "Page location:" msgstr "Sivun sijainti:" -#: models/strings.php:213 +#: models/strings.php:214 msgctxt "theme-frontend" msgid "Filter" msgstr "Rajaa" -#: models/strings.php:214 +#: models/strings.php:215 msgctxt "theme-frontend" msgid "Clicking the link will download file" msgstr "Linkin avaaminen lataa tiedoston" -#: models/strings.php:218 models/strings.php:226 +#: models/strings.php:219 models/strings.php:227 msgctxt "theme-frontend" msgid "Pick a date" msgstr "Valitse päivämäärä" -#: models/strings.php:219 +#: models/strings.php:220 msgctxt "theme-frontend" msgid "dd.mm.yyyy" msgstr "pp.kk.vvvv" -#: models/strings.php:220 +#: models/strings.php:221 msgctxt "theme-frontend" msgid "The chosen date is" msgstr "Valittu päivämäärä on" -#: models/strings.php:221 +#: models/strings.php:222 msgctxt "theme-frontend" msgid "Previous month" msgstr "Edellinen kuukausi" -#: models/strings.php:222 +#: models/strings.php:223 msgctxt "theme-frontend" msgid "Next month" msgstr "Seuraava kuukausi" -#: models/strings.php:225 +#: models/strings.php:226 msgctxt "theme-frontend" msgid "Close window" msgstr "Sulje ikkuna" -#: models/strings.php:228 +#: models/strings.php:229 msgctxt "theme-frontend" msgid "Sunday" msgstr "Sunnuntai" -#: models/strings.php:229 +#: models/strings.php:230 msgctxt "theme-frontend" msgid "Monday" msgstr "Maanantai" -#: models/strings.php:230 +#: models/strings.php:231 msgctxt "theme-frontend" msgid "Tuesday" msgstr "Tiistai" -#: models/strings.php:231 +#: models/strings.php:232 msgctxt "theme-frontend" msgid "Wednesday" msgstr "Keskiviikko" -#: models/strings.php:232 +#: models/strings.php:233 msgctxt "theme-frontend" msgid "Thursday" msgstr "Torstai" -#: models/strings.php:233 +#: models/strings.php:234 msgctxt "theme-frontend" msgid "Friday" msgstr "Perjantai" -#: models/strings.php:234 +#: models/strings.php:235 msgctxt "theme-frontend" msgid "Saturday" msgstr "Lauantai" -#: models/strings.php:251 +#: models/strings.php:252 msgctxt "theme-frontend" msgid "Jan" msgstr "Tam" -#: models/strings.php:252 +#: models/strings.php:253 msgctxt "theme-frontend" msgid "Feb" msgstr "Hel" -#: models/strings.php:253 +#: models/strings.php:254 msgctxt "theme-frontend" msgid "Mar" msgstr "Maa" -#: models/strings.php:254 +#: models/strings.php:255 msgctxt "theme-frontend" msgid "Apr" msgstr "Huh" -#: models/strings.php:256 +#: models/strings.php:257 msgctxt "theme-frontend" msgid "Jun" msgstr "Kes" -#: models/strings.php:257 +#: models/strings.php:258 msgctxt "theme-frontend" msgid "Jul" msgstr "Hei" -#: models/strings.php:258 +#: models/strings.php:259 msgctxt "theme-frontend" msgid "Aug" msgstr "Elo" -#: models/strings.php:259 +#: models/strings.php:260 msgctxt "theme-frontend" msgid "Sept" msgstr "Syys" -#: models/strings.php:260 +#: models/strings.php:261 msgctxt "theme-frontend" msgid "Oct" msgstr "Loka" -#: models/strings.php:261 +#: models/strings.php:262 msgctxt "theme-frontend" msgid "Nov" msgstr "Mar" -#: models/strings.php:262 +#: models/strings.php:263 msgctxt "theme-frontend" msgid "Dec" msgstr "Jou" -#: models/strings.php:266 +#: models/strings.php:267 msgctxt "theme-frontend" msgid "Enlarged image" msgstr "Suurennettu kuva" -#: models/strings.php:270 +#: models/strings.php:271 msgctxt "theme-frontend" msgid "Load more" msgstr "Lataa lisää" -#: models/strings.php:271 +#: models/strings.php:272 msgctxt "theme-frontend" msgid "Load more programs" msgstr "Lataa lisää koulutuksia" -#: models/strings.php:272 +#: models/strings.php:273 msgctxt "theme-frontend" msgid "More results loaded" msgstr "Lisää tuloksia ladattu" -#: models/strings.php:285 +#: models/strings.php:286 msgid "Pagination" msgstr "Sivutus" diff --git a/lang/sv_SE.mo b/lang/sv_SE.mo index f64711b1a3e4fbe01bcb8d0636edf0dc853aeda3..3c361562392923ed67a38058ec950d0e8b2338a5 100644 GIT binary patch delta 339 zcmX}n%}N4c6vpx6jMK;XQHm`J(Lpf?GISa!x`1{;`!a+p(?WG>&*& zEZ`6?afTQ8jX7Ln9=CXnmccz!Z8TFoPSs z!7Z{wj;a2P-aVokj{d^V|L_LFhEq79w$9Vtm;E~Mdx6uhw_D*TvP^j8%450eIqv{xGmMjs|2 delta 299 zcmeC@ImTUoPl#nI0}yZlu?!IB05LBR?*U>E_yEL$K>QJi`GA<2k%2)9NDBdJRUoYk zq?LelFpw4n(q%we4oLR^X?Y;M8c3@F>C-@3l9_?w6Nm=#d02s%fuWv34afj#GzQW_ zK-v>X^8@J^Ak6}#bD;8tKw1RIZwJzvKza_42ATzSI2(}W0AdgT+Q9&n0t0p+$q8kH z%whtu{qhxxQxl7lGZczaizmx5wol&AxRlpe*T7WQz*51`%*xngav{?NW+OeL%`VKz KOp~{get_post(); - $apply_methods = get_the_terms( $this_post, ApplyMethod::SLUG ); + $apply_methods = \get_the_terms( $this_post, ApplyMethod::SLUG ); if ( ! empty( $apply_methods[0]->term_id ) ) { - $apply_method_color = get_term_meta( $apply_methods[0]->term_id, 'color', true ) ?? ''; + $apply_method_color = \get_term_meta( $apply_methods[0]->term_id, 'color', true ) ?? ''; if ( ! empty( $apply_method_color ) ) { $colors['bg'] = $apply_method_color; @@ -273,7 +273,7 @@ public function stories() { foreach ( $posts as $post ) { - $image_id = get_post_thumbnail_id( $post->ID ) ?? false; + $image_id = \get_post_thumbnail_id( $post->ID ) ?? false; if ( ! $image_id || $image_id < 1 ) { $image_id = Images::get_default_image_id(); @@ -282,7 +282,7 @@ public function stories() { $stories['posts'][] = [ 'post_title' => $post->post_title ?? '', 'featured_image' => $image_id, - 'permalink' => get_permalink( $post->ID ), + 'permalink' => \get_permalink( $post->ID ), 'post_date' => $post->post_date ?? '', 'excerpt' => $post->post_excerpt ?? '', ]; diff --git a/models/strings.php b/models/strings.php index efdc553d..90dd4a8d 100644 --- a/models/strings.php +++ b/models/strings.php @@ -198,6 +198,7 @@ public function s() : array { 'delivery-method' => _x( 'Delivery method', 'theme-frontend', 'tms-theme-tredu' ), 'application-period-ends' => _x( 'Application period ends', 'theme-frontend', 'tms-theme-tredu' ), 'start-date' => _x( 'Starts', 'theme-frontend', 'tms-theme-tredu' ), + 'print' => _x( 'Print page', 'theme-frontend', 'tms-theme-tredu' ), ], 'program_type' => [ 'scope' => _x( 'Scope', 'theme-frontend', 'tms-theme-tredu' ), diff --git a/partials/single-program.dust b/partials/single-program.dust index fb0435d7..660ace70 100644 --- a/partials/single-program.dust +++ b/partials/single-program.dust @@ -22,6 +22,11 @@
+
+ +
{^content.image} diff --git a/partials/ui/readspeaker.dust b/partials/ui/readspeaker.dust index 836b31ad..971b5ed4 100644 --- a/partials/ui/readspeaker.dust +++ b/partials/ui/readspeaker.dust @@ -12,7 +12,7 @@ - ´ {Readspeaker.strings.button_text|html} + {Readspeaker.strings.button_text|html} From 45baa5d140d7a7fcead1af4c52de941bf8201f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Thu, 15 Aug 2024 10:00:45 +0300 Subject: [PATCH 2/5] TMS-1051: Print styles --- assets/styles/views/_single-program.scss | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/assets/styles/views/_single-program.scss b/assets/styles/views/_single-program.scss index 8d29687c..bac9ce63 100644 --- a/assets/styles/views/_single-program.scss +++ b/assets/styles/views/_single-program.scss @@ -107,11 +107,18 @@ content: "\00a0(" attr(href) ")\00a0"; } - .single-program__hero { - .pt-8, - .pb-8, - .p-7 { - padding: .5rem !important; + .single-program { + &__hero { + .pt-8, + .pb-8, + .p-7 { + padding: 0 !important; + } + } + + &__hero-box { + text-align: left; + padding: 0 !important; } } } From 14945fade75ce751d9fc86431dd47df3768a2bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Thu, 15 Aug 2024 14:29:59 +0300 Subject: [PATCH 3/5] TMS-1051: Print styles --- assets/styles/views/_single-program.scss | 27 +++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/assets/styles/views/_single-program.scss b/assets/styles/views/_single-program.scss index bac9ce63..431be699 100644 --- a/assets/styles/views/_single-program.scss +++ b/assets/styles/views/_single-program.scss @@ -83,7 +83,10 @@ footer, .icon--external, .icon--arrow-right, - [aria-hidden="true"] { + [aria-hidden="true"], + .section.map, + .video, + .accordion__open-all { display: none !important; } @@ -103,14 +106,17 @@ fill: $black !important; } + .button { + border-color: $black !important; + } + a::after { content: "\00a0(" attr(href) ")\00a0"; } .single-program { &__hero { - .pt-8, - .pb-8, + .column, .p-7 { padding: 0 !important; } @@ -121,5 +127,20 @@ padding: 0 !important; } } + + .accordion { + &__title-button, + &__content { + padding: rem(8px) 0 !important; + } + + &__title-icon { + display: none !important; + } + + &__content { + display: block !important; + } + } } } From 0bfbfc44e8bdf8e20e8c8214b0f92314790b5cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Thu, 15 Aug 2024 16:11:08 +0300 Subject: [PATCH 4/5] TMS-1051: More print styles --- assets/styles/views/_single-program.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/styles/views/_single-program.scss b/assets/styles/views/_single-program.scss index 431be699..a821c3cf 100644 --- a/assets/styles/views/_single-program.scss +++ b/assets/styles/views/_single-program.scss @@ -81,6 +81,7 @@ .print-button, .site-header, footer, + .breadcrumbs-container, .icon--external, .icon--arrow-right, [aria-hidden="true"], @@ -90,14 +91,15 @@ display: none !important; } - .breadcrumb svg { - order: 1; - } - * { color: $black !important; } + .column.is-10.is-offset-1 { + width: 100% !important; + margin: 0 !important; + } + .entry__content > * { padding: 0 !important; } From 07902cb65b73cffe710427cbf9fcbf168613ff54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Thu, 15 Aug 2024 16:33:52 +0300 Subject: [PATCH 5/5] TMS-1051: Heading & link print styles --- assets/styles/views/_single-program.scss | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/assets/styles/views/_single-program.scss b/assets/styles/views/_single-program.scss index a821c3cf..380dc39b 100644 --- a/assets/styles/views/_single-program.scss +++ b/assets/styles/views/_single-program.scss @@ -95,12 +95,13 @@ color: $black !important; } + // Blocks container .column.is-10.is-offset-1 { width: 100% !important; margin: 0 !important; } - .entry__content > * { + .entry__content > *:not(ul) { padding: 0 !important; } @@ -112,8 +113,24 @@ border-color: $black !important; } - a::after { - content: "\00a0(" attr(href) ")\00a0"; + .mt-6, + .mb-6, + .mt-5, + .mb-5, + .mt-4, + .mb-4m + h2, + h3, + h4 { + margin: .5rem 0 !important; + } + + a { + text-decoration: underline; + + &::after { + content: "\00a0(" attr(href) ")\00a0"; + } } .single-program {