Changeset 1530574
- Timestamp:
- 11/08/2016 06:51:18 PM (9 years ago)
- File:
-
- 1 edited
-
newsplugin/trunk/news-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
newsplugin/trunk/news-plugin.php
r1530571 r1530574 769 769 echo '</div>'; 770 770 echo '<div class="log_div">'; 771 echo '<h2><input type="checkbox" id="errors_div" onclick="showError(this)"/> Include Custom Logs</h2>'; 771 $myfilename = plugin_dir_url( __FILE__ ) ."logs/plugin-logs.txt"; 772 $content = file_get_contents($myfilename); 773 $v = empty($content) ? '' : ' checked="checked"'; 774 echo '<h2><input type="checkbox" id="errors_div" onclick="showError(this)"'.$v.'/> Include Custom Logs</h2>'; 772 775 echo '</div>'; 773 776 echo '<div class="feed_system_preview" id="error_show_div">'; 774 $myfilename = plugin_dir_url( __FILE__ ) ."logs/plugin-logs.txt"; 775 $content = file_get_contents($myfilename); 777 echo '<textarea id="errors_logs" name="noLog_errors" form="feed_form" style="display:none;">"'.$content.'"</textarea>'; 776 778 if(!empty($content)) { 777 echo '<textarea id="errors_logs" name="noLog_errors" form="feed_form" style="display:none;">"'.$content.'"</textarea>';778 779 echo '<p><strong>"'.$content.'"</strong></p>'; 779 780 }
Note: See TracChangeset
for help on using the changeset viewer.