Commit cbff1c63 authored by Simonas's avatar Simonas

Merge branch 'release-1.26.3' into 'master'

Release 1.26.3

See merge request !1
parents 858032d4 0ed22037
......@@ -20,9 +20,9 @@
## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.26.2 .` (update version number)
- build new image `docker build -t biuro/web:1.26.3 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.26.2`
- push image to docker repository - `docker push biuro/web:1.26.3`
## Production
- update biuro/web image version in .env file (staging or www)
......
......@@ -133,6 +133,8 @@ class Biuro_Feedbacks extends WP_Widget {
echo '<source srcset="/wp-content/themes/biuro/i/feedbacks/' . $img . '.webp" type="image/webp">';
echo '<img loading="lazy" src="/wp-content/themes/biuro/i/feedbacks/' . $img . '.png" width="85" height="83" alt="' . ${'name' . $i} . '" class="c-feedbacks--img">';
echo '</picture>';
} else {
echo '<div class="c-feedbacks--img c-feedbacks--img-empty"></div>';
}
if ( ${'feedback' . $i} != "" ) {
......
This diff is collapsed.
<?php
/**
* Classic Widgets
*
* Plugin Name: Classic Widgets
* Plugin URI: https://wordpress.org/plugins/classic-widgets/
* Description: Enables the classic widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing widgets.
* Version: 0.2
* Author: WordPress Contributors
* Author URI: https://github.com/WordPress/classic-widgets/
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Text Domain: classic-widgets
* Domain Path: /languages
* Requires at least: 4.9
* Requires PHP: 5.6 or later
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License version 2, as published by the Free Software Foundation. You may NOT assume
* that you can use any other version of the GPL.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'Invalid request.' );
}
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
=== Classic Widgets ===
Contributors: wordpressdotorg, hellofromtonya, azaozz
Tags: gutenberg, disable, disable gutenberg, editor, classic widgets
Requires at least: 4.9
Tested up to: 5.8
Stable tag: 0.2
Requires PHP: 5.6 or later
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Enables the previous "classic" widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing widgets.
== Description ==
Classic Widgets is an official plugin maintained by the WordPress team that restores the previous ("classic") WordPress widgets settings screens. It will be supported and maintained until at least 2022, or as long as is necessary.
Once activated, this plugin restores the previous widgets settings screens and disables the block editor from managing widgets. There is no other configuration, the classic widgets settings screens are enabled or disabled by either enabling or disabling this plugin.
== Changelog ==
= 0.2 =
Update filter name.
= 0.1 =
Initial release.
== Frequently Asked Questions ==
= Are there any settings? =
No, there are no settings. Once activated, this plugin restores the previous ("classic") WordPress widgets screen and disables the block editor from managing widgets.
......@@ -31,6 +31,8 @@
.c-feedbacks--img { position: absolute; top: -32px; left: 50%; margin-left: -42px; }
.c-feedbacks--img-empty { width: 85px; height: 83px; border-radius: 50%; background: #e8e9ea; }
.c-feedbacks--feedback { margin: 0 auto 10px; max-width: 260px; height: 58px; color: #2A3644; font-family: Georgia; font-size: 14px; line-height: 26px; text-align: center; overflow: hidden;
@media (--min--medium) {
margin: 0 auto 17px; height: 79px; font-size: 21px; line-height: 40px; max-width: 400px;
......
......@@ -31,7 +31,9 @@
/* critical:end */
.c-feedbacks--img { display: block; margin: 0 auto 40px; }
.c-feedbacks--img { display: block; margin: 0 auto 40px; border-radius: 50%; overflow: hidden; }
.c-feedbacks--img-empty { width: 85px; height: 83px; background: #e8e9ea; }
.c-feedbacks--feedback { margin: 0 auto 10px; max-width: 90%; min-height: 66px; color: #2A3644; font-family: Georgia; font-size: 17px; line-height: 23px; text-align: center; overflow: hidden; width: 100%;
@media (--min--medium) {
......
......@@ -42,13 +42,13 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-db4589d5f6.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-79d4977b13.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-db4589d5f6.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-79d4977b13.min.css">
</noscript>
<?php wp_head(); ?>
......
......@@ -53,13 +53,13 @@
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2" crossorigin="anonymous" >
<link rel="preload" as="font" type="font/woff2" href="/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2" crossorigin="anonymous" >
<link rel="preload" href="/wp-content/themes/biuro/css/main-db4589d5f6.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="/wp-content/themes/biuro/css/main-79d4977b13.min.css" as="style" onload="this.rel='stylesheet'">
<link rel="preconnect" href="https://www.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<noscript>
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-db4589d5f6.min.css">
<link rel="stylesheet" href="/wp-content/themes/biuro/css/main-79d4977b13.min.css">
</noscript>
<?php
......
......@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro
Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme
Version: 1.26.2
Version: 1.26.3
Text Domain: biuro
*/
......@@ -19,8 +19,9 @@ wp core update --force;
wp core update-db --network;
wp core language update;
versionGoogleSitemapGenerator=4.1.1;
versionAkismet=4.1.10;
versionClassicWidgets=0.2;
versionGoogleSitemapGenerator=4.1.1;
versionLocoTranslate=2.5.3;
versionPods=2.7.29;
versionPolylang=3.1;
......@@ -29,7 +30,9 @@ versionWordpressSeo=16.9;
action="install" && $(wp core is-installed) && action="update"
if [ "$action" == "install" ]; then
wp plugin install classic-widgets --version="$versionClassicWidgets";
wp plugin install google-sitemap-generator --version="$versionGoogleSitemapGenerator";
wp plugin install loco-translate --version="$versionLocoTranslate";
wp plugin install pods --version="$versionPods";
......@@ -38,6 +41,12 @@ if [ "$action" == "install" ]; then
wp plugin install akismet --version="$versionAkismet";
wp plugin install site-reviews --version="$versionSiteReviews";
else
if [ $(wp plugin get classic-widgets --field=version) != "$versionClassicWidgets" ]; then
wp plugin update classic-widgets --version="$versionClassicWidgets";
else
echo "plugin classic-widgets is up to date";
fi
if [ $(wp plugin get google-sitemap-generator --field=version) != "$versionGoogleSitemapGenerator" ]; then
wp plugin update google-sitemap-generator --version="$versionGoogleSitemapGenerator";
else
......
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