| 1 |
<div class="betterdocs-plugin-update-message"> |
| 2 |
<style> |
| 3 |
.betterdocs-plugin-update-message p:before { content: ''; margin-right: 0; display: none; } |
| 4 |
.betterdocs-plugin-update-message ul { |
| 5 |
list-style: disc; |
| 6 |
padding-left: 15px; |
| 7 |
} |
| 8 |
|
| 9 |
.betterdocs-plugin-update-message p:first-of-type, |
| 10 |
.betterdocs-plugin-update-message p.betterdocs-major-update-title { |
| 11 |
font-weight: 700; |
| 12 |
margin-top: 25px; |
| 13 |
margin-bottom: 10px; |
| 14 |
} |
| 15 |
|
| 16 |
.betterdocs-plugin-update-message p.betterdocs-major-update-title { |
| 17 |
border-bottom: 1px solid #ffb900; |
| 18 |
padding-bottom: 10px; |
| 19 |
margin-bottom: 20px; |
| 20 |
} |
| 21 |
</style> |
| 22 |
|
| 23 |
<?php |
| 24 |
|
| 25 |
if ( ! defined( 'ABSPATH' ) ) { |
| 26 |
exit; |
| 27 |
} |
| 28 |
if ( $major ) { |
| 29 |
printf( |
| 30 |
'<p class="betterdocs-major-update-title">%s</p>', |
| 31 |
__( 'Heads up, Please backup before upgrade!', 'betterdocs' ) //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Not Required For Ecaping Because This Is A Static String Without Html Tags |
| 32 |
); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* @var object $response; |
| 37 |
*/ |
| 38 |
echo isset( $response->upgrade_notice ) ? $response->upgrade_notice : ''; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Not Required For Escaping Because The Upgrade Notice Can Contain Html Tags, Which Are Needed For This File |
| 39 |
?> |
| 40 |
</div> |
| 41 |
<p style="display: none"> |
| 42 |
|