18
18
/**
19
19
* Renders post thumbnail by its formats.
20
20
*
21
- * @see do_action('theme/index/post/thumbnail')
22
- * @uses resources/templates/partials/post/thumbnail-{format}.tpl.php
21
+ * @see resources/templates/index.tpl.php
23
22
*/
24
23
function render_post_thumbnail ()
25
24
{
@@ -28,35 +27,33 @@ function render_post_thumbnail()
28
27
add_action ('theme/index/post/thumbnail ' , 'Tonik\Theme\App\Structure\render_post_thumbnail ' );
29
28
30
29
/**
31
- * Renders post contents by its formats .
30
+ * Renders empty post content where there is no posts .
32
31
*
33
- * @see do_action('theme/index/post/content')
34
- * @uses resources/templates/partials/post/content-{format}.tpl.php
32
+ * @see resources/templates/index.tpl.php
35
33
*/
36
- function render_post_content ()
34
+ function render_empty_content ()
37
35
{
38
- template (['partials/post /content ' , get_post_format () ]);
36
+ template (['partials/index /content ' , ' none ' ]);
39
37
}
40
- add_action ('theme/single /content ' , 'Tonik\Theme\App\Structure\render_post_content ' );
38
+ add_action ('theme/index /content/none ' , 'Tonik\Theme\App\Structure\render_empty_content ' );
41
39
42
40
/**
43
- * Renders empty post content where there is no posts .
41
+ * Renders post contents by its formats .
44
42
*
45
- * @see do_action('theme/index/content/none')
46
- * @uses resources/templates/partials/index/content-none.tpl.php
43
+ * @see resources/templates/single.tpl.php
47
44
*/
48
- function render_empty_content ()
45
+ function render_post_content ()
49
46
{
50
- template (['partials/index /content ' , ' none ' ]);
47
+ template (['partials/post /content ' , get_post_format () ]);
51
48
}
52
- add_action ('theme/index /content/none ' , 'Tonik\Theme\App\Structure\render_empty_content ' );
49
+ add_action ('theme/single /content ' , 'Tonik\Theme\App\Structure\render_post_content ' );
53
50
54
51
/**
55
52
* Renders sidebar content.
56
53
*
57
- * @see do_action('theme/index/sidebar')
58
- * @see do_action('theme/single/sidebar')
59
54
* @uses resources/templates/partials/sidebar.tpl.php
55
+ * @see resources/templates/index.tpl.php
56
+ * @see resources/templates/single.tpl.php
60
57
*/
61
58
function render_sidebar ()
62
59
{
@@ -68,8 +65,8 @@ function render_sidebar()
68
65
/**
69
66
* Renders [button] shortcode after homepage content.
70
67
*
71
- * @see do_action('theme/header/end')
72
68
* @uses resources/templates/shortcodes/button.tpl.php
69
+ * @see resources/templates/partials/header.tpl.php
73
70
*/
74
71
function render_documentation_button ()
75
72
{
0 commit comments