-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilter.php
More file actions
39 lines (35 loc) · 1.03 KB
/
Filter.php
File metadata and controls
39 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace Plugin\Portfolio;
class Filter
{
public static function ipWidgetManagementMenu($optionsMenu, $widgetRecord)
{
// Portfolio-Widget
if ($widgetRecord['name'] == 'Portfolio')
{
$optionsMenu[] = array(
'title' => __('Tiles', 'Portfolio', false),
'attributes' => array(
'class' => '_edit ipsWidgetTiles'
)
);
$optionsMenu[] = array(
'title' => __('Filter', 'Portfolio', false),
'attributes' => array(
'class' => '_edit ipsWidgetFilter'
)
);
}
// Tile-Widget
if ($widgetRecord['name'] == 'Tile')
{
$optionsMenu[] = array(
'title' => __('Settings', 'Portfolio', false),
'attributes' => array(
'class' => '_edit ipsWidgetSettings'
)
);
}
return $optionsMenu;
}
}