theme.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. include("themes/_base/theme.php");
  3. include("themes/" . THEME . "/theme.php");
  4. function index_start($index_type, $arg) {
  5. $fun = THEME . "_index_start";
  6. if(!function_exists($fun)) {
  7. return base_index_start($index_type, $arg);
  8. }
  9. return $fun($index_type, $arg);
  10. }
  11. function index_no_content($index_type, $arg) {
  12. $fun = THEME . "_index_no_content";
  13. if(!function_exists($fun)) {
  14. return base_index_no_content($index_type, $arg);
  15. }
  16. return $fun($index_type, $arg);
  17. }
  18. function index_listing($ppub, $url) {
  19. $fun = THEME . "_index_listing";
  20. if(!function_exists($fun)) {
  21. return base_index_listing($ppub, $url);
  22. }
  23. return $fun($ppub, $url);
  24. }
  25. function index_end() {
  26. $fun = THEME . "_index_end";
  27. if(!function_exists($fun)) {
  28. return base_index_end();
  29. }
  30. return $fun();
  31. }
  32. function rss_start($index_type, $arg) {
  33. $fun = THEME . "_rss_start";
  34. if(!function_exists($fun)) {
  35. return base_rss_start($index_type, $arg);
  36. }
  37. return $fun($index_type, $arg);
  38. }
  39. function rss_listing($ppub, $url) {
  40. $fun = THEME . "_rss_listing";
  41. if(!function_exists($fun)) {
  42. return base_rss_listing($ppub, $url);
  43. }
  44. return $fun($ppub, $url);
  45. }
  46. function rss_end() {
  47. $fun = THEME . "_rss_end";
  48. if(!function_exists($fun)) {
  49. return base_rss_end();
  50. }
  51. return $fun();
  52. }
  53. function content_start($ppub, $path) {
  54. $fun = THEME . "_content_start";
  55. if(!function_exists($fun)) {
  56. return base_content_start($ppub, $path);
  57. }
  58. return $fun($ppub, $path);
  59. }
  60. function content_html($content) {
  61. $fun = THEME . "_content_html";
  62. if(!function_exists($fun)) {
  63. return base_content_html($content);
  64. }
  65. return $fun($content);
  66. }
  67. function content_end($ppub) {
  68. $fun = THEME . "_content_end";
  69. if(!function_exists($fun)) {
  70. return base_content_end($ppub);
  71. }
  72. return $fun($ppub);
  73. }
  74. function video_start($ppub, $path, $video) {
  75. $fun = THEME . "_video_start";
  76. if(!function_exists($fun)) {
  77. return base_video_start($ppub, $path, $video);
  78. }
  79. return $fun($ppub, $path, $video);
  80. }
  81. function video_html($content) {
  82. $fun = THEME . "_video_html";
  83. if(!function_exists($fun)) {
  84. return base_video_html($content);
  85. }
  86. return $fun($content);
  87. }
  88. function video_end($ppub) {
  89. $fun = THEME . "_video_end";
  90. if(!function_exists($fun)) {
  91. return base_video_end($ppub);
  92. }
  93. return $fun($ppub, $path);
  94. }
  95. ?>