-
\ No newline at end of file
diff --git a/app/View/Themed/mobile/Layouts/mobile.ctp b/app/View/Themed/mobile/Layouts/mobile.ctp
deleted file mode 100755
index 0f6b4cb..0000000
--- a/app/View/Themed/mobile/Layouts/mobile.ctp
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
- Html->charset(); ?>
-
-
-
-
-
- Html->meta('icon');
- echo $this->Html->css('//ajax.aspnetcdn.com/ajax/jquery.mobile/1.3.0/jquery.mobile-1.3.0.min.css');
- echo $this->Html->css('util.css');
- echo $this->Html->script('https://www.google.com/jsapi');
- echo $this->Html->scriptBlock("google.load('jquery', '1.7.1');");
- echo $this->Html->script('//ajax.aspnetcdn.com/ajax/jquery.mobile/1.3.0/jquery.mobile-1.3.0.min.js');
- echo $this->Html->script('app.mobile');
- echo $this->element('analytics');
- echo $scripts_for_layout;
- ?>
-
-
-
-
-
-
- Session->flash(); ?>
- Session->flash('auth'); ?>
-
-
- element('paginate'); ?>
-
-
-
-
- =$this->Html->link('Containers', '/', array('data-ajax' => 'false')); ?>
- =$this->Html->link('Search', '/searches/find', array('data-ajax' => 'false')); ?>
- =$this->Html->link('My Account', '/account', array('data-ajax' => 'false')); ?>
- =$this->Html->link('Logout', array('controller' => 'users', 'action' => 'logout'), array('data-ajax' => 'false'));?>
-
- =$this->Html->link('Home', '/', array('data-ajax' => 'false')); ?>
- =$this->Html->link('Log In', '/login', array('data-ajax' => 'false')); ?>
-
-
-
-
-
-
diff --git a/app/View/Themed/mobile/Locations/add.ctp b/app/View/Themed/mobile/Locations/add.ctp
deleted file mode 100755
index 5738154..0000000
--- a/app/View/Themed/mobile/Locations/add.ctp
+++ /dev/null
@@ -1,8 +0,0 @@
-Form->create('Location', array('url' => array('controller' => 'locations', 'action' => 'add')));
- echo $this->Form->input('name');
- echo '
';
- echo $this->Form->input('address');
- echo '
';
- echo $this->Form->submit('Add', array('div' => false, 'data-theme' => 'b'));
- echo $this->Form->end();
\ No newline at end of file
diff --git a/app/View/Themed/mobile/Pages/home.ctp b/app/View/Themed/mobile/Pages/home.ctp
deleted file mode 100755
index 272d96f..0000000
--- a/app/View/Themed/mobile/Pages/home.ctp
+++ /dev/null
@@ -1,15 +0,0 @@
-Html->scriptBlock('
- if(mobileApp.isAndroid()) {
- BoxmeupAndroid.clearHistory();
- }
- ');
-?>
-
- Welcome to Boxmeup
-Html->image('generic-box.png', array('style' => 'padding-top: 20px;', 'width' => '64', 'height' => '64')); ?>
-
-Html->link('Sign Up', '/signup', array('data-role' => 'button', 'data-ajax' => 'false'));
- echo $this->Html->link('Log In', '/login', array('data-role' => 'button', 'data-ajax' => 'false'));
- echo $this->Html->link('QR Login', '#', array('data-role' => 'button', 'data-ajax' => 'false', 'style' => 'display: none;', 'class' => 'qr-scan-button'));
diff --git a/app/View/Themed/mobile/Searches/find.ctp b/app/View/Themed/mobile/Searches/find.ctp
deleted file mode 100755
index 08fea0c..0000000
--- a/app/View/Themed/mobile/Searches/find.ctp
+++ /dev/null
@@ -1,30 +0,0 @@
-Html->tag('h2', __('No results found for ').$this->request->data['Search']['query'].'.');
- if(!empty($landed)) {
- echo $this->Form->create('Search', array('url' => array('controller' => 'searches', 'action' => 'find')));
- echo $this->Form->input('query', array('label' => 'Search Query', 'type' => 'text', 'div' => false));
- echo $this->Form->submit('Search', array('div' => false));
- echo $this->Form->end();
- } else {
- if(!empty($results)) {
- $paging = $this->Paginator->params();
- ?>
-
Found results for "request->data['Search']['query']; ?>".
-
-
-
-
- Html->link(Sanitize::html($result['ContainerItem']['body'], array('remove' => true)) . ' - ' . $result['Container']['name'], array('controller' => 'containers', 'action' => 'view', $result['Container']['slug'])); ?>
- Time->timeAgoInWords($result['ContainerItem']['modified']); ?>
-
-
-
-
-
I created an item, but it doesn't show it when I search!
-
Please allow up to 1 minute for your item to become searchable.
-
-Form->create('User', array('url' => array('action' => 'account')));
- echo $this->Form->input('email', array('label' => __('Update Email')));
- echo $this->Form->input('password', array('label' => __('Update Password (Leave blank if you do not wish to change.)')));
- echo '
';
- echo $this->Form->submit(__('Update Account Settings'), array('data-theme' => 'b'));
- echo $this->Form->end();
-?>
\ No newline at end of file
diff --git a/app/View/Themed/mobile/Users/login.ctp b/app/View/Themed/mobile/Users/login.ctp
deleted file mode 100755
index d6a609f..0000000
--- a/app/View/Themed/mobile/Users/login.ctp
+++ /dev/null
@@ -1,15 +0,0 @@
-Html->script('views/users/login.mobile.js', array('inline' => false));
-?>
-
- Form->create('User', array('action' => 'login', 'data-ajax' => 'false'));
- echo $this->Form->input('email', array('style' => 'width: 250px'));
- echo $this->Form->input('password', array('style' => 'width: 250px; margin-bottom: 10px;'));
- echo $this->Html->link('Forgot password?', array('action' => 'forgot_password')).'
'.'
';
- echo $this->Form->submit('Login', array('class' => 'large blue button', 'div' => false, 'style' => 'width: 260px'));
- echo $this->Form->end();
- ?>
-
-
Don't have an account? Html->link('Create one!', '/signup'); ?>
-
diff --git a/app/View/Themed/mobile/Users/signup.ctp b/app/View/Themed/mobile/Users/signup.ctp
deleted file mode 100644
index eee7660..0000000
--- a/app/View/Themed/mobile/Users/signup.ctp
+++ /dev/null
@@ -1,19 +0,0 @@
-
- Form->create('User', array('action' => 'signup', 'data-ajax' => 'false'));
- echo $this->Form->input('email', array('label' => __('Email Address')));
- echo $this->Form->input('password', array('label' => __('Password')));
- // Simple bot circumvent
- echo '
';
- echo $this->Form->input('confirm_password');
- echo '
';
- echo '
';
- echo $this->Form->submit(__('Sign Up'), array('class' => 'button', 'div' => false));
- echo $this->Form->end();
- ?>
-
-
-
-
-
Html->link(__('Login') . '!', '/login'); ?>
-
diff --git a/app/View/Themed/mobile/elements/paginate.ctp b/app/View/Themed/mobile/elements/paginate.ctp
deleted file mode 100755
index 4b7ffa2..0000000
--- a/app/View/Themed/mobile/elements/paginate.ctp
+++ /dev/null
@@ -1,17 +0,0 @@
-Paginator->options = array('url' => $this->passedArgs);
-$paging = $this->Paginator->params();
-if ($paging['pageCount'] > 1) {
-?>
-
- Paginator->hasPrev()) {
- echo $this->Html->link('Previous', array_merge($this->Paginator->options['url'], array('page' => $this->Paginator->current() - 1)), array('data-role' => 'button', 'data-icon' => 'arrow-l'));
- }
- if($this->Paginator->hasNext()) {
- echo $this->Html->link('Next', array_merge($this->Paginator->options['url'], array('page' => $this->Paginator->current() + 1)), array('data-role' => 'button', 'data-icon' => 'arrow-r'));
- }
-
- ?>
-
-
\ No newline at end of file
diff --git a/app/View/Users/account.ctp b/app/View/Users/account.ctp
index f0ed7fd..abd8396 100755
--- a/app/View/Users/account.ctp
+++ b/app/View/Users/account.ctp
@@ -13,6 +13,13 @@
Form->input('password', array('placeholder' => 'Leave blank if you do not wish to change.', 'label' => false, 'class' => 'form-control', 'required' => false)); ?>
+
+
+
+
+
+ Form->input('locale', array('id' => 'change-language-locale', 'label' => false, 'div' => false, 'class' => 'form-control', 'options' => $availableLanguages)); ?>
diff --git a/app/tmp/cache/models/.keep b/app/tmp/cache/models/.keep
old mode 100644
new mode 100755
diff --git a/app/tmp/cache/persistent/.keep b/app/tmp/cache/persistent/.keep
old mode 100644
new mode 100755
diff --git a/app/tmp/logs/.keep b/app/tmp/logs/.keep
old mode 100644
new mode 100755
diff --git a/app/webroot/.htaccess b/app/webroot/.htaccess
index 3d8f0dc..0a01b2e 100755
--- a/app/webroot/.htaccess
+++ b/app/webroot/.htaccess
@@ -1,7 +1,5 @@
-
- RewriteEngine On
- RewriteBase /app/webroot/
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^(.*)$ index.php [QSA,L]
-
+RewriteEngine On
+RewriteBase /app/webroot/
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule ^(.*)$ index.php [QSA,L]
diff --git a/app/webroot/css/app.css b/app/webroot/css/app.css
index f5b6e35..626dd6e 100644
--- a/app/webroot/css/app.css
+++ b/app/webroot/css/app.css
@@ -40,9 +40,24 @@ body { margin-top: 90px; margin-bottom: 90px;}
border-bottom-color: white;
}
+.pagination>.active>a,
+.pagination>.active>span,
+.pagination>.active>a:hover,
+.pagination>.active>span:hover,
+.pagination>.active>a:focus,
+.pagination>.active>span:focus {
+ z-index: 0;
+}
+
@media (min-width: 1200px) {
+ .container>.navbar-header, .container>.navbar-collapse {
+ margin-left: 37px;
+ }
.main-navigation {
width: 240px;
+ height: 100%;
+ top: -5px;
+ padding-top: 100px;
}
}
diff --git a/app/webroot/js/app.js b/app/webroot/js/app.js
index 30492c7..bb1f5b9 100644
--- a/app/webroot/js/app.js
+++ b/app/webroot/js/app.js
@@ -16,6 +16,13 @@ var boxmeup = {
.val('')
.removeAttr('checked')
.removeAttr('selected');
+ },
+ displayGotoTop: function(e) {
+ if ($(window).scrollTop() > 0) {
+ $('.to-top').removeClass('hidden');
+ } else {
+ $('.to-top').addClass('hidden');
+ }
}
};
@@ -25,6 +32,8 @@ $(function() {
return false;
});
+ $(window).on('scroll', boxmeup.displayGotoTop);
+
// Search autocomplete
if (BMU_CLIENT.features.autocomplete) {
$searchInput = $('#SearchQuery');
diff --git a/app/webroot/js/main.js b/app/webroot/js/main.js
index b4608f5..0222e52 100644
--- a/app/webroot/js/main.js
+++ b/app/webroot/js/main.js
@@ -5,12 +5,6 @@ $(function() {
modalTemplate = _.template(data);
});
- // Language
- $('body').on('change', '#change-language', function() {
- url = $(this).attr('action');
- window.location.href = url + '/' + $('#change-language-locale option:selected').val();
- });
-
// Unregister BS3's default handler to intercept and handle remote handling to suit boxmeup
$(document).off('click.bs.modal.data-api', '[data-toggle="modal"]');
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
diff --git a/composer.json b/composer.json
index 9155bc6..83f2eb5 100644
--- a/composer.json
+++ b/composer.json
@@ -33,7 +33,8 @@
},
"scripts": {
"post-install-cmd": [
- "if [ ! -f ./app/Config/environment.php ]; then cp ./app/Config/environment.sample.php ./app/Config/environment.php; fi"
+ "if [ ! -f ./app/Config/environment.php ]; then cp ./app/Config/environment.sample.php ./app/Config/environment.php; fi",
+ "chmod -R 0777 app/tmp"
]
},
"extra" : {
diff --git a/composer.lock b/composer.lock
index 916a29b..a0ac264 100644
--- a/composer.lock
+++ b/composer.lock
@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
- "hash": "7fd73327239a2e86f0d9360623ec1848",
+ "hash": "5c05360775731512208fb75f0d7b974c",
"packages": [
{
"name": "cjsaylor/gchart",