summaryrefslogtreecommitdiff
path: root/lib/htmloutputter.php
AgeCommit message (Collapse)Author
2010-04-26Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.xEvan Prodromou
2010-04-26Give users more control over URL shorteningEvan Prodromou
Users and administrators can set how long an URL can be before it's shortened, and how long a notice can be before all its URLs are shortened. They can also turn off shortening altogether. Squashed commit of the following: commit d136b390115829c4391b3666bb1967f190a0de35 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:39:00 2010 -0400 use site and user settings to determine when to shorten URLs commit 1e1c851ff3cb2da5e0dc3a0b06239a9d9c618488 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:38:40 2010 -0400 add a method to force shortening URLs commit 4d29ca0b91201f6df42940297ed5b64b070efe49 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:37:41 2010 -0400 static method for getting best URL shortening service commit a9c6a3bace0af44bcf38d1c790425a7be9c72147 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:37:11 2010 -0400 allow 0 in numeric entries in othersettings commit 767ff2f7ecfd7e76e8418fc79d45e61898f09382 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:36:46 2010 -0400 allow 0 or blank string in inputs commit 1e21af42a685f600f4a53f49a194013e78b12f20 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:01:11 2010 -0400 add more URL-shortening options to othersettings commit 869a6be0f5779aff69018d02f9ac0273946040d9 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:22:51 2010 -0400 move url shortener superclass to lib from plugin commit 9c0c9863d532942b99184f14e923fc3c050f8177 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:20:28 2010 -0400 documentation and whitespace on UrlShortenerPlugin commit 7a1dd5798f0fcf2c03d1257a18ddcb9008879de0 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:05:46 2010 -0400 add defaults for URL shortening commit d259c37ad231ca0010c60e5cfd397bb1732874a4 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 13:40:10 2010 -0400 Add User_urlshortener_prefs Add a table for URL shortener prefs, a corresponding class, and the correct mumbo-jumbo in statusnet.ini to make everything work.
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.
2009-01-22New HTTP error message classes for uiredesignZach Copley
2009-01-17Update. Added separate $title param for input submitsarven
2009-01-17Added @title to input submit (reusing $label value until we reallysarven
need to make it custom)