Skip to content

Commit

Permalink
OUBlog: Personal blog migration from VLE1 to VLE2 #4064
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-platts authored and sammarshallou committed May 20, 2013
1 parent 4a38cfe commit 1ac7f00
Show file tree
Hide file tree
Showing 4 changed files with 968 additions and 1 deletion.
4 changes: 4 additions & 0 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1186,20 +1186,24 @@ function oublog_get_links($oublog, $oubloginstance, $context) {
if ($canmanagelinks) {
if ($i > 1) {
$html .= '<form action="movelink.php" method="post" style="display:inline" title="'.$strmoveup.'">';
$html .= '<div>';
$html .= '<input type="image" src="'.$OUTPUT->pix_url('t/up').'" alt="'.$strmoveup.'" />';
$html .= '<input type="hidden" name="down" value="0" />';
$html .= '<input type="hidden" name="link" value="'.$link->id.'" />';
$html .= '<input type="hidden" name="returnurl" value="'.$_SERVER['REQUEST_URI'].'" />';
$html .= '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
$html .= '</div>';
$html .= '</form>';
}
if ($i < $numlinks) {
$html .= '<form action="movelink.php" method="post" style="display:inline" title="'.$strmovedown.'">';
$html .= '<div>';
$html .= '<input type="image" src="'.$OUTPUT->pix_url('t/down').'" alt="'.$strmovedown.'" />';
$html .= '<input type="hidden" name="down" value="1" />';
$html .= '<input type="hidden" name="link" value="'.$link->id.'" />';
$html .= '<input type="hidden" name="returnurl" value="'.$_SERVER['REQUEST_URI'].'" />';
$html .= '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
$html .= '</div>';
$html .= '</form>';
}
$html .= '<a href="editlink.php?blog='.$oublog->id.'&amp;link='.$link->id.'" title="'.$stredit.'"><img src="'.$OUTPUT->pix_url('t/edit').'" alt="'.$stredit.'" class="iconsmall" /></a>';
Expand Down
Loading

0 comments on commit 1ac7f00

Please sign in to comment.