Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Petr Balga
creepy
Commits
4dbae0b5
Commit
4dbae0b5
authored
Jan 29, 2020
by
Petr Balga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted all themes except for 2020, added custom post type
parent
c51f549a
Changes
195
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
14 additions
and
13625 deletions
+14
-13625
wp-content/themes/CreepyTheme/functions.php
wp-content/themes/CreepyTheme/functions.php
+14
-396
wp-content/themes/twentynineteen/404.php
wp-content/themes/twentynineteen/404.php
+0
-33
wp-content/themes/twentynineteen/archive.php
wp-content/themes/twentynineteen/archive.php
+0
-54
wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
...twentynineteen/classes/class-twentynineteen-svg-icons.php
+0
-458
wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
...ynineteen/classes/class-twentynineteen-walker-comment.php
+0
-128
wp-content/themes/twentynineteen/comments.php
wp-content/themes/twentynineteen/comments.php
+0
-128
wp-content/themes/twentynineteen/fonts/NonBreakingSpaceOverride.woff
...themes/twentynineteen/fonts/NonBreakingSpaceOverride.woff
+0
-0
wp-content/themes/twentynineteen/fonts/NonBreakingSpaceOverride.woff2
...hemes/twentynineteen/fonts/NonBreakingSpaceOverride.woff2
+0
-0
wp-content/themes/twentynineteen/footer.php
wp-content/themes/twentynineteen/footer.php
+0
-57
wp-content/themes/twentynineteen/functions.php
wp-content/themes/twentynineteen/functions.php
+0
-325
wp-content/themes/twentynineteen/header.php
wp-content/themes/twentynineteen/header.php
+0
-53
wp-content/themes/twentynineteen/image.php
wp-content/themes/twentynineteen/image.php
+0
-104
wp-content/themes/twentynineteen/inc/back-compat.php
wp-content/themes/twentynineteen/inc/back-compat.php
+0
-79
wp-content/themes/twentynineteen/inc/color-patterns.php
wp-content/themes/twentynineteen/inc/color-patterns.php
+0
-271
wp-content/themes/twentynineteen/inc/customizer.php
wp-content/themes/twentynineteen/inc/customizer.php
+0
-158
wp-content/themes/twentynineteen/inc/icon-functions.php
wp-content/themes/twentynineteen/inc/icon-functions.php
+0
-52
wp-content/themes/twentynineteen/inc/template-functions.php
wp-content/themes/twentynineteen/inc/template-functions.php
+0
-422
wp-content/themes/twentynineteen/inc/template-tags.php
wp-content/themes/twentynineteen/inc/template-tags.php
+0
-258
wp-content/themes/twentynineteen/index.php
wp-content/themes/twentynineteen/index.php
+0
-47
wp-content/themes/twentynineteen/js/customize-controls.js
wp-content/themes/twentynineteen/js/customize-controls.js
+0
-30
wp-content/themes/twentynineteen/js/customize-preview.js
wp-content/themes/twentynineteen/js/customize-preview.js
+0
-60
wp-content/themes/twentynineteen/js/priority-menu.js
wp-content/themes/twentynineteen/js/priority-menu.js
+0
-216
wp-content/themes/twentynineteen/js/skip-link-focus-fix.js
wp-content/themes/twentynineteen/js/skip-link-focus-fix.js
+0
-33
wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js
...ent/themes/twentynineteen/js/touch-keyboard-navigation.js
+0
-354
wp-content/themes/twentynineteen/package-lock.json
wp-content/themes/twentynineteen/package-lock.json
+0
-4627
wp-content/themes/twentynineteen/package.json
wp-content/themes/twentynineteen/package.json
+0
-44
wp-content/themes/twentynineteen/page.php
wp-content/themes/twentynineteen/page.php
+0
-38
wp-content/themes/twentynineteen/postcss.config.js
wp-content/themes/twentynineteen/postcss.config.js
+0
-13
wp-content/themes/twentynineteen/print.css
wp-content/themes/twentynineteen/print.css
+0
-162
wp-content/themes/twentynineteen/print.scss
wp-content/themes/twentynineteen/print.scss
+0
-198
wp-content/themes/twentynineteen/readme.txt
wp-content/themes/twentynineteen/readme.txt
+0
-69
wp-content/themes/twentynineteen/sass/_normalize.scss
wp-content/themes/twentynineteen/sass/_normalize.scss
+0
-341
wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
wp-content/themes/twentynineteen/sass/blocks/_blocks.scss
+0
-1028
wp-content/themes/twentynineteen/sass/elements/_elements.scss
...ontent/themes/twentynineteen/sass/elements/_elements.scss
+0
-92
wp-content/themes/twentynineteen/sass/elements/_lists.scss
wp-content/themes/twentynineteen/sass/elements/_lists.scss
+0
-33
wp-content/themes/twentynineteen/sass/elements/_tables.scss
wp-content/themes/twentynineteen/sass/elements/_tables.scss
+0
-13
wp-content/themes/twentynineteen/sass/forms/_buttons.scss
wp-content/themes/twentynineteen/sass/forms/_buttons.scss
+0
-37
wp-content/themes/twentynineteen/sass/forms/_fields.scss
wp-content/themes/twentynineteen/sass/forms/_fields.scss
+0
-58
wp-content/themes/twentynineteen/sass/forms/_forms.scss
wp-content/themes/twentynineteen/sass/forms/_forms.scss
+0
-3
wp-content/themes/twentynineteen/sass/layout/_layout.scss
wp-content/themes/twentynineteen/sass/layout/_layout.scss
+0
-11
wp-content/themes/twentynineteen/sass/media/_captions.scss
wp-content/themes/twentynineteen/sass/media/_captions.scss
+0
-32
wp-content/themes/twentynineteen/sass/media/_galleries.scss
wp-content/themes/twentynineteen/sass/media/_galleries.scss
+0
-52
wp-content/themes/twentynineteen/sass/media/_media.scss
wp-content/themes/twentynineteen/sass/media/_media.scss
+0
-41
wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss
...ent/themes/twentynineteen/sass/mixins/_mixins-master.scss
+0
-132
wp-content/themes/twentynineteen/sass/mixins/_utilities.scss
wp-content/themes/twentynineteen/sass/mixins/_utilities.scss
+0
-51
wp-content/themes/twentynineteen/sass/modules/_accessibility.scss
...nt/themes/twentynineteen/sass/modules/_accessibility.scss
+0
-38
wp-content/themes/twentynineteen/sass/modules/_alignments.scss
...ntent/themes/twentynineteen/sass/modules/_alignments.scss
+0
-28
wp-content/themes/twentynineteen/sass/modules/_clearings.scss
...ontent/themes/twentynineteen/sass/modules/_clearings.scss
+0
-23
wp-content/themes/twentynineteen/sass/navigation/_links.scss
wp-content/themes/twentynineteen/sass/navigation/_links.scss
+0
-21
wp-content/themes/twentynineteen/sass/navigation/_menu-footer-navigation.scss
...entynineteen/sass/navigation/_menu-footer-navigation.scss
+0
-22
wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss
...twentynineteen/sass/navigation/_menu-main-navigation.scss
+0
-506
wp-content/themes/twentynineteen/sass/navigation/_menu-social-navigation.scss
...entynineteen/sass/navigation/_menu-social-navigation.scss
+0
-66
wp-content/themes/twentynineteen/sass/navigation/_navigation.scss
...nt/themes/twentynineteen/sass/navigation/_navigation.scss
+0
-16
wp-content/themes/twentynineteen/sass/navigation/_next-previous.scss
...themes/twentynineteen/sass/navigation/_next-previous.scss
+0
-201
wp-content/themes/twentynineteen/sass/site/_site.scss
wp-content/themes/twentynineteen/sass/site/_site.scss
+0
-27
wp-content/themes/twentynineteen/sass/site/footer/_site-footer.scss
.../themes/twentynineteen/sass/site/footer/_site-footer.scss
+0
-53
wp-content/themes/twentynineteen/sass/site/header/_site-featured-image.scss
...twentynineteen/sass/site/header/_site-featured-image.scss
+0
-301
wp-content/themes/twentynineteen/sass/site/header/_site-header.scss
.../themes/twentynineteen/sass/site/header/_site-header.scss
+0
-139
wp-content/themes/twentynineteen/sass/site/primary/_archives.scss
...nt/themes/twentynineteen/sass/site/primary/_archives.scss
+0
-65
wp-content/themes/twentynineteen/sass/site/primary/_comments.scss
...nt/themes/twentynineteen/sass/site/primary/_comments.scss
+0
-405
wp-content/themes/twentynineteen/sass/site/primary/_posts-and-pages.scss
...es/twentynineteen/sass/site/primary/_posts-and-pages.scss
+0
-304
wp-content/themes/twentynineteen/sass/site/secondary/_widgets.scss
...t/themes/twentynineteen/sass/site/secondary/_widgets.scss
+0
-81
wp-content/themes/twentynineteen/sass/typography/_copy.scss
wp-content/themes/twentynineteen/sass/typography/_copy.scss
+0
-62
wp-content/themes/twentynineteen/sass/typography/_headings.scss
...tent/themes/twentynineteen/sass/typography/_headings.scss
+0
-164
wp-content/themes/twentynineteen/sass/typography/_typography.scss
...nt/themes/twentynineteen/sass/typography/_typography.scss
+0
-32
wp-content/themes/twentynineteen/sass/variables-site/_colors.scss
...nt/themes/twentynineteen/sass/variables-site/_colors.scss
+0
-34
wp-content/themes/twentynineteen/sass/variables-site/_columns.scss
...t/themes/twentynineteen/sass/variables-site/_columns.scss
+0
-16
wp-content/themes/twentynineteen/sass/variables-site/_fonts.scss
...ent/themes/twentynineteen/sass/variables-site/_fonts.scss
+0
-83
wp-content/themes/twentynineteen/sass/variables-site/_structure.scss
...themes/twentynineteen/sass/variables-site/_structure.scss
+0
-16
wp-content/themes/twentynineteen/sass/variables-site/_transitions.scss
...emes/twentynineteen/sass/variables-site/_transitions.scss
+0
-6
wp-content/themes/twentynineteen/sass/variables-site/_variables-site.scss
...s/twentynineteen/sass/variables-site/_variables-site.scss
+0
-5
wp-content/themes/twentynineteen/screenshot.png
wp-content/themes/twentynineteen/screenshot.png
+0
-0
wp-content/themes/twentynineteen/search.php
wp-content/themes/twentynineteen/search.php
+0
-55
wp-content/themes/twentynineteen/single.php
wp-content/themes/twentynineteen/single.php
+0
-60
wp-content/themes/twentynineteen/style-editor-customizer.css
wp-content/themes/twentynineteen/style-editor-customizer.css
+0
-5
No files found.
wp-content/themes/CreepyTheme/functions.php
View file @
4dbae0b5
...
...
@@ -61,404 +61,20 @@ add_filter('upload_mimes', 'add_file_types_to_uploads');
// Retrieves the attachment ID from the file URL
function
chc_get_image_id
(
$image_url
)
{
// if not in use delete
function
custom_get_image_id
(
$image_url
)
{
global
$wpdb
;
$attachment
=
$wpdb
->
get_col
(
$wpdb
->
prepare
(
"SELECT ID FROM
$wpdb->posts
WHERE guid='%s';"
,
$image_url
));
return
$attachment
[
0
];
}
/* Admin appearance customizer screen */
function
chc_administration_callout
(
$wp_customize
)
{
$wp_customize
->
add_section
(
'chc-landing-callout-section'
,
array
(
'title'
=>
'ΓvodnΓ obrΓ‘zek'
));
/* ΓvodnΓ obrΓ‘zek */
$wp_customize
->
add_setting
(
'chc-landing-callout-image'
);
$wp_customize
->
add_control
(
new
WP_Customize_Image_Control
(
$wp_customize
,
'chc-landing-callout-image-control'
,
array
(
'label'
=>
'ΓvodnΓ obrΓ‘zek'
,
'section'
=>
'chc-landing-callout-section'
,
'settings'
=>
'chc-landing-callout-image'
)));
/* -------------------------------------------------------------------------------------------------------------- */
$wp_customize
->
add_section
(
'chc-news-callout-section'
,
array
(
'title'
=>
'Sekce novinek (ΓΊvodnΓ strΓ‘nka)'
));
/* Headline */
$wp_customize
->
add_setting
(
'chc-news-callout-headline'
,
array
(
'default'
=>
'Nadpis sekce novinek'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-news-callout-headline-control'
,
array
(
'label'
=>
'Nadpis'
,
'section'
=>
'chc-news-callout-section'
,
'settings'
=>
'chc-news-callout-headline'
)));
/* Text under paragraph */
$wp_customize
->
add_setting
(
'chc-news-callout-paragraph'
,
array
(
'default'
=>
'Text sekce novinek'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-news-callout-paragraph-control'
,
array
(
'label'
=>
'Text'
,
'section'
=>
'chc-news-callout-section'
,
'settings'
=>
'chc-news-callout-paragraph'
,
'type'
=>
'textarea'
)));
/* Button text */
$wp_customize
->
add_setting
(
'chc-news-callout-button-text'
,
array
(
'default'
=>
'Zobrazit vΓce'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-news-callout-button-text-control'
,
array
(
'label'
=>
'Text na tlaΔΓtku'
,
'section'
=>
'chc-news-callout-section'
,
'settings'
=>
'chc-news-callout-button-text'
)));
/* Button link */
$wp_customize
->
add_setting
(
'chc-news-callout-button-link'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-news-callout-button-link-control'
,
array
(
'label'
=>
'Odkaz tlaΔΓtka'
,
'section'
=>
'chc-news-callout-section'
,
'settings'
=>
'chc-news-callout-button-link'
,
'type'
=>
'dropdown-pages'
)));
/* -------------------------------------------------------------------------------------------------------------- */
$wp_customize
->
add_section
(
'chc-fields-callout-section'
,
array
(
'title'
=>
'Sekce oborΕ― a zamΔΕenΓ (ΓΊvodnΓ strΓ‘nka)'
));
/* Headline */
$wp_customize
->
add_setting
(
'chc-fields-callout-headline'
,
array
(
'default'
=>
'Nadpis sekce zamΔΕenΓ'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-fields-callout-headline-control'
,
array
(
'label'
=>
'Nadpis'
,
'section'
=>
'chc-fields-callout-section'
,
'settings'
=>
'chc-fields-callout-headline'
)));
/* Text under paragraph */
$wp_customize
->
add_setting
(
'chc-fields-callout-paragraph'
,
array
(
'default'
=>
'Text sekce zamΔΕenΓ'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-fields-callout-paragraph-control'
,
array
(
'label'
=>
'Text'
,
'section'
=>
'chc-fields-callout-section'
,
'settings'
=>
'chc-fields-callout-paragraph'
,
'type'
=>
'textarea'
)));
/* Button text */
$wp_customize
->
add_setting
(
'chc-fields-callout-button-text'
,
array
(
'default'
=>
'Zobrazit vΓce'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-fields-callout-button-text-control'
,
array
(
'label'
=>
'Text na tlaΔΓtku'
,
'section'
=>
'chc-fields-callout-section'
,
'settings'
=>
'chc-fields-callout-button-text'
)));
/* Button link */
$wp_customize
->
add_setting
(
'chc-fields-callout-button-link'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-fields-callout-button-link-control'
,
array
(
'label'
=>
'Odkaz tlaΔΓtka - ID kategorie'
,
'section'
=>
'chc-fields-callout-section'
,
'settings'
=>
'chc-fields-callout-button-link'
,
)));
/* ObrΓ‘zek vpravo */
$wp_customize
->
add_setting
(
'chc-fields-callout-image'
);
$wp_customize
->
add_control
(
new
WP_Customize_Image_Control
(
$wp_customize
,
'chc-fields-callout-image-control'
,
array
(
'label'
=>
'ObrΓ‘zek vpravo'
,
'section'
=>
'chc-fields-callout-section'
,
'settings'
=>
'chc-fields-callout-image'
)));
/* -------------------------------------------------------------------------------------------------------------- */
$wp_customize
->
add_section
(
'chc-footer-callout-section'
,
array
(
'title'
=>
'Footer'
));
/* Headline */
$wp_customize
->
add_setting
(
'chc-footer-callout-headline'
,
array
(
'default'
=>
'Nadpis'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-headline-control'
,
array
(
'label'
=>
'Nadpis textu ve footeru'
,
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-headline'
)));
/* Text under paragraph */
$wp_customize
->
add_setting
(
'chc-footer-callout-paragraph'
,
array
(
'default'
=>
'Text'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-paragraph-control'
,
array
(
'label'
=>
'Text ve footeru'
,
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-paragraph'
,
'type'
=>
'textarea'
)));
/* Useful buttons headline */
$wp_customize
->
add_setting
(
'chc-footer-callout-useful-refs-text'
,
array
(
'default'
=>
'UΕΎiteΔnΓ© odkazy'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-useful-refs-text-control'
,
array
(
'label'
=>
'Nadpis uΕΎiteΔnΓ½ch odkazΕ―'
,
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-useful-refs-text'
)));
/* Button link 1 */
$wp_customize
->
add_setting
(
'chc-footer-callout-link1'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-link1-control'
,
array
(
//'label' => 'γγ',
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-link1'
,
'type'
=>
'dropdown-pages'
)));
/* Button link 2 */
$wp_customize
->
add_setting
(
'chc-footer-callout-link2'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-link2-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-link2'
,
'type'
=>
'dropdown-pages'
)));
/* Button link 3 */
$wp_customize
->
add_setting
(
'chc-footer-callout-link3'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-link3-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-link3'
,
'type'
=>
'dropdown-pages'
)));
/* Button link 4 */
$wp_customize
->
add_setting
(
'chc-footer-callout-link4'
);
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-link4-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-link4'
,
'type'
=>
'dropdown-pages'
)));
/* Contacts headline */
$wp_customize
->
add_setting
(
'chc-footer-callout-contacts-headline-text'
,
array
(
'default'
=>
'Kontakty'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-contacts-headline-control'
,
array
(
'label'
=>
'Nadpis kontaktΕ―'
,
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-contacts-headline-text'
)));
/* Address */
$wp_customize
->
add_setting
(
'chc-footer-callout-address-text'
,
array
(
'default'
=>
'FilmovΓ‘ 174, 760 01 ZlΓn'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-address-text-control'
,
array
(
//'label' => 'γγ',
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-address-text'
)));
/* E-mail */
$wp_customize
->
add_setting
(
'chc-footer-callout-email-text'
,
array
(
'default'
=>
'kontakt@creativehill.cz'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-email-text-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-email-text'
)));
/* Phone number */
$wp_customize
->
add_setting
(
'chc-footer-callout-phone-text'
,
array
(
'default'
=>
'+420 725 878 303'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-phone-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-phone-text'
)));
/* Open hours */
$wp_customize
->
add_setting
(
'chc-footer-callout-open-hours-text'
,
array
(
'default'
=>
'pondΔlΓ - pΓ‘tek 7:30 - 10:15'
));
$wp_customize
->
add_control
(
new
WP_Customize_Control
(
$wp_customize
,
'chc-footer-callout-open-hours-control'
,
array
(
'section'
=>
'chc-footer-callout-section'
,
'settings'
=>
'chc-footer-callout-open-hours-text'
)));
/* -------------------------------------------------------------------------------------------------------------- */
$wp_customize
->
add_section
(
'chc-handful-callout-section'
,
array
(
'title'
=>
'UΕΎiteΔnΓ© dokumenty'
));
/* UΕΎiteΔnΓ© dokumenty 1 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-1'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-1-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 1'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-1'
)));
/* UΕΎiteΔnΓ© dokumenty 2 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-2'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-2-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 2'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-2'
)));
/* UΕΎiteΔnΓ© dokumenty 3 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-3'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-3-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 3'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-3'
)));
/* UΕΎiteΔnΓ© dokumenty 4 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-4'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-4-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 4'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-4'
)));
/* UΕΎiteΔnΓ© dokumenty 5 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-5'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-5-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 5'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-5'
)));
/* UΕΎiteΔnΓ© dokumenty 6 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-6'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-6-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 6'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-6'
)));
/* UΕΎiteΔnΓ© dokumenty 7 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-7'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-7-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 7'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-6'
)));
/* UΕΎiteΔnΓ© dokumenty 8 */
$wp_customize
->
add_setting
(
'chc-handful-callout-media-8'
);
$wp_customize
->
add_control
(
new
WP_Customize_Media_Control
(
$wp_customize
,
'chc-handful-callout-media-8-control'
,
array
(
'mime_type'
=>
'application'
,
'label'
=>
'Dokument 8'
,
'section'
=>
'chc-handful-callout-section'
,
'settings'
=>
'chc-handful-callout-media-6'
)));
}
add_action
(
'customize_register'
,
'chc_administration_callout'
);
function
chc_pagination
(
$currentpage
,
$prevpage
,
$nextpage
)
{
echo
'<div class="pagination">'
;
echo
'<ul>'
;
echo
'<li><span>1</span></li>'
;
echo
'<li><a href="#">2</a></li>'
;
echo
'<li><a href="#">3</a></li>'
;
echo
'<li><a href="#">4</a></li>'
;
echo
'<li><a href="#">5</a></li>'
;
echo
'</ul>'
;
echo
'</div>'
;
}
// Register Custom Post Type
function
create_team_members
()
{
function
transactions_post_type
()
{
$labels
=
array
(
'name'
=>
'T
eam
'
,
'singular_name'
=>
'T
eam
'
,
'menu_name'
=>
'
PedagogickΓ½ tΓ½m
'
,
'name_admin_bar'
=>
'
PedagogickΓ½ tΓ½m
'
,
'name'
=>
'T
ransactions
'
,
'singular_name'
=>
'T
ransaction
'
,
'menu_name'
=>
'
Transactions
'
,
'name_admin_bar'
=>
'
Transactions
'
,
'archives'
=>
'Item Archives'
,
'attributes'
=>
'Item Attributes'
,
'parent_item_colon'
=>
'Parent Item:'
,
...
...
@@ -484,15 +100,17 @@ function create_team_members() {
'filter_items_list'
=>
'Filter items list'
,
);
$args
=
array
(
'label'
=>
'T
eam
'
,
'description'
=>
'
PedagogickΓ½ tΓ½m
'
,
'label'
=>
'T
ransaction
'
,
'description'
=>
'
Transaction as a post - post type
'
,
'labels'
=>
$labels
,
'supports'
=>
array
(
'title'
,
'editor'
,
'thumbnail'
),
'supports'
=>
array
(
'title'
,
'editor'
),
'taxonomies'
=>
array
(
'category'
,
'post_tag'
),
'hierarchical'
=>
false
,
'public'
=>
true
,
'show_ui'
=>
true
,
'show_in_menu'
=>
true
,
'menu_position'
=>
5
,
'menu_icon'
=>
'dashicons-money'
,
'show_in_admin_bar'
=>
true
,
'show_in_nav_menus'
=>
true
,
'can_export'
=>
true
,
...
...
@@ -501,9 +119,9 @@ function create_team_members() {
'publicly_queryable'
=>
true
,
'capability_type'
=>
'page'
,
);
register_post_type
(
't
eam
'
,
$args
);
register_post_type
(
't
ransaction
'
,
$args
);
}
add_action
(
'init'
,
'
create_team_members
'
,
0
);
add_action
(
'init'
,
'
transactions_post_type
'
,
0
);
?>
\ No newline at end of file
wp-content/themes/twentynineteen/404.php
deleted
100644 β 0
View file @
c51f549a
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"content-area"
>
<main
id=
"main"
class=
"site-main"
>
<div
class=
"error-404 not-found"
>
<header
class=
"page-header"
>
<h1
class=
"page-title"
>
<?php
_e
(
'Oops! That page can’t be found.'
,
'twentynineteen'
);
?>
</h1>
</header>
<!-- .page-header -->
<div
class=
"page-content"
>
<p>
<?php
_e
(
'It looks like nothing was found at this location. Maybe try a search?'
,
'twentynineteen'
);
?>
</p>
<?php
get_search_form
();
?>
</div>
<!-- .page-content -->
</div>
<!-- .error-404 -->
</main>
<!-- #main -->
</div>
<!-- #primary -->
<?php
get_footer
();
wp-content/themes/twentynineteen/archive.php
deleted
100644 β 0
View file @
c51f549a
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
get_header
();
?>
<div
id=
"primary"
class=
"content-area"
>
<main
id=
"main"
class=
"site-main"
>
<?php
if
(
have_posts
()
)
:
?>
<header
class=
"page-header"
>
<?php
the_archive_title
(
'<h1 class="page-title">'
,
'</h1>'
);
?>
</header>
<!-- .page-header -->
<?php
// Start the Loop.
while
(
have_posts
()
)
:
the_post
();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part
(
'template-parts/content/content'
,
'excerpt'
);
// End the loop.
endwhile
;
// Previous/next page navigation.
twentynineteen_the_posts_navigation
();
// If no content, include the "No posts found" template.
else
:
get_template_part
(
'template-parts/content/content'
,
'none'
);
endif
;
?>
</main>
<!-- #main -->
</div>
<!-- #primary -->
<?php
get_footer
();
wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php
deleted
100644 β 0
View file @
c51f549a
This diff is collapsed.
Click to expand it.
wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
deleted
100644 β 0
View file @
c51f549a
<?php
/**
* Custom comment walker for this theme
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
/**
* This class outputs custom comment walker for HTML5 friendly WordPress comment and threaded replies.
*
* @since 1.0.0
*/
class
TwentyNineteen_Walker_Comment
extends
Walker_Comment
{
/**
* Outputs a comment in the HTML5 format.
*
* @see wp_list_comments()
*
* @param WP_Comment $comment Comment to display.
* @param int $depth Depth of the current comment.
* @param array $args An array of arguments.
*/
protected
function
html5_comment
(
$comment
,
$depth
,
$args
)
{
$tag
=
(
'div'
===
$args
[
'style'
]
)
?
'div'
:
'li'
;
?>
<
<?php
echo
$tag
;
?>
id
="
comment-
<?php
comment_ID
();
?>
"
<?php
comment_class
(
$this
->
has_children
?
'parent'
:
''
,
$comment
);
?>
>
<article
id=
"div-comment-
<?php
comment_ID
();
?>
"
class=
"comment-body"
>
<footer
class=
"comment-meta"
>
<div
class=
"comment-author vcard"
>
<?php
$comment_author_url
=
get_comment_author_url
(
$comment
);
$comment_author
=
get_comment_author
(
$comment
);
$avatar
=
get_avatar
(
$comment
,
$args
[
'avatar_size'
]
);
if
(
0
!=
$args
[
'avatar_size'
]
)
{
if
(
empty
(
$comment_author_url
)
)
{
echo
$avatar
;
}
else
{