XPressME Integration Kit

Trac

Changeset 495 for trunk


Ignore:
Timestamp:
Dec 22, 2009, 9:08:04 AM (15 years ago)
Author:
toemon
Message:

ブロックオプションでjavascriptの有効性チェック Fixes #274

Location:
trunk
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/extras/for_wordpressme2011/ja_EUC/language/japanese/blocks.php

    r463 r495  
    2727        define("_MB_XP2_FILE_NAME","¥Õ¥¡¥¤¥ë̾"); 
    2828        define("_MB_XP2_THISTEMPLATE","¤³¤Î¥Ö¥í¥Ã¥¯¤Î¥Æ¥ó¥×¥ì¡¼¥È"); 
     29        define("_MB_XP2_NO_JSCRIPT","¥Ö¥é¥¦¥¶¤ÇJavascript¤òÍ­¸ú¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£");         
    2930         
    3031// recent comment block  
  • trunk/extras/for_wordpressme2011/ja_UTF/language/ja_utf8/blocks.php

    r463 r495  
    2727        define("_MB_XP2_FILE_NAME","ファイル名"); 
    2828        define("_MB_XP2_THISTEMPLATE","このブロックのテンプレート"); 
     29        define("_MB_XP2_NO_JSCRIPT","ブラウザでJavascriptを有効にする必要があります。");    
    2930         
    3031// recent comment block  
  • trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/language/pt-br_utf8/blocks.php

    r463 r495  
    2727        define("_MB_XP2_FILE_NAME","Nome do arquivo"); 
    2828        define("_MB_XP2_THISTEMPLATE","Modelo"); 
     29        define("_MB_XP2_NO_JSCRIPT","Javascript deveria ser habilite por um browser.");  
    2930         
    3031// recent comment block  
  • trunk/extras/xpress_i18n/template/xpressme_modules_root/language/english/blocks.php

    r468 r495  
    2727        define("_MB_XP2_FILE_NAME","Files Name"); 
    2828        define("_MB_XP2_THISTEMPLATE","Template"); 
     29        define("_MB_XP2_NO_JSCRIPT","Javascript should be enable by a browser.");        
    2930         
    3031// recent comment block  
  • trunk/xpressme_integration_kit/blocks/archives_block.php

    r484 r495  
    2727                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    2828 
    29                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     29                $form  = javascript_check(); 
     30                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3031                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3132                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/authors_block.php

    r484 r495  
    2727                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    2828                         
    29                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     29                $form  = javascript_check(); 
     30                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3031                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3132                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/block_common.php

    r484 r495  
    198198} 
    199199endif; 
     200if(!function_exists("javascript_check")): 
     201function javascript_check() 
     202{ 
     203        $out  = '<div id="JSNG"><p style="color: red"><b>' . _MB_XP2_NO_JSCRIPT . '</b></p><br /></div>'; 
     204        $out .= '<script>  document.getElementById("JSNG").style.display = "none";</script>'; 
     205        return $out; 
     206} 
     207endif; 
    200208 
    201209?> 
  • trunk/xpressme_integration_kit/blocks/calender_block.php

    r484 r495  
    2525                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    2626 
    27                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     27                $form  = javascript_check(); 
     28                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    2829                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    2930                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/category_block.php

    r484 r495  
    3434                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');         
    3535 
    36                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     36                $form  = javascript_check(); 
     37                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3738                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3839                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/enhanced_block.php

    r484 r495  
    2424                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    2525 
    26                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     26                $form  = javascript_check(); 
     27                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    2728                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    2829                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/meta_block.php

    r484 r495  
    3030                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');         
    3131 
    32                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     32                $form  = javascript_check(); 
     33                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3334                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3435                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/page_block.php

    r484 r495  
    3434                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    3535 
    36                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     36                $form  = javascript_check(); 
     37                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3738                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3839                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/popular_posts_block.php

    r484 r495  
    2828                 
    2929                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    30                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     30                $form  = javascript_check(); 
     31                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3132                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3233                $form .= "<br />\n"; 
  • trunk/xpressme_integration_kit/blocks/recent_comments_block.php

    r484 r495  
    2929                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    3030                 
    31                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     31                $form  = javascript_check(); 
     32                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3233                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3334                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/recent_posts_content_block.php

    r484 r495  
    3333                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    3434                 
    35                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     35                $form  = javascript_check(); 
     36                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3637                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3738                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/recent_posts_list_block.php

    r484 r495  
    3030                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    3131 
    32                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
     32                $form  = javascript_check(); 
     33                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3334                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3435                $form .= "<br />\n";     
  • trunk/xpressme_integration_kit/blocks/search_block.php

    r484 r495  
    2424                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php') ; 
    2525                 
    26                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     26                $form  = javascript_check(); 
     27                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    2728                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    2829                $form .= "<br />";               
  • trunk/xpressme_integration_kit/blocks/tag_cloud_block.php

    r484 r495  
    3131                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');         
    3232 
    33                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     33                $form  = javascript_check(); 
     34                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    3435                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    3536                $form .= "<br />"; 
  • trunk/xpressme_integration_kit/blocks/widget_block.php

    r484 r495  
    4545                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
    4646 
    47                 $form  = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 
     47                $form  = javascript_check(); 
     48                $form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 
    4849                $form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES)); 
    4950                $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XP2_WIDGET_TITLE_SHOW , $title_show); 
  • trunk/xpressme_integration_kit/language/english/blocks.php

    r468 r495  
    2727        define("_MB_XP2_FILE_NAME","Files Name"); 
    2828        define("_MB_XP2_THISTEMPLATE","Template"); 
     29        define("_MB_XP2_NO_JSCRIPT","Javascript should be enable by a browser.");        
    2930         
    3031// recent comment block  
  • trunk/xpressme_integration_kit/language/ja_utf8/blocks.php

    r463 r495  
    2727        define("_MB_XP2_FILE_NAME","ファイル名"); 
    2828        define("_MB_XP2_THISTEMPLATE","このブロックのテンプレート"); 
     29        define("_MB_XP2_NO_JSCRIPT","ブラウザでJavascriptを有効にする必要があります。");    
    2930         
    3031// recent comment block  
Note: See TracChangeset for help on using the changeset viewer.