- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
951 B
PHP
Executable File
29 lines
951 B
PHP
Executable File
<?php
|
|
/**
|
|
* Option to enter notes for a given ad
|
|
*
|
|
* @package AdvancedAds
|
|
* @author Advanced Ads <info@wpadvancedads.com>
|
|
* @since 1.48.2
|
|
*
|
|
* @var Ad $ad Ad instance.
|
|
*/
|
|
|
|
$description = $ad->get_description();
|
|
?>
|
|
<label class="label" for="advads-usage-notes" onclick="advads_toggle('#advads-ad-notes textarea'); advads_toggle('#advads-ad-notes p')"><?php esc_html_e( 'notes', 'advanced-ads' ); ?></label>
|
|
<div id="advads-ad-notes">
|
|
<p title="<?php esc_html_e( 'click to change', 'advanced-ads' ); ?>" onclick="advads_toggle('#advads-ad-notes textarea'); advads_toggle('#advads-ad-notes p')">
|
|
<?php
|
|
if ( ! empty( $description ) ) {
|
|
echo nl2br( esc_html( $description ) );
|
|
} else {
|
|
esc_html_e( 'Click to add notes', 'advanced-ads' );
|
|
}
|
|
?>
|
|
<span class="dashicons dashicons-edit"></span>
|
|
</p>
|
|
<textarea name="advanced_ad[description]" id="advads-usage-notes"><?php echo esc_html( $description ); ?></textarea>
|
|
</div>
|
|
<hr/>
|