The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to port template to theme?
#4
csacsa Wrote:Sorry but i not so good at this yet and i not really understand the wiki so that is why i would need a step by step description for dummies.
Let´s say i find a theme and would like to bring it in to GetSimple. How to do so the theme looks exactly the same i GS?
  • Create a directory /theme/MyThemeName
  • Copy all files of the template including subdirectories into this directory
  • Make sure this directory has a .htaccess file with content Allow from all.
You should now be able to see the original template by directly opening the HTML from explorer (or similar) or entering the URL [url]http://my.server/theme/MyThemeName/nameofthehtml.html[/url]
  • rename the HTML file to template.php
  • replace <title>...</title> with <title><?php get_page_clean_title(); ?></title>.
  • assuming the template has a menu in the form <ul...><li>Item 1</li><li>...</li>...</ul>, replace this with <ul...><?php get_navigation(return_page_slug()); ?></ul>.
  • replace the example content, which should be replaced with the actual page content, with <?php get_page_content(); ?>

Optionally use additional functions like the following instead of the example content of the template:
  • get_header()
  • get_footer()
  • get_component()
(see wiki for more information).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
How to port template to theme? - by csacsa - 2011-11-15, 20:48:25
How to port template to theme? - by Connie - 2011-11-15, 21:31:52
How to port template to theme? - by csacsa - 2011-11-15, 21:57:02
How to port template to theme? - by mvlcek - 2011-11-16, 22:29:31
How to port template to theme? - by jlm - 2011-11-17, 04:51:32



Users browsing this thread: 1 Guest(s)