mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
took out a form tag
This commit is contained in:
parent
7c4b2fb3c2
commit
32a2647e02
1 changed files with 0 additions and 21 deletions
21
blog/lib.php
21
blog/lib.php
|
@ -306,10 +306,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel
|
||||||
print '</div>';
|
print '</div>';
|
||||||
if (isset($blogEntries) ) {
|
if (isset($blogEntries) ) {
|
||||||
|
|
||||||
if (blog_isLoggedIn() && blog_isediting() ) {
|
|
||||||
print '<form name="batchpublishform" method="post" action="'. $blogFilter->baseurl .'" id="batchpublishform" enctype="multipart/form-data">';
|
|
||||||
}
|
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($blogEntries as $blogEntry) {
|
foreach ($blogEntries as $blogEntry) {
|
||||||
blog_print_entry($blogEntry, 'list', $filtertype, $filterselect); //print this entry.
|
blog_print_entry($blogEntry, 'list', $filtertype, $filterselect); //print this entry.
|
||||||
|
@ -353,21 +349,6 @@ function blog_print_html_formatted_entries(&$blogFilter, $filtertype, $filtersel
|
||||||
unset($blogFilter->filtered_entries);
|
unset($blogFilter->filtered_entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* blog_get_moodle_pix_path
|
|
||||||
*
|
|
||||||
* Returns the directory path to the current theme's pix folder.
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function blog_get_moodle_pix_path(){
|
|
||||||
global $CFG, $THEME;
|
|
||||||
if (empty($THEME->custompix)) {
|
|
||||||
return $CFG->wwwroot.'/pix';
|
|
||||||
} else {
|
|
||||||
return $CFG->themedir.current_theme().'/pix';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is in lib and not in BlogInfo because entries being searched
|
* This function is in lib and not in BlogInfo because entries being searched
|
||||||
* might be found in any number of blogs rather than just one.
|
* might be found in any number of blogs rather than just one.
|
||||||
|
@ -405,8 +386,6 @@ function blog_print_entry(&$blogEntry, $viewtype='full', $filtertype='', $filter
|
||||||
// add editing controls if allowed
|
// add editing controls if allowed
|
||||||
$template['courseid'] = $blogEntry->entryCourseId;
|
$template['courseid'] = $blogEntry->entryCourseId;
|
||||||
$template['userid'] = $blogEntry->entryuserid;
|
$template['userid'] = $blogEntry->entryuserid;
|
||||||
$template['authorviewurl'] = $CFG->wwwroot .'/user/view.php?course=1&id='. $template['userid'];
|
|
||||||
$template['moodlepix'] = blog_get_moodle_pix_path();
|
|
||||||
$template['author'] = $blogEntry->entryAuthorName;
|
$template['author'] = $blogEntry->entryAuthorName;
|
||||||
$template['lastmod'] = $blogEntry->formattedEntryLastModified;
|
$template['lastmod'] = $blogEntry->formattedEntryLastModified;
|
||||||
$template['created'] = $blogEntry->formattedEntryCreated;
|
$template['created'] = $blogEntry->formattedEntryCreated;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue