Skip to content

Commit

Permalink
fix for image_tag method
Browse files Browse the repository at this point in the history
  • Loading branch information
samberrry committed Feb 11, 2021
1 parent a1af68a commit 27d79b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/HessamPostTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function image_tag($size = 'medium', $auto_link = true, $img_class = null
$url = e($this->image_url($size));
$alt = e($this->title);
$img = "<img src='$url' alt='$alt' class='" . e($img_class) . "' >";
return $auto_link ? "<a class='" . e($anchor_class) . "' href='" . e($this->url()) . "'>$img</a>" : $img;
return $auto_link ? "<a class='" . e($anchor_class) . "' href='" . e($this->url( app()->getLocale() )) . "'>$img</a>" : $img;

}

Expand Down
2 changes: 1 addition & 1 deletion src/Views/hessamcms_admin/layouts/admin_layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<small><a href='https://github.com/vhessam/laravel-blogger'>Hessam CMS</a></small>

<small>
Version 9.0.x
Version 9.1.x
</small>
</div>
</div>
Expand Down

0 comments on commit 27d79b8

Please sign in to comment.