{"id":15,"date":"2006-03-15T15:41:21","date_gmt":"2006-03-15T14:41:21","guid":{"rendered":"http:\/\/new.tom.scholten.nu\/weblog\/?page_id=15"},"modified":"2008-04-01T20:58:33","modified_gmt":"2008-04-01T19:58:33","slug":"cms-framework","status":"publish","type":"page","link":"https:\/\/tom.scholten.nu\/weblog\/archief\/cms-framework","title":{"rendered":"CMS Framework"},"content":{"rendered":"<table class=\"border\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td class=\"caption\" colspan=\"3\">Content Management Framework<\/td>\n<\/tr>\n<tr>\n<td class=\"shadow_left\"><img loading=\"lazy\" decoding=\"async\" style=\"display: block\" src=\"http:\/\/tom.scholten.nu\/e107_themes\/soar\/images\/blank.gif\" alt=\"\" width=\"7\" height=\"21\" \/><\/td>\n<td class=\"shadow_middle\">\u00c2\u00a0<\/td>\n<td class=\"shadow_right\"><img loading=\"lazy\" decoding=\"async\" style=\"display: block\" src=\"http:\/\/tom.scholten.nu\/e107_themes\/soar\/images\/blank.gif\" alt=\"\" width=\"7\" height=\"21\" \/><\/td>\n<\/tr>\n<tr>\n<td class=\"bodytable\" colspan=\"3\">\n<h2>WorkInProgress<\/h2>\n<h3>w.i.p. document<\/h3>\n<h4>Description<\/h4>\n<p>The layout of www.Wilhelmina.org (with tables) as visible on their website since 1998 was, being a table, not friendly to edit in any way. Due to webteam extensions in 2003\/2004 a decision was made to create a class which creates the final HTML code, leaving &#8216;simpler&#8217; code to the users;<br \/>\nExample at <a href=\"http:\/\/www.wilhelmina.org\/?page=siteinfo\">http:\/\/www.wilhelmina.org\/?page=siteinfo<\/a><\/p>\n<h4>PHP-class<\/h4>\n<p><tt>require_once (\"functions.php\");<\/tt><\/p>\n<p><tt>\/*<br \/>\n# Class w16Page<br \/>\n#<br \/>\n# This class will build the main page based upon several building blocks<br \/>\n#<br \/>\n*\/<\/tt><\/p>\n<p><tt>class w16Page {<\/tt><\/p>\n<p><tt>\/*<br \/>\n# Function BuiltPage ( location , pagename)<br \/>\n#<br \/>\n# This function will read all set blocks from a src-file<br \/>\n# and create a page from it, you can set the location optionally<br \/>\n# (defaulting to \/src\/)<br \/>\n#<br \/>\n*\/<br \/>\nfunction BuiltPage ( $pagename, $location=\"src\" ) {<\/tt><\/p>\n<p><tt>\/* CODE NOT SHOWN *\/<\/tt><\/p>\n<p><tt>}<\/tt><\/p>\n<p><tt>function AddFooter ($link,$data) {<br \/>\nglobal $w16_info;<br \/>\n$result='<a href=\"http:\/\/tom.scholten.nu\/?page='.$link.'\">'.$data.'<\/a>';<br \/>\nif ( !empty($w16_info['footer']) ) { $w16_info['footer'].= ' - '.$result; }<br \/>\nelse { $w16_info['footer'] = $result; }<br \/>\n}<\/tt><\/p>\n<p><tt>function fullBlock ($data,$table=0,$type=\"\") {<br \/>\nif ( $table != 0 ) {<br \/>\n$table_start = \"<\/tt><\/p>\n<p><tt>\".$data.\"<\/tt><\/p>\n<table border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td>\u00c2\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Content Management Framework \u00c2\u00a0 WorkInProgress w.i.p. document Description The layout of www.Wilhelmina.org (with tables) as visible on their website since 1998 was, being a table,<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":297,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-15","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/pages\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":0,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/pages\/15\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/pages\/297"}],"wp:attachment":[{"href":"https:\/\/tom.scholten.nu\/weblog\/wp-json\/wp\/v2\/media?parent=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}