Dependency based script loading
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
<?php
|
||||
$dependencies = array( 'ZeroClipboard' );
|
||||
$dependencies = array();
|
||||
|
||||
include('header.php');
|
||||
|
||||
if ( ISQ::$general['clipboard'] ) {
|
||||
$dependencies[] = 'ZeroClipboard';
|
||||
};
|
||||
|
||||
function display_error($message) {
|
||||
echo '<div class="content"><p class="error">' . $message . '</p></div>';
|
||||
include('footer.php');
|
||||
|
||||
Reference in New Issue
Block a user