Ignore:
Timestamp:
02/19/18 09:14:05 (21 months ago)
Author:
gogo
Message:

A little quick tidy up of examples.

Location:
trunk/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples

    • Property svn:ignore set to
      password.php
  • trunk/examples/mootools-file-manager.php

    r1325 r1406  
    11<?php require_once('require-password.php'); ?> 
    2 <!DOCTYPE html 
    3      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    4     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     2<?php  
     3  switch(@$_REQUEST['DocType']) 
     4  { 
     5     
     6    case 'quirks': 
     7      break; 
     8       
     9   case 'almost': 
     10      echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; 
     11      break; 
     12     
     13    case 'standards': 
     14    default: 
     15      echo '<!DOCTYPE html>'; 
     16      break; 
     17       
     18  } 
     19?> 
    520<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    621<head> 
     
    2843    // where xinha is installed, it's highly recommended to use an absolute URL 
    2944    //  eg: _editor_url = "/path/to/xinha/"; 
    30     // You may try a relative URL htmlif you wish] 
     45    // You may try a relative URL html if you wish 
    3146    //  eg: _editor_url = "../"; 
    3247    // in this example we do a little regular expression to find the absolute path. 
     
    3550    _editor_skin = 'blue-look'; 
    3651     
    37     <?php  
    38       if(@$_REQUEST['NoFlash']) 
    39       { 
    40         ?>__MFM_USE_FLASH__ = false;<?php 
    41       } 
    42       else 
    43       { 
    44         ?>__MFM_USE_FLASH__ = true;<?php 
    45       } 
    46     ?> 
    4752  </script> 
    4853 
     
    6772      xinha_plugins = xinha_plugins ? xinha_plugins : 
    6873      [ 
    69         'MootoolsFileManager','Linker' 
     74        'MootoolsFileManager','Linker', 'TableOperations', 'ListOperations', 'ContextMenu', 'WebKitResize', 'FancySelects' 
    7075      ]; 
    7176             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    96101 
    97102       xinha_config = xinha_config ? xinha_config : new Xinha.Config(); 
    98       xinha_config.fullPage = true; 
     103      // xinha_config.fullPage = true; 
    99104       with (xinha_config.MootoolsFileManager) 
    100105        {  
     
    110115                'images_allow_delete' => true, 
    111116                'images_allow_download' => true, 
     117                'images_use_hspace_vspace' => false, 
    112118                 
    113119                'files_dir' => getcwd() . '/images', 
     
    182188  <p>  Highlight some text and click the insert file link button (folder with a link on it).</p> 
    183189  <p>  This demo also includes the Linker plugin (for creating normal links). </p> 
    184   <?php  
    185     if(!isset($_REQUEST['NoFlash']))  
    186     { 
    187       ?> 
    188       <p>You are using the Flash version of MFM, <a href="mootools-file-manager.php?NoFlash=1">switch to NoFlash.</a></p> 
    189       <?php 
    190     } 
    191     else 
    192     { 
    193       ?> 
    194       <p>You are using the NoFlash version of MFM, <a href="mootools-file-manager.php">switch to Flash.</a></p> 
    195       <?php 
    196     } 
    197   ?> 
     190   
    198191  <form action="javascript:void(0);" id="editors_here" onsubmit="alert(this.myTextArea.value);"> 
    199192     <div> 
    200      <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
    201       &lt;html&gt; 
    202       &lt;head&gt; 
    203         &lt;title&gt;Hello&lt;/title&gt; 
    204         &lt;style type="text/css"&gt; 
    205           li { color:red; } 
    206         &lt;/style&gt; 
    207       &lt;/head&gt; 
    208       &lt;body&gt;&lt;span style="color:purple"&gt; 
    209  
    210       &lt;p&gt; 
    211         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
    212         Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis 
    213         velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique 
    214         ante elementum turpis.  &lt;span style="color:green"&gt;Aliquam &lt;/span&gt; nisl. Nulla posuere neque non 
    215         tellus. Morbi vel nibh. &lt;font face="Arial"&gt;&lt;font color="#009933"&gt;Cum  sociis natoque&lt;/font&gt;&lt;/font&gt; penatibus et magnis dis 
    216         parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
    217         Curabitur pharetra bibendum lectus. 
    218       &lt;/p&gt; 
    219  
    220       &lt;ul&gt; 
    221         &lt;li style="color:green"&gt; Phasellus et massa sed diam viverra semper.  &lt;/li&gt; 
    222         &lt;li&gt; Mauris tincidunt felis in odio.              &lt;/li&gt; 
    223         &lt;li&gt; Nulla placerat nunc ut pede.                 &lt;/li&gt; 
    224         &lt;li&gt; Vivamus ultrices mi sit amet urna.           &lt;/li&gt; 
    225         &lt;li&gt; Quisque sed augue quis nunc laoreet volutpat.&lt;/li&gt; 
    226         &lt;li&gt; Nunc sit amet metus in tortor semper mattis. &lt;/li&gt; 
    227       &lt;/ul&gt; 
    228       &lt;/span&gt;&lt;/body&gt; 
    229       &lt;/html&gt; 
    230     </textarea> 
    231  
     193    <textarea id="myTextArea" name="myTextArea" style="width:100%;height:320px;"> 
     194&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
     195Aliquam et tellus vitae justo varius placerat. Suspendisse iaculis 
     196velit semper dolor. Donec gravida tincidunt mi. Curabitur tristique 
     197ante elementum turpis. Aliquam nisl. Nulla posuere neque non 
     198tellus. Morbi vel nibh. Cum sociis natoque penatibus et magnis dis 
     199parturient montes, nascetur ridiculus mus. Nam nec wisi. In wisi. 
     200Curabitur pharetra bibendum lectus.&lt;/p&gt; 
     201</textarea> 
    232202    <input type="submit" /> <input type="reset" /> 
    233203    </div> 
    234204  </form> 
    235205 
    236   <p> 
    237     <script type="text/javascript"> 
    238       document.write('Browser Compatability Mode: ' + document.compatMode); 
    239     </script> 
    240   </p> 
     206  <ul> 
     207    <li><a href="<?php echo basename(__FILE__) ?>?DocType=standards">Test Standards Mode</a></li> 
     208    <li><a href="<?php echo basename(__FILE__) ?>?DocType=almost">Test Almost Standards Mode</a></li> 
     209    <li><a href="<?php echo basename(__FILE__) ?>?DocType=quirks">Test Quirks Mode</a></li> 
     210  </ul> 
     211   
     212  <!-- This script is used to show the rendering mode (Quirks, Standards, Almost Standards) -->  
     213  <script type="text/javascript" src="render-mode-developer-help.js"></script> 
    241214</body> 
    242215</html> 
Note: See TracChangeset for help on using the changeset viewer.