| 1 |
<div class="cc_meta_control"> |
| 2 |
<textarea name="_inpost_head_script[synth_header_script]" rows="5" style="width:98%;" <?php disabled(!current_user_can( 'unfiltered_html') ); ?>><?php |
| 3 |
$allowed_html = array( |
| 4 |
'script' => array(), |
| 5 |
); |
| 6 |
|
| 7 |
if(!empty($meta['synth_header_script'])) echo wp_kses($meta['synth_header_script'], $allowed_html); |
| 8 |
?></textarea> |
| 9 |
<?php |
| 10 |
if(!current_user_can( 'unfiltered_html' )) { |
| 11 |
echo '<p style="color:#ffc107"><b>Note:</b> ' . __('You do not have permission to add or edit scripts. Please contact your administrator.', 'collectchat') . '</p>'; |
| 12 |
} else { |
| 13 |
echo '<p>'.__('Copy and paste the code snippet to add bot to this post or page', 'collectchat').'</p>' ; |
| 14 |
} |
| 15 |
?> |
| 16 |
</div> |
| 17 |
|