mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
Check GD
This commit is contained in:
parent
db3ecd968a
commit
c33f462c06
2 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,12 @@ if (empty($defaultFormat)) {
|
|||
?>
|
||||
<h2><?php echo i18n('Metatags_Settings');?></h2>
|
||||
<br>
|
||||
<?php if (!extension_loaded('gd')) { ?>
|
||||
<div class="callout callout-info">
|
||||
<h5><i class="fa fa-info"></i> Note:</h5>
|
||||
Please install and enable the GD extension to use the thumbnail feature.
|
||||
</div>
|
||||
<?php } ?>
|
||||
<nav>
|
||||
<div class="nav nav-tabs" id="nav-tab">
|
||||
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
|
||||
|
|
|
|||
|
|
@ -627,6 +627,10 @@ function flash($key, $msg = null, $now = false)
|
|||
|
||||
function create_thumb($src, $desired_width = null, $desired_height = null) {
|
||||
|
||||
if (!extension_loaded('gd')) {
|
||||
return $src;
|
||||
}
|
||||
|
||||
$dir = 'content/images/thumbnails';
|
||||
|
||||
if (!is_dir($dir)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue