File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * @author Pierre-Henry Soria
44 * @email pierrehs@hotmail.com
55 * @link http://github.com/pH-7/Nav-Doc-Script-V2
6- * @copyright (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * @copyright (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
88 */
99
Original file line number Diff line number Diff line change 33 * @author Pierre-Henry Soria
44 * @email pierrehs@hotmail.com
55 * @link http://github.com/pH-7/Nav-Doc-Script-V2
6- * @copyright (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * @copyright (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
88 */
99
Original file line number Diff line number Diff line change 33 * @author Pierre-Henry Soria
44 * @email pierrehs@hotmail.com
55 * @link http://github.com/pH-7/Nav-Doc-Script-V2
6- * @copyright (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * @copyright (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
88 */
99
Original file line number Diff line number Diff line change 33 * @author Pierre-Henry Soria
44 * @email pierrehs@hotmail.com
55 * @link http://github.com/pH-7/Nav-Doc-Script-V2
6- * @copyright (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * @copyright (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
88 */
99
@@ -56,6 +56,7 @@ function parse_var($sContent)
5656 $ sContent = str_replace ('{page_name} ' , get_page_name (), $ sContent );
5757 $ sContent = str_replace ('{menu_links} ' , get_links_html (), $ sContent );
5858 $ sContent = str_replace ('{menu_langs} ' , get_langs_html (), $ sContent );
59+ $ sContent = str_replace ('{year} ' , date ('Y ' ), $ sContent );
5960
6061 return $ sContent ;
6162}
@@ -151,6 +152,7 @@ function set_lang()
151152/**
152153 * Escape string with htmlspecialchars() PHP function.
153154 *
155+ * @param string $sVal
154156 * @return string
155157 */
156158function escape ($ sVal )
Original file line number Diff line number Diff line change 33 * @author Pierre-Henry Soria
44 * @email pierrehs@hotmail.com
55 * @link http://github.com/pH-7/Nav-Doc-Script-V2
6- * @copyright (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * @copyright (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * @license CC-BY - http://creativecommons.org/licenses/by/3.0/
88 */
99
1919ob_start ();
2020
2121get_page (ROOT_PATH . 'themes/ ' . TPL . '/tpl/header.tpl ' );
22+ get_page (ROOT_PATH . 'themes/ ' . TPL . '/tpl/ads/header.tpl ' );
2223
2324if (!empty ($ _GET ['p ' ]))
2425{
3132 get_page (ROOT_PATH . 'themes/ ' . TPL . '/tpl/menu.tpl ' );
3233}
3334
35+ get_page (ROOT_PATH . 'themes/ ' . TPL . '/tpl/ads/footer.tpl ' );
3436get_page (ROOT_PATH . 'themes/ ' . TPL . '/tpl/footer.tpl ' );
3537
3638ob_end_flush ();
Original file line number Diff line number Diff line change 33 * Description: Loading pages in Ajax with HTML5 pushState.
44 *
55 * Author: Pierre-Henry Soria <ph7software@gmail.com>
6- * Copyright: (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
6+ * Copyright: (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
77 * License: GNU General Public License <http://www.gnu.org/licenses/gpl.html>
88 * Version: 1.3
99 */
Original file line number Diff line number Diff line change 11/*
22 * Author: Pierre-Henry Soria <ph7software@gmail.com>
3- * Copyright: (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
3+ * Copyright: (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
44 * License: GNU General Public License <http://www.gnu.org/licenses/gpl.html>
55 */
66
Original file line number Diff line number Diff line change 11/*
22 * Author: Pierre-Henry Soria <ph7software@gmail.com>
3- * Copyright: (c) 2012-2013 , Pierre-Henry Soria. All Rights Reserved.
3+ * Copyright: (c) 2012-2014 , Pierre-Henry Soria. All Rights Reserved.
44 * License: GNU General Public License <http://www.gnu.org/licenses/gpl.html>
55 */
66
Original file line number Diff line number Diff line change 1+ <!-- Your AD here -->
Original file line number Diff line number Diff line change 1+ <!-- Your AD here -->
You can’t perform that action at this time.
0 commit comments