├── .gitignore
├── .prettierrc
├── 404.php
├── acf-json
└── .gitkeep
├── functions.php
├── functions
├── core
│ ├── add-editor-formats.php
│ ├── add-image-sizes.php
│ ├── add-svg-upload-support.php
│ ├── add-vcard-support.php
│ ├── remove-default-editor.php
│ ├── remove-emoji-scripts.php
│ ├── remove-gutenberg-styles.php
│ ├── remove-json-api-scripts.php
│ ├── remove-wp-embed.php
│ └── remove-wp-xml-scripts.php
├── custom
│ └── .gitkeep
├── plugin
│ ├── .gitkeep
│ └── yoast-seo.php
├── required.php
└── template
│ ├── check-if-ajax.php
│ ├── get-file-type.php
│ ├── get-template-partial.php
│ ├── limit-chars.php
│ ├── limit-words.php
│ ├── pretty-print.php
│ └── slugify.php
├── includes
├── footer.php
├── header.php
└── meta.php
├── index.php
├── package.json
├── page.php
├── partials
└── .gitkeep
├── readme.md
├── screenshot-small.png
├── screenshot.png
├── shortcodes
└── .gitkeep
├── src
├── fonts
│ └── .gitkeep
├── img
│ └── .gitkeep
├── js
│ ├── app.js
│ ├── components
│ │ └── .gitkeep
│ └── utilities
│ │ └── .gitkeep
├── scss
│ ├── app.scss
│ ├── components
│ │ ├── .gitkeep
│ │ └── components.tw.scss
│ ├── elements
│ │ └── .gitkeep
│ ├── generic
│ │ └── generic.reset.scss
│ ├── objects
│ │ └── .gitkeep
│ └── utils
│ │ └── utils.all.scss
└── tailwind-config.js
├── style.css
├── webpack.mix.js
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled directories
2 | dist
3 |
4 | # System files
5 | *~
6 | .DS_Store
7 | .svn
8 | .cvs
9 | *.bak
10 | *.swp
11 | Thumbs.db
12 | todo.txt
13 |
14 | # Logs
15 | logs
16 | *.log
17 | npm-debug.log*
18 |
19 | # Dependency directories
20 | node_modules
21 | jspm_packages
22 | mix-manifest.json
23 |
24 | # Optional npm cache directory
25 | .npm
26 |
27 | # Misc
28 | hot
29 | mix-manifest.json
30 |
31 | # Optional REPL history
32 | .node_repl_history
33 |
34 | # Large / disallowed file types
35 | *.hqx
36 | *.bin
37 | *.exe
38 | *.dll
39 | *.deb
40 | *.dmg
41 | *.iso
42 | *.img
43 | *.msi
44 | *.msp
45 | *.msm
46 | *.mid
47 | *.midi
48 | *.kar
49 | *.mp3
50 | *.ogg
51 | *.m4a
52 | *.ra
53 | *.3gpp
54 | *.3gp
55 | *.mp4
56 | *.mpeg
57 | *.mpg
58 | *.mov
59 | *.webm
60 | *.flv
61 | *.m4v
62 | *.mng
63 | *.asx
64 | *.asf
65 | *.wmv
66 | *.avi
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "tabWidth": 2,
3 | "useTabs": false,
4 | "semi": false,
5 | "singleQuote": true,
6 | "trailingComma": "all"
7 | }
--------------------------------------------------------------------------------
/404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |

5 |
6 |
404
7 |
8 |
9 |
--------------------------------------------------------------------------------
/acf-json/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jack-pallot/dogpatch/066286b3a793567b8f0e89eab0a0f0efb3112dc5/acf-json/.gitkeep
--------------------------------------------------------------------------------
/functions.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/add-editor-formats.php:
--------------------------------------------------------------------------------
1 | 'Heading XXL',
19 | 'block' => 'span',
20 | 'classes' => 'u-heading--xxl',
21 | 'wrapper' => true,
22 | )
23 | );
24 | // Insert the array, JSON ENCODED, into 'style_formats'
25 | $init_array['style_formats'] = json_encode( $style_formats );
26 | return $init_array;
27 | };
28 |
29 | // Attach callback to 'tiny_mce_before_init'
30 | add_filter( 'tiny_mce_before_init', 'my_mce_before_init_insert_formats' );
31 | ?>
--------------------------------------------------------------------------------
/functions/core/add-image-sizes.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/add-svg-upload-support.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/add-vcard-support.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-default-editor.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-emoji-scripts.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-gutenberg-styles.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-json-api-scripts.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-wp-embed.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/core/remove-wp-xml-scripts.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/custom/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jack-pallot/dogpatch/066286b3a793567b8f0e89eab0a0f0efb3112dc5/functions/custom/.gitkeep
--------------------------------------------------------------------------------
/functions/plugin/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jack-pallot/dogpatch/066286b3a793567b8f0e89eab0a0f0efb3112dc5/functions/plugin/.gitkeep
--------------------------------------------------------------------------------
/functions/plugin/yoast-seo.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/required.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/template/check-if-ajax.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/template/get-file-type.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/template/get-template-partial.php:
--------------------------------------------------------------------------------
1 | $value ) {
11 | if ( is_scalar( $value ) || is_array( $value ) ) {
12 | $cache_args[$key] = $value;
13 | } else if ( is_object( $value ) && method_exists( $value, 'get_id' ) ) {
14 | $cache_args[$key] = call_user_method( 'get_id', $value );
15 | }
16 | }
17 | if ( ( $cache = wp_cache_get( $file, serialize( $cache_args ) ) ) !== false ) {
18 | if ( ! empty( $template_args['return'] ) )
19 | return $cache;
20 | echo $cache;
21 | return;
22 | }
23 | }
24 | $file_handle = $file;
25 | do_action( 'start_operation', 'get_template_partial::' . $file_handle );
26 | if ( file_exists( get_stylesheet_directory() . '/' . $file . '.php' ) )
27 | $file = get_stylesheet_directory() . '/' . $file . '.php';
28 | elseif ( file_exists( get_template_directory() . '/' . $file . '.php' ) )
29 | $file = get_template_directory() . '/' . $file . '.php';
30 | ob_start();
31 | $return = require( $file );
32 | $data = ob_get_clean();
33 | do_action( 'end_operation', 'get_template_partial::' . $file_handle );
34 | if ( $cache_args ) {
35 | wp_cache_set( $file, $data, serialize( $cache_args ), 3600 );
36 | }
37 | if ( ! empty( $template_args['return'] ) )
38 | if ( $return === false )
39 | return false;
40 | else
41 | return $data;
42 | echo $data;
43 | };
44 | ?>
--------------------------------------------------------------------------------
/functions/template/limit-chars.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/functions/template/limit-words.php:
--------------------------------------------------------------------------------
1 | $limit) {
8 | $words = str_word_count($text, 2);
9 | $pos = array_keys($words);
10 | $text = substr($text, 0, $pos[$limit]) . $after;
11 | };
12 | return $text;
13 | };
14 | ?>
--------------------------------------------------------------------------------
/functions/template/pretty-print.php:
--------------------------------------------------------------------------------
1 | ';
8 | print_r($str);
9 | echo '';
10 | };
11 | ?>
--------------------------------------------------------------------------------
/functions/template/slugify.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/includes/footer.php:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |