Update B2B partner zone title and email access prompt; adjust file sizes in FTP sync cache

This commit is contained in:
2025-03-15 00:26:34 +01:00
parent d37701d02e
commit 7ae2af4677
15 changed files with 75 additions and 35 deletions

View File

@@ -26,7 +26,7 @@
"autoload": {},
"b2b_users.csv": {
"type": "-",
"size": 461,
"size": 845,
"lmtime": 0,
"modified": true
},
@@ -400,8 +400,8 @@
},
"Footer.php": {
"type": "-",
"size": 1156,
"lmtime": 0,
"size": 1180,
"lmtime": 1741791590918,
"modified": false
},
"NavMenu.php": {

BIN
layout/.DS_Store vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1069,7 +1069,7 @@ header {
bottom: -30px;
height: 2px;
right: 0;
left: -50%;
left: -50px;
background-color: $cWhite;
}
@@ -2036,8 +2036,9 @@ header {
li {
a {
border: 1px solid #000;
border: 1px solid #D4D4D4;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 15px;
@@ -2046,6 +2047,11 @@ header {
position: relative;
gap: 10px;
img {
width: 100%;
max-width: 100% !important;
}
&::after {
position: relative;
top: -2px;
@@ -2059,8 +2065,7 @@ header {
}
&:hover {
color: #FFF;
background: #000;
border: 1px solid #000;
}
}
}
@@ -2069,4 +2074,31 @@ header {
hr {
margin-bottom: 50px;
}
}
.article_password_title {
margin: 0 auto 50px;
text-transform: uppercase;
text-align: center;
._first {
font-size: 15px;
font-weight: 600;
}
._second {
font-size: 15px;
font-weight: 300;
}
}
body {
&#page-8 {
#page-hero {
max-width: 1330px;
margin-left: auto;
margin-right: auto;
height: 350px;
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,5 @@
<?php
error_reporting( E_ALL ^ E_NOTICE ^ E_STRICT ^ E_WARNING );
error_reporting( E_ALL ^ E_NOTICE ^ E_STRICT ^ E_WARNING ^ E_DEPRECATED );
require_once dirname( __FILE__ ) . '/config.php';
/* grid - zapisanie elementu */
@@ -7,12 +7,12 @@ if ( $_POST['a'] == 'gsave' )
{
$grid = $_SESSION[ 'g' . $_POST[ 'gtable' ] ];
if ( is_a( $grid, 'grid' ) )
{
{
$values_tmp = json_decode( $_POST[ 'values' ], true );
if ( is_array( $values_tmp ) ) foreach ( $values_tmp as $val )
$values[ $val['name'] ] = $val['value'];
if ( $grid -> saveElement( $values ) )
{
if ( $values[ $grid -> id ] )
@@ -20,8 +20,8 @@ if ( $_POST['a'] == 'gsave' )
else
$msg = 'Nowy element został dodany.';
}
$response = array(
$response = array(
'status' => 'ok',
'output' => $grid -> drawResults(),
'msg' => $msg
@@ -39,10 +39,10 @@ if ( $_POST['a'] == 'gedit' )
{
$grid = $_SESSION[ 'g' . $_POST[ 'gtable' ] ];
if ( is_a( $grid, 'grid' ) )
{
$response = array(
{
$response = array(
'status' => 'ok',
'output' => $grid -> drawEdit( (int)$_POST[ 'gedit' ] )
'output' => $grid -> drawEdit( (int)$_POST[ 'gedit' ] )
);
}
else
@@ -63,14 +63,14 @@ if ( $_POST['a'] == 'gdraw' )
$grid -> hide_column( $_POST['column'], $_POST['hidden'] );
$grid -> hidden_columns[ $_POST['column'] ] = filter_var( $_POST['hidden'], FILTER_VALIDATE_BOOLEAN );
}
/* zmiana liczby wyświetlanych elementów */
if ( $_POST['glimit'] )
{
$grid -> limit = $_POST['glimit'];
$grid -> save_limit( $_POST['glimit'] );
}
/* usuwanie wielu elementów */
if ( $_POST['gdelete_multi'] )
{
@@ -79,7 +79,7 @@ if ( $_POST['a'] == 'gdraw' )
$msg = 'Wybrane elementy zostały usunięte.';
\S::delete_dir( '../../temp/' );
}
/* usuwanie */
if ( $_POST['gdelete'] )
{
@@ -87,7 +87,7 @@ if ( $_POST['a'] == 'gdraw' )
$msg = 'Wybrany element został usunięty.';
\S::delete_dir( '../../temp/' );
}
/* wyszukiwanie */
if ( $_POST['gsearch_column'] )
{
@@ -101,7 +101,7 @@ if ( $_POST['a'] == 'gdraw' )
$grid -> save_filters();
$grid -> set_cp( 1 );
}
/* sortowanie */
if ( $_POST[ 'gsort_column' ] )
{
@@ -111,15 +111,15 @@ if ( $_POST['a'] == 'gdraw' )
$grid -> order = [ 'column' => $_POST[ 'gsort_column' ], 'type' => 'ASC' ];
$grid -> save_order();
}
/* zmiana strony */
if ( $_POST[ 'gpage'] )
$grid -> set_cp( $_POST[ 'gpage'] );
$response = array(
$response = array(
'status' => 'ok',
'msg' => $msg,
'output' => $grid -> drawResults()
'output' => $grid -> drawResults()
);
}
else

BIN
libraries/plupload/.part Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

View File

@@ -1,3 +1,7 @@
<div class="article_password_title">
<div class="_first">Join our B2B Partner Zone</div>
<div class="_second"> enter your email to access marketing materials</div>
</div>
<div class="article-password" id="article-password-<?= $this -> article['id'];?>">
<div class="row">
<div class="col-12">
@@ -10,14 +14,14 @@
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
$( function()
{
$( 'body' ).on( click_event, '#submit-<?= $this -> article['id'];?>', function(e)
{
if ( $.trim( $( "#password-<?= $this -> article['id'];?>" ).val() ) !== '' )
{
e.preventDefault();
var password = $( '#password-<?= $this -> article['id'];?>' ).val();
$.ajax(
@@ -25,13 +29,13 @@
type: 'POST',
cache: false,
url: '/ajax.php',
data:
data:
{
a: 'article_unlock',
password: password,
article_id: <?= $this -> article['id'];?>
},
success: function( data )
success: function( data )
{
location.reload();
}

BIN
templates_user/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -1,3 +1,7 @@
<div class="article_password_title">
<div class="_first">Join our B2B Partner Zone</div>
<div class="_second"> enter your email to access marketing materials</div>
</div>
<div class="article-password" id="article-password-<?= $this -> article['id'];?>">
<div class="row">
<div class="col-12">
@@ -11,14 +15,14 @@
</div>
</div>
<script class="footer" type="text/javascript">
$( function()
$( function()
{
$( 'body' ).on( click_event, '#submit-<?= $this -> article['id'];?>', function(e)
{
if ( $.trim( $( "#email-<?= $this -> article['id'];?>" ).val() ) !== '' )
{
e.preventDefault();
var email = $( '#email-<?= $this -> article['id'];?>' ).val();
$.ajax(
@@ -26,13 +30,13 @@
type: 'POST',
cache: false,
url: '/ajax.php',
data:
data:
{
a: 'article_unlock',
email: email,
article_id: <?= $this -> article['id'];?>
},
success: function( data )
success: function( data )
{
location.reload();
}