parent
							
								
									3f94c86e06
								
							
						
					
					
						commit
						831a38d765
					
				@ -1,201 +0,0 @@ | 
				
			||||
/* WIKI STYLES */ | 
				
			||||
 | 
				
			||||
.wikiTitle h1 { | 
				
			||||
    color: Black; | 
				
			||||
    background: none; | 
				
			||||
    font-size: 200%; | 
				
			||||
    font-weight: bold; | 
				
			||||
    /*font-weight: normal;*/ | 
				
			||||
        border-bottom: 2px solid #aaaaaa; | 
				
			||||
} | 
				
			||||
.wiki2xhtml a.wikiEdit{ | 
				
			||||
    color: #0000FF; | 
				
			||||
} | 
				
			||||
.diff{ | 
				
			||||
    font-family: monospace; | 
				
			||||
    padding: 5px; | 
				
			||||
    margin: 5px; | 
				
			||||
    border:solid 2px #aaaaaa; | 
				
			||||
} | 
				
			||||
.diffEqual{ | 
				
			||||
    background-color: #FFFFFF; | 
				
			||||
} | 
				
			||||
.diffMoved{ | 
				
			||||
    background-color: #FFFFAA; | 
				
			||||
} | 
				
			||||
.diffAdded{ | 
				
			||||
    background-color: #CCFFCC; | 
				
			||||
} | 
				
			||||
.diffDeleted{ | 
				
			||||
    background-color: #FFAAAA; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.diffAddedTex{ | 
				
			||||
    background-color: #CCFFCC; | 
				
			||||
    text-decoration:underline; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.diffDeletedTex{ | 
				
			||||
    background-color: #FFAAAA; | 
				
			||||
    text-decoration:line-through; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#wikititle { | 
				
			||||
    font-family: Verdana, Arial, Helvetica, sans-serif; | 
				
			||||
    font-size: 100%; | 
				
			||||
    font-weight: bold; | 
				
			||||
    background-color: #EFEFEF; | 
				
			||||
    border-bottom: 1px solid #cccccc; | 
				
			||||
    padding: 3px; | 
				
			||||
    padding-top:5px; | 
				
			||||
    border-top: 1px solid #ccc; | 
				
			||||
    height: auto!important; | 
				
			||||
    min-height:20px; | 
				
			||||
} | 
				
			||||
#wikititle input { | 
				
			||||
    border: 1px solid #333; | 
				
			||||
    padding-left: 3px; | 
				
			||||
} | 
				
			||||
#wikicontent { | 
				
			||||
    padding-top:5px; | 
				
			||||
    min-height:300px; | 
				
			||||
    font-size: 14px; | 
				
			||||
    line-height: 24px; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#menuwiki { | 
				
			||||
    float:left; | 
				
			||||
    border: 2px solid #cccccc; | 
				
			||||
    margin-right: 10px; | 
				
			||||
    padding: 2px; | 
				
			||||
    background-color: #efefef; | 
				
			||||
    width:74px; | 
				
			||||
    height:30px; | 
				
			||||
    overflow:hidden; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#menuwiki li{ | 
				
			||||
    list-style-type: square; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#mainwiki { | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#wikifooter { | 
				
			||||
    background-color: #EFEFEF; | 
				
			||||
    border-top: 1px solid #cccccc; | 
				
			||||
    border-bottom: 1px solid #cccccc; | 
				
			||||
    border-left: 1px solid #cccccc; | 
				
			||||
    border-right: 1px solid #cccccc; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.fwiki1{ | 
				
			||||
    font-size:larger; | 
				
			||||
    font-style:italic; | 
				
			||||
    font-weight:bold; | 
				
			||||
    background-color:#DAFFD9; | 
				
			||||
} | 
				
			||||
.fwiki2{ | 
				
			||||
    font-size:smaller; | 
				
			||||
    background-color:#ffffff; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
.message { | 
				
			||||
    color: #cccccc; | 
				
			||||
} | 
				
			||||
.wiki_warning{ | 
				
			||||
    color: #FF0000; | 
				
			||||
    font-weight:bold; | 
				
			||||
} | 
				
			||||
a.new_wiki_link{ | 
				
			||||
    color: #FF0000; | 
				
			||||
    border-bottom: 1px dotted #cccccc; | 
				
			||||
 | 
				
			||||
} | 
				
			||||
 | 
				
			||||
a.wiki_link{ | 
				
			||||
    border-bottom: 1px dotted #cccccc; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
a.wiki_link_ext{ | 
				
			||||
 background: url(ext.png) center right no-repeat; padding-right: 14px; } | 
				
			||||
 | 
				
			||||
a.wiki_mail_link{ | 
				
			||||
 background: url(email.gif) center right no-repeat; padding-right: 18px; } | 
				
			||||
 | 
				
			||||
a.wiki_news_link{ | 
				
			||||
 background: url(news.png) center right no-repeat; padding-right: 18px; } | 
				
			||||
 | 
				
			||||
a.wiki_ftp_link{ | 
				
			||||
 background: url(ftp.gif) center right no-repeat; padding-right: 18px; } | 
				
			||||
 | 
				
			||||
a.wiki_irc_link{ | 
				
			||||
 background: url(irc.gif) center right no-repeat; padding-right: 18px; } | 
				
			||||
 | 
				
			||||
#main_navigation{ | 
				
			||||
    height: 20px; | 
				
			||||
    margin: 0; | 
				
			||||
    padding-left: 10px; | 
				
			||||
    background-color:#cccccc; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav{ | 
				
			||||
    height: 20px; | 
				
			||||
    margin: 0; | 
				
			||||
    padding-left: 10px; | 
				
			||||
 | 
				
			||||
} | 
				
			||||
#tabnav_content	{ | 
				
			||||
    margin: 0; | 
				
			||||
    padding-left: 10px; | 
				
			||||
    padding-right: 10px; | 
				
			||||
    padding-bottom: 10px; | 
				
			||||
    padding-top: 4px; | 
				
			||||
    border: 1px solid #ccc; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav li	{ | 
				
			||||
    margin: 0; | 
				
			||||
    padding: 0; | 
				
			||||
    display: inline; | 
				
			||||
    list-style-type: none; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav a:link, #tabnav a:visited { | 
				
			||||
    float: left; | 
				
			||||
    background: #fff; | 
				
			||||
    font-size: 10px; | 
				
			||||
    line-height: 14px; | 
				
			||||
    font-weight: bold; | 
				
			||||
    padding: 2px 10px 2px 10px; | 
				
			||||
    margin-right: 4px; | 
				
			||||
    border: 1px solid #ccc; | 
				
			||||
    border-bottom: 1px solid #f3f3f3; | 
				
			||||
    text-decoration: none; | 
				
			||||
    color: #666; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav a:link.active, #tabnav a:visited.active { | 
				
			||||
    border-bottom: 2px solid #f3f3f3; | 
				
			||||
    background: #f3f3f3; | 
				
			||||
    color: #000; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav a:link.right, #tabnav a:visited.right | 
				
			||||
{ | 
				
			||||
    border-bottom: 1px solid #f3f3f3; | 
				
			||||
    background: #f3f3f3; | 
				
			||||
    color: #666; | 
				
			||||
    margin-left: 100px; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav a:link.rightactive, #tabnav a:visited.rightactive { | 
				
			||||
    border-bottom: 1px solid #fff; | 
				
			||||
    background: #fff; | 
				
			||||
    color: #000; | 
				
			||||
    margin-left: 170px; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
#tabnav a:hover { | 
				
			||||
    background: #fff; | 
				
			||||
} | 
				
			||||
| 
		 Before Width: | Height: | Size: 918 B  | 
| 
		 Before Width: | Height: | Size: 165 B  | 
| 
		 Before Width: | Height: | Size: 921 B  | 
| 
		 Before Width: | Height: | Size: 949 B  | 
| 
		 Before Width: | Height: | Size: 297 B  | 
| 
		 Before Width: | Height: | Size: 516 B  | 
@ -1,110 +0,0 @@ | 
				
			||||
<?php | 
				
			||||
 | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium | 
				
			||||
 * @author Juan Carlos Raña <herodoto@telefonica.net> | 
				
			||||
 */ | 
				
			||||
require_once __DIR__.'/../inc/global.inc.php'; | 
				
			||||
require_once 'wiki.inc.php'; | 
				
			||||
 | 
				
			||||
global $charset; | 
				
			||||
 | 
				
			||||
$wiki = new Wiki(); | 
				
			||||
$wiki->charset = $charset; | 
				
			||||
 | 
				
			||||
// section (for the tabs) | 
				
			||||
$this_section = SECTION_COURSES; | 
				
			||||
$current_course_tool = TOOL_WIKI; | 
				
			||||
 | 
				
			||||
$course_id = api_get_course_int_id(); | 
				
			||||
$session_id = api_get_session_id(); | 
				
			||||
$condition_session = api_get_session_condition($session_id); | 
				
			||||
$groupId = api_get_group_id(); | 
				
			||||
 | 
				
			||||
// additional style information | 
				
			||||
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="'.api_get_path(WEB_CODE_PATH).'wiki/css/default.css"/>'; | 
				
			||||
 | 
				
			||||
// javascript for advanced parameters menu | 
				
			||||
$htmlHeadXtra[] = '<script> | 
				
			||||
function setFocus() { | 
				
			||||
    $("#search_title").focus(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
$(function() { | 
				
			||||
    setFocus(); | 
				
			||||
    $("#start_date_toggle").click(function() { | 
				
			||||
        $("#start_date").toggle(); | 
				
			||||
    }); | 
				
			||||
 | 
				
			||||
    $("#end_date_toggle").click(function() { | 
				
			||||
        $("#end_date").toggle(); | 
				
			||||
    }); | 
				
			||||
}); | 
				
			||||
 | 
				
			||||
</script>'; | 
				
			||||
 | 
				
			||||
/* Constants and variables */ | 
				
			||||
$tool_name = get_lang('Wiki'); | 
				
			||||
 | 
				
			||||
/* ACCESS */ | 
				
			||||
api_protect_course_script(); | 
				
			||||
api_block_anonymous_users(); | 
				
			||||
api_protect_course_group(GroupManager::GROUP_TOOL_WIKI); | 
				
			||||
 | 
				
			||||
Event::event_access_tool(TOOL_WIKI); | 
				
			||||
 | 
				
			||||
if ($groupId) { | 
				
			||||
    $group_properties = GroupManager::get_group_properties($groupId); | 
				
			||||
    $interbreadcrumb[] = [ | 
				
			||||
        'url' => api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(), | 
				
			||||
        'name' => get_lang('Groups'), | 
				
			||||
    ]; | 
				
			||||
    $interbreadcrumb[] = [ | 
				
			||||
        'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(), | 
				
			||||
        'name' => get_lang('Group area').' '.Security::remove_XSS($group_properties['name']), | 
				
			||||
    ]; | 
				
			||||
} | 
				
			||||
 | 
				
			||||
$is_allowed_to_edit = api_is_allowed_to_edit(false, true); | 
				
			||||
 | 
				
			||||
// The page we are dealing with | 
				
			||||
$page = isset($_GET['title']) ? $_GET['title'] : 'index'; | 
				
			||||
$action = isset($_GET['action']) ? Security::remove_XSS($_GET['action']) : 'showpage'; | 
				
			||||
$view = isset($_GET['view']) ? Security::remove_XSS($_GET['view']) : null; | 
				
			||||
 | 
				
			||||
$wiki->page = $page; | 
				
			||||
$wiki->action = $action; | 
				
			||||
 | 
				
			||||
// Setting wiki data | 
				
			||||
if (!empty($view)) { | 
				
			||||
    $wiki->setWikiData($view); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
$wiki->blockConcurrentEditions(api_get_user_id(), $action); | 
				
			||||
 | 
				
			||||
/* MAIN WIKI AREA */ | 
				
			||||
 | 
				
			||||
ob_start(); | 
				
			||||
$handleAction = $wiki->handleAction($action); | 
				
			||||
if (!$handleAction && 'export_to_pdf' == $action) { | 
				
			||||
    $wiki->handleAction('showpage'); | 
				
			||||
} | 
				
			||||
$content = ob_get_contents(); | 
				
			||||
ob_end_clean(); | 
				
			||||
 | 
				
			||||
Display::display_header($tool_name, 'Wiki'); | 
				
			||||
 | 
				
			||||
// check last version | 
				
			||||
if (!empty($view)) { | 
				
			||||
    $wiki->checkLastVersion($view); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
// Tool introduction | 
				
			||||
Display::display_introduction_section(TOOL_WIKI); | 
				
			||||
 | 
				
			||||
$wiki->showActionBar(); | 
				
			||||
echo $content; | 
				
			||||
 | 
				
			||||
Display::display_footer(); | 
				
			||||
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						
					Loading…
					
					
				
		Reference in new issue