Merge the Smartlinks plugin (SmartlinksBundle 0.6.0) into the bundle as the Smart Links domain (0.18.0)
Two domains, one MT3S bundle: Marketing Programs (unchanged) and the
imported Smart Links (smart links + UTM taxonomies), each keeping its
own menu, tables, routes and translations.
- Code moved from MauticPlugin\SmartlinksBundle\ to
MauticPlugin\MT3SMarketingProgramBundle\; template namespace
@Smartlinks/ -> @MT3SMarketingProgram/; smartlinks.js ->
Assets/js/mt3s-mp-smartlinks.js; icon -> Assets/img/smartlinks-icon.svg.
- Incoming migrations renamed Version_0_X_0_SmartLinks.php to avoid
the class-name collision; schema untouched, data intact.
- Permissions folded into MT3SMarketingProgramPermissions:
smart_links + taxonomies under the mt3smarketingprogram: base
(roles that had the old smartlinks: grants must be re-granted).
- config.php: Smart Links routes + menu group, public /l/{slug},
SmartlinksIntegration services, smartlinks_* parameters (legacy
utm_manager_* keys still readable), version 0.18.0. The 0.17.0
placeholder /s/marketing-program-utm-taxonomies is replaced by the
real /s/utm-taxonomies.
- Translations merged (en_US) and added (fr_FR); Tests/ + phpunit moved
in; readme documents both domains and the 0.18.0 merge history.
Verified live: menus, both config tabs, both lists + forms, program
pages, public redirect with taxonomy UTM values, host + unknown-slug
404s, 90/90 unit tests, full php -l, all ini catalogs parse.
This commit is contained in:
1 parent
debce4ba4a
commit
dce849610c
69 files changed
+8225
-43
No files matched your search
@@ -0,0 +1,71 @@
|
||||
{% extends '@MauticCore/Default/content.html.twig' %}
|
||||
|
||||
{% block mauticContent %}smartlinksSmartLink{% endblock %}
|
||||
|
||||
{% block headerTitle %}
|
||||
{% if form.vars.data.id %}
|
||||
{{ 'mautic.smartlinks.smart_links.header.edit'|trans({'%slug%': form.vars.data.slug}) }}
|
||||
{% else %}
|
||||
{{ 'mautic.smartlinks.smart_links.header.new'|trans }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ form_start(form) }}
|
||||
<div class="box-layout">
|
||||
<div class="col-md-9 height-auto bdr-r">
|
||||
<div class="pa-md">
|
||||
{# Short link preview: the slug the user types, on the domain set in Smart Links Settings. #}
|
||||
<div class="well well-sm" id="smartLinkDomainReminder"
|
||||
data-domain="{{ form.vars.smart_link_domain }}"
|
||||
data-separator="{{ form.vars.smart_link_separator }}"
|
||||
data-lowercase="{{ form.vars.smart_link_lowercase ? '1' : '0' }}">
|
||||
<span class="text-muted">{{ 'mautic.smartlinks.smart_links.domain.reminder'|trans }}</span>
|
||||
<code id="smartLinkPreview">{{ form.vars.smart_link_domain ? form.vars.smart_link_domain ~ '/l/' : '' }}{{ form.vars.smart_link_slug }}</code>
|
||||
</div>
|
||||
|
||||
<div class="input-group smart-link-slug-group">
|
||||
{{ form_row(form.slug) }}
|
||||
{% if not form.vars.smart_link_is_saved %}
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default" id="smartLinkGenerateSlug"
|
||||
data-generated="{{ form.vars.smart_link_generated }}"
|
||||
title="{{ 'mautic.smartlinks.smart_links.slug.generate.tooltip'|trans }}">
|
||||
<i class="ri-refresh-line"></i>
|
||||
{{ 'mautic.smartlinks.smart_links.slug.generate'|trans }}
|
||||
</button>
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{# The UTM taxonomy of the link: its allowed values drive the fields on the right. #}
|
||||
{{ form_row(form.taxonomy) }}
|
||||
|
||||
{{ form_row(form.redirectType) }}
|
||||
<div id="smartLinkDestinationUrlWrapper"{% if form.vars.data.redirectType.value == 'mautic' %} class="hide"{% endif %}>
|
||||
{{ form_row(form.destinationUrl) }}
|
||||
</div>
|
||||
<div id="smartLinkMauticDestinationWrapper"{% if form.vars.data.redirectType.value != 'mautic' %} class="hide"{% endif %}>
|
||||
{{ form_row(form.destination) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 height-auto">
|
||||
<div class="pr-lg pl-lg pt-md pb-md">
|
||||
<h4>{{ 'mautic.smartlinks.smart_links.utm_parameters'|trans }}</h4>
|
||||
<p class="text-muted small">{{ 'mautic.smartlinks.smart_links.utm_parameters.help'|trans }}</p>
|
||||
{# One fieldset per taxonomy: Mautic's data-show-on switcher shows the one of the
|
||||
chosen taxonomy (the container carries the col- class the switcher toggles). #}
|
||||
{% for taxonomyId, fieldset in form.vars.smart_link_utm_fieldsets %}
|
||||
<div class="col-xs-12 smart-link-utm-fields" data-show-on="{{ {(form.taxonomy.vars.id): taxonomyId}|json_encode|e('html_attr') }}">
|
||||
{% for key in fieldset.keys %}
|
||||
{{ form_row(form.utmParameters[fieldset.prefix ~ key]) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% do form.utmParameters.setRendered() %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user