Skip to content

Commit

Permalink
Opravuje překlady
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubforman committed Jan 30, 2021
1 parent 4c0286f commit 43fab3f
Show file tree
Hide file tree
Showing 16 changed files with 527 additions and 101 deletions.
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
=== Section Column Booster ===
Contributors: jakubjosefforman
Tags: elementor, section, column, elementor booster, elementor pro, elementor addod, addon, add-on
Requires at least: 5.5
Tested up to: 5.6
Stable tag: 1.1
Requires PHP: 7.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

An extension plugin used in sections & columns for Elementor. It\'s enabling custom width in columns & horizontal align columns in a section.

== Description ==
Plugin adding useful features to Elementor. Enable custom width of column & horizontal align of column in section or inner section.

= Available languages =
- English
- Czech

== Installation ==
1. Upload the section-column-booster folder to the /wp-content/plugins/ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Edit any section or column in Elementor editor enabled page.

== Frequently Asked Questions ==
= Work with Elementor Free =

Yes, it is work with free Elementor & Elementor Pro.


== Screenshots ==
1. Showing basic use of plugin

== Changelog ==
= 1.1 =
* Fix issues with localization.

= 1.0 =
* First version.
3 changes: 3 additions & 0 deletions commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Generate fresh POT - https://developer.wordpress.org/cli/commands/i18n/make-pot/
wp i18n make-pot . languages/section-column-booster.pot --domain=section-column-booster

2 changes: 1 addition & 1 deletion includes/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @since 1.1
* @package SectionColumnBooster
* @subpackage SectionColumnBooster/includes
* @subpackage jayjay666\SectionColumnBooster\includes
*/
class Loader
{
Expand Down
2 changes: 1 addition & 1 deletion includes/RequirementValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RequirementValidator
static function requirementsValidate()
{
// Check requirements
$validator = new Validator('7.1', 'section-column-booster/section-column-booster.php', SectionColumnBooster::DOMAIN);
$validator = new Validator('7.1', 'section-column-booster/section-column-booster.php', 'section-column-booster');
// $validator = new PluginValidator('7.1', 'section-column-booster/section-column-booster.php',self::DOMAIN);
$validator->addRequiredPlugin('elementor/elementor.php', '3.0');
if (!$validator->check()) {
Expand Down
2 changes: 1 addition & 1 deletion includes/i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class i18n
public function LoadPluginTextdomain()
{
load_plugin_textdomain(
SectionColumnBooster::DOMAIN,
'section-column-booster',
false,
dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
);
Expand Down
Binary file removed languages/elementor-column-order-cs_CZ.mo
Binary file not shown.
67 changes: 0 additions & 67 deletions languages/elementor-column-order-cs_CZ.po

This file was deleted.

Binary file added languages/section-column-booster-cs_CZ.mo
Binary file not shown.
66 changes: 66 additions & 0 deletions languages/section-column-booster-cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright (C) 2021 jayjay666
# This file is distributed under the same license as the Section Column Booster plugin.
msgid ""
msgstr ""
"Project-Id-Version: Section Column Booster 1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/section-column-"
"booster\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-01-30T10:26:51+00:00\n"
"PO-Revision-Date: 2021-01-30 11:35+0100\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: section-column-booster\n"
"Last-Translator: \n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n"
"Language: cs_CZ\n"

#. Plugin Name of the plugin
msgid "Section Column Booster"
msgstr ""

#. Plugin URI of the plugin
msgid "https://github.com/jayjay666/section-column-booster"
msgstr ""

#. Description of the plugin
msgid ""
"An extension plugin used in sections & columns for Elementor. It's enabling "
"custom width in columns & horizontal align columns in a section."
msgstr ""
"Doplněk rozšíření používaný v sekcích a sloupcích pro Elementor. Umožňuje "
"použít vlastní šířku ve sloupcích a vodorovné zarovnání sloupců v sekcích."

#. Author of the plugin
msgid "jayjay666"
msgstr ""

#. Author URI of the plugin
msgid "http://jakubforman.eu"
msgstr ""

#: src/Extend/Elements/Column.php:31
msgid "Column Order"
msgstr "Pořadí sloupce"

#: src/Extend/Elements/Column.php:38
msgid ""
"Column ordering is a great addition for responsive design. You can learn "
"more about CSS order property from %sMDN%s or %sw3schools%s."
msgstr ""
"Řazení sloupců je skvělým doplňkem pro responzivní design. Další informace "
"o vlastnosti objednávky CSS se dozvíte od %sMDN%s nebo %sw3schools%s."

#: src/Extend/Elements/Column.php:52
msgid "Custom Column Width"
msgstr "Vlastní šířka sloupce"

#: src/Extend/Elements/Column.php:55
msgid "E.g 250px, 50%, calc(100% - 250px)"
msgstr "Například: 250px, 50%, calc(100% - 250px)"

#: src/Extend/Elements/Section.php:30
msgid "Horizontal align"
msgstr "Horizontální zarovnání"
55 changes: 55 additions & 0 deletions languages/section-column-booster.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Copyright (C) 2021 Jakub Josef Forman
# This file is distributed under the same license as the Section Column Booster plugin.
msgid ""
msgstr ""
"Project-Id-Version: Section Column Booster 1.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/section-column-booster\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-01-30T10:37:47+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: section-column-booster\n"

#. Plugin Name of the plugin
msgid "Section Column Booster"
msgstr ""

#. Plugin URI of the plugin
msgid "https://jakubforman.eu/section-column-booster"
msgstr ""

#. Description of the plugin
msgid "An extension plugin used in sections & columns for Elementor. It's enabling custom width in columns & horizontal align columns in a section."
msgstr ""

#. Author of the plugin
msgid "Jakub Josef Forman"
msgstr ""

#. Author URI of the plugin
msgid "http://jakubforman.eu"
msgstr ""

#: src/Extend/Elements/Column.php:31
msgid "Column Order"
msgstr ""

#: src/Extend/Elements/Column.php:38
msgid "Column ordering is a great addition for responsive design. You can learn more about CSS order property from %sMDN%s or %sw3schools%s."
msgstr ""

#: src/Extend/Elements/Column.php:52
msgid "Custom Column Width"
msgstr ""

#: src/Extend/Elements/Column.php:55
msgid "E.g 250px, 50%, calc(100% - 250px)"
msgstr ""

#: src/Extend/Elements/Section.php:30
msgid "Horizontal align"
msgstr ""
12 changes: 6 additions & 6 deletions section-column-booster.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

/**
* Plugin Name: Section Column Booster
* Plugin URI: https://github.com/jayjay666/section-column-booster
* Plugin URI: https://jakubforman.eu/personal-projects/section-column-booster/
* Description: An extension plugin used in sections & columns for Elementor. It's enabling custom width in columns & horizontal align columns in a section.
* Version: 1.0
* Author: jayjay666
* Version: 1.1
* Author: Jakub Josef Forman
* Author URI: http://jakubforman.eu
* Domain Path: /languages/
* License: GPL v2 or later
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: section-column-booster
* Domain Path: /languages/
*/
use jayjay666\SectionColumnBooster\SectionColumnBooster;

//
// Kontrola
defined('ABSPATH') || exit;

/**
Expand Down
7 changes: 7 additions & 0 deletions src/Elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
use jayjay666\SectionColumnBooster\Extend\Elements\Section;
use jayjay666\SectionColumnBooster\includes\Loader;

/**
* Class Elementor
*
* Main class working with Elementor
*
* @package jayjay666\SectionColumnBooster
*/
class Elementor
{
/**
Expand Down
13 changes: 6 additions & 7 deletions src/Extend/Elements/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@

use Elementor\Controls_Manager;
use Elementor\Element_Column;
use jayjay666\SectionColumnBooster\SectionColumnBooster;

/**
* Class Column
*
* Extending existing columns in elementor
*
* @package SectionColumnBooster\Extend\Elements
* @package jayjay666\SectionColumnBooster\Extend\Elements
*/
class Column
{
Expand All @@ -29,14 +28,14 @@ public static function addColumnControls(Element_Column $element)
'_scb_column_order',
[
// 'devices' => [], // Přidá další
'label' => __('Column Order', SectionColumnBooster::DOMAIN),
'label' => __('Column Order', 'section-column-booster'),
'separator' => 'before',
'type' => Controls_Manager::NUMBER,
'selectors' => [
'{{WRAPPER}}.elementor-column' => '-webkit-box-ordinal-group: calc({{VALUE}} + 1 ); -ms-flex-order:{{VALUE}}; order: {{VALUE}};',
],
'description' => sprintf(
__('Column ordering is a great addition for responsive design. You can learn more about CSS order property from %sMDN%s or %sw3schools%s.', SectionColumnBooster::DOMAIN),
__('Column ordering is a great addition for responsive design. You can learn more about CSS order property from %sMDN%s or %sw3schools%s.', 'section-column-booster'),
'<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Ordering_Flex_Items#The_order_property" target="_blank">',
'</a>',
'<a href="https://www.w3schools.com/cssref/css3_pr_order.asp" target="_blank">',
Expand All @@ -50,10 +49,10 @@ public static function addColumnControls(Element_Column $element)
$element->add_responsive_control(
'_scb_column_width',
[
'label' => __('Custom Column Width', SectionColumnBooster::DOMAIN),
'label' => __('Custom Column Width', 'section-column-booster'),
'type' => Controls_Manager::TEXT,
'label_block' => true,
'description' => __('E.g 250px, 50%, calc(100% - 250px)', SectionColumnBooster::DOMAIN),
'description' => __('E.g 250px, 50%, calc(100% - 250px)', 'section-column-booster'),
'selectors' => [ // Zde se předají data do CSS
'{{WRAPPER}}.elementor-column' => 'width: {{VALUE}};',
],
Expand All @@ -65,7 +64,7 @@ public static function addColumnControls(Element_Column $element)
$element->add_responsive_control(
'spicy_image_border_radius',
[
'label' => __('Border Radius', SectionColumnBooster::DOMAIN),
'label' => __('Border Radius', 'section-column-booster'),
'type' => 'scp-multi-unit-control',
'size_units' => ['px', '%', 'text'],
'selectors' => [
Expand Down
6 changes: 2 additions & 4 deletions src/Extend/Elements/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@


use Elementor\Controls_Manager;
use Elementor\Element_Column;
use Elementor\Element_Section;
use jayjay666\SectionColumnBooster\SectionColumnBooster;

/**
* Class Section
*
* Extending existing sections in elementor
*
* @package SectionColumnBooster\Extend\Elements
* @package jayjay666\SectionColumnBooster\Extend\Elements
*/
class Section
{
Expand All @@ -29,7 +27,7 @@ public static function addSectionControls(Element_Section $element)
$element->add_responsive_control(
'scb_section_horizontal_align',
[
'label' => __('Horizontal align', SectionColumnBooster::DOMAIN),
'label' => __('Horizontal align', 'section-column-booster'),
'type' => Controls_Manager::SELECT,
'default' => '',
'options' => [
Expand Down
Loading

0 comments on commit 43fab3f

Please sign in to comment.