-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring for themes-manager (views)
- Loading branch information
1 parent
c7def88
commit cdff3fe
Showing
6 changed files
with
644 additions
and
411 deletions.
There are no files selected for viewing
18 changes: 12 additions & 6 deletions
18
runway-framework/framework/includes/themes-manager/views/del-package-confirmation.php
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,10 +1,16 @@ | ||
<p><?php echo __('You are about to remove the following packages from server', 'runway'); ?>:</p> | ||
<p><?php echo __( 'You are about to remove the following packages from server', 'runway' ); ?>:</p> | ||
|
||
<ul class="ul-disc"> | ||
<li><?php echo __('Standalone package from', 'runway'); ?>: <strong><?php echo wp_kses_post($package_info['date'].' '.$package_info['time'].' ('.$package_info['a_file'].')'); ?></strong></li> | ||
<li><?php echo __('Child package from', 'runway'); ?>: <strong><?php echo wp_kses_post($package_info['date'].' '.$package_info['time'].' ('.$package_info['c_file'].')'); ?></strong></li> | ||
<li><?php echo __( 'Standalone package from', 'runway' ); ?>: | ||
<strong><?php echo wp_kses_post( $package_info['date'] . ' ' . $package_info['time'] . ' (' . $package_info['a_file'] . ')' ); ?></strong> | ||
</li> | ||
<li><?php echo __( 'Child package from', 'runway' ); ?>: | ||
<strong><?php echo wp_kses_post( $package_info['date'] . ' ' . $package_info['time'] . ' (' . $package_info['c_file'] . ')' ); ?></strong> | ||
</li> | ||
</ul> | ||
|
||
<p><?php _e('Are you sure you wish to delete these files?', 'runway'); ?></p> | ||
<a href="<?php echo esc_url( $developer_tools->self_url('do-package').'&name='.$name.'&action=delete-package&package='.$package ); ?>" class = "button-secondary"><?php echo __('Yes, Delete these files', 'runway'); ?></a> | ||
<a href="<?php echo esc_url( $developer_tools->self_url('do-package').'&name='.$name ); ?>" class = "button-secondary"><?php echo __('No, Return me to the theme list', 'runway'); ?></a> | ||
<p><?php _e( 'Are you sure you wish to delete these files?', 'runway' ); ?></p> | ||
<a href="<?php echo esc_url( $developer_tools->self_url( 'do-package' ) . '&name=' . $name . '&action=delete-package&package=' . $package ); ?>" | ||
class="button-secondary"><?php echo __( 'Yes, Delete these files', 'runway' ); ?></a> | ||
<a href="<?php echo esc_url( $developer_tools->self_url( 'do-package' ) . '&name=' . $name ); ?>" | ||
class="button-secondary"><?php echo __( 'No, Return me to the theme list', 'runway' ); ?></a> |
14 changes: 8 additions & 6 deletions
14
runway-framework/framework/includes/themes-manager/views/del-packages-confirmation-all.php
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,10 +1,12 @@ | ||
<p><?php echo __('You are about to remove the following packages from server', 'runway'); ?>:</p> | ||
<p><?php echo __( 'You are about to remove the following packages from server', 'runway' ); ?>:</p> | ||
|
||
<ul class="ul-disc"> | ||
<li><?php echo __('All Standalone packages', 'runway'); ?></li> | ||
<li><?php echo __('All Child packages', 'runway'); ?></li> | ||
<li><?php echo __( 'All Standalone packages', 'runway' ); ?></li> | ||
<li><?php echo __( 'All Child packages', 'runway' ); ?></li> | ||
</ul> | ||
|
||
<p><?php _e('Are you sure you wish to delete these files?', 'runway'); ?></p> | ||
<a href="<?php echo esc_url( $developer_tools->self_url('do-package').'&name='.$name.'&action=delete-package-all&package=all' ); ?>" class = "button-secondary"><?php echo __('Yes, Delete these files', 'runway'); ?></a> | ||
<a href="<?php echo esc_url( $developer_tools->self_url('do-package').'&name='.$name ); ?>" class = "button-secondary"><?php echo __('No, Return me to the theme list', 'runway'); ?></a> | ||
<p><?php _e( 'Are you sure you wish to delete these files?', 'runway' ); ?></p> | ||
<a href="<?php echo esc_url( $developer_tools->self_url( 'do-package' ) . '&name=' . $name . '&action=delete-package-all&package=all' ); ?>" | ||
class="button-secondary"><?php echo __( 'Yes, Delete these files', 'runway' ); ?></a> | ||
<a href="<?php echo esc_url( $developer_tools->self_url( 'do-package' ) . '&name=' . $name ); ?>" | ||
class="button-secondary"><?php echo __( 'No, Return me to the theme list', 'runway' ); ?></a> |
14 changes: 9 additions & 5 deletions
14
runway-framework/framework/includes/themes-manager/views/del-theme-confirmation.php
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,9 +1,13 @@ | ||
<p><?php echo __('You are about to remove the following theme', 'runway'); ?>:</p> | ||
<p><?php echo __( 'You are about to remove the following theme', 'runway' ); ?>:</p> | ||
|
||
<ul class="ul-disc"> | ||
<li><strong><?php echo wp_kses_post($del_theme_info['Name']); ?></strong> <?php echo __('by', 'runway'); ?> <em><?php echo ( $del_theme_info['Author'] != '' ) ? wp_kses_post($del_theme_info['Author']) : 'Runway Framework'; ?></em></li> | ||
<li><strong><?php echo wp_kses_post( $del_theme_info['Name'] ); ?></strong> <?php echo __( 'by', 'runway' ); ?> | ||
<em><?php echo ( $del_theme_info['Author'] != '' ) ? wp_kses_post( $del_theme_info['Author'] ) : 'Runway Framework'; ?></em> | ||
</li> | ||
</ul> | ||
|
||
<p><?php echo __('Are you sure you wish to delete these files', 'runway'); ?>?</p> | ||
<a href="<?php echo esc_url( admin_url('admin.php?page=themes&navigation=delete-theme&name='.$del_theme_info['Folder'].'&confirm=true') ); ?>" class = "button-secondary"><?php echo __('Yes, Delete these files', 'runway'); ?></a> | ||
<a href="<?php echo esc_url( admin_url('admin.php?page=themes') ); ?>" class = "button-secondary"><?php echo __('No, Return me to the theme list', 'runway'); ?></a> | ||
<p><?php echo __( 'Are you sure you wish to delete these files', 'runway' ); ?>?</p> | ||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=themes&navigation=delete-theme&name=' . $del_theme_info['Folder'] . '&confirm=true' ) ); ?>" | ||
class="button-secondary"><?php echo __( 'Yes, Delete these files', 'runway' ); ?></a> | ||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=themes' ) ); ?>" | ||
class="button-secondary"><?php echo __( 'No, Return me to the theme list', 'runway' ); ?></a> |
Oops, something went wrong.