This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/jetpack/views/admin/module-modal-template.php

31 lines
1.5 KiB
PHP
Raw Normal View History

2018-03-21 18:19:20 +00:00
<script id="tmpl-modal" type="text/html">
<span id="modal-label" class="screen-reader-text"><?php _e( 'Modal window. Press escape to close.', 'jetpack' ); ?></span>
<a href="#" class="close">&times; <span class="screen-reader-text"><?php _e( 'Close modal window', 'jetpack' ); ?></span></a>
<div class="content-container <# if ( data.available) { #>modal-footer<# } #>">
<div class="content">
<h2>{{{ data.name }}}</h2>
{{{ data.long_description }}}
</div>
</div>
<# if ( data.available ) { #>
<?php if ( ( Jetpack::is_active() || Jetpack::is_development_mode() )
&& current_user_can( 'jetpack_manage_modules' )
) : ?>
<footer>
<ul>
<li>
<# if ( data.activated ) { #>
<span class='delete'><a class="button-secondary"href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ data.module }}}&#038;_wpnonce={{{ data.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
<# } else if ( data.available ) { #>
<span class='activate'><a class="button-primary"href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ data.module }}}&#038;_wpnonce={{{ data.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
<# } #>
</li>
<# if ( ( data.configurable && -1 !== data.noConfig ) || ( data.activated && -1 == data.noConfig ) ) { #>
<li><a class="button-primary" href="{{ data.configure_url }}"><?php _e( 'Configure', 'jetpack' ); ?></a></li>
<# } #>
</ul>
</footer>
<?php endif; ?>
<# } #>
</script>