Thread: [Phphtmllib-devel] SF.net SVN: phphtmllib:[3206] trunk/open2300/lib/core/page/open2300Page.inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-01-26 04:19:04
|
Revision: 3206 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3206&view=rev Author: hemna Date: 2009-01-26 04:19:01 +0000 (Mon, 26 Jan 2009) Log Message: ----------- missing , Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 04:16:39 UTC (rev 3205) +++ trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 04:19:01 UTC (rev 3206) @@ -212,10 +212,11 @@ $p->set_tag_attributes( array("align" => "center") ); $footer_div->add($p); + return Container::factory( - html_comment( "FOOTER BLOCK BEGIN") - $footer_div, - html_comment( "FOOTER BLOCK END")); + html_comment( "FOOTER BLOCK BEGIN"), + $footer_div, + html_comment( "FOOTER BLOCK END")); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-26 18:41:04
|
Revision: 3209 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3209&view=rev Author: hemna Date: 2009-01-26 18:40:55 +0000 (Mon, 26 Jan 2009) Log Message: ----------- subhead Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 18:38:55 UTC (rev 3208) +++ trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 18:40:55 UTC (rev 3209) @@ -122,7 +122,8 @@ protected function header_block() { $header = new DIVtag(array('id' => 'pageheader')); - $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station.") ); + $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station"), + new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA") ); return $header; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-11-24 05:21:33
|
Revision: 3285 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3285&view=rev Author: hemna Date: 2009-11-24 05:21:25 +0000 (Tue, 24 Nov 2009) Log Message: ----------- use google's cached version of prototype/scriptaculous Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2009-11-24 05:20:42 UTC (rev 3284) +++ trunk/open2300/lib/core/page/open2300Page.inc 2009-11-24 05:21:25 UTC (rev 3285) @@ -113,8 +113,10 @@ $this->add_css_link("/css/main.css"); $this->add_css_link("/css/fonts.css"); - $this->add_js_link( '/js/scriptaculous-js-1.7.0/lib/prototype.js' ); - $this->add_js_link( '/js/scriptaculous-js-1.7.0/src/scriptaculous.js' ); + //$this->add_js_link( '/js/scriptaculous-js-1.7.0/lib/prototype.js' ); + //$this->add_js_link( '/js/scriptaculous-js-1.7.0/src/scriptaculous.js' ); + $this->add_js_link( 'http://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js' ); + $this->add_js_link( 'http://ajax.googleapis.com/ajax/libs/scriptaculous/1/scriptaculous.js' ); $this->add_js_link( '/js/ajax.js' ); $this->add_js_link( '/js/main.js' ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-11-27 16:41:42
|
Revision: 3307 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3307&view=rev Author: hemna Date: 2009-11-27 16:41:32 +0000 (Fri, 27 Nov 2009) Log Message: ----------- added tracking code Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2009-11-26 20:24:00 UTC (rev 3306) +++ trunk/open2300/lib/core/page/open2300Page.inc 2009-11-27 16:41:32 UTC (rev 3307) @@ -169,6 +169,10 @@ $this->add( html_comment( "MAIN BODY BLOCK BEGIN") ); $this->add( $this->main_block() ); $this->add( html_comment( "MAIN BODY BLOCK END") ); + + $this->add( html_comment( "tracking code BEGIN")); + $this->add( $this->tracking_code() ); + $this->add( html_comment( "tracking code END")); } /** @@ -221,6 +225,29 @@ $footer_div, html_comment( "FOOTER BLOCK END")); } + + + + /** + * Add the piwik tracking js shite + * + */ + protected function tracking_code() { + $str = '<!-- Piwik --> +<script type="text/javascript"> +var pkBaseURL = (("https:" == document.location.protocol) ? "https://wx.hemna.com/piwik/" : "http://wx.hemna.com/piwik/"); +document.write(unescape("%3Cscript src=\'" + pkBaseURL + "piwik.js\' type=\'text/javascript\'%3E%3C/script%3E")); +</script><script type="text/javascript"> +try { +var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); +piwikTracker.trackPageView(); +piwikTracker.enableLinkTracking(); +} catch( err ) {} +</script><noscript><p><img src="http://wx.hemna.com/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript> +<!-- End Piwik Tag -->'; + + return $str; + } /***********************/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-22 08:11:49
|
Revision: 3358 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3358&view=rev Author: hemna Date: 2010-02-22 08:11:42 +0000 (Mon, 22 Feb 2010) Log Message: ----------- menu Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-22 08:11:24 UTC (rev 3357) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-22 08:11:42 UTC (rev 3358) @@ -112,6 +112,7 @@ protected function head_content() { $this->add_css_link("/css/main.css"); $this->add_css_link("/css/fonts.css"); + $this->add_css_link("/css/menu.css"); //$this->add_js_link( '/js/scriptaculous-js-1.7.0/lib/prototype.js' ); //$this->add_js_link( '/js/scriptaculous-js-1.7.0/src/scriptaculous.js' ); @@ -125,10 +126,30 @@ $header = new DIVtag(array('id' => 'pageheader')); $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station"), - new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA") ); + new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA"), + new DIVtag(array('id' => self::ID_MENU), $this->menu_block()) ); + return $header; } + + /** + * Returns menu widget object + * to use + * + * @return MenuBarWidget + */ + protected protected function menu_block() { + $div = new DIVtag(array('id' => 'idMenuItems')); + $ul = ULtag::factory( + LItag::factory(Atag::factory(RequestBuilder::build_url('HomePage'), 'Home')), + LItag::factory(Atag::factory(RequestBuilder::build_url('WxDate'), 'Old Data')) + ); + $div->add($ul); + $div->set_collapse(); + return $div; + } + /** * We override this method to automatically * break up the main block into a @@ -139,7 +160,7 @@ protected function main_block() { $main = new DIVtag(); - $main->set_id("maincontent"); + $main->set_id(self::ID_BODY); $table = TABLEtag::factory("100%", 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:50:33
|
Revision: 3441 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3441&view=rev Author: hemna Date: 2010-06-15 17:50:27 +0000 (Tue, 15 Jun 2010) Log Message: ----------- fixed issue Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-06-15 17:49:47 UTC (rev 3440) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-06-15 17:50:27 UTC (rev 3441) @@ -168,7 +168,7 @@ * * @return MenuBarWidget */ - protected protected function menu_block() { + protected function menu_block() { $div = new DIVtag(array('id' => 'idMenuItems')); $ul = ULtag::factory( LItag::factory(Atag::factory(RequestBuilder::build_url('HomePage'), 'Home')), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-07-14 19:25:44
|
Revision: 3536 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3536&view=rev Author: hemna Date: 2010-07-14 19:25:38 +0000 (Wed, 14 Jul 2010) Log Message: ----------- added title Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-07-14 19:25:23 UTC (rev 3535) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-07-14 19:25:38 UTC (rev 3536) @@ -285,6 +285,11 @@ * */ protected function tracking_code() { + $target = Request::singleton()->get("target"); + if (is_null($target) || empty($target)) { + $target = "home"; + } + $str = '<!-- Piwik --> <script type="text/javascript"> var pkBaseURL = (("https:" == document.location.protocol) ? "https://wx.hemna.com/piwik/" : "http://wx.hemna.com/piwik/"); @@ -294,10 +299,12 @@ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); +piwikTracker.setDocumentTitle("'.$target.'"); } catch( err ) {} </script><noscript><p><img src="http://wx.hemna.com/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript> <!-- End Piwik Tag -->'; - + + return $str; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |