-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TheDMSGroup/ENG-616
[ENG-616] php-cs-fixes
- Loading branch information
Showing
8 changed files
with
230 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/* | ||
* @copyright 2018 Mautic Contributors. All rights reserved | ||
* @author Digital Media Solutions, LLC | ||
* | ||
* @link http://mautic.org | ||
* | ||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | ||
*/ | ||
|
||
namespace MauticPlugin\MauticSegmentExtrasBundle\Integration; | ||
|
||
use Mautic\PluginBundle\Integration\AbstractIntegration; | ||
|
||
/** | ||
* Class SegmentExtrasIntegration. | ||
* | ||
* This plugin does not add integrations. This is here purely for name/logo/etc. | ||
*/ | ||
class SegmentExtrasIntegration extends AbstractIntegration | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getAuthenticationType() | ||
{ | ||
return 'none'; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getSupportedFeatures() | ||
{ | ||
return []; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return 'SegmentExtras'; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDisplayName() | ||
{ | ||
return 'Segment Extras'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,4 @@ public function getParent() | |
{ | ||
return 'MauticLeadBundle'; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
<?php | ||
|
||
/* | ||
* @copyright 2014 Mautic Contributors. All rights reserved | ||
* @author Mautic | ||
* | ||
* @link http://mautic.org | ||
* | ||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | ||
*/ | ||
//Check to see if the entire page should be displayed or just main content | ||
if ('index' == $tmpl): | ||
$view->extend('MauticLeadBundle:List:index.html.php'); | ||
endif; | ||
$listCommand = $view['translator']->trans('mautic.lead.lead.searchcommand.list'); | ||
?> | ||
|
||
<?php if (count($items)): ?> | ||
<div class="table-responsive"> | ||
<table class="table table-hover table-striped table-bordered" id="leadListTable"> | ||
<thead> | ||
<tr> | ||
<?php | ||
echo $view->render( | ||
'MauticCoreBundle:Helper:tableheader.html.php', | ||
[ | ||
'checkall' => 'true', | ||
'target' => '#leadListTable', | ||
'langVar' => 'lead.list', | ||
'routeBase' => 'segment', | ||
'templateButtons' => [ | ||
'delete' => $permissions['lead:lists:deleteother'], | ||
], | ||
] | ||
); | ||
|
||
echo $view->render( | ||
'MauticCoreBundle:Helper:tableheader.html.php', | ||
[ | ||
'sessionVar' => 'segment', | ||
'orderBy' => 'l.name', | ||
'text' => 'mautic.core.name', | ||
'class' => 'col-leadlist-name', | ||
] | ||
); | ||
|
||
echo $view->render( | ||
'MauticCoreBundle:Helper:tableheader.html.php', | ||
[ | ||
'sessionVar' => 'segment', | ||
'text' => 'mautic.lead.list.thead.leadcount', | ||
'class' => 'visible-md visible-lg col-leadlist-leadcount', | ||
] | ||
); | ||
|
||
echo $view->render( | ||
'MauticCoreBundle:Helper:tableheader.html.php', | ||
[ | ||
'sessionVar' => 'segment', | ||
'orderBy' => 'l.id', | ||
'text' => 'mautic.core.id', | ||
'class' => 'visible-md visible-lg col-leadlist-id', | ||
] | ||
); | ||
?> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($items as $item): ?> | ||
<?php $mauticTemplateVars['item'] = $item; ?> | ||
<tr> | ||
<td> | ||
<?php | ||
echo $view->render( | ||
'MauticCoreBundle:Helper:list_actions.html.php', | ||
[ | ||
'item' => $item, | ||
'templateButtons' => [ | ||
'edit' => $view['security']->hasEntityAccess(true, $permissions['lead:lists:editother'], $item->getCreatedBy()), | ||
'clone' => $view['security']->hasEntityAccess(true, $permissions['lead:lists:editother'], $item->getCreatedBy()), | ||
'delete' => $view['security']->hasEntityAccess(true, $permissions['lead:lists:deleteother'], $item->getCreatedBy()), | ||
], | ||
'routeBase' => 'segment', | ||
'langVar' => 'lead.list', | ||
'custom' => [ | ||
[ | ||
'attr' => [ | ||
'data-toggle' => 'ajax', | ||
'href' => $view['router']->path( | ||
'mautic_contact_index', | ||
[ | ||
'search' => "$listCommand:{$item->getAlias()}", | ||
] | ||
), | ||
], | ||
'icon' => 'fa-users', | ||
'label' => 'mautic.lead.list.view_contacts', | ||
], | ||
], | ||
] | ||
); | ||
?> | ||
</td> | ||
<td> | ||
<div> | ||
<?php echo $view->render( | ||
'MauticCoreBundle:Helper:publishstatus_icon.html.php', | ||
['item' => $item, 'model' => 'lead.list'] | ||
); ?> | ||
<?php if ($view['security']->hasEntityAccess(true, $permissions['lead:lists:editother'], $item->getCreatedBy())) : ?> | ||
<a href="<?php echo $view['router']->path( | ||
'mautic_segment_action', | ||
['objectAction' => 'view', 'objectId' => $item->getId()] | ||
); ?>" data-toggle="ajax"> | ||
<?php echo $item->getName(); ?> (<?php echo $item->getAlias(); ?>) | ||
</a> | ||
<?php else : ?> | ||
<?php echo $item->getName(); ?> (<?php echo $item->getAlias(); ?>) | ||
<?php endif; ?> | ||
<?php if (!$item->isGlobal() && $currentUser->getId() != $item->getCreatedBy()): ?> | ||
<br/> | ||
<span class="small">(<?php echo $item->getCreatedByUser(); ?>)</span> | ||
<?php endif; ?> | ||
<?php if ($item->isGlobal()): ?> | ||
<i class="fa fa-fw fa-globe"></i> | ||
<?php endif; ?> | ||
<?php echo $view['content']->getCustomContent('segment.name', $mauticTemplateVars); ?> | ||
</div> | ||
<?php if ($description = $item->getDescription()): ?> | ||
<div class="text-muted mt-4"> | ||
<small><?php echo $description; ?></small> | ||
</div> | ||
<?php endif; ?> | ||
</td> | ||
<td class="visible-md visible-lg"> | ||
<a class="label label-primary" href="<?php echo $view['router']->path( | ||
'mautic_segment_extras_batch_export', | ||
['segmentId'=> $item->getId()] | ||
); ?>" <?php echo (0 == $leadCounts[$item->getId()]) ? 'disabled=disabled' : ''; ?>> | ||
<?php echo $view['translator']->transChoice( | ||
'mautic.lead.list.viewleads_count', | ||
$leadCounts[$item->getId()], | ||
['%count%' => $leadCounts[$item->getId()]] | ||
); ?> | ||
</a> | ||
</td> | ||
<td class="visible-md visible-lg"><?php echo $item->getId(); ?></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<div class="panel-footer"> | ||
<?php echo $view->render( | ||
'MauticCoreBundle:Helper:pagination.html.php', | ||
[ | ||
'totalItems' => count($items), | ||
'page' => $page, | ||
'limit' => $limit, | ||
'baseUrl' => $view['router']->path('mautic_segment_index'), | ||
'sessionVar' => 'segment', | ||
] | ||
); ?> | ||
</div> | ||
</div> | ||
<?php else: ?> | ||
<?php echo $view->render('MauticCoreBundle:Helper:noresults.html.php'); ?> | ||
<?php endif; ?> |