Ignore:
Timestamp:
Mar 19, 2011, 9:46:37 PM (13 years ago)
Author:
plg
Message:

new color scheme (clear background) and new logo for NetInstall, just like install.php in Piwigo 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/netinstall/trunk/piwigo-netinstall.php

    r8381 r9780  
    3333);
    3434
     35$url_subdomain_for_language = array(
     36  'fr_FR' => 'fr',
     37  'es_ES' => 'es',
     38  'it_IT' => 'it',
     39  'de_DE' => 'de',
     40  'pl_PL' => 'pl',
     41  'zh_CN' => 'cn',
     42  'hu_HU' => 'hu',
     43  'ru_RU' => 'ru',
     44  );
     45
    3546// +-----------------------------------------------------------------------+
    3647
     
    229240        '</head>'."\n".
    230241        '<body>'."\n".
    231         '<div id="headbranch"></div>'."\n".
    232242        '<div id="theHeader"></div>'."\n".
    233243        '<div id="content">'."\n".
     
    237247function closePage()
    238248{
     249  global $url_subdomain_for_language;
     250
     251  $prefix = '';
     252  if (isset($url_subdomain_for_language[DC_LOADER_LANG]))
     253  {
     254    $prefix = $url_subdomain_for_language[DC_LOADER_LANG].'.';
     255  }
     256 
    239257        echo
    240         '</div>'."\n".
    241         '<div id="footer">'."\n".
    242         l10n('This loader was initialy coded for <a href="http://www.dotclear.net" title="Dotclear">Dotclear</a>. Thanks!')."\n".
     258        '<div style="text-align:center">'.
     259          sprintf(l10n('Need help ? Ask your question on <a href="%s">Piwigo message board</a>.'), 'http://'.$prefix.'piwigo.org/forum').
     260        "</div>\n".
    243261        '</div>'."\n".
    244262        '</body>'."\n".
     
    334352        }
    335353
    336         echo
     354        echo 
    337355        '<div class="msg '.$level.'">'."\n".
    338356        '<h3>'.$title.'</h3>'."\n".
     
    377395        {
    378396                openPage();
    379                 echo '<h3>'.l10n('Welcome to NetInstall!').'</h3>'."\n";
     397                echo '<fieldset><legend>'.l10n('Welcome to NetInstall!').'</legend>'."\n";
    380398
    381399                // Show available languages
     
    420438                        );
    421439                }
     440                echo '</fieldset>';
    422441                closePage();
    423442                break;
     
    511530                                        $redir = preg_replace('#/+#','/',str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'])).'/'.$dest.'/install.php');
    512531
    513                                         $text = '<h3>'.l10n('Congratulations!').'</h3>'
     532                                        $text = '<fieldset><legend>'.l10n('Congratulations!').'</legend>'
    514533                                        .'<p>'.l10n('Everything went fine. You are now ready to start the installation procedure.').'</p>'
    515534                                        .'<form action="'.$redir.'" method="get"><p class="button">'
     
    517536                                        . '<input type="submit" value="'.l10n('Install Piwigo now').'" />'
    518537                                        . '</p></form>';
     538
     539                                        $text.= '</fieldset>';
    519540                                }
    520541                        }
Note: See TracChangeset for help on using the changeset viewer.