Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Syndication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
Syndication
Commits
8fce6309
Commit
8fce6309
authored
13 years ago
by
Prasath Nadarajah
Browse files
Options
Downloads
Patches
Plain Diff
dynamic tables to display tables
parent
2f9216ba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
push-syndication-server/push-syndication-server.php
+22
-7
22 additions, 7 deletions
push-syndication-server/push-syndication-server.php
with
22 additions
and
7 deletions
push-syndication-server/push-syndication-server.php
+
22
−
7
View file @
8fce6309
...
...
@@ -413,23 +413,38 @@ class Push_Syndication_Server {
$selected_siteoptions
=
!
empty
(
$selected_siteoptions
)
?
$selected_siteoptions
:
array
()
;
$site_options
=
wp_load_alloptions
();
$chunked_arrays
=
array_chunk
(
$site_options
,
5
,
true
);
foreach
(
$site_options
as
$key
=>
$value
)
{
echo
'<table border="1">'
;
echo
'<tbody>'
;
foreach
(
$chunked_arrays
as
$chunked_array
)
{
echo
'<tr>'
;
foreach
(
$chunked_array
as
$key
=>
$value
)
{
if
(
$key
[
0
]
==
'_'
)
continue
;
?>
<
p
>
<label>
<input
type=
"checkbox"
name=
"syn_selected_siteoptions[]"
value=
"
<?php
echo
esc_html
(
$key
);
?>
"
<?php
$this
->
checked_array
(
$key
,
$selected_siteoptions
)
?>
/>
<?php
echo
esc_html
(
$key
);
?>
</label>
</
p
>
<
td
>
<label>
<input
type=
"checkbox"
name=
"syn_selected_siteoptions[]"
value=
"
<?php
echo
esc_html
(
$key
);
?>
"
<?php
$this
->
checked_array
(
$key
,
$selected_siteoptions
)
?>
/>
<?php
echo
esc_html
(
$key
);
?>
</label>
</
td
>
<?php
}
echo
'</tr>'
;
}
echo
'</tbody'
;
echo
'</table>'
;
}
/******* SYNCING OPTIONS *******/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment