Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
possible fix for release on wordpress.org (fixes Chyby #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidulus committed Jul 31, 2018
1 parent 73bf69a commit ed49d25
Show file tree
Hide file tree
Showing 20 changed files with 128 additions and 170 deletions.
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ composer.json export-ignore
composer.lock export-ignore

/assets/dev/ export-ignore
/assets/css-dev/ export-ignore
/assets/js-dev/ export-ignore
/assets/img-dev/ export-ignore

/vendor/aristath/kirki/.gitignore export-ignore
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# crdm-spolky-zaklad
# crdm-basic
2 changes: 0 additions & 2 deletions app/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ final class Init {

public function __construct() {
$this->initHooks();

( new PageSubtitle() );
}

private function initHooks() {
Expand Down
50 changes: 0 additions & 50 deletions app/Admin/PageSubtitle.php

This file was deleted.

16 changes: 8 additions & 8 deletions app/Customizer/Background.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( string $configId, string $panelId ) {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Pozadí', 'crdm_basic' ),
'title' => esc_attr__( 'Pozadí', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -30,7 +30,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'webBg',
'label' => esc_attr__( 'Pozadí webu', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí webu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => '#f7f3e2',
Expand All @@ -51,8 +51,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'headerBg1',
'label' => esc_attr__( 'Pozadí hlavičky 1', 'crdm_basic' ),
'description' => esc_attr__( 'Za lištou menu', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí hlavičky 1', 'crdm-basic' ),
'description' => esc_attr__( 'Za lištou menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => 'transparent',
Expand All @@ -73,8 +73,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'headerBg2',
'label' => esc_attr__( 'Pozadí hlavičky 2', 'crdm_basic' ),
'description' => esc_attr__( 'V popředí lišty menu', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí hlavičky 2', 'crdm-basic' ),
'description' => esc_attr__( 'V popředí lišty menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => 'transparent',
Expand All @@ -95,8 +95,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'headerBg3',
'label' => esc_attr__( 'Pozadí hlavičky 3', 'crdm_basic' ),
'description' => esc_attr__( 'Pod lištou menu', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí hlavičky 3', 'crdm-basic' ),
'description' => esc_attr__( 'Pod lištou menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => 'transparent',
Expand Down
6 changes: 3 additions & 3 deletions app/Customizer/BorderRadius.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( string $configId, string $panelId ) {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Zaoblení', 'crdm_basic' ),
'title' => esc_attr__( 'Zaoblení', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -30,8 +30,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'dimension',
'settings' => 'borderRadius',
'label' => esc_attr__( 'Zaoblení prvků', 'crdm_basic' ),
'description' => esc_attr__( 'Zadejte včetně jednotky, např.: 10px', 'crdm_basic' ),
'label' => esc_attr__( 'Zaoblení prvků', 'crdm-basic' ),
'description' => esc_attr__( 'Zadejte včetně jednotky, např.: 10px', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => '0px',
'css_vars' => [
Expand Down
6 changes: 3 additions & 3 deletions app/Customizer/ColorVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( string $configId, string $panelId ) {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Barevná varianta', 'crdm_basic' ),
'title' => esc_attr__( 'Barevná varianta', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -30,8 +30,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'radio-image',
'settings' => 'radio_image_setting',
'label' => esc_attr__( 'Vyberte barevnou variantu', 'crdm_basic' ),
'description' => esc_attr__( 'POZOR! Po uložení budou stávající nastavení šablony upraveny.', 'crdm_basic' ),
'label' => esc_attr__( 'Vyberte barevnou variantu', 'crdm-basic' ),
'description' => esc_attr__( 'POZOR! Po uložení budou stávající nastavení šablony upraveny.', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => 'light',
'choices' => [
Expand Down
22 changes: 11 additions & 11 deletions app/Customizer/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function initHooks() {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Obsah', 'crdm_basic' ),
'title' => esc_attr__( 'Obsah', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -38,7 +38,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'contentBg',
'label' => esc_attr__( 'Pozadí', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => 'transparent',
Expand All @@ -59,7 +59,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentFont',
'label' => esc_attr__( 'Běžný text', 'crdm_basic' ),
'label' => esc_attr__( 'Běžný text', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -80,7 +80,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'color',
'settings' => 'contentLinksColor',
'label' => esc_attr__( 'Barva odkazů', 'crdm_basic' ),
'label' => esc_attr__( 'Barva odkazů', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => '#037b8c',
'output' => [
Expand All @@ -95,8 +95,8 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH1Font',
'label' => esc_attr__( 'Nadpis (H1)', 'crdm_basic' ),
'description' => esc_attr__( 'Barva bude použita i pro další prvky na stránce (seznamy, tabulky, ...)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H1)', 'crdm-basic' ),
'description' => esc_attr__( 'Barva bude použita i pro další prvky na stránce (seznamy, tabulky, ...)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -118,7 +118,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH2Font',
'label' => esc_attr__( 'Nadpis (H2)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H2)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -140,7 +140,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH3Font',
'label' => esc_attr__( 'Nadpis (H3)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H3)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -162,7 +162,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH4Font',
'label' => esc_attr__( 'Nadpis (H4)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H4)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -184,7 +184,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH5Font',
'label' => esc_attr__( 'Nadpis (H5)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H5)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -206,7 +206,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'contentH6Font',
'label' => esc_attr__( 'Nadpis (H6)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpis (H6)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand Down
10 changes: 5 additions & 5 deletions app/Customizer/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( string $configId, string $panelId ) {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Patička', 'crdm_basic' ),
'title' => esc_attr__( 'Patička', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -30,7 +30,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'footerBg',
'label' => esc_attr__( 'Pozadí', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => '#ffffff',
Expand All @@ -51,7 +51,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'footerTitlesFont',
'label' => esc_attr__( 'Nadpisy (H2)', 'crdm_basic' ),
'label' => esc_attr__( 'Nadpisy (H2)', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -73,7 +73,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'footerFont',
'label' => esc_attr__( 'Běžný text', 'crdm_basic' ),
'label' => esc_attr__( 'Běžný text', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'PT Sans',
Expand All @@ -94,7 +94,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'color',
'settings' => 'footerLinksColor',
'label' => esc_attr__( 'Barva odkazů', 'crdm_basic' ),
'label' => esc_attr__( 'Barva odkazů', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => '#037b8c',
'output' => [
Expand Down
2 changes: 1 addition & 1 deletion app/Customizer/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function initKirki() {

protected function initPanel() {
Kirki::add_panel( self::CONFIG_ID . '_theme', [
'title' => esc_attr__( 'Nastavení šablony', 'crdm_basic' )
'title' => esc_attr__( 'Nastavení šablony', 'crdm-basic' )
] );
}

Expand Down
14 changes: 7 additions & 7 deletions app/Customizer/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct( string $configId, string $panelId ) {

protected function initSection() {
Kirki::add_section( $this->sectionId, [
'title' => esc_attr__( 'Menu', 'crdm_basic' ),
'title' => esc_attr__( 'Menu', 'crdm-basic' ),
'panel' => $this->panelId
] );
}
Expand All @@ -30,7 +30,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'menuBg',
'label' => esc_attr__( 'Pozadí lišty', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí lišty', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => '#037b8c',
Expand All @@ -51,7 +51,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'menuFont',
'label' => esc_attr__( 'Položky menu', 'crdm_basic' ),
'label' => esc_attr__( 'Položky menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'Patrick Hand',
Expand All @@ -78,7 +78,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'color',
'settings' => 'menuSeparatorColor',
'label' => esc_attr__( 'Barva oddělovače položek menu', 'crdm_basic' ),
'label' => esc_attr__( 'Barva oddělovače položek menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => '#3b969f',
'output' => [
Expand All @@ -93,7 +93,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'background',
'settings' => 'submenuBg',
'label' => esc_attr__( 'Pozadí vysouvacího menu', 'crdm_basic' ),
'label' => esc_attr__( 'Pozadí vysouvacího menu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'background-color' => '#65c3d4',
Expand All @@ -114,7 +114,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'typography',
'settings' => 'submenuFont',
'label' => esc_attr__( 'Položky submenu', 'crdm_basic' ),
'label' => esc_attr__( 'Položky submenu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => [
'font-family' => 'Patrick Hand',
Expand All @@ -136,7 +136,7 @@ protected function initControls() {
Kirki::add_field( $this->configId, [
'type' => 'color',
'settings' => 'submenuSeparatorColor',
'label' => esc_attr__( 'Barva oddělovače položek submenu', 'crdm_basic' ),
'label' => esc_attr__( 'Barva oddělovače položek submenu', 'crdm-basic' ),
'section' => $this->sectionId,
'default' => '#ffffff',
'output' => [
Expand Down
Loading

0 comments on commit ed49d25

Please sign in to comment.