-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7afd5d
commit 5acc971
Showing
31 changed files
with
741 additions
and
18,886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
NameSpace Mageplaza\Blog\Model\Config\Source\Backend; | ||
class Image extends \Magento\Config\Model\Config\Backend\Image | ||
{ | ||
/** | ||
* The tail part of directory path for uploading | ||
* | ||
*/ | ||
const UPLOAD_DIR = 'mageplaza/author'; // Folder save image | ||
|
||
/** | ||
* Return path to directory for upload file | ||
* | ||
* @return string | ||
* @throw \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
protected function _getUploadDir() | ||
{ | ||
return $this->_mediaDirectory->getAbsolutePath($this->_appendScopeInfo(self::UPLOAD_DIR)); | ||
} | ||
|
||
/** | ||
* Makes a decision about whether to add info about the scope. | ||
* | ||
* @return boolean | ||
*/ | ||
protected function _addWhetherScopeInfo() | ||
{ | ||
return true; | ||
} | ||
|
||
/** | ||
* Getter for allowed extensions of uploaded files. | ||
* | ||
* @return string[] | ||
*/ | ||
protected function _getAllowedExtensions() | ||
{ | ||
return ['jpg', 'jpeg', 'gif', 'png', 'svg']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
<ul class="mageplaza-head" style="position: static"> | ||
<li> | ||
<a href="https://mageplaza.freshdesk.com/support/solutions/folders/6000213306" target="_blank">User Guide</a> <br> | ||
</li> | ||
<li> | ||
<a href="https://mageplaza.freshdesk.com/support/discussions/topics/new?forum_id=6000240988" target="_blank">Report a problem</a> <br> | ||
</li> | ||
<li> | ||
Your default blog URL <strong>domain.com/blog/</strong> <br> | ||
</li> | ||
<li> | ||
Atom Feed <strong>domain.com/blog/post/rss/</strong> <br> | ||
</li> | ||
<li> | ||
Sitemap <strong>domain.com/sitemap/blog.xml</strong> <br> | ||
</li> | ||
<li><a href="https://docs.mageplaza.com/blog-m2/" target="_blank">User Guide</a> <br> </li> | ||
<li><a href="https://mageplaza.freshdesk.com/support/discussions/topics/new?forum_id=6000241371" target="_blank">Report a problem</a> <br></li> | ||
<li>Your default blog URL <strong>domain.com/blog/</strong> <br></li> | ||
<li>Atom Feed <strong>domain.com/blog/post/rss/</strong> <br> </li> | ||
<li>Sitemap <strong>domain.com/sitemap/blog.xml</strong> <br> </li> | ||
<li><strong><a href="https://www.mageplaza.com/" target="_blank">Find more extensions</a></strong> <br></li> | ||
|
||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.