Changeset 11218


Ignore:
Timestamp:
Jun 3, 2011, 6:08:34 PM (13 years ago)
Author:
mistic100
Message:

some tests to avoid errors, css bug with IE

Location:
extensions/Front2Back
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/Front2Back.php

    r11217 r11218  
    4747  if (!empty($conf['Front2Back'][7][$user['language']]))
    4848  {
    49     $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7][$user['language']]);
     49    if (strpos($conf['Front2Back'][7][$user['language']], '|') !== false)
     50    {
     51      $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7][$user['language']]);
     52    }
     53    else
     54    {
     55      $conf['Front2Back'][7] = array($conf['Front2Back'][7][$user['language']], $conf['Front2Back'][7][$user['language']]);
     56    }
    5057  }
    5158  else if (!empty($conf['Front2Back'][7]['default']))
    5259  {
    53     $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7]['default']);
     60    if (strpos($conf['Front2Back'][7]['default'], '|') != false)
     61    {
     62      $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7]['default']);
     63    }
     64    else
     65    {
     66      $conf['Front2Back'][7] = array($conf['Front2Back'][7]['default'], $conf['Front2Back'][7]['default']);
     67    }
    5468  }
    5569  else
  • extensions/Front2Back/admin.php

    r11217 r11218  
    55load_language('plugin.lang', F2B_PATH);
    66$conf['Front2Back'] = explode(',', $conf['Front2Back']);
     7
     8if (!function_exists('stripslashes_deep'))
     9{
     10  function stripslashes_deep($value)
     11  {
     12    return is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
     13  }
     14}
    715
    816// Enregistrement de la configuration
     
    1725    $_POST['switch_mode'],
    1826    $_POST['transition'],
    19     serialize(str_replace(array('"',','), ' ', $_POST['link_name'])),
     27    serialize(stripslashes_deep(str_replace(array("'",'"',','), null, $_POST['link_name']))),
    2028  );
    2129     
  • extensions/Front2Back/template/admin.tpl

    r11217 r11218  
    11{combine_css path=$F2B_PATH|@cat:"template/style.css"}
     2{if $themeconf.id == roma}<style type="text/css">.lang_help {ldelim} background-color:#464646; }</style>{/if}
    23
    34{footer_script require='jquery'}{literal}
  • extensions/Front2Back/template/style.css

    r11217 r11218  
    1212.lang_help {
    1313  display:inline-block;
    14   width:15px;
     14  width:16px;
    1515  text-align:center;
     16  vertical-align:middle;
    1617  font-style:italic;
    1718  font-family:"Georgia",serif;
    18   background-color:#464646;
     19  background-color:#999;
     20  margin-left:15px;
     21  color:#fff;
    1922  font-size:0.9em;
    20   line-height:1.3em;
    21   border-radius:10px;
    22   -moz-border-radius:10px;
     23  line-height:1.4em;
     24  border-radius:7px;
     25  -moz-border-radius:7px;
    2326}
     27.lang_help:hover {
     28  background-color:#333;
     29  border:none;
     30  color:#fff;
     31}
Note: See TracChangeset for help on using the changeset viewer.