From: <var...@us...> - 2014-06-13 15:15:45
|
Revision: 8912 http://sourceforge.net/p/phpwiki/code/8912 Author: vargenau Date: 2014-06-13 15:15:35 +0000 (Fri, 13 Jun 2014) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/lib/plugin/DebugAuthInfo.php trunk/lib/plugin/NewPagesPerUser.php trunk/lib/plugin/OldStyleTable.php trunk/lib/plugin/PreferenceApp.php trunk/lib/plugin/RecentChanges.php trunk/lib/plugin/SemanticSearchAdvanced.php trunk/lib/plugin/TeX2png.php trunk/lib/plugin/WantedPagesOld.php trunk/lib/plugin/WikiAdminUtils.php trunk/lib/plugin/WikiPoll.php Modified: trunk/lib/plugin/DebugAuthInfo.php =================================================================== --- trunk/lib/plugin/DebugAuthInfo.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/DebugAuthInfo.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -161,7 +161,7 @@ $val = $heading; } } - $rows[] = HTML::tr(HTML::td(array('align' => 'right', + $rows[] = HTML::tr(HTML::td(array('class' => 'align-right', 'bgcolor' => '#ccc', 'style' => 'color:#000000'), HTML(HTML::raw(' '), $key, Modified: trunk/lib/plugin/NewPagesPerUser.php =================================================================== --- trunk/lib/plugin/NewPagesPerUser.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/NewPagesPerUser.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -96,7 +96,8 @@ $pages[$monthnum]['author'][$author]['pages'][] = $pagename; } $iter->free(); - $html = HTML::table(HTML::col(array('span' => 2, 'align' => 'left'))); + $html = HTML::table(HTML::col(array('span' => 2, + 'class' => 'align-left'))); $nbsp = HTML::raw(' '); krsort($pages); foreach ($pages as $monthname => $parr) { Modified: trunk/lib/plugin/OldStyleTable.php =================================================================== --- trunk/lib/plugin/OldStyleTable.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/OldStyleTable.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -131,11 +131,11 @@ $attr['rowspan'] = strlen($m[2]) + 1; if ($m[3] == '^') - $attr['align'] = 'center'; + $attr['class'] = 'align-center'; else if ($m[3] == '>') - $attr['align'] = 'right'; + $attr['class'] = 'align-right'; else - $attr['align'] = 'left'; + $attr['class'] = 'align-left'; $content = TransformInline($m[4], $basepage); Modified: trunk/lib/plugin/PreferenceApp.php =================================================================== --- trunk/lib/plugin/PreferenceApp.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/PreferenceApp.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -203,7 +203,7 @@ for ($i = 0; $i < count($pageids); $i++) { $total_cans = 0; for ($j = 0; $j < count($people); $j++) { - $td = HTML::td(array('align' => 'right')); + $td = HTML::td(array('class' => 'align-right')); $cans_per_soda = $peopleTotals[$people[$j]][$pageids[$i]]; $total_cans = $total_cans + $cans_per_soda; $outputArray[$people[$j]][$pageids[$i]] = $cans_per_soda; @@ -255,23 +255,23 @@ if ($total_voters == "") { $total_voters = "-"; } - $td = HTML::td(array('align' => 'right')); + $td = HTML::td(array('class' => 'align-right')); $td->pushContent($total_cans); $tr->pushContent($td); - $td = HTML::td(array('align' => 'right')); + $td = HTML::td(array('class' => 'align-right')); $td->pushContent($total_voters); $tr->pushContent($td); $table->pushContent($tr); } $tr = HTML::tr(); - $td = HTML::td(array('align' => 'left')); + $td = HTML::td(array('class' => 'align-left')); $td->pushContent(HTML::strong(_("Total Budget"))); $tr->pushContent($td); $cans_total = 0; $total_voters = 0; for ($i = 0; $i < count($people); $i++) { - $td = HTML::td(array('align' => 'right')); + $td = HTML::td(array('class' => 'align-right')); $cans_for_soda = 0; foreach ($pageids as $page) { $cans_for_soda = $cans_for_soda + $outputArray[$people[$i]][$page]; Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/RecentChanges.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -663,7 +663,7 @@ //logo click opens the HomePage in the main browser frame global $WikiTheme; $img = HTML::img(array('src' => $WikiTheme->getImageURL('logo'), - 'align' => 'right', + 'class' => 'align-right', 'style' => 'height:2.5ex' )); $linkurl = WikiLink(HOME_PAGE, false, $img); Modified: trunk/lib/plugin/SemanticSearchAdvanced.php =================================================================== --- trunk/lib/plugin/SemanticSearchAdvanced.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/SemanticSearchAdvanced.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -115,12 +115,12 @@ $instructions, HTML::br(), HTML::table(array('class' => 'fullwidth'), HTML::tr(HTML::td(_("Page Name")._(': '), $pagefilter), - HTML::td(array('align' => 'right'), + HTML::td(array('class' => 'align-right'), $help)), HTML::tr(HTML::td(array('colspan' => 2), $querybox))), HTML::br(), - HTML::div(array('align' => 'center'), $submit)); + HTML::div(array('class' => 'align-center'), $submit)); return $form; } Modified: trunk/lib/plugin/TeX2png.php =================================================================== --- trunk/lib/plugin/TeX2png.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/TeX2png.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -203,7 +203,7 @@ $html = HTML::img(array('class' => 'tex', 'src' => $url, 'alt' => $text)); - $html = HTML::div(array('align' => 'center'), $html); + $html = HTML::div(array('class' => 'align-center'), $html); break; default: break; Modified: trunk/lib/plugin/WantedPagesOld.php =================================================================== --- trunk/lib/plugin/WantedPagesOld.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/WantedPagesOld.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -120,7 +120,7 @@ // Enclose any FullTextSearch keys containing a space // with quotes in oder to request a defnitive search. $searchkey = (strstr($key, ' ') === false) ? $key : "\"$key\""; - $row = HTML::tr(HTML::td(array('align' => 'right'), + $row = HTML::tr(HTML::td(array('class' => 'align-right'), Button(array('s' => $searchkey), $val, _("FullTextSearch")), // Alternatively, get BackLinks Modified: trunk/lib/plugin/WikiAdminUtils.php =================================================================== --- trunk/lib/plugin/WikiAdminUtils.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/WikiAdminUtils.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -134,7 +134,7 @@ // FIXME: this should be moved into WikiDB::normalize() or something... $dbi = $request->getDbh(); $count = 0; - $list = HTML::ol(array('align' => 'left')); + $list = HTML::ol(array('class' => 'align-left')); $pages = $dbi->getAllPages('include_empty'); // Do we really want the empty ones too? while (($page = $pages->next())) { $pagename = $page->getName(); @@ -150,7 +150,7 @@ return _("No pages with bad names had to be deleted."); else { return HTML(fmt("Deleted %d pages with invalid names:", $count), - HTML::div(array('align' => 'left'), $list)); + HTML::div(array('class' => 'align-left'), $list)); } } @@ -162,7 +162,7 @@ $dbi = $request->getDbh(); $count = 0; $notpurgable = 0; - $list = HTML::ol(array('align' => 'left')); + $list = HTML::ol(array('class' => 'align-left')); $pages = $dbi->getAllPages('include_empty'); while (($page = $pages->next())) { if (!$page->exists() @@ -185,7 +185,7 @@ return _("No empty, unreferenced pages were found."); else return HTML(fmt("Deleted %d unreferenced pages:", $count), - HTML::div(array('align' => 'left'), $list), + HTML::div(array('class' => 'align-left'), $list), ($notpurgable ? fmt("The %d not-purgable pages/links are links in some page(s). You might want to edit them.", $notpurgable) @@ -205,7 +205,7 @@ return _("No old _cached_html pagedata found."); else { return HTML(fmt("Converted successfully %d pages", $count), - HTML::div(array('align' => 'left'), $list)); + HTML::div(array('class' => 'align-left'), $list)); } } Modified: trunk/lib/plugin/WikiPoll.php =================================================================== --- trunk/lib/plugin/WikiPoll.php 2014-06-13 14:13:58 UTC (rev 8911) +++ trunk/lib/plugin/WikiPoll.php 2014-06-13 15:15:35 UTC (rev 8912) @@ -272,13 +272,13 @@ else list($percent, $count, $all) = $this->getResult($page, $i, 1); $print = sprintf(_(" %d%% (%d/%d)"), $percent, $count, $all); - $html->pushContent(HTML::tr(HTML::th(array('colspan' => 4, 'align' => 'left'), $q))); + $html->pushContent(HTML::tr(HTML::th(array('colspan' => 4, 'class' => 'align-left'), $q))); $html->pushContent(HTML::tr(HTML::td($checkbox), HTML::td($a), HTML::td($this->bar($percent)), HTML::td($print))); } else { - $html->pushContent(HTML::tr(HTML::th(array('colspan' => 4, 'align' => 'left'), $q))); + $html->pushContent(HTML::tr(HTML::th(array('colspan' => 4, 'class' => 'align-left'), $q))); $row = HTML(); if (!$readonly) $this->storeResult($page, $i, $answers[$i]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |