Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-management
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
esi-management
Commits
9d82e439
Commit
9d82e439
authored
Jan 25, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update entity news and install plugin table
parent
c8d78461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
92 deletions
+0
-92
class-esi-management-news-list.php
...ent/admin/modules/news/class-esi-management-news-list.php
+0
-92
No files found.
wp-content/plugins/esi-management/admin/modules/news/class-esi-management-news-list.php
View file @
9d82e439
...
...
@@ -65,9 +65,6 @@ class Esi_Management_News_List extends \WP_List_Table {
case
'title'
:
return
$item
->
title
;
case
'entity'
:
return
$item
->
entity
;
case
'media'
:
return
$item
->
media
;
...
...
@@ -94,7 +91,6 @@ class Esi_Management_News_List extends \WP_List_Table {
$columns
=
array
(
'cb'
=>
'<input type="checkbox" />'
,
'title'
=>
__
(
'Title'
,
'esi'
),
'entity'
=>
__
(
'Entity'
,
'esi'
),
'media'
=>
__
(
'Media'
,
'esi'
),
'type'
=>
__
(
'Type'
,
'esi'
),
'region'
=>
__
(
'Region'
,
'esi'
),
...
...
@@ -226,94 +222,6 @@ function prepare_items() {
global
$wpdb
,
$testiURL
,
$tablename
,
$tablet
;
if
(
$which
==
"top"
){
?>
<div
class=
"alignleft actions bulkactions"
>
<?php
// entity
$companies
=
esi_get_all_entity
();
if
(
$companies
){
?>
<select
name=
"entity-filter"
class=
"esi-filter-entity"
>
<option
value=
""
>
Filter by entity
</option>
<?php
foreach
(
$companies
as
$entity
){
$selected
=
''
;
if
(
$_GET
[
'entity-filter'
]
==
$entity
->
id
){
$selected
=
' selected = "selected"'
;
}
?>
<option
value=
"&entity-filter=
<?=
$entity
->
id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$entity
->
name
;
?>
</option>
<?php
}
?>
</select>
<?php
}
// MEDIA
$medias
=
esi_get_all_media
();
if
(
$medias
){
?>
<select
name=
"media-filter"
class=
"esi-filter-media"
>
<option
value=
""
>
Filter by Media
</option>
<?php
foreach
(
$medias
as
$media
){
$selected
=
''
;
if
(
$_GET
[
'media-filter'
]
==
$media
->
id
){
$selected
=
' selected = "selected"'
;
}
?>
<option
value=
"&media-filter=
<?=
$media
->
id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$media
->
name
;
?>
</option>
<?php
}
?>
</select>
<?php
}
// TYPE
$types
=
esi_get_all_type
();
if
(
$types
){
?>
<select
name=
"type-filter"
class=
"ewc-filter-type"
>
<option
value=
""
>
Filter by Type
</option>
<?php
foreach
(
$types
as
$type
){
$selected
=
''
;
if
(
$_GET
[
'type-filter'
]
==
$type
->
id
){
$selected
=
' selected = "selected"'
;
}
?>
<option
value=
"&type-filter=
<?=
$type
->
id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$type
->
name
;
?>
</option>
<?php
}
?>
</select>
<?php
}
// REGION
$regions
=
esi_get_all_region
();
if
(
$regions
){
?>
<select
name=
"region-filter"
class=
"ewc-filter-region"
>
<option
value=
""
>
Filter by Region
</option>
<?php
foreach
(
$regions
as
$region
){
$selected
=
''
;
if
(
$_GET
[
'region-filter'
]
==
$region
->
id
){
$selected
=
' selected = "selected"'
;
}
?>
<option
value=
"®ion-filter=
<?=
$region
->
id
;
?>
"
<?php
echo
$selected
;
?>
>
<?php
echo
$region
->
name
;
?>
</option>
<?php
}
?>
</select>
<?php
}
?>
</div>
<?php
submit_button
(
__
(
'Filter'
),
'button'
,
'filter_action'
,
false
,
array
(
'id'
=>
'post-query-submit'
)
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment