refactor(plugin): rebrand as MT3SMarketingProgram, release 0.17.0
Rename the plugin's vendor/namespace from experiential/Program to mt3s/MT3SMarketingProgram (composer: mt3s/mautic-marketing-program-bundle): - ProgramBundle -> MT3SMarketingProgramBundle; extension, integration, config support, permissions, events and twig extension renamed likewise - Initiative* -> Program*: controller (InitiativeController -> ProgramController), model, entities, repositories, form types and views (new _tabs/_task_table/_tab_table_filter partials, details page) - Settings config form theme -> _config_mt3smarketingprogramconfig_widget; routes and translations re-prefixed (mt3s_marketing_program_*) - Assets: icon.svg -> mt3s-mp-icon.svg; program.js -> mt3s-mp-program.js (OnLoad hooks renamed mt3sMpProgram*) - Add Command/RefreshStatsCommand; Migrations/Version_0_17_0.php renames the tables to mt3s_mp_program_*
This commit is contained in:
1 parent
687d33d30c
commit
ea88b7a772
131 files changed
+3238
-2836
No files matched your search
+88
-115
@@ -3,106 +3,101 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'name' => 'Program',
|
||||
'description' => 'Program plugin for Mautic.',
|
||||
'version' => '0.16.0',
|
||||
'name' => 'MT3S Marketing Program',
|
||||
'description' => 'Marketing Program for Mautic.',
|
||||
'version' => '0.17.0',
|
||||
'author' => 'Experiential',
|
||||
|
||||
'routes' => [
|
||||
'main' => [
|
||||
'initiative_index' => [
|
||||
'path' => '/programs/{page}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\InitiativeController::indexAction',
|
||||
'mt3s_marketing_program_index' => [
|
||||
'path' => '/marketing-programs/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\ProgramController::indexAction',
|
||||
],
|
||||
// objectAction: view, new, edit, delete, batchDelete.
|
||||
'initiative_action' => [
|
||||
'path' => '/programs/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\InitiativeController::executeAction',
|
||||
'mt3s_marketing_program_action' => [
|
||||
'path' => '/marketing-programs/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\ProgramController::executeAction',
|
||||
],
|
||||
'initiative_task_index' => [
|
||||
'path' => '/program-tasks/{page}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\TaskController::indexAction',
|
||||
'mt3s_marketing_program_task_index' => [
|
||||
'path' => '/marketing-program-tasks/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\TaskController::indexAction',
|
||||
],
|
||||
// objectAction: new (optional ?initiative=ID), edit, delete, batchDelete.
|
||||
'initiative_task_action' => [
|
||||
'path' => '/program-tasks/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\TaskController::executeAction',
|
||||
// objectAction: new (optional ?program=ID), edit, delete, batchDelete.
|
||||
'mt3s_marketing_program_task_action' => [
|
||||
'path' => '/marketing-program-tasks/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\TaskController::executeAction',
|
||||
],
|
||||
'initiative_stakeholder_index' => [
|
||||
'path' => '/program-stakeholders/{page}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\StakeholderController::indexAction',
|
||||
'mt3s_marketing_program_stakeholder_index' => [
|
||||
'path' => '/marketing-program-stakeholders/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\StakeholderController::indexAction',
|
||||
],
|
||||
// objectAction: new, edit, delete, batchDelete.
|
||||
'initiative_stakeholder_action' => [
|
||||
'path' => '/program-stakeholders/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\StakeholderController::executeAction',
|
||||
'mt3s_marketing_program_stakeholder_action' => [
|
||||
'path' => '/marketing-program-stakeholders/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\StakeholderController::executeAction',
|
||||
],
|
||||
'initiative_audience_index' => [
|
||||
'path' => '/program-audiences/{page}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\AudienceController::indexAction',
|
||||
'mt3s_marketing_program_audience_index' => [
|
||||
'path' => '/marketing-program-audiences/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\AudienceController::indexAction',
|
||||
],
|
||||
// objectAction: new, edit, delete, batchDelete.
|
||||
'initiative_audience_action' => [
|
||||
'path' => '/program-audiences/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\AudienceController::executeAction',
|
||||
'mt3s_marketing_program_audience_action' => [
|
||||
'path' => '/marketing-program-audiences/{objectAction}/{objectId}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\AudienceController::executeAction',
|
||||
],
|
||||
// UTM Taxonomies: a placeholder page under Programs for now.
|
||||
'program_utm_taxonomy_index' => [
|
||||
'path' => '/program-utm-taxonomies/{page}',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\UtmTaxonomyController::indexAction',
|
||||
// UTM Taxonomies: a placeholder page for the coming feature, kept out of the menu
|
||||
// (the route stays; the page is reachable at /s/marketing-program-utm-taxonomies).
|
||||
'mt3s_marketing_program_utm_taxonomy_index' => [
|
||||
'path' => '/marketing-program-utm-taxonomies/{page}',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\UtmTaxonomyController::indexAction',
|
||||
],
|
||||
// The type lists of the plugin's items (Insights, allocations, objectives, tasks,
|
||||
// stakeholders, audience values), moved out of Settings > Configuration.
|
||||
'program_item_types_index' => [
|
||||
'path' => '/program-item-types',
|
||||
'controller' => 'MauticPlugin\ProgramBundle\Controller\ItemTypesController::indexAction',
|
||||
'mt3s_marketing_program_item_types_index' => [
|
||||
'path' => '/marketing-program-item-types',
|
||||
'controller' => 'MauticPlugin\MT3SMarketingProgramBundle\Controller\ItemTypesController::indexAction',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
// Top-level "Programs" menu. Future program objects go in its children, after Initiatives.
|
||||
// Top-level "Programs" menu. Future program objects go in its children, after Programs.
|
||||
'menu' => [
|
||||
'main' => [
|
||||
'mautic.program.menu.root' => [
|
||||
'id' => 'program_root',
|
||||
'mt3s.marketing_program.menu.root' => [
|
||||
'id' => 'mt3s_marketing_program_root',
|
||||
'iconClass' => 'ri-calendar-line',
|
||||
'access' => ['program:initiatives:viewown', 'program:initiatives:viewother', 'program:tasks:viewown', 'program:tasks:viewother', 'program:stakeholders:viewown', 'program:stakeholders:viewother', 'program:audiences:viewown', 'program:audiences:viewother', 'program:itemtypes:view'],
|
||||
'access' => ['mt3smarketingprogram:programs:viewown', 'mt3smarketingprogram:programs:viewother', 'mt3smarketingprogram:tasks:viewown', 'mt3smarketingprogram:tasks:viewother', 'mt3smarketingprogram:stakeholders:viewown', 'mt3smarketingprogram:stakeholders:viewother', 'mt3smarketingprogram:audiences:viewown', 'mt3smarketingprogram:audiences:viewother', 'mt3smarketingprogram:itemtypes:view'],
|
||||
'priority' => 5,
|
||||
'children' => [
|
||||
'mautic.program.menu.index' => [
|
||||
'id' => 'initiative_index',
|
||||
'route' => 'initiative_index',
|
||||
'access' => ['program:initiatives:viewown', 'program:initiatives:viewother'],
|
||||
'mt3s.marketing_program.menu.index' => [
|
||||
'id' => 'mt3s_marketing_program_index',
|
||||
'route' => 'mt3s_marketing_program_index',
|
||||
'access' => ['mt3smarketingprogram:programs:viewown', 'mt3smarketingprogram:programs:viewother'],
|
||||
'priority' => 100,
|
||||
],
|
||||
'mautic.program.task.menu.index' => [
|
||||
'id' => 'initiative_task_index',
|
||||
'route' => 'initiative_task_index',
|
||||
'access' => ['program:tasks:viewown', 'program:tasks:viewother'],
|
||||
'mt3s.marketing_program.task.menu.index' => [
|
||||
'id' => 'mt3s_marketing_program_task_index',
|
||||
'route' => 'mt3s_marketing_program_task_index',
|
||||
'access' => ['mt3smarketingprogram:tasks:viewown', 'mt3smarketingprogram:tasks:viewother'],
|
||||
'priority' => 90,
|
||||
],
|
||||
'mautic.program.stakeholder.menu.index' => [
|
||||
'id' => 'initiative_stakeholder_index',
|
||||
'route' => 'initiative_stakeholder_index',
|
||||
'access' => ['program:stakeholders:viewown', 'program:stakeholders:viewother'],
|
||||
'mt3s.marketing_program.stakeholder.menu.index' => [
|
||||
'id' => 'mt3s_marketing_program_stakeholder_index',
|
||||
'route' => 'mt3s_marketing_program_stakeholder_index',
|
||||
'access' => ['mt3smarketingprogram:stakeholders:viewown', 'mt3smarketingprogram:stakeholders:viewother'],
|
||||
'priority' => 80,
|
||||
],
|
||||
'mautic.program.audience.menu.index' => [
|
||||
'id' => 'initiative_audience_index',
|
||||
'route' => 'initiative_audience_index',
|
||||
'access' => ['program:audiences:viewown', 'program:audiences:viewother'],
|
||||
'mt3s.marketing_program.audience.menu.index' => [
|
||||
'id' => 'mt3s_marketing_program_audience_index',
|
||||
'route' => 'mt3s_marketing_program_audience_index',
|
||||
'access' => ['mt3smarketingprogram:audiences:viewown', 'mt3smarketingprogram:audiences:viewother'],
|
||||
'priority' => 70,
|
||||
],
|
||||
'mautic.program.utm_taxonomy.menu.index' => [
|
||||
'id' => 'program_utm_taxonomy_index',
|
||||
'route' => 'program_utm_taxonomy_index',
|
||||
'access' => ['program:initiatives:viewown', 'program:initiatives:viewother'],
|
||||
'priority' => 60,
|
||||
],
|
||||
'mautic.program.menu.item_types' => [
|
||||
'id' => 'program_item_types_index',
|
||||
'route' => 'program_item_types_index',
|
||||
'access' => ['program:itemtypes:view'],
|
||||
'mt3s.marketing_program.menu.item_types' => [
|
||||
'id' => 'mt3s_marketing_program_item_types_index',
|
||||
'route' => 'mt3s_marketing_program_item_types_index',
|
||||
'access' => ['mt3smarketingprogram:itemtypes:view'],
|
||||
'priority' => 55,
|
||||
],
|
||||
],
|
||||
@@ -112,15 +107,15 @@ return [
|
||||
|
||||
'services' => [
|
||||
'integrations' => [
|
||||
'mautic.program.integration' => [
|
||||
'class' => MauticPlugin\ProgramBundle\Integration\ProgramIntegration::class,
|
||||
'mt3s.marketing_program.integration' => [
|
||||
'class' => MauticPlugin\MT3SMarketingProgramBundle\Integration\MT3SMarketingProgramIntegration::class,
|
||||
'tags' => [
|
||||
'mautic.integration',
|
||||
'mautic.basic_integration',
|
||||
],
|
||||
],
|
||||
'mautic.program.integration.configuration' => [
|
||||
'class' => MauticPlugin\ProgramBundle\Integration\Support\ProgramConfigSupport::class,
|
||||
'mt3s.marketing_program.integration.configuration' => [
|
||||
'class' => MauticPlugin\MT3SMarketingProgramBundle\Integration\Support\MT3SMarketingProgramConfigSupport::class,
|
||||
'tags' => [
|
||||
'mautic.config_integration',
|
||||
],
|
||||
@@ -128,73 +123,51 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
// Registers "initiative" as a category type (Settings > Categories), used by Initiative::$category.
|
||||
// Registers "program" as a category type (Settings > Categories), used by Program::$category.
|
||||
'categories' => [
|
||||
'initiative' => [
|
||||
'class' => MauticPlugin\ProgramBundle\Entity\Initiative::class,
|
||||
'label' => 'mautic.program.category.type',
|
||||
'program' => [
|
||||
'class' => MauticPlugin\MT3SMarketingProgramBundle\Entity\Program::class,
|
||||
'label' => 'mt3s.marketing_program.category.type',
|
||||
],
|
||||
],
|
||||
|
||||
'parameters' => [
|
||||
// The currency of every amount in the plugin (ISO 4217), edited in Settings > Configuration >
|
||||
// Program Settings. Read it through CurrencyProvider.
|
||||
'program_currency' => 'EUR',
|
||||
'mt3s_marketing_program_currency' => 'EUR',
|
||||
|
||||
// Item types, edited on the Item types page (Programs > Item types). Read them through
|
||||
// ItemTypeProvider. Each is a list of ['key' => …, 'names' => [locale => …], 'descriptions' => [locale => …]],
|
||||
// plus 'icon' => a Remix Icon class for description, allocation, objective, task and stakeholder types.
|
||||
'program_description_item_types' => [],
|
||||
'program_allocation_item_types' => [],
|
||||
'program_objective_types' => [],
|
||||
'program_task_types' => [],
|
||||
'program_stakeholder_types' => [],
|
||||
'mt3s_marketing_program_description_item_types' => [],
|
||||
'mt3s_marketing_program_allocation_item_types' => [],
|
||||
'mt3s_marketing_program_objective_types' => [],
|
||||
'mt3s_marketing_program_task_types' => [],
|
||||
'mt3s_marketing_program_stakeholder_types' => [],
|
||||
|
||||
// Default region (ISO 3166-1 alpha-2, e.g. FR) used to parse stakeholder phone numbers typed
|
||||
// without a country prefix, on save. Read through StakeholderModel.
|
||||
'program_stakeholder_phone_region' => 'FR',
|
||||
'mt3s_marketing_program_stakeholder_phone_region' => 'FR',
|
||||
|
||||
// Which audience persona attributes are offered on the audience forms, one toggle per attribute
|
||||
// (Settings > Configuration > Program Settings). Read through AudienceAttributes; a parameter set
|
||||
// to false turns the attribute off, and one that was never saved means enabled.
|
||||
'program_audience_attribute_tagline' => true,
|
||||
'program_audience_attribute_profile' => true,
|
||||
'program_audience_attribute_motivations' => true,
|
||||
'program_audience_attribute_barriers' => true,
|
||||
'program_audience_attribute_frustrations' => true,
|
||||
'program_audience_attribute_triggers' => true,
|
||||
'program_audience_attribute_decision_role' => true,
|
||||
'program_audience_attribute_tones' => true,
|
||||
'program_audience_attribute_channels' => true,
|
||||
'program_audience_attribute_stages' => true,
|
||||
'program_audience_attribute_size' => true,
|
||||
'mt3s_marketing_program_audience_attribute_tagline' => true,
|
||||
'mt3s_marketing_program_audience_attribute_profile' => true,
|
||||
'mt3s_marketing_program_audience_attribute_motivations' => true,
|
||||
'mt3s_marketing_program_audience_attribute_barriers' => true,
|
||||
'mt3s_marketing_program_audience_attribute_frustrations' => true,
|
||||
'mt3s_marketing_program_audience_attribute_triggers' => true,
|
||||
'mt3s_marketing_program_audience_attribute_decision_role' => true,
|
||||
'mt3s_marketing_program_audience_attribute_tones' => true,
|
||||
'mt3s_marketing_program_audience_attribute_channels' => true,
|
||||
'mt3s_marketing_program_audience_attribute_stages' => true,
|
||||
'mt3s_marketing_program_audience_attribute_size' => true,
|
||||
|
||||
// The values of an audience's closed attributes, edited in Settings > Configuration > Program
|
||||
// Settings. Each is a list of ['key' => …, 'names' => [locale => …]], read through
|
||||
// ItemTypeProvider (kinds "audience_decision_role" and "audience_tone").
|
||||
'program_audience_decision_roles' => [],
|
||||
'program_audience_tones' => [],
|
||||
|
||||
// Which audience persona attributes are offered on the audience forms, one toggle per attribute
|
||||
// (Settings > Configuration > Program Settings). The parameter names follow
|
||||
// AudienceAttributes::toggleParameter(); a parameter set to false turns the attribute off.
|
||||
// Defaults are handled by AudienceAttributes (enabled unless set to false).
|
||||
'program_audience_attribute_tagline' => true,
|
||||
'program_audience_attribute_profile' => true,
|
||||
'program_audience_attribute_motivations' => true,
|
||||
'program_audience_attribute_barriers' => true,
|
||||
'program_audience_attribute_frustrations' => true,
|
||||
'program_audience_attribute_triggers' => true,
|
||||
'program_audience_attribute_decision_role' => true,
|
||||
'program_audience_attribute_tones' => true,
|
||||
'program_audience_attribute_channels' => true,
|
||||
'program_audience_attribute_stages' => true,
|
||||
'program_audience_attribute_size' => true,
|
||||
|
||||
// The values of an audience's closed attributes, edited in Settings > Configuration > Program
|
||||
// Settings. Each is a list of ['key' => …, 'names' => [locale => …]], read through
|
||||
// ItemTypeProvider (kinds "audience_decision_role" and "audience_tone").
|
||||
'program_audience_decision_roles' => [],
|
||||
'program_audience_tones' => [],
|
||||
'mt3s_marketing_program_audience_decision_roles' => [],
|
||||
'mt3s_marketing_program_audience_tones' => [],
|
||||
],
|
||||
];
|
||||
Reference in new issue
Block a user