Start
This commit is contained in:
3
doc/examples/how-to.php
Normal file
3
doc/examples/how-to.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$post_types['<your_cpt_id>'] = new CPT('<your_cpt_id>', '<your_cpt_singular_name>', <your_cpt_args> );
|
||||
?>
|
||||
2
doc/examples/timber.php
Normal file
2
doc/examples/timber.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
Timber::render( '@plugin/...', $context );
|
||||
5
doc/examples/twig-examples.twig
Normal file
5
doc/examples/twig-examples.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ svg_icon('anchor') }}
|
||||
{{ theme_setting('title_color') }}
|
||||
{% if conditional_tags.is_home %}
|
||||
{# Code... #}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user