Author: tkoomzaaskz Date: 2010-01-24 01:30:48 +0100 (Sun, 24 Jan 2010) New Revision: 27104
Added: plugins/tdCorePlugin/trunk/lib/tdTools.class.php plugins/tdCorePlugin/trunk/web/css/td_admin.css Removed: plugins/tdCorePlugin/trunk/web/css/td_core_icons.css Modified: plugins/tdCorePlugin/trunk/lib/tdRandomDataGenerator.class.php plugins/tdCorePlugin/trunk/package.xml Log: [td][core] libs updated, css updated - preparing for 0.1.8 release Modified: plugins/tdCorePlugin/trunk/lib/tdRandomDataGenerator.class.php =================================================================== --- plugins/tdCorePlugin/trunk/lib/tdRandomDataGenerator.class.php 2010-01-23 22:34:05 UTC (rev 27103) +++ plugins/tdCorePlugin/trunk/lib/tdRandomDataGenerator.class.php 2010-01-24 00:30:48 UTC (rev 27104) @@ -8,8 +8,8 @@ * @package tdCorePlugin * @author Tomasz Ducin <[email protected]> */ -class tdRandomDataGenerator { - +class tdRandomDataGenerator +{ /** * All letters. * Added: plugins/tdCorePlugin/trunk/lib/tdTools.class.php =================================================================== --- plugins/tdCorePlugin/trunk/lib/tdTools.class.php (rev 0) +++ plugins/tdCorePlugin/trunk/lib/tdTools.class.php 2010-01-24 00:30:48 UTC (rev 27104) @@ -0,0 +1,24 @@ +<?php + +/** + * tdTools class. + * + * Tools used all over TD CMF. + * + * @package tdCorePlugin + * @author Tomasz Ducin <[email protected]> + */ +class tdTools +{ + /** + * Returns mb shortened string to a given limit + * + * @param String $content - raw string value to shorten + * @param Integer $limit - limited length of shortened string + * @return String - mb shortened string + */ + public static function getMbShortenedString($content, $limit) + { + return mb_strlen($content) > $limit ? mb_substr($content, 0, $limit).'...' : $content; + } +} Modified: plugins/tdCorePlugin/trunk/package.xml =================================================================== --- plugins/tdCorePlugin/trunk/package.xml 2010-01-23 22:34:05 UTC (rev 27103) +++ plugins/tdCorePlugin/trunk/package.xml 2010-01-24 00:30:48 UTC (rev 27104) @@ -10,7 +10,7 @@ <email>[email protected]</email> <active>yes</active> </lead> - <date>2010-01-23</date> + <date>2010-01-24</date> <time>11:00:00</time> <version> <release>0.1.8</release> @@ -28,6 +28,7 @@ <dir name="lib"> <file name="tdRandomDataGenerator.class.php" role="data" /> + <file name="tdTools.class.php" role="data" /> </dir> <dir name="web"> @@ -102,7 +103,7 @@ </dir> </dir> <dir name="css"> - <file name="td_core_icons.css" role="data" /> + <file name="td_admin.css" role="data" /> </dir> </dir> @@ -144,9 +145,11 @@ <api>beta</api> </stability> <license uri="http://www.symfony-project.org/license">MIT license</license> - <date>2010-01-23</date> + <date>2010-01-24</date> <license>MIT</license> <notes> + * tools class added + * css improved * icons added </notes> </release> Copied: plugins/tdCorePlugin/trunk/web/css/td_admin.css (from rev 27095, plugins/tdCorePlugin/trunk/web/css/td_core_icons.css) =================================================================== --- plugins/tdCorePlugin/trunk/web/css/td_admin.css (rev 0) +++ plugins/tdCorePlugin/trunk/web/css/td_admin.css 2010-01-24 00:30:48 UTC (rev 27104) @@ -0,0 +1,39 @@ +/*================== admin : custom action icons ===================*/ + +#sf_admin_container ul li.sf_admin_action_activate a +{ + background: url(/tdCorePlugin/images/icons/small/activate.png) no-repeat 0 0; +} + +#sf_admin_container ul li.sf_admin_action_deactivate a +{ + background: url(/tdCorePlugin/images/icons/small/deactivate.png) no-repeat 0 0; +} + +/*================== admin : bordered images =======================*/ + +.sf_admin_list img.border { + border: 1px solid black; + margin: 3px; +} + +/*================== admin : text boxes ============================*/ + +.text_box { + text-align: justify; +} + +.odd .text_box { + border: 2px dashed #ddd; + background-color: #eee; + padding: 5px; + margin: 5px; +} + +.even .text_box { + border: 2px dashed #ccc; + background-color: #ddd; + padding: 5px; + margin: 5px; +} + Deleted: plugins/tdCorePlugin/trunk/web/css/td_core_icons.css =================================================================== --- plugins/tdCorePlugin/trunk/web/css/td_core_icons.css 2010-01-23 22:34:05 UTC (rev 27103) +++ plugins/tdCorePlugin/trunk/web/css/td_core_icons.css 2010-01-24 00:30:48 UTC (rev 27104) @@ -1,11 +0,0 @@ -/*================== admin : custom action icons ===================*/ - -#sf_admin_container ul li.sf_admin_action_activate a -{ - background: url(/tdCorePlugin/images/icons/small/activate.png) no-repeat 0 0; -} - -#sf_admin_container ul li.sf_admin_action_deactivate a -{ - background: url(/tdCorePlugin/images/icons/small/deactivate.png) no-repeat 0 0; -} -- You received this message because you are subscribed to the Google Groups "symfony SVN" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-svn?hl=en.
