Changeset 97

Show
Ignore:
Timestamp:
04/17/07 09:18:18 (2 years ago)
Author:
diego
Message:

Contenttoolbar:

  • Code organization
  • CSS separation: css for the toolbar and tha wizard pages (to be used by others wizars in other plug-ins)
  • CSS refactoring to inherit the css from the active template
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contenttoolbar/contenttoolbar_video_wizard.php

    r85 r97  
    2323$metatags .= "<script language=\"javascript\" type=\"text/javascript\" src=\"$url/mod/contenttoolbar/js/script.js\"></script>"; 
    2424$metatags .= "<script language=\"javascript\" type=\"text/javascript\" src=\"$url/mod/contenttoolbar/js/edit.js\"></script>"; 
    25 $metatags .= "<link rel=\"stylesheet\" href=\"" . $CFG->wwwroot . "mod/contenttoolbar/css.css\" type=\"text/css\" media=\"screen\" />"; 
     25$metatags .= "<link rel=\"stylesheet\" href=\"" . $CFG->wwwroot . "mod/contenttoolbar/wizard.css\" type=\"text/css\" media=\"screen\" />"; 
    2626 
    2727$explanation = __gettext("To embed videos from popular sites like Google Video and Youtube, obtain the embed HTML, paste it in the following form and configure your preferred size:"); 
  • contenttoolbar/css.css

    r81 r97  
    1 div#wizard-container { 
    2         width: 100%; 
    3         margin: 0 auto; 
    4         padding: 0; 
    5         background: #fff; 
    6         border-top: 1px solid #fff; 
    7 } 
    8  
    9 #wizard-content-holder { 
    10         padding: 5px; 
    11         margin: 5px; 
    12         background: #fff; 
    13         /*min-height:500px;*/ 
    14         overflow: hidden; 
    15         position: relative; 
    16 } 
    17  
    181img.toolbutton { 
    192        background:#FFFFFF url(img/buttonshadow.png) repeat-x scroll center bottom; 
  • contenttoolbar/lib.php

    r85 r97  
    2424   
    2525 
    26   require_once (dirname(__FILE__)."/contenttoolbar_functions.php"); 
     26  require_once (dirname(__FILE__)."/lib/contenttoolbar_functions.php"); 
    2727 
    2828  // Content toolbar 
    29   $function["display:content:toolbar"][] = $CFG->dirroot ."mod/contenttoolbar/contenttoolbar_init.php"; 
     29  $function["display:content:toolbar"][] = $CFG->dirroot ."mod/contenttoolbar/lib/contenttoolbar_init.php"; 
    3030   
    3131  // Weblog text processing 
    32   $function["video:text:process"][] = $CFG->dirroot."mod/contenttoolbar/contenttoolbar_text_processing.php"; 
     32  $function["video:text:process"][] = $CFG->dirroot."mod/contenttoolbar/lib/contenttoolbar_text_processing.php"; 
    3333   
    3434  if($CFG->allowobjectembed){ 
  • contenttoolbar/templates/video_wizard.html

    r82 r97  
    66</head> 
    77<body> 
    8 <div id="wizard-container"> 
    9 <div id="wizard-content-holder"> 
    10  
     8<div id="container"> 
     9<div id="content-holder"> 
    1110<form> 
    1211<table id="wizard_form" cellpadding="2" cellspacing="2">