Plugin version

This commit is contained in:
dignajar 2015-07-26 18:57:39 -03:00
parent 5c8dea969e
commit 648635a780
6 changed files with 23 additions and 4 deletions

View File

@ -227,6 +227,11 @@ div.pluginBox p {
margin-bottom: 10px; margin-bottom: 10px;
} }
div.pluginBox span.version {
color: #ccc;
margin-left: 10px;
}
/* ----------- PLUGINS FORM ----------- */ /* ----------- PLUGINS FORM ----------- */
#jsformplugin div { #jsformplugin div {

View File

@ -5,7 +5,7 @@
{ {
echo '<div class="pluginBox">'; echo '<div class="pluginBox">';
echo '<p>'.$Plugin->name().'</p>'; echo '<p>'.$Plugin->name().'<span class="version">'.$Language->g('Version').': '.$Plugin->version().'</span></p>';
echo '<p>'.$Plugin->description().'</p>'; echo '<p>'.$Plugin->description().'</p>';
if($Plugin->installed()) { if($Plugin->installed()) {

View File

@ -124,6 +124,16 @@ class Plugin {
return $this->getData('website'); return $this->getData('website');
} }
public function version()
{
return $this->getData('version');
}
public function releaseDate()
{
return $this->getData('releaseDate');
}
public function className() public function className()
{ {
return $this->className; return $this->className;

View File

@ -128,5 +128,6 @@
"delete-the-user-and-associate-its-posts-to-admin-user": "Delete the user and associate its posts to admin user", "delete-the-user-and-associate-its-posts-to-admin-user": "Delete the user and associate its posts to admin user",
"read-more": "Read more", "read-more": "Read more",
"show-blog": "Show blog", "show-blog": "Show blog",
"default-home-page": "Default home page" "default-home-page": "Default home page",
"version": "Version"
} }

View File

@ -6,7 +6,8 @@
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "", "website": "",
"version": "" "version": "0.1",
"releaseDate": ""
}, },
"name": "Name", "name": "Name",

View File

@ -5,7 +5,9 @@
"description": "List of pages", "description": "List of pages",
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "" "website": "",
"version": "0.1",
"releaseDate": ""
}, },
"pages": "Pages", "pages": "Pages",