Some handy methods to handle multi-language support
Esempio n. 1
0
 public function __construct()
 {
     $this->type = 'text';
     $this->icon = 'user';
     $this->label = l::get('fields.user.label', 'User');
     $this->placeholder = l::get('fields.user.placeholder', 'Username…');
 }
Esempio n. 2
0
 /**
  * @param array $event The fields of this event including the 'private'
  * fields which start with a <code>_</code> (e.g. <code>_begin_date</code>).
  */
 function __construct($event)
 {
     self::validate($event);
     $this->hasEnd = true;
     $this->hasBeginTime = (bool) a::get($event, self::beginTimeKey);
     $this->hasEndTime = (bool) a::get($event, self::endTimeKey);
     $this->beginTimestamp = self::getTimestamp(a::get($event, self::beginDateKey), a::get($event, self::beginTimeKey));
     $this->endTimestamp = self::getTimestamp(a::get($event, self::endDateKey), a::get($event, self::endTimeKey));
     // if there is no end date given, use the same as the beginning date
     if (!$this->endTimestamp) {
         $this->endTimestamp = self::getTimestamp(a::get($event, self::beginDateKey), a::get($event, self::endTimeKey));
         // if there also is no end time given, there is no end at all
         if (!$this->hasEndTime) {
             $this->hasEnd = false;
         }
     }
     // if there is no end time given, the event lasts until end of the day
     if (!$this->hasEndTime) {
         $this->endTimestamp = strtotime('tomorrow', $this->endTimestamp);
     }
     // only use the full format, if there were times given for this event
     $this->timeFormat = $this->hasBeginTime || $this->hasEndTime ? l::get('calendar-full-time-format') : l::get('calendar-time-format');
     // remove the 'private' fields
     $this->fields = self::filterFields($event);
 }
Esempio n. 3
0
 public function __construct()
 {
     $this->type = 'text';
     $this->icon = 'chain';
     $this->label = l::get('fields.page.label', 'Page');
     $this->placeholder = l::get('fields.page.placeholder', 'path/to/page');
 }
Esempio n. 4
0
 public function index()
 {
     if (app::$site->users()->count() > 0) {
         go('panel/login');
     }
     if ($problems = installation::check()) {
         $content = view('installation/check', array('problems' => $problems));
     } else {
         $form = app::form('installation', array('language' => c::get('panel.language', 'en')));
         $form->cancel = false;
         $form->save = l::get('installation.signup.button');
         $form->centered = true;
         foreach (app::languages() as $lang) {
             $form->fields()->get('language')->options[$lang->code()] = $lang->title();
         }
         $form->on('submit', function ($form) {
             try {
                 app::$site->users()->create($form->serialize());
                 go('panel/login/welcome');
             } catch (Exception $e) {
                 $form->alert($e->getMessage());
             }
         });
         $content = view('installation/signup', array('form' => $form));
     }
     return layout('installation', array('meta' => new Snippet('meta'), 'content' => $content));
 }
Esempio n. 5
0
 public static function login($redirect = '/')
 {
     if (self::user()) {
         go(url($redirect));
     }
     self::kill();
     $password = get('password');
     $username = get('username');
     if (empty($username) || empty($password)) {
         return false;
     }
     // try to find the user
     $account = self::load($username);
     if (!$account) {
         return array('status' => 'error', 'msg' => l::get('auth.error', 'Invalid username or password'));
     }
     // check for matching usernames
     if (str::lower($account->username()) != str::lower($username)) {
         return array('status' => 'error', 'msg' => l::get('auth.error', 'Invalid username or password'));
     }
     // check for a matching password
     if (!self::checkPassword($account, $password)) {
         return array('status' => 'error', 'msg' => l::get('auth.error', 'Invalid username or password'));
     }
     // generate a random token
     $token = str::random();
     // add the username.
     $account->token = $token;
     // store the token in the cookie
     // and the user data in the session
     cookie::set('authFrontend', $token, 60 * 60 * 24);
     s::set('authFrontend.' . $token, $account->username());
     go(url($redirect));
 }
Esempio n. 6
0
 public function __construct()
 {
     $this->type = 'url';
     $this->icon = 'chain';
     $this->label = l::get('fields.url.label', 'URL');
     $this->placeholder = 'http://';
 }
Esempio n. 7
0
 function login()
 {
     s::restart();
     $password = get('password');
     $username = get('username');
     if (empty($username) || empty($password)) {
         return array('status' => 'error', 'msg' => l::get('login.error'));
     }
     $account = self::load($username);
     if (!$account) {
         return array('status' => 'error', 'msg' => l::get('login.error'));
     }
     // check for matching usernames
     if (str::lower($account['username']) != str::lower($username)) {
         return array('status' => 'error', 'msg' => l::get('login.error'));
     }
     // check for a matching password
     if (!self::checkPassword($account, $password)) {
         return array('status' => 'error', 'msg' => l::get('login.error'));
     }
     // generate a random token
     $token = str::random();
     // add the username.
     // It's only the key of the array so far.
     $account['token'] = $token;
     // store the token in the cookie
     // and the user data in the session
     cookie::set('auth', $token, 60 * 60 * 24);
     s::set($token, $account);
     // assign the user data to this obj
     $this->_ = $account;
     return array('status' => 'success', 'msg' => l::get('login.success'));
 }
Esempio n. 8
0
 public function __construct()
 {
     $this->type = 'text';
     $this->label = l::get('fields.title.label', 'Title');
     $this->icon = 'font';
     $this->required = true;
 }
Esempio n. 9
0
 public function __construct()
 {
     $this->label = l::get('fields.textarea.label', 'Text');
     $this->buttons = true;
     $this->min = 0;
     $this->max = false;
 }
Esempio n. 10
0
 public function __construct()
 {
     $this->type = 'text';
     $this->icon = 'map-marker';
     $this->label = l::get('fields.location.label', 'Location');
     $this->placeholder = l::get('fields.location.placeholder', 'Coordinates');
     $this->readonly = true;
 }
Esempio n. 11
0
 public function __construct()
 {
     $this->icon = 'tag';
     $this->label = l::get('fields.tags.label', 'Tags');
     $this->index = 'siblings';
     $this->separator = ',';
     $this->lower = false;
 }
Esempio n. 12
0
 public function __construct()
 {
     $this->type = 'email';
     $this->icon = 'envelope';
     $this->label = l::get('fields.email.label', 'Email');
     $this->placeholder = l::get('fields.email.placeholder', '*****@*****.**');
     $this->autocomplete = true;
 }
Esempio n. 13
0
 public function __construct()
 {
     $this->type = 'number';
     $this->label = l::get('fields.number.label', 'Number');
     $this->placeholder = l::get('fields.number.placeholder', '#');
     $this->step = 1;
     $this->min = 0;
     $this->max = false;
 }
Esempio n. 14
0
 public function testSet()
 {
     l::set('anothervar', 'anothervalue');
     l::set('testvar', 'overwrittenvalue');
     $this->assertEquals('anothervalue', l::get('anothervar'));
     $this->assertEquals('overwrittenvalue', l::get('testvar'));
     l::set(array('var1' => 'value1', 'var2' => 'value2'));
     $this->assertEquals('value1', l::get('var1'));
     $this->assertEquals('value2', l::get('var2'));
 }
Esempio n. 15
0
 public function __construct()
 {
     $this->type = 'text';
     $this->icon = 'user';
     $this->label = l::get('fields.user.label', 'User');
     $this->options = array();
     foreach (kirby()->site()->users() as $user) {
         $this->options[$user->username()] = $user->username();
     }
 }
Esempio n. 16
0
 public function input()
 {
     $input = parent::input();
     $input->removeAttr('name');
     $input->data(array('field' => 'date', 'format' => $this->format(), 'i18n' => html(json_encode(array('previousMonth' => '&lsaquo;', 'nextMonth' => '&rsaquo;', 'months' => l::get('fields.date.months'), 'weekdays' => l::get('fields.date.weekdays'), 'weekdaysShort' => l::get('fields.date.weekdays.short'))), false)));
     $hidden = new Brick('input', null);
     $hidden->type = 'hidden';
     $hidden->name = $this->name();
     $hidden->value = $this->value();
     return $input . $hidden;
 }
Esempio n. 17
0
 public function label()
 {
     if (!$this->label) {
         return null;
     }
     $label = new Brick('label', $this->i18n($this->label));
     $label->addClass('label');
     $label->attr('for', $this->id());
     if ($this->required()) {
         $label->append(new Brick('abbr', '*', array('title' => l::get('required', 'Required'))));
     }
     return $label;
 }
Esempio n. 18
0
 public static function configure()
 {
     if (is_null(static::$site)) {
         static::$site = kirby::panelsetup();
     }
     // load all available routes
     static::$routes = array_merge(static::$routes, require root('panel.app.routes') . DS . 'api.php');
     static::$routes = array_merge(static::$routes, require root('panel.app.routes') . DS . 'views.php');
     // setup the blueprint root
     blueprint::$root = c::get('root.site') . DS . 'blueprints';
     // start the router
     static::$router = new Router();
     static::$router->register(static::$routes);
     // content language switcher variable
     if (static::$site->multilang()) {
         if ($language = server::get('http_language') or $language = s::get('lang')) {
             static::$site->visit('/', $language);
         }
         app::$language = static::$site->language()->code();
         s::set('lang', app::$language);
     }
     // load the interface language file
     if (static::$site->user()) {
         $languageCode = static::$site->user()->language();
     } else {
         $languageCode = c::get('panel.language', 'en');
     }
     // validate the language code
     if (!in_array($languageCode, static::languages()->keys())) {
         $languageCode = 'en';
     }
     // store the interface language
     app::$interfaceLanguage = $languageCode;
     $language = (require root('panel.app.languages') . DS . $languageCode . '.php');
     // set all language variables
     l::$data = $language['data'];
     // register router filters
     static::$router->filter('auth', function () {
         if (!app::$site->user()) {
             go('panel/login');
         }
     });
     // check for a completed installation
     static::$router->filter('isInstalled', function () {
         if (app::$site->users()->count() == 0) {
             go('panel/install');
         }
     });
     // only use the fragments of the path without params
     static::$path = implode('/', (array) url::fragments(detect::path()));
 }
Esempio n. 19
0
 public function options()
 {
     switch (strtolower($this->text())) {
         case 'yes/no':
             $true = l::get('fields.toggle.yes');
             $false = l::get('fields.toggle.no');
             break;
         case 'on/off':
             $true = l::get('fields.toggle.on');
             $false = l::get('fields.toggle.off');
             break;
     }
     return array('true' => $true, 'false' => $false);
 }
Esempio n. 20
0
 function file($field, $destination, $params = array())
 {
     $allowed = a::get($params, 'allowed', c::get('upload.allowed', array('image/jpeg', 'image/png', 'image/gif')));
     $maxsize = a::get($params, 'maxsize', c::get('upload.maxsize', self::max_size()));
     $overwrite = a::get($params, 'overwrite', c::get('upload.overwrite', true));
     $sanitize = a::get($params, 'sanitize', true);
     $file = a::get($_FILES, $field);
     if (empty($file)) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.missing-file', 'The file has not been found'));
     }
     $name = a::get($file, 'name');
     $type = a::get($file, 'type');
     $tmp_name = a::get($file, 'tmp_name');
     $error = a::get($file, 'error');
     $size = a::get($file, 'size');
     $msg = false;
     $extension = self::mime_to_extension($type, 'jpg');
     // convert the filename to a save name
     $fname = $sanitize ? f::safe_name(f::name($name)) : f::name($name);
     // setup the destination
     $destination = str_replace('{name}', $fname, $destination);
     $destination = str_replace('{extension}', $extension, $destination);
     if (file_exists($destination) && $overwrite == false) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.file-exists', 'The file exists and cannot be overwritten'));
     }
     if (empty($tmp_name)) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.missing-file', 'The file has not been found'));
     }
     if ($error != 0) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.invalid-upload', 'The upload failed'));
     }
     if ($size > $maxsize) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.too-big', 'The file is too big'));
     }
     if (!in_array($type, $allowed)) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.invalid-file', 'The file type is not allowed') . ': ' . $type);
     }
     // try to change the permissions for the destination
     @chmod(dirname($destination), 0777);
     if (!@copy($tmp_name, $destination)) {
         return array('status' => 'error', 'msg' => l::get('upload.errors.move-error', 'The file could not be moved to the server'));
     }
     // try to change the permissions for the final file
     @chmod($destination, 0777);
     return array('status' => 'success', 'msg' => l::get('upload.success', 'The file has been uploaded'), 'type' => $type, 'extension' => $extension, 'file' => $destination, 'size' => $size, 'name' => f::filename($destination));
 }
Esempio n. 21
0
function i18n($value)
{
    if (empty($value)) {
        return null;
    } else {
        if (is_array($value)) {
            $translation = a::get($value, panel()->translation()->code());
            if (empty($translation)) {
                // try to fallback to the default language at least
                $translation = a::get($value, kirby()->option('panel.language'));
            }
            return $translation;
        } else {
            if (is_string($value) and $translation = l::get($value)) {
                return $translation;
            } else {
                return $value;
            }
        }
    }
}
Esempio n. 22
0
<?php

// detect handler from 1) query parameter ("?handler="), or fallback to 2) http referer
$handler_name = get('handler') ?: a::last(array_filter(explode('/', server::get('http_referer'))));
$handler_path = c::get('root.content') . '/smart-submit/' . $handler_name . '.php';
// check honeypot
if (get('smart-submit-honeypot') && intval(get('smart-submit-honeypot')) < 2) {
    die('{"error":"' . (l::get('smart-submit-alarm') ?: 'Anti-spam alarm. Please try again.') . '"}');
}
if (file_exists($handler_path)) {
    require $handler_path;
} else {
    die('{"error":"' . (l::get('smart-submit-missing-handler') ?: 'Error - handler not found. Please contact web site administrator for details.') . '"}');
}
Esempio n. 23
0
    if (page('shop')->paypal_action() != 'live') {
        ?>
                        <div class="message  message--warning">
                            <?php 
        echo l::get('sandbox-message');
        ?>
                        </div>
                    <?php 
    }
    ?>

                    <input type="hidden" name="gateway" value="paypal">

                    <div class="forRobots hide">
                      <label for="subject"><?php 
    echo l::get('honeypot-label');
    ?>
</label>
                      <input type="text" name="subject">
                    </div>

                    <button class="btn  btn--accent" type="submit">Pay with PayPal</button>
                </form>

            </div><!-- /. cart summary -->
        <?php 
}
?>

        <script type="text/javascript">
            // Remove setCountry and setShipping submit buttons
Esempio n. 24
0
<?php

l::set('uniform-filled-potty', 'Er is een veld ingevuld wat leeg moet blijven. Mocht u geen Spam-Bot zijn, probeer het opnieuw zonder dat veld in te vullen.');
l::set('uniform-fields-required', 'Vul alstublieft alle verplichte velden in.');
l::set('uniform-fields-not-valid', 'Sommige velden bevatten geen geldige informatie.');
l::set('uniform-email-subject', 'Bericht van het webformulier');
l::set('uniform-email-success', 'Hartelijk dank, het formulier is succesvol verzonden.');
l::set('uniform-email-error', 'Er is een fout bij het verzenden van het formulier opgetreden:');
l::set('uniform-email-copy', 'Kopie:');
l::set('uniform-calc-plus', 'plus');
l::set('uniform-log-success', 'The log entry was successfully created.');
l::set('uniform-log-error', 'There was an error while writing the logfile.');
l::set('uniform-login-error', 'Wrong username or password.');
l::set('uniform-login-success', 'Login successful.');
l::set('uniform-webhook-success', 'Calling webhook successful.');
l::set('uniform-webhook-error', 'There was an error calling the webhook: ');
l::set('uniform-email-select-error', 'Invalid recipient.');
Esempio n. 25
0
File: de.php Progetto: cnoss/fubix
<?php

l::set('selector.empty', 'Keine passenden Dateien gefunden.');
l::set('bild-zufuegen', 'Bild hochladen');
Esempio n. 26
0
 /**
  * Bundles the form data to an e-mail body and sends it.
  */
 private function sendForm()
 {
     $mailBody = "";
     $snippet = $this->options['snippet'];
     if (empty($snippet)) {
         foreach ($this->data as $key => $value) {
             if (str::startsWith($key, '_')) {
                 continue;
             }
             $mailBody .= ucfirst($key) . ': ' . $value . "\n\n";
         }
     } else {
         $mailBody = snippet($snippet, array('data' => $this->data), true);
         if ($mailBody === false) {
             throw new Exception("The email snippet '" . $snippet . "' does not exist!");
         }
     }
     $params = array('service' => $this->options['service'], 'options' => $this->options['service-options'], 'to' => $this->options['to'], 'from' => a::get($this->data, 'name', '') . ' <' . a::get($this->data, '_from') . '>', 'subject' => $this->options['subject'], 'body' => $mailBody);
     $email = email($params);
     if ($email->send()) {
         $params['subject'] = l::get('sendform-email-copy') . ' ' . $params['subject'];
         // if everything was ok, send the copies
         foreach ($this->options['copy'] as $address) {
             $params['to'] = $address;
             email($params)->send();
         }
         $this->message = l::get('sendform-send-success');
         $this->sentSuccessful = true;
         // now this form send session is over, so destroy the token
         $this->destroyToken();
     } else {
         $this->message = l::get('sendform-send-error') . " " . $email->error();
     }
 }
Esempio n. 27
0
<?php

l::set(array('ok' => 'Ok', 'cancel' => 'Cancel', 'nochanges' => 'Nothing has changed', 'header.title' => 'Kirby', 'header.logout' => 'Logout', 'subheader.home' => 'Home', 'subheader.site' => 'Your Site', 'subheader.info' => 'Info', 'tabs.overview' => 'Overview', 'tabs.info' => 'Edit Info', 'tabs.content' => 'Content', 'tabs.files' => 'File', 'tabs.options' => 'URL', 'tabs.preview' => 'Preview', 'dashboard.edit' => 'Edit', 'dashboard.content' => 'Content', 'dashboard.content.empty' => 'This page has no content', 'dashboard.files' => 'File', 'dashboard.template' => 'Template', 'dashboard.stats.images' => 'Images', 'dashboard.stats.videos' => 'Videos', 'dashboard.stats.docs' => 'Docs', 'dashboard.stats.sound' => 'Sound', 'dashboard.stats.others' => 'Others', 'home.siteinfo' => 'Site info', 'home.edit' => 'Edit', 'home.warning.title' => 'Please fix first!', 'home.warning.permissions.title' => 'Permissions', 'home.warning.permissions.text' => 'The permissions in your content directory are not set properly. Please change the permissions for all folders to <strong>0755</strong> and for all files to <strong>0666</strong>', 'home.warning.blueprints.title' => 'Blueprints', 'home.warning.blueprints.text' => 'There are no blueprints available for the following templates<br /> Read more about <a href="http://getkirby.com/docs/panel/blueprints">how to install blueprints for your templates</a>', 'home.warning.thumbs.title' => 'Thumbnails', 'home.warning.thumbs.text' => 'Please add a <strong>thumbs</strong> directory to the main directory of your installation and change its permissions to <strong>0755</strong>', 'siteinfo.button' => 'Save', 'siteinfo.errors.title' => 'Please add a title', 'siteinfo.errors.permissions' => '<strong>content/site.txt</strong> is not writable. <br />Please change its permissions and try again.', 'content.save' => 'Save', 'content.previous' => 'Previous', 'content.next' => 'Next', 'content.invisible' => 'invisible', 'nocontent.title' => 'No Content', 'nocontent.text' => 'There\'s no content for this page available.', 'pages.title' => 'Visible subpages', 'pages.title.home' => 'Visible pages', 'pages.home' => 'Home', 'pages.sort' => 'Sort', 'pages.add' => 'Add', 'pages.delete' => 'Remove', 'pages.invisible' => 'Invisible subpages', 'pages.invisible.home' => 'Invisible pages', 'pages.no.visible' => 'No visible pages so far', 'pages.no.invisible' => 'No invisible pages so far', 'pages.moved' => 'The page has been moved', 'pages.sorted' => 'The pages have been sorted', 'pages.show.more' => 'show more', 'pages.show.less' => 'show less', 'pages.errors.notfound' => 'The page could not be found', 'pages.errors.move' => 'The page could not be moved', 'pages.errors.sort' => 'Not all pages could be sorted', 'pages.errors.nosort' => 'There\'s nothing to sort', 'media.visible' => 'Visible media', 'media.invisible' => 'Invisible media', 'projects.visible' => 'Visible projects', 'projects.invisible' => 'Invisible projects', 'nopages.title' => 'Subpages', 'nopages.text' => 'This page is not supposed to have subpages', 'pages.add.title' => 'Add a new page', 'pages.add.label.title' => 'Title', 'pages.add.label.url' => 'URL', 'pages.add.label.template' => 'Template', 'pages.add.button' => 'Save', 'pages.add.errors.title' => 'Please add a title', 'pages.add.errors.url' => 'Please add a URL for your page', 'pages.add.errors.characters' => 'Please only use the following characters a-z, 0-9, _, - for the URL', 'pages.add.errors.exists' => 'A page with that url already exists', 'pages.add.errors.permissions' => 'The directory could not be created', 'pages.add.success' => 'The page has been created', 'pages.update.errors' => 'Please fill out all fields correctly', 'pages.delete.title' => 'Delete this page', 'pages.delete.button' => 'Delete', 'pages.delete.errors.homepage' => 'You cannot delete the homepage', 'pages.delete.errors.errorpage' => 'You cannot delete the error page', 'pages.delete.errors.subpages' => 'This page has subpages. Please delete them first.', 'pages.delete.errors.permissions' => 'The page could not be removed', 'pages.delete.success' => 'The page has been removed', 'options.url' => 'URL', 'options.button' => 'Save', 'options.home.url' => 'URL', 'options.home.text' => 'You cannot change the URL of the homepage', 'options.error.text' => 'You cannot change the URL of the error page', 'options.errors.homepage' => 'You cannot change the URL of the homepage', 'options.errors.errorpage' => 'You cannot change the URL of the error page', 'options.errors.characters' => 'Please only use the following characters a-z, 0-9, _, -', 'options.errors.permissions' => 'The content directory cannot be moved', 'options.errors.exists' => 'The new URL already exists', 'options.errors.move' => 'The content directory cannot be moved', 'files.title' => 'File', 'files.upload' => 'Upload a new file', 'files.edit' => 'Edit', 'files.replace' => 'Replace', 'files.delete' => 'Delete', 'files.empty' => 'No file so far', 'nofiles.title' => 'No Files', 'nofiles.text' => 'This page is not supposed to have files', 'files.delete.title' => 'Delete this file', 'files.delete.button' => 'Delete', 'files.delete.errors.notfound' => 'The file could not be found', 'files.delete.errors.permissions' => 'The file could not be deleted', 'files.delete.success' => 'The file has been deleted', 'files.edit.title' => 'Edit file', 'files.edit.filename' => 'Filename (without extension)', 'files.edit.button' => 'Save', 'files.edit.errors.filename' => 'Please enter a valid filename', 'files.edit.errors.notfound' => 'The file could not be found', 'files.edit.errors.exists' => 'The new name already exists', 'files.edit.errors.permissions' => 'The file could not be renamed', 'files.edit.success' => 'The file has been saved', 'files.replace.title' => 'Replace this file', 'files.replace.file' => 'File', 'files.replace.choose' => 'Please choose a new file from your computer…', 'files.replace.button' => 'Replace', 'files.replace.errors.notfound' => 'The file could not be found', 'files.replace.success' => 'The file has been replaced', 'files.upload.title' => 'Upload a new file', 'files.upload.choose' => 'Please choose a file from your computer…', 'files.upload.button' => 'Upload', 'login.button' => 'Login', 'login.username' => 'Username', 'login.password' => 'Password', 'login.error' => 'Invalid username or password', 'login.success' => 'You have been logged in', 'login.error.browser.title' => 'You are using an old browser', 'login.error.browser.text' => 'Please upgrade to the latest version of Google Chrome, Firefox, Safari or Internet Explorer.', 'upload.errors.missing-file' => 'The file has not been found', 'upload.errors.file-exists' => 'The file exists and cannot be overwritten', 'upload.errors.invalid-upload' => 'The upload failed', 'upload.errors.too-big' => 'The file is too big', 'upload.errors.invalid-file' => 'The file type is not allowed', 'upload.errors.move-error' => 'The file could not be moved to the server', 'upload.success' => 'The file has been uploaded', 'writer.errors.permissions' => 'The file is not writable', 'writer.errors.write' => 'The data could not be added', 'writer.success' => 'The file has been saved', 'form.buttons.h1' => 'h1', 'form.buttons.h2' => 'h2', 'form.buttons.h3' => 'h3', 'form.buttons.bold' => 'bold', 'form.buttons.bold.sample' => 'bold text', 'form.buttons.italic' => 'italic', 'form.buttons.italic.sample' => 'italic text', 'form.buttons.link' => 'link', 'form.buttons.email' => 'email', 'form.overlay.link.title' => 'Insert Link', 'form.overlay.link.link' => 'Link', 'form.overlay.link.text' => 'Link Text (optional)', 'form.overlay.link.button' => 'Insert Link', 'form.overlay.email.title' => 'Insert Email', 'form.overlay.email.link' => 'Email Address', 'form.overlay.email.text' => 'Link Text (optional)', 'form.overlay.email.button' => 'Insert Email'));
Esempio n. 28
0
		<!-- Shipping -->
		<input type="hidden" name="shipping_1" value="<?php 
echo $txn->shipping();
?>
">
	
		<!-- Tax -->
		<input type="hidden" name="tax_cart" value="<?php 
echo $txn->tax();
?>
">

		<!-- Transaction ID (Callback for the success page to grab the right transaction page) -->
		<input type="hidden" name="custom" value="<?php 
echo $txn->slug();
?>
">

		<button type="submit"><?php 
echo l::get('continue-to-paypal');
?>
</button>
	</form>

	<script>
		// Automatically submit the form
		document.paypalexpress.submit();
	</script>
</body>
</html>
Esempio n. 29
0
<?php

/* 
 * author: Seitenwerk <http://seitenwerk.at> & CIUCIU <http://ciuciu.at>
 */
l::set(array('ok' => 'Ok', 'cancel' => 'Anulează', 'nochanges' => 'Nu a fost schimbat nimic', 'header.title' => 'Kirby', 'header.logout' => 'Deconectează', 'subheader.home' => 'Acasă', 'subheader.site' => 'Pagina ta', 'subheader.info' => 'Informaţii', 'tabs.overview' => 'Ansamblu', 'tabs.info' => 'Editează Informaţiile', 'tabs.content' => 'Conţinut', 'tabs.files' => 'Documente', 'tabs.options' => 'URL', 'tabs.preview' => 'Previzionare', 'dashboard.edit' => 'Editează', 'dashboard.content' => 'Conţinut', 'dashboard.content.empty' => 'Această pagină nu are conţinut', 'dashboard.files' => 'Documente', 'dashboard.template' => 'Model', 'dashboard.stats.images' => 'Poze', 'dashboard.stats.videos' => 'Videouri', 'dashboard.stats.docs' => 'Documente', 'dashboard.stats.sound' => 'Audio', 'dashboard.stats.others' => 'Diverse', 'home.siteinfo' => 'Informaţii pagină', 'home.edit' => 'Editează', 'home.warning.title' => 'Vă rugăm să eliminaţi eroarea întâi', 'home.warning.permissions.title' => 'Permisiuni', 'home.warning.permissions.text' => 'Permisiunile din registrul de conţinut nu sunt setate corect. Vă rugăm să scimbaţi permisiunile pentru toate dosarele în <strong>0755</strong> şi pentru toate fişierele în <strong>0666</strong>', 'home.warning.blueprints.title' => 'Blueprints', 'home.warning.blueprints.text' => 'Nu există blueprints disponibile pentru modelele următoares<br /> Citeşte mai multe despre <a href="http://getkirby.com/panel/blueprints">cum să instezi blueprints pentru modele</a>', 'home.warning.thumbs.title' => 'Thumbnails', 'home.warning.thumbs.text' => 'Vă rugăm să adăugaţi un <strong>thumbs</strong> folder in directorul principal al site-ului dvs. şi să modificaţi permisiunile în <strong>0755</strong>', 'siteinfo.button' => 'Salvează', 'siteinfo.errors.title' => 'Vă rugăm să adăugaţi un titlu', 'siteinfo.errors.permissions' => '<strong>content/site.txt</strong> nu este editabil. <br />Vă rugăm să schimbaţi permisiunile şi să încercaţi din nou.', 'content.save' => 'Salvează', 'content.previous' => 'Înapoi', 'content.next' => 'Înainte', 'content.invisible' => 'Invizibil', 'nocontent.title' => 'Nici un conţinut', 'nocontent.text' => 'Nu există conţinut pentru această pagină.', 'pages.title' => 'Pagini vizibile', 'pages.title.home' => 'Pagini', 'pages.home' => 'Acasă', 'pages.sort' => 'Sortează', 'pages.add' => 'Adaugă', 'pages.delete' => 'Şterge', 'pages.invisible' => 'Subpagini invizibile', 'pages.invisible.home' => 'Pagini invizibile', 'pages.no.visible' => 'Nici o pagină vizibilă până acum', 'pages.no.invisible' => 'Nici o pagină invizibilă până acum', 'pages.moved' => 'Pagina a fost mutată', 'pages.sorted' => 'Pagina a fost sortată', 'pages.show.more' => 'Arată mai mult', 'pages.show.less' => 'Arată mai puţin', 'pages.errors.notfound' => 'Pagina nu a putut fi găsită', 'pages.errors.move' => 'Pagina nu a putut fi mutată', 'pages.errors.sort' => 'Nu toate paginile au putut fi sortate', 'pages.errors.nosort' => 'Nu e nimic de sortat', 'nopages.title' => 'Subpagini', 'nopages.text' => 'Această pagină nu ar trebui să aibă subpagini', 'pages.add.title' => 'Adaugă o pagină nouă', 'pages.add.label.title' => 'Titlu', 'pages.add.label.url' => 'URL', 'pages.add.label.template' => 'Model', 'pages.add.button' => 'Salvează', 'pages.add.errors.title' => 'Vă rugăm să adăugaţi un titlu', 'pages.add.errors.url' => 'Vă rugăm să adăugaţi o adresă URL pentru pagina dvs.', 'pages.add.errors.characters' => 'Vă rugăm să folosiţi numai următoarele caractere a-z, 0-9, _, - pentru adresa URL', 'pages.add.errors.exists' => 'O pagina cu această adresă URL există deja', 'pages.add.errors.permissions' => 'Folderul nu a putut fi creat', 'pages.add.success' => 'Pagina a fost creată', 'pages.update.errors' => 'Please fill out all fields correctly', 'pages.delete.title' => 'Şterge această pagină', 'pages.delete.button' => 'Şterge', 'pages.delete.errors.homepage' => 'Nu puteţi şterge pagina de start', 'pages.delete.errors.errorpage' => 'Nu puteţi şterge pagina de eroare', 'pages.delete.errors.subpages' => 'Această pagină are subpagini. Vă rugăm să le ştergeţi mai întâi.', 'pages.delete.errors.permissions' => 'Pagina nu a putut fi eliminată', 'pages.delete.success' => 'Pagina a fost eliminată', 'options.url' => 'URL', 'options.button' => 'Salvează', 'options.home.url' => 'URL', 'options.home.text' => 'Nu puteţi schimba URL-ul de pagina de start', 'options.error.text' => 'Nu puteţi schimba URL-ul paginii de eroare', 'options.errors.homepage' => 'Nu puteţi schimba URL-ul de pagina de start', 'options.errors.errorpage' => 'Nu puteţi schimba URL-ul paginii de eroare', 'options.errors.characters' => 'Vă rugăm să folosiţi numai următoarele caractere a-z, 0-9, _, -', 'options.errors.permissions' => 'Folderul de conţinut nu poate fi mutat', 'options.errors.exists' => 'Noua adresă URL există deja', 'options.errors.move' => 'Folderul de conţinut nu poate fi mutat', 'files.title' => 'Fişiere', 'files.upload' => 'Încărcaţi un fişier nou', 'files.edit' => 'Editează', 'files.replace' => 'înlocuieşte', 'files.delete' => 'Şterge', 'files.empty' => 'Nici un fişier până acum', 'nofiles.title' => 'Nici un fişier', 'nofiles.text' => 'Această pagină nu ar trebui să aibă fişiere', 'files.delete.title' => 'Ştergeţi acest fişier', 'files.delete.button' => 'Şterge', 'files.delete.errors.notfound' => 'Fişierul nu a putut fi găsit', 'files.delete.errors.permissions' => 'Fişierul nu a putut fi şters', 'files.delete.success' => 'Fişierul a fost şters', 'files.edit.title' => 'Editare fişier', 'files.edit.filename' => 'Numele fisierului (fara extensie)', 'files.edit.button' => 'Salvează', 'files.edit.errors.filename' => 'Please enter a valid filename', 'files.edit.errors.notfound' => 'Fişierul nu a putut fi găsit', 'files.edit.errors.exists' => 'Noul nume există deja', 'files.edit.errors.permissions' => 'Fişierul nu a putut fi redenumit', 'files.edit.success' => 'Fişierul a fost salvat', 'files.replace.title' => 'Înlocuiţi acest fişier', 'files.replace.file' => 'Fişier', 'files.replace.choose' => 'Vă rugăm să alegeţi un fişier nou din computer...', 'files.replace.button' => 'Înlocuieşte', 'files.replace.errors.notfound' => 'Fişierul nu a putut fi găsit', 'files.replace.success' => 'Fişierul a fost înlocuit', 'files.upload.title' => 'Încărcaţi un fişier nou', 'files.upload.choose' => 'Vă rugăm să alegeţi un fişier nou din computer...', 'files.upload.button' => 'Încarcă', 'login.button' => 'Autentificare', 'login.username' => 'Nume', 'login.password' => 'Parolă', 'login.error' => 'Numele sau parola incorectă', 'login.success' => 'Aţi fost conectat', 'login.error.browser.title' => 'Folosiţi un browser vechi', 'login.error.browser.text' => 'Vă rugăm să faceţi upgrade la ultima versiune de la Google Chrome, Firefox, Safari or Internet Explorer.', 'upload.errors.missing-file' => 'Fişierul nu a fost găsit', 'upload.errors.file-exists' => 'Fişierul există şi nu poate fi suprascris', 'upload.errors.invalid-upload' => 'Încărcarea a eşuat', 'upload.errors.too-big' => 'Fişierul este prea mare', 'upload.errors.invalid-file' => 'Acest tip de fişier nu este permis', 'upload.errors.move-error' => 'Fişierul nu a putut fi mutat pe server', 'upload.success' => 'Fişierul a fost încărcat', 'writer.errors.permissions' => 'Fişierul nu poate fi scris', 'writer.errors.write' => 'Datele nu au putut fi adăugate', 'writer.success' => 'Fişierul a fost salvat'));
Esempio n. 30
0
        }
        ?>
                        </small>
                    </div>
                </div>
                <nav class="item-options">
                    <ul class="nav nav-bar">
                        <li>
                            <a class="btn btn-with-icon [ selector-checkbox js-selector-checkbox ]" href="">
                                <i class="icon icon-left fa fa-circle-o"></i>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        <?php 
    }
    ?>
    <?php 
} else {
    ?>
        <div class="item selector-item-empty">
            <?php 
    echo l::get('selector.empty');
    ?>
        </div>
    <?php 
}
?>
</div>