Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 670

Warning: Invalid argument supplied for foreach() in /home/socialne/public_html/wiki/includes/MagicWord.php on line 671

Warning: preg_replace() [function.preg-replace]: Compilation failed: group name must start with a non-digit at offset 4 in /home/socialne/public_html/wiki/includes/MagicWord.php on line 675
Devdoc:Theme Development - Social Networking Software - Online Social Network Software
From Social Networking Software - Online Social Network Software
Jump to: navigation, search
(main_home.php)
(Recommended theme files)
Line 75: Line 75:
  ?>
  ?>
-
Above code shows that the task of rendering the common elements is done automatically, provided that they are defined at their respective places. So everything is reduced to taking care of four additional theme files as following:
+
Above code shows that the task of rendering the common elements is automatic, provided that these common elements are defined in their respective theme files. So we have to take care of four additional theme files.
 +
*header.php
 +
*footer.php
 +
*left.php
 +
*left_community.php
===header.php===
===header.php===
-
Header is a global element. Header covers banner and menu. Banner in turn includes site logo too and so requisite HTML must be taken care of.
+
Header is a global element. Header covers  
 +
*Everything till opening BODY html tag.
 +
**includes the DOCTYPE declaration, opening HTML tag and HEAD section.
 +
*HTML of banner.
 +
**Banner in turn includes site logo too.
 +
*HTML of menu bar.
Minimal header.php has data for {HEADER_HTML} defined.
Minimal header.php has data for {HEADER_HTML} defined.
Line 96: Line 105:
         <ul id="menu">
         <ul id="menu">
-
              
+
             <li><!-- MENU ITEM 1  --></li>
-
             <li><!-- MENU ITEMS   --></li>
+
             <li><!-- MENU ITEM 2   --></li>
-
 
+
            <li><!-- MENU ITEM 3    --></li>
         </ul>
         </ul>
         ';
         ';
Line 106: Line 115:
===footer.php===
===footer.php===
-
Footer is also a global element which includes links to copyright, social media sharing, RSS feeds, Disclaimer, Privacy Policy and sometimes sitemap resides in footer.
+
Footer is also a global element which may include:
 +
 
 +
*Link to copyright.
 +
*Social media sharing.
 +
*RSS feeds.
 +
*Link to Disclaimer.
 +
*Privacy Policy.
 +
*And sometimes small sitemap.
 +
 
 +
Minimal footer.php has data for {FOOTER_HTML} defined.
 +
 
 +
<pre>
 +
<?php
 +
    $footer_html_data = '
 +
        <div id="footer">
 +
            &copy; <?php echo date('Y') ?>, by <a href="http://www.mysocialnetwork.com">My Social Network</a>
 +
            <!-- Social Media Links -->
 +
            <!-- RSS publishing link -->
 +
        </div>
 +
    </div> <!-- END PAGE WRAPPER -->
 +
</body>
 +
</html>
 +
?>
 +
</pre>
===left.php===
===left.php===

Revision as of 07:05, 20 July 2011

Main Page
About SNS
Developer Documentation
Personal tools