mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify
This commit is contained in:
commit
ec8576e797
@ -4,22 +4,29 @@ return [
|
|||||||
'monitoring' => [
|
'monitoring' => [
|
||||||
'stacked' => true,
|
'stacked' => true,
|
||||||
'tabs' => [
|
'tabs' => [
|
||||||
|
|
||||||
|
|
||||||
'general' => [
|
'general' => [
|
||||||
'title' => 'visiosoft.module.advs::section.general',
|
'title' => 'visiosoft.module.advs::section.general',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'iban_numbers', 'google_statistic_code', 'ogImage', 'free_currencyconverterapi_key',
|
'iban_numbers',
|
||||||
|
'google_statistic_code',
|
||||||
|
'ogImage',
|
||||||
|
'free_currencyconverterapi_key',
|
||||||
'enabled_currencies'
|
'enabled_currencies'
|
||||||
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'ads' => [
|
'ads' => [
|
||||||
'title' => 'visiosoft.module.advs::section.ads',
|
'title' => 'visiosoft.module.advs::section.ads',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'latest-limit', 'auto_approve', 'default_published_time', 'default_adv_limit', 'default_GET',
|
'latest-limit',
|
||||||
'watermark_type', 'watermark_text', 'watermark_image', 'watermark_position', 'watermark_opacity',
|
'auto_approve',
|
||||||
|
'default_published_time',
|
||||||
|
'default_adv_limit',
|
||||||
|
'default_GET',
|
||||||
|
'watermark_type',
|
||||||
|
'watermark_text',
|
||||||
|
'watermark_image',
|
||||||
|
'watermark_position',
|
||||||
|
'watermark_opacity',
|
||||||
'listing_page_image',
|
'listing_page_image',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,15 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'register_email_field' => [
|
'register_email_field' => [
|
||||||
'type' => 'anomaly.field_type.boolean',
|
'type' => 'anomaly.field_type.boolean',
|
||||||
'config' => [
|
'config' => [
|
||||||
'default_value' => true,
|
'default_value' => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
'latest-limit' => [
|
'latest-limit' => [
|
||||||
'type' => 'anomaly.field_type.integer',
|
'type' => 'anomaly.field_type.integer',
|
||||||
'config' => [
|
'config' => [
|
||||||
@ -124,7 +121,8 @@ return [
|
|||||||
'env' => 'ADV_WATERMARK_POSITION',
|
'env' => 'ADV_WATERMARK_POSITION',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'config' => [
|
'config' => [
|
||||||
'options' => ['top-right' => 'Top Right', 'top-left' => 'Top Left', 'bottom-right' => 'Bottom Right', 'bottom-left' => 'Bottom Left', 'center' => 'Middle'],
|
'options' => ['top-right' => 'Top Right', 'top-left' => 'Top Left', 'bottom-right' => 'Bottom Right',
|
||||||
|
'bottom-left' => 'Bottom Left', 'center' => 'Middle'],
|
||||||
'default_value' => 'top-right',
|
'default_value' => 'top-right',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
@ -146,7 +144,6 @@ return [
|
|||||||
'mode' => 'upload',
|
'mode' => 'upload',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
'enabled_currencies' => [
|
'enabled_currencies' => [
|
||||||
'bind' => 'streams::currencies.enabled',
|
'bind' => 'streams::currencies.enabled',
|
||||||
'env' => 'ADV_ENABLED_CURRENCIES',
|
'env' => 'ADV_ENABLED_CURRENCIES',
|
||||||
|
|||||||
@ -51,3 +51,7 @@
|
|||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.img-thumbnail {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
@ -16,8 +16,8 @@ $(function () {
|
|||||||
var dropzone = new Dropzone('.dropzone:not(data-initialized)',
|
var dropzone = new Dropzone('.dropzone:not(data-initialized)',
|
||||||
{
|
{
|
||||||
paramName: 'upload',
|
paramName: 'upload',
|
||||||
resizeWidth: 1920,
|
resizeWidth: 800,
|
||||||
resizeHeight: 1920,
|
resizeHeight: 600,
|
||||||
autoProcessQueue: true,
|
autoProcessQueue: true,
|
||||||
parallelUploads: 1,
|
parallelUploads: 1,
|
||||||
resizeMethod: 'contain',
|
resizeMethod: 'contain',
|
||||||
|
|||||||
@ -61,7 +61,8 @@ class UploadController extends AdminController
|
|||||||
$position = $settings->value('visiosoft.module.advs::watermark_position');
|
$position = $settings->value('visiosoft.module.advs::watermark_position');
|
||||||
|
|
||||||
$img = WaterMark::make($this->request->file('upload')->getRealPath())
|
$img = WaterMark::make($this->request->file('upload')->getRealPath())
|
||||||
->resizeCanvas(800, 600, 'center', false, '464646');
|
->resize( null,600)
|
||||||
|
->resizeCanvas(800, 600, 'center', false, 'fff');
|
||||||
if ($watermarktype == 'image') {
|
if ($watermarktype == 'image') {
|
||||||
|
|
||||||
$watermarkimage_id = $settings->value('visiosoft.module.advs::watermark_image');
|
$watermarkimage_id = $settings->value('visiosoft.module.advs::watermark_image');
|
||||||
|
|||||||
@ -1,25 +1,32 @@
|
|||||||
{% set profile = findUserProfile(params.adv.created_by_id) %}
|
{% if params.showTheme is defined %}
|
||||||
{% if profile.gsm_phone is not null %}
|
{% set showTheme = params.showTheme %}
|
||||||
|
{% else %}
|
||||||
|
{% set showTheme = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% if showTheme %}
|
||||||
|
{% set profile = findUserProfile(params.adv.created_by_id) %}
|
||||||
|
{% if profile.gsm_phone is not null %}
|
||||||
<div class="col-md-12 m-2 number-container">
|
<div class="col-md-12 m-2 number-container">
|
||||||
<button class="btn btn-secondary w-100">
|
<button class="btn btn-secondary w-100">
|
||||||
<i class="fas fa-mobile hide-number text-warning"></i>
|
<i class="fas fa-mobile hide-number text-warning"></i>
|
||||||
<span class="hide-number">{{ profile.gsm_phone }}</span>
|
<span class="hide-number">{{ profile.gsm_phone }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if profile.office_phone is not empty %}
|
{% if profile.office_phone is not empty %}
|
||||||
<div class="col-md-12 m-2 number-container">
|
<div class="col-md-12 m-2 number-container">
|
||||||
<button class="btn btn-secondary w-100">
|
<button class="btn btn-secondary w-100">
|
||||||
<i class="fas fa-headset hide-number text-warning"></i>
|
<i class="fas fa-headset hide-number text-warning"></i>
|
||||||
<span class="hide-number">{{ profile.office_phone }}</span>
|
<span class="hide-number">{{ profile.office_phone }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if profile.land_phone is not empty %}
|
{% if profile.land_phone is not empty %}
|
||||||
<div class="col-md-12 m-2 number-container">
|
<div class="col-md-12 m-2 number-container">
|
||||||
<button class="btn btn-secondary w-100">
|
<button class="btn btn-secondary w-100">
|
||||||
<i class="fa fa-phone-square hide-number text-warning"></i>
|
<i class="fa fa-phone-square hide-number text-warning"></i>
|
||||||
<span class="hide-number">{{ profile.land_phone }}</span>
|
<span class="hide-number">{{ profile.land_phone }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Loading…
Reference in New Issue
Block a user