Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean-up, implement the toggle-all button
- Loading branch information
Showing
18 changed files
with
63 additions
and
112 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
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 |
---|---|---|
@@ -1,61 +1,47 @@ | ||
<?php | ||
/** | ||
* Represents the view for the administration dashboard. | ||
* | ||
* This includes the header, options, and other information that should provide | ||
* The User Interface to the end user. | ||
* | ||
* @package Plugin_Name | ||
* @author Your Name <email@example.com> | ||
* @license GPL-2.0+ | ||
* @link http://example.com | ||
* @copyright 2013 Your Name or Company Name | ||
*/ | ||
?> | ||
<div class="wrap"> | ||
<div class="wrap"> | ||
|
||
<?php screen_icon( 'options-general' ); ?> | ||
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2> | ||
<?php screen_icon( 'options-general' ); ?> | ||
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2> | ||
|
||
<form action="" method="post" class="pods-submittable"> | ||
<div class="stuffbox pods-export-code"> | ||
<h3><label for="link_name"><?php _e( 'Choose which Pods to export', 'pods' ); ?></label></h3> | ||
<form action="" method="post" class="pods-submittable"> | ||
<div class="stuffbox pods-export-code"> | ||
<h3><label for="link_name"><?php _e( 'Choose which Pods to export', 'pods' ); ?></label></h3> | ||
|
||
<div class="pods-manage-field"> | ||
<div class="pods-field-option-group"> | ||
<p> | ||
<a href="#" class="button" ><?php _e( 'Toggle all on / off', 'pods' ); ?></a> | ||
</p> | ||
<div class="pods-manage-field"> | ||
<div class="pods-field-option-group"> | ||
<p id="toggle-all"> | ||
<a href="#" class="button"><?php _e( 'Toggle all on / off', 'pods' ); ?></a> | ||
</p> | ||
|
||
<div class="pods-pick-values pods-pick-checkbox pods-zebra"> | ||
<ul> | ||
<?php | ||
$pods = pods_api()->load_pods( array( 'fields' => false ) ); | ||
$zebra = false; | ||
foreach ( $pods as $this_pod ) { | ||
<div class="pods-pick-values pods-pick-checkbox pods-zebra"> | ||
<ul> | ||
<?php | ||
$pods = pods_api()->load_pods( array( 'fields' => false ) ); | ||
$zebra = false; | ||
foreach ( $pods as $this_pod ) { | ||
|
||
// We only support meta-based Pods | ||
if ( 'table' == $this_pod[ 'storage' ] ) { | ||
continue; | ||
} | ||
|
||
$class = ( $zebra ? 'even' : 'odd' ); | ||
$zebra = ( !$zebra ); | ||
?> | ||
<li class="pods-zebra-<?php echo $class; ?>"> | ||
<?php echo PodsForm::field( $this_pod['name'], true, 'boolean', array( 'boolean_yes_label' => $this_pod[ 'name' ] . ( !empty( $this_pod[ 'label' ] ) ? ' (' . $this_pod[ 'label' ] . ')' : '' ) ) ); ?> | ||
</li> | ||
<?php | ||
// We only support meta-based Pods | ||
if ( 'table' == $this_pod[ 'storage' ] ) { | ||
continue; | ||
} | ||
|
||
$class = ( $zebra ? 'even' : 'odd' ); | ||
$zebra = ( !$zebra ); | ||
?> | ||
</ul> | ||
</div> | ||
<div class="submit"> | ||
<a class="button button-primary" id="export" href="#"> Export </a> | ||
</div> | ||
<textarea id="feedback"></textarea> | ||
<li class="pods-zebra-<?php echo $class; ?>"> | ||
<?php echo PodsForm::field( $this_pod[ 'name' ], true, 'boolean', array( 'boolean_yes_label' => $this_pod[ 'name' ] . ( !empty( $this_pod[ 'label' ] ) ? ' (' . $this_pod[ 'label' ] . ')' : '' ) ) ); ?> | ||
</li> | ||
<?php | ||
} | ||
?> | ||
</ul> | ||
</div> | ||
<div class="submit"> | ||
<a class="button button-primary" id="export" href="#"> Export </a> | ||
</div> | ||
<textarea id="feedback"></textarea> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.