├── .gitignore ├── .srv └── custom.ini ├── README.md ├── docker-compose.yml ├── plugin └── ale-core.php └── theme ├── assets └── images │ ├── woman-curls.jpg │ ├── woman-headphones.jpg │ └── woman-tshirt.jpg ├── functions.php ├── index.php ├── license.txt ├── parts ├── footer.html └── header.html ├── patterns ├── columns-with-images.php ├── comments.php ├── hidden-404.php ├── hidden-footer.php ├── hidden-post-meta.php └── query.php ├── readme.txt ├── screenshot.png ├── style.css ├── templates ├── 404.html ├── archive.html ├── index.html ├── no-title.html ├── page.html ├── search.html └── single.html └── theme.json /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.srv/* 3 | !/.srv/custom.ini -------------------------------------------------------------------------------- /.srv/custom.ini: -------------------------------------------------------------------------------- 1 | file_uploads = On 2 | memory_limit = 1024M 3 | upload_max_filesize = 1024M 4 | post_max_size = 1024M 5 | max_executation_time = 1200 6 | max_input_vars = 2000 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | # Run 3 | $ docker-compose up -d 4 | 5 | # Remove 6 | $ docker-compose down --volumes 7 | ``` 8 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.9' 2 | services: 3 | mysql: 4 | image: mysql:5.7 5 | restart: always 6 | ports: 7 | - 3306:3306 8 | volumes: 9 | - "./.srv/database:/var/lib/mysql" 10 | environment: 11 | MYSQL_ROOT_PASSWORD: wordpress 12 | MYSQL_DATABASE: my-site 13 | MYSQL_USER: wordpress 14 | MYSQL_PASSWORD: wordpress 15 | 16 | wordpress: 17 | image: wordpress:latest 18 | depends_on: 19 | - mysql 20 | links: 21 | - mysql 22 | ports: 23 | - 8000:80 24 | restart: always 25 | environment: 26 | WORDPRES_DB_HOST: mysql:3306 27 | WORDPRESS_DB_USER: wordpress 28 | WORDPRESS_DB_PASSWORD: wordpress 29 | WORDPRESS_DB_NAME: my-site 30 | WORDPRESS_DEBUG: 1 31 | volumes: 32 | - ./.srv/wordpress/:/var/www/html 33 | - ./theme/:/var/www/html/wp-content/themes/ale 34 | - ./plugin/:/var/www/html/wp-content/plugins/ale-core 35 | - ./.srv/custom.ini:/usr/local/etc/php/conf.d/custom.ini 36 | 37 | phpmyadmin: 38 | image: phpmyadmin/phpmyadmin 39 | depends_on: 40 | - mysql 41 | links: 42 | - mysql 43 | ports: 44 | - 8181:80 45 | environment: 46 | MYSQL_USERNAME: wordpress 47 | MYSQL_ROOT_PASSWORD: wordpress 48 | PMA_HOST: mysql -------------------------------------------------------------------------------- /plugin/ale-core.php: -------------------------------------------------------------------------------- 1 | get( 'Version' ) 24 | ); 25 | } 26 | add_action( 'wp_enqueue_scripts', 'ale_styles' ); 27 | -------------------------------------------------------------------------------- /theme/index.php: -------------------------------------------------------------------------------- 1 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /theme/parts/footer.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /theme/parts/header.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 | 6 | 7 |
8 | 9 | 10 |
11 | 12 | -------------------------------------------------------------------------------- /theme/patterns/columns-with-images.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |
16 | 17 |
18 | 19 |

20 |
21 | 22 | 23 |
24 | 25 |

26 | 27 | 28 |
29 | 30 |
31 | 32 | 33 |
34 | 35 |
36 | 37 |

38 |
39 | 40 |
41 | 42 | -------------------------------------------------------------------------------- /theme/patterns/comments.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 |
14 | 15 |
16 | 17 |

18 | 19 | 20 | 21 | 22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 |
30 | 31 | 32 |
33 | 34 | 35 |
36 | 37 | 38 | 39 |
40 | 41 |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 |
51 | 52 |
53 | 54 | -------------------------------------------------------------------------------- /theme/patterns/hidden-404.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |

13 | 14 |

15 | 16 | 17 |

18 | 19 | 20 | -------------------------------------------------------------------------------- /theme/patterns/hidden-footer.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |

15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /theme/patterns/hidden-post-meta.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 |
15 | 16 | 17 |
18 | 19 | 20 |
21 | 22 |
23 | 24 |
25 | 26 | -------------------------------------------------------------------------------- /theme/patterns/query.php: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |

25 | 26 | 27 | 28 | 29 | 30 |
31 | 32 | -------------------------------------------------------------------------------- /theme/readme.txt: -------------------------------------------------------------------------------- 1 | === Ale === 2 | Contributors: aletheme 3 | Tested up to: 6.4 4 | Requires at least: 6.4 5 | Requires PHP: 7.4 6 | Version: 100.0 7 | License: GPLv2 or later 8 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 | Copyright: aletheme 10 | 11 | A full site editing theme. Basic version. 12 | 13 | == Guide == 14 | 15 | === Folder structure === 16 | 17 | - Assets. Images and CSS files. 18 | - Parts. HTML template parts. 19 | - Patterns. Block patterns. 20 | - Templates. HTML block templates. 21 | 22 | functions.php -Used to enqueue styles and add theme support. 23 | index.php -"Silence is golden". 24 | style.css -Required to activate the theme. 25 | theme.json -Settings and default styles. 26 | license.txt -GPL v2 27 | readme.txt -Information about the theme. 28 | screenshot.png 29 | 30 | == Changelog == 31 | For changelogs please see the Github repository. 32 | 33 | 1.0.0 Initial release 34 | 35 | == Licence == 36 | Ale is distributed under the terms of the GNU GPL. 37 | 38 | This program is free software: you can redistribute it and/or modify 39 | it under the terms of the GNU General Public License as published by 40 | the Free Software Foundation, either version 2 of the License, or 41 | (at your option) any later version. 42 | 43 | This program is distributed in the hope that it will be useful, 44 | but WITHOUT ANY WARRANTY; without even the implied warranty of 45 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 46 | GNU General Public License for more details. 47 | 48 | == Resources used to build this theme == 49 | 50 | * Twenty Twenty-Two WordPress theme (C) WordPress.org 51 | License: GNU General Public License v2.0 or later 52 | License URI: https://www.gnu.org/licenses/gpl-2.0.html 53 | 54 | * Q WordPress theme (C) Ari Stathopoulos 55 | License: GNU General Public License v2.0 or later 56 | License URI: https://www.gnu.org/licenses/gpl-2.0.html 57 | 58 | * Full site editing starter theme by Carolina Nymark 59 | https://fullsiteediting.com 60 | License: GNU General Public License v2 or later 61 | License URI: https://www.gnu.org/licenses/gpl-2.0.html 62 | 63 | Images 64 | Images from pxhere.com. Public domain: 65 | https://pxhere.com/en/photo/927190 -woman with curly hair 66 | https://pxhere.com/en/photo/1049910 -woman with t-shirt 67 | https://pxhere.com/en/photo/1604358 -woman with headphones 68 | -------------------------------------------------------------------------------- /theme/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CRIK0VA/wpdocker/e6f5a14243c247cf9c866175f0873ddc8a8355a7/theme/screenshot.png -------------------------------------------------------------------------------- /theme/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Ale 3 | Author: aletheme 4 | Author URI: https://aletheme.com 5 | Theme URI: https://aletheme.com 6 | Tags: full-site-editing, block-patterns 7 | Text Domain: ale 8 | Requires at least: 6.4 9 | Requires PHP: 7.4 10 | Tested up to: 6.4 11 | Version: 100.0 12 | 13 | License: GNU General Public License v2 or later 14 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 15 | */ 16 | 17 | /* Styles intended only for the front.*/ 18 | html { 19 | scroll-behavior: smooth; 20 | } 21 | 22 | @media screen and (prefers-reduced-motion: reduce) { 23 | 24 | html { 25 | scroll-behavior: auto; 26 | } 27 | } 28 | 29 | body { 30 | -moz-osx-font-smoothing: grayscale; 31 | -webkit-font-smoothing: antialiased; 32 | } 33 | -------------------------------------------------------------------------------- /theme/templates/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /theme/templates/archive.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /theme/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |

Latest posts

7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /theme/templates/no-title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /theme/templates/page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /theme/templates/search.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /theme/templates/single.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 |
20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
31 | 32 | 33 |
34 | 35 |
36 | 37 |
38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /theme/theme.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "$schema": "https://schemas.wp.org/trunk/theme.json", 4 | "settings": { 5 | "appearanceTools": true, 6 | "color": { 7 | "palette": [ 8 | { 9 | "slug": "base", 10 | "color": "#1e1e1e", 11 | "name": "Base" 12 | }, 13 | { 14 | "slug": "contrast", 15 | "color": "#f0f0f0", 16 | "name": "Contrast" 17 | }, 18 | { 19 | "slug": "primary", 20 | "color": "#000000", 21 | "name": "Primary" 22 | }, 23 | { 24 | "slug": "secondary", 25 | "color": "#00a0d2", 26 | "name": "Secondary" 27 | }, 28 | { 29 | "slug": "transparent", 30 | "color": "transparent", 31 | "name": "Transparent" 32 | } 33 | ], 34 | "gradients": [ 35 | { 36 | "slug": "primary-white", 37 | "gradient": "linear-gradient(#0073aa 49.9%,#fff 50%)", 38 | "name": "Primary color to white" 39 | }, 40 | { 41 | "slug": "white-primary", 42 | "gradient": "linear-gradient(#fff 49.9%,#0073aa 50%)", 43 | "name": "Horizontal white to Primary color" 44 | } 45 | ], 46 | "duotone": [ 47 | { 48 | "colors": [ "#00a0d2", "#0073aa"], 49 | "slug": "secondary-primary", 50 | "name": "Secondary and primary" 51 | }, 52 | { 53 | "colors": ["#0073aa", "#f0f0f0"], 54 | "slug": "primary-contrast", 55 | "name": "Primary and Contrast" 56 | } 57 | ] 58 | }, 59 | "layout": { 60 | "contentSize": "700px", 61 | "wideSize": "1100px" 62 | }, 63 | "spacing": { 64 | "units": [ "px", "em", "rem", "vh", "vw", "%" ] 65 | }, 66 | "typography": { 67 | "dropCap": false, 68 | "fluid": true, 69 | "fontFamilies": [ 70 | { 71 | "name": "System", 72 | "slug": "system", 73 | "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif" 74 | }, 75 | { 76 | "name": "Serif", 77 | "slug": "serif", 78 | "fontFamily": "\"Times New Roman\",\"New York\",Times,\"Noto Serif\",serif" 79 | }, 80 | { 81 | "name": "Monospace", 82 | "slug": "monospace", 83 | "fontFamily": "Consolas,Menlo,Monaco,\"SF Mono\",\"DejaVu Sans Mono\",\"Roboto Mono\",\"Courier New\",Courier,monospace" 84 | } 85 | ], 86 | "fontSizes": [ 87 | { 88 | "slug": "small", 89 | "size": "1.125rem", 90 | "name": "Small", 91 | "fluid": false 92 | }, 93 | { 94 | "slug": "medium", 95 | "size": "1.5rem", 96 | "name": "Medium", 97 | "fluid": false 98 | }, 99 | { 100 | "slug": "large", 101 | "size": "2rem", 102 | "name": "Large", 103 | "fluid": { 104 | "min": "1.75rem", 105 | "max": "2rem" 106 | } 107 | }, 108 | { 109 | "slug": "x-large", 110 | "size": "2.75rem", 111 | "name": "XL", 112 | "fluid": { 113 | "min": "2.5rem", 114 | "max": "2.75rem" 115 | } 116 | }, 117 | { 118 | "slug": "xx-large", 119 | "size": "3.75rem", 120 | "name": "XXL", 121 | "fluid": { 122 | "min": "3rem", 123 | "max": "3.75rem" 124 | } 125 | } 126 | ] 127 | }, 128 | "useRootPaddingAwareAlignments": true 129 | }, 130 | "styles": { 131 | "blocks": { 132 | "core/code": { 133 | "color": { 134 | "text": "var(--wp--preset--color--contrast)" 135 | } 136 | }, 137 | "core/comment-author-name": { 138 | "typography": { 139 | "fontSize": "var(--wp--preset--font-size--small)" 140 | } 141 | }, 142 | "core/comment-date": { 143 | "typography": { 144 | "fontSize": "var(--wp--preset--font-size--small)" 145 | } 146 | }, 147 | "core/comment-edit-link": { 148 | "typography": { 149 | "fontSize": "var(--wp--preset--font-size--small)" 150 | } 151 | }, 152 | "core/post-comments-form": { 153 | "typography": { 154 | "fontSize": "var(--wp--preset--font-size--small)" 155 | } 156 | }, 157 | "core/comment-reply-link": { 158 | "typography": { 159 | "fontSize": "var(--wp--preset--font-size--small)" 160 | } 161 | }, 162 | "core/navigation": { 163 | "css": "& .wp-block-site-title{ margin:0; font-weight:400;}", 164 | "elements": { 165 | "link": { 166 | "color": { 167 | "text": "var(--wp--preset--color--contrast)" 168 | }, 169 | "typography": { 170 | "textDecoration": "underline" 171 | }, 172 | ":hover": { 173 | "color": { 174 | "text": "var(--wp--preset--color--contrast)" 175 | }, 176 | "typography": { 177 | "textDecoration": "none" 178 | } 179 | }, 180 | ":focus": { 181 | "color": { 182 | "text": "var(--wp--preset--color--contrast)" 183 | } 184 | }, 185 | ":active": { 186 | "color": { 187 | "text": "var(--wp--preset--color--contrast)" 188 | } 189 | } 190 | } 191 | } 192 | }, 193 | "core/post-author-name": { 194 | "typography": { 195 | "fontSize": "var(--wp--preset--font-size--small)" 196 | } 197 | }, 198 | "core/post-content": { 199 | "spacing": { 200 | "margin": { 201 | "top": "var(--wp--preset--spacing--60)", 202 | "bottom": "var(--wp--preset--spacing--60)" 203 | } 204 | } 205 | }, 206 | "core/post-date": { 207 | "typography": { 208 | "fontSize": "var(--wp--preset--font-size--small)" 209 | } 210 | }, 211 | "core/post-excerpt": { 212 | "elements": { 213 | "link": { 214 | "typography": { 215 | "fontSize": "var(--wp--preset--font-size--small)" 216 | } 217 | } 218 | } 219 | }, 220 | "core/post-featured-image": { 221 | "spacing": { 222 | "margin": { 223 | "bottom": "var(--wp--preset--spacing--40)" 224 | } 225 | } 226 | }, 227 | "core/post-template": { 228 | "spacing": { 229 | "padding": { 230 | "top": "var(--wp--preset--spacing--50)", 231 | "bottom": "var(--wp--preset--spacing--50)" 232 | } 233 | } 234 | }, 235 | "core/post-terms": { 236 | "typography": { 237 | "fontSize": "var(--wp--preset--font-size--small)" 238 | } 239 | }, 240 | "core/query-pagination": { 241 | "spacing": { 242 | "padding": { 243 | "top": "var(--wp--preset--spacing--50)" 244 | } 245 | } 246 | }, 247 | "core/search": { 248 | "css": ".wp-block-search__button-inside .wp-block-search__inside-wrapper{border: none;}", 249 | "typography": { 250 | "lineHeight": "1" 251 | } 252 | } 253 | }, 254 | "color": { 255 | "background": "var(--wp--preset--color--base)", 256 | "text": "var(--wp--preset--color--contrast)" 257 | }, 258 | "elements": { 259 | "button": { 260 | "spacing": { 261 | "padding": { 262 | "top": "var(--wp--preset--spacing--30)", 263 | "right": "var(--wp--preset--spacing--30)", 264 | "bottom": "var(--wp--preset--spacing--30)", 265 | "left": "var(--wp--preset--spacing--30)" 266 | } 267 | }, 268 | "border": { 269 | "color": "var(--wp--preset--color--transparent)", 270 | "width": "4px", 271 | "style": "solid", 272 | "radius": "4px" 273 | }, 274 | "color": { 275 | "background": "var(--wp--preset--color--primary)", 276 | "text": "var(--wp--preset--color--contrast)" 277 | }, 278 | "typography": { 279 | "fontSize": "var(--wp--preset--font-size--small)", 280 | "fontWeight": "700" 281 | }, 282 | "shadow": "var(--wp--preset--shadow--natural)", 283 | ":hover": { 284 | "border": { 285 | "color": "var(--wp--preset--color--secondary)" 286 | } 287 | } 288 | }, 289 | "caption": { 290 | "color": { 291 | "text": "var(--wp--preset--color--primary)" 292 | } 293 | }, 294 | "cite": { 295 | "color": { 296 | "text": "var(--wp--preset--color--primary)" 297 | } 298 | }, 299 | "link": { 300 | "color": { 301 | "text": "var(--wp--preset--color--contrast)" 302 | }, 303 | ":hover": { 304 | "color": { 305 | "text": "var(--wp--preset--color--contrast)" 306 | }, 307 | "typography": { 308 | "textDecoration": "none" 309 | } 310 | }, 311 | ":focus": { 312 | "color": { 313 | "text": "var(--wp--preset--color--contrast)" 314 | } 315 | }, 316 | ":active": { 317 | "color": { 318 | "text": "var(--wp--preset--color--contrast)" 319 | } 320 | } 321 | } 322 | }, 323 | "spacing": { 324 | "padding": { 325 | "right": "var(--wp--preset--spacing--50)", 326 | "left": "var(--wp--preset--spacing--50)" 327 | } 328 | }, 329 | "typography": { 330 | "fontSize": "var(--wp--preset--font-size--medium)", 331 | "fontFamily": "var(--wp--preset--font-family--system)", 332 | "lineHeight": "1.7" 333 | } 334 | }, 335 | "templateParts": [ 336 | { 337 | "name": "header", 338 | "title": "Header", 339 | "area": "header" 340 | }, 341 | { 342 | "name": "footer", 343 | "title": "Footer", 344 | "area": "footer" 345 | } 346 | ], 347 | "customTemplates": [ 348 | { 349 | "name": "no-title", 350 | "title": "No title", 351 | "postTypes": [ "post","page" ] 352 | } 353 | ] 354 | } 355 | --------------------------------------------------------------------------------