summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
AgeCommit message (Collapse)Author
2010-10-14fix copy-and-paste error in javascript url creationEvan Prodromou
2010-10-14correctly use sslserver if it is setEvan Prodromou
2010-10-14use HTTPS for scripts and stylesheets if the current page is HTTPSEvan Prodromou
2010-10-14show HTTPS urls for JavaScript if HTTPS used for pageEvan Prodromou
2010-09-12Update incomplete documentation.Siebrand Mazeland
2010-04-10Add translator documentation for a few filesSiebrand Mazeland
* added a few XXX (that's StatusNet for FIXME, right?) ** proposing de-duplication of a message appearing ~50 times ** marking bad pagination implementation * moved the TRANS: comments in action.php down to exactly before the line in which the message appears. Otherwise gettext does not put them in the pot file * fixed a XXX in action.php removing double spaces
2010-02-17htmloutputter->script() special cases src's that begin with plugin/ or ↵Craig Andrews
local/ so that plugins don't need to include common_path() in every call to $action->script() Adjust plugins to not call common_path() when it's not necessary Fix minify plugin
2010-02-17parse_url returns an associative array - not an objectCraig Andrews
2010-02-11put Javascript files under SSLEvan Prodromou
2010-01-27Optionally set a separate Javascript server and pathEvan Prodromou
We have about 10-12 JavaScript pages per Web page. They usually are based on the same server as the Web pages, but since they're static files, it makes sense to offload them to a lite server that handles static files well. This commit lets you set a separate Javascript server and path for the default Javascript code in StatusNet. Squashed commit of the following: commit 139d1622fdafe5ad00c820224416d9021efc3234 Author: Evan Prodromou <evan@status.net> Date: Wed Jan 27 11:30:24 2010 -0500 modules that call htmloutputter::script() don't prescribe js/ path commit c6ca3174af73efed55eaed5ff1e2a3bdc77d2d87 Author: Evan Prodromou <evan@status.net> Date: Wed Jan 27 11:28:07 2010 -0500 configurable server and path for javascript files
2010-01-06The structure return by parse_url is an associative array, not an object.Craig Andrews
2009-12-05Add configuration option to toggle the indenting of the output HTML. ↵Craig Andrews
Defaults to indent enabled.
2009-12-04Append the StatusNet version to all local, static CSS referencesCraig Andrews
2009-12-04Use inlineScript() instead of element() to write inline javascriptCraig Andrews
2009-12-04Add style function to output style() tagsCraig Andrews
Add 2 new events: StartStyleElement and EndStyleElement
2009-12-04Add 2 new events: StartInlineScriptElement and EndInlineScriptElementCraig Andrews
2009-12-04only write the javascript CDATA blocks if the type is javascript (it's not ↵Craig Andrews
the correct syntax for other languages)
2009-12-04Merge commit 'refs/merge-requests/108' of ↵Brion Vibber
git://gitorious.org/statusnet/mainline into 0.9.x
2009-12-04utility function to output inline JavaScriptEvan Prodromou
2009-12-04Add 4 new events: StartCssLinkElement, EndCssLinkElement, ↵Craig Andrews
StartScriptElement, EndScriptElement
2009-11-20Disable XHTML Content-Type negotiation... You've foiled our plans for the ↵Brion Vibber
last time! XHTML mode breaks a lot of JS and has been causing trouble for Safari and Chrome, especially with the fancier new UI-side plugins like realtime and maps.
2009-11-09Revert "Remove more contractions"Brion Vibber
This reverts commit 5ab709b73977131813884558bf56d97172a7aa26. Missed this one yesterday...
2009-11-08Remove more contractionsSiebrand Mazeland
* doesn't * won't * isn't * don't
2009-11-08Restructure theme.php to define a class ThemeEvan Prodromou
For various reasons, it's nicer to have a class for theme-file paths and such. So, I've rewritten the code for determining the locations of theme files to be more OOPy. I changed all the uses of the two functions in the module (theme_file and theme_path) to use Theme::file and Theme::path respectively. I've also removed the code in common.php that require's the module; using a class means we can autoload it instead.
2009-10-04Merge branch '0.8.x' into 0.9.xEvan Prodromou
Conflicts: classes/Profile.php
2009-10-03Using CDATA for autofocus scriptSarven Capadisli
2009-10-01Revert "Outputting UTF-8 charset in document header irrespective of mimetype."Sarven Capadisli
This reverts commit 353f58c23149159306131b0819de713da6b69464. Even though outputting UTF-8 by default at all times is a good thing, it shouldn't be forced in startHTML().
2009-09-30Better check to see if the XML prolog should be outputted for XMLSarven Capadisli
documents i.e., if best mimetype is */*xml, then use the XML prolog.
2009-09-30Outputting UTF-8 charset in document header irrespective of mimetype.Sarven Capadisli
2009-09-30Switched Doctype to XHTML 1.0 Strict (which best reflects the currentSarven Capadisli
grammar in use)
2009-09-03Created autofocus method to give focus to an element (primarily a formSarven Capadisli
control) on page onload. Updated some of the pages to use autofocus.
2009-08-26define LACONICA and accept LACONICA for backwards compatibilityEvan Prodromou
2009-08-25change LACONICA to STATUSNETEvan Prodromou
2009-08-25change controlyourself.ca to status.netEvan Prodromou
2009-08-25change laconi.ca to status.netEvan Prodromou
2009-08-25change Laconica and Control Yourself to StatusNet in PHP filesEvan Prodromou
2009-08-11two variables $public and $system were generating notices in ↵Brett Taylor
lib/htmloutputter.php, removed because these two parameters are null by default.
2009-08-08Fix logic that determines if a URL is relative or absolute in script() and ↵Craig Andrews
cssLink()
2009-08-06remove redundant/unnecessary linesCraig Andrews
2009-08-06Check theme first for CSS files, then use the non-theme path.Craig Andrews
Fixes CSS links in plugins
2009-08-06Make 2nd and 3rd cssLink() arguments optionalCraig Andrews
2009-08-05Handle relative and absolute url parameters to script() and cssLink()Craig Andrews
2009-08-05Added cssLink() and script() functions to htmloutputterCraig Andrews
2009-08-05Accidentally caused the DOCTYPE to never be rendered - fix that.Craig Andrews
2009-08-05Don't start HTML responses with <?xml if the document is served as text/html.Craig Andrews
Starting a text/html mime type document with <?xml causes some browsers (previous version of Opera and IE) to switch to Quirks Mode.
2009-08-05Switch DOCTYPE's to the XHTML 5 DOCTYPECraig Andrews
2009-02-11change htmloutputter to use exception instead of common_user_errorEvan Prodromou
2009-02-11Handle DB_DataObject errors betterEvan Prodromou
We try to handle DB_DataObject errors a little bit better. Previously, they just spit out a cryptic string to the browser with a suggestion to turn on debugging (not a good idea!). So, we catch the error, write the full error message to the log, and then tell users that the can contact the admins if they need to.
2009-02-09trac #1160 fix dropdown xmloutput function for the selected attribute and ↵Robin Millette
fix newmessage auto-selected dropdown.
2009-02-03trac533 Removed redundant calls to htmlspecialcharacters().Zach Copley
XMLWriter::writeAttribute() already takes care of the escaping for us, although that doesn't seem to be well documented.