Solwin_Manageteam - Version 1.0.3

Version Notes

Manage Team extension is used to display team member's information on the website with ease.

Download this release

Release Info

Developer Sanjay Dabhoya
Extension Solwin_Manageteam
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Solwin/Manageteam/Block/Adminhtml/Renderer/Image.php CHANGED
@@ -8,7 +8,7 @@ class Solwin_Manageteam_Block_Adminhtml_Renderer_Image extends Mage_Adminhtml_Bl
8
  if ($value) {
9
  $mediaurl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . $value;
10
  } else {
11
- $mediaurl = $this->getSkinUrl() . 'images/manageteam/manageteam.jpg';
12
  }
13
  return '<p style="text-align:center;padding-top:5px;"><img src="' . $mediaurl . '" style="width:80px;height:80px;text-align:center;"/></p>';
14
  }
8
  if ($value) {
9
  $mediaurl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . $value;
10
  } else {
11
+ $mediaurl = $this->getSkinUrl() . 'images/manageteam/manageteam.png';
12
  }
13
  return '<p style="text-align:center;padding-top:5px;"><img src="' . $mediaurl . '" style="width:80px;height:80px;text-align:center;"/></p>';
14
  }
app/code/community/Solwin/Manageteam/Block/Index.php CHANGED
@@ -12,7 +12,7 @@ class Solwin_Manageteam_Block_Index extends Mage_Core_Block_Template {
12
  parent::_prepareLayout();
13
 
14
  $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
15
- $pager->setAvailableLimit(array(8 => 8, 12 => 12, 24 => 24, 'all' => 'all'));
16
  $pager->setCollection($this->getCollection());
17
  $this->setChild('pager', $pager);
18
  $this->getCollection()->load();
12
  parent::_prepareLayout();
13
 
14
  $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager');
15
+ $pager->setAvailableLimit(array(6 => 6, 12 => 12, 24 => 24, 'all' => 'all'));
16
  $pager->setCollection($this->getCollection());
17
  $this->setChild('pager', $pager);
18
  $this->getCollection()->load();
app/code/community/Solwin/Manageteam/Helper/Data.php CHANGED
@@ -3,6 +3,7 @@
3
  class Solwin_Manageteam_Helper_Data extends Mage_Core_Helper_Abstract {
4
 
5
  public function getManageteamsUrl() {
6
- return Mage::getUrl('manageteam');
7
  }
8
- }
 
3
  class Solwin_Manageteam_Helper_Data extends Mage_Core_Helper_Abstract {
4
 
5
  public function getManageteamsUrl() {
6
+ return Mage::getUrl('manageteam/index/index');
7
  }
8
+
9
+ }
app/code/community/Solwin/Manageteam/controllers/Adminhtml/ManageteamController.php CHANGED
@@ -76,6 +76,7 @@ class Solwin_Manageteam_Adminhtml_ManageteamController extends Mage_Adminhtml_Co
76
 
77
  try {
78
 
 
79
  //save image
80
  try {
81
 
@@ -100,7 +101,7 @@ class Solwin_Manageteam_Adminhtml_ManageteamController extends Mage_Adminhtml_Co
100
  $path = Mage::getBaseDir('media') . DS . 'manageteam' . DS . 'manageteam' . DS;
101
  $uploader = new Varien_File_Uploader('image');
102
  $uploader->setAllowedExtensions(array('jpg', 'png', 'gif'));
103
- $uploader->setAllowRenameFiles(false);
104
  $uploader->setFilesDispersion(false);
105
  $destFile = $path . $_FILES['image']['name'];
106
  $filename = $uploader->getNewFileName($destFile);
@@ -115,8 +116,9 @@ class Solwin_Manageteam_Adminhtml_ManageteamController extends Mage_Adminhtml_Co
115
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
116
  return;
117
  }
118
-
119
- //save image
 
120
  $model = Mage::getModel("manageteam/manageteam")
121
  ->addData($post_data)
122
  ->setId($this->getRequest()->getParam("id"))
76
 
77
  try {
78
 
79
+
80
  //save image
81
  try {
82
 
101
  $path = Mage::getBaseDir('media') . DS . 'manageteam' . DS . 'manageteam' . DS;
102
  $uploader = new Varien_File_Uploader('image');
103
  $uploader->setAllowedExtensions(array('jpg', 'png', 'gif'));
104
+ $uploader->setAllowRenameFiles(true);
105
  $uploader->setFilesDispersion(false);
106
  $destFile = $path . $_FILES['image']['name'];
107
  $filename = $uploader->getNewFileName($destFile);
116
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
117
  return;
118
  }
119
+ //save image
120
+
121
+
122
  $model = Mage::getModel("manageteam/manageteam")
123
  ->addData($post_data)
124
  ->setId($this->getRequest()->getParam("id"))
app/code/community/Solwin/Manageteam/controllers/IndexController.php CHANGED
@@ -1,24 +1,22 @@
1
  <?php
2
-
3
- class Solwin_Manageteam_IndexController extends Mage_Core_Controller_Front_Action {
4
-
5
  public function IndexAction() {
 
 
 
 
 
 
 
 
 
6
 
7
- $this->loadLayout();
8
- $this->getLayout()->getBlock("head")->setTitle($this->__("Our Team"));
9
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
10
- $breadcrumbs->addCrumb("home", array(
11
- "label" => $this->__("Home"),
12
- "title" => $this->__("Home"),
13
- "link" => Mage::getBaseUrl()
14
- ));
15
 
16
- $breadcrumbs->addCrumb("manage team", array(
17
- "label" => $this->__("Our Team"),
18
- "title" => $this->__("Our Team")
19
- ));
20
-
21
- $this->renderLayout();
22
  }
23
-
24
- }
1
  <?php
2
+ class Solwin_Manageteam_IndexController extends Mage_Core_Controller_Front_Action{
 
 
3
  public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Manage Team"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
 
14
+ $breadcrumbs->addCrumb("manage team", array(
15
+ "label" => $this->__("Manage Team"),
16
+ "title" => $this->__("Manage Team")
17
+ ));
 
 
 
 
18
 
19
+ $this->renderLayout();
20
+
 
 
 
 
21
  }
22
+ }
 
app/code/community/Solwin/Manageteam/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Solwin_Manageteam>
5
- <version>1.0.1</version>
6
  </Solwin_Manageteam>
7
  </modules>
8
  <frontend>
@@ -69,7 +69,7 @@
69
  </manageteam_read>
70
  </resources>
71
  </global>
72
- <admin>
73
  <routers>
74
  <manageteam>
75
  <use>admin</use>
@@ -78,18 +78,26 @@
78
  <frontName>admin_manageteam</frontName>
79
  </args>
80
  </manageteam>
 
 
 
 
 
 
 
81
  </routers>
82
  </admin>
83
  <adminhtml>
84
  <menu>
85
  <manageteam module="manageteam">
86
- <title>Our Team</title>
87
  <sort_order>100</sort_order>
88
  <children>
89
  <manageteam module="manageteam">
90
- <title>Manage Our Team</title>
91
  <sort_order>10</sort_order>
92
- <action>manageteam/adminhtml_manageteam</action>
 
93
  </manageteam>
94
  </children>
95
  </manageteam>
@@ -102,11 +110,11 @@
102
  <admin>
103
  <children>
104
  <manageteam translate="title" module="manageteam">
105
- <title>Our Team</title>
106
  <sort_order>1000</sort_order>
107
  <children>
108
  <manageteam translate="title">
109
- <title>Our Team</title>
110
  <sort_order>10</sort_order>
111
  </manageteam>
112
  </children>
2
  <config>
3
  <modules>
4
  <Solwin_Manageteam>
5
+ <version>1.0.3</version>
6
  </Solwin_Manageteam>
7
  </modules>
8
  <frontend>
69
  </manageteam_read>
70
  </resources>
71
  </global>
72
+ <admin>
73
  <routers>
74
  <manageteam>
75
  <use>admin</use>
78
  <frontName>admin_manageteam</frontName>
79
  </args>
80
  </manageteam>
81
+ <adminhtml>
82
+ <args>
83
+ <modules>
84
+ <Solwin_Manageteam_Adminhtml before="Mage_Downloadable">Solwin_Manageteam_Adminhtml</Solwin_Manageteam_Adminhtml>
85
+ </modules>
86
+ </args>
87
+ </adminhtml>
88
  </routers>
89
  </admin>
90
  <adminhtml>
91
  <menu>
92
  <manageteam module="manageteam">
93
+ <title>Solwin</title>
94
  <sort_order>100</sort_order>
95
  <children>
96
  <manageteam module="manageteam">
97
+ <title>Manage Team</title>
98
  <sort_order>10</sort_order>
99
+ <!--<action>manageteam/adminhtml_manageteam</action>-->
100
+ <action>adminhtml/manageteam</action>
101
  </manageteam>
102
  </children>
103
  </manageteam>
110
  <admin>
111
  <children>
112
  <manageteam translate="title" module="manageteam">
113
+ <title>Manage Team</title>
114
  <sort_order>1000</sort_order>
115
  <children>
116
  <manageteam translate="title">
117
+ <title>Manage Team</title>
118
  <sort_order>10</sort_order>
119
  </manageteam>
120
  </children>
app/code/community/Solwin/Manageteam/etc/system.xml CHANGED
@@ -2,13 +2,13 @@
2
  <config>
3
  <tabs>
4
  <manageteamtab translate="label" module="manageteam">
5
- <label>SOLWIN</label>
6
  <sort_order>100</sort_order>
7
  </manageteamtab>
8
  </tabs>
9
  <sections>
10
  <manageteamsection translate="label" module="manageteam">
11
- <label>Our Team</label>
12
  <tab>manageteamtab</tab>
13
  <frontend_type>text</frontend_type>
14
  <sort_order>100</sort_order>
@@ -23,7 +23,6 @@
23
  <show_in_default>1</show_in_default>
24
  <show_in_website>1</show_in_website>
25
  <show_in_store>1</show_in_store>
26
- <comment><![CDATA[Use this link to open manageteam page from url- <b>http://yourdomain.com/manageteam</b>]]></comment>
27
  <fields>
28
  <enable translate="label">
29
  <label>Enable</label>
@@ -34,33 +33,6 @@
34
  <show_in_website>1</show_in_website>
35
  <show_in_store>1</show_in_store>
36
  </enable>
37
- <toplink translate="label">
38
- <label>Add link to toplink?</label>
39
- <frontend_type>select</frontend_type>
40
- <source_model>adminhtml/system_config_source_yesno</source_model>
41
- <sort_order>2</sort_order>
42
- <show_in_default>1</show_in_default>
43
- <show_in_website>1</show_in_website>
44
- <show_in_store>1</show_in_store>
45
- </toplink>
46
- <topmenu translate="label">
47
- <label>Add link to topmenu?</label>
48
- <frontend_type>select</frontend_type>
49
- <source_model>adminhtml/system_config_source_yesno</source_model>
50
- <sort_order>3</sort_order>
51
- <show_in_default>1</show_in_default>
52
- <show_in_website>1</show_in_website>
53
- <show_in_store>1</show_in_store>
54
- </topmenu>
55
- <footerlink translate="label">
56
- <label>Add link to footer?</label>
57
- <frontend_type>select</frontend_type>
58
- <source_model>adminhtml/system_config_source_yesno</source_model>
59
- <sort_order>4</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>1</show_in_website>
62
- <show_in_store>1</show_in_store>
63
- </footerlink>
64
  </fields>
65
  </manageteamgroup>
66
  </groups>
2
  <config>
3
  <tabs>
4
  <manageteamtab translate="label" module="manageteam">
5
+ <label><![CDATA[<a href="http://www.solwininfotech.com/" style="background: none;" target="_new"><img alt="Solwin" title="Solwin" style="display: inline;padding-right: 5px;" src="http://www.solwininfotech.com/wp-content/themes/solwin/images/favicon.ico">SOLWIN</a>]]></label>
6
  <sort_order>100</sort_order>
7
  </manageteamtab>
8
  </tabs>
9
  <sections>
10
  <manageteamsection translate="label" module="manageteam">
11
+ <label>Manage Team</label>
12
  <tab>manageteamtab</tab>
13
  <frontend_type>text</frontend_type>
14
  <sort_order>100</sort_order>
23
  <show_in_default>1</show_in_default>
24
  <show_in_website>1</show_in_website>
25
  <show_in_store>1</show_in_store>
 
26
  <fields>
27
  <enable translate="label">
28
  <label>Enable</label>
33
  <show_in_website>1</show_in_website>
34
  <show_in_store>1</show_in_store>
35
  </enable>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  </fields>
37
  </manageteamgroup>
38
  </groups>
app/code/community/Solwin/Manageteam/sql/manageteam_setup/{mysql4-install-1.0.1.php → mysql4-install-1.0.3.php} RENAMED
@@ -2,19 +2,22 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
- create table manageteam(manageteam_id int not null auto_increment, name varchar(100),
6
- image varchar(255),
7
- designation varchar(255),
8
- description varchar(255),
9
- status int(11),
10
- facebookurl varchar(255),
11
- googleurl varchar(255),
12
- twitterurl varchar(255),
13
- email varchar(255),
14
- primary key(manageteam_id));
15
 
16
  SQLTEXT;
17
 
18
  $installer->run($sql);
 
 
 
19
  $installer->endSetup();
20
 
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
+ create table manageteam(manageteam_id int not null auto_increment, name varchar(100),
6
+ image varchar(255),
7
+ designation varchar(255),
8
+ description varchar(255),
9
+ status int(11),
10
+ facebookurl varchar(255),
11
+ googleurl varchar(255),
12
+ twitterurl varchar(255),
13
+ email varchar(255),
14
+ primary key(manageteam_id));
15
 
16
  SQLTEXT;
17
 
18
  $installer->run($sql);
19
+ //demo
20
+ //Mage::getModel('core/url_rewrite')->setId(null);
21
+ //demo
22
  $installer->endSetup();
23
 
app/design/adminhtml/default/default/layout/manageteam.xml CHANGED
@@ -1,8 +1,8 @@
1
  <?xml version="1.0"?>
2
  <layout>
3
- <manageteam_adminhtml_manageteam_index>
4
  <reference name="content">
5
  <block type="manageteam/adminhtml_manageteam" name="manageteam" />
6
  </reference>
7
- </manageteam_adminhtml_manageteam_index>
8
  </layout>
1
  <?xml version="1.0"?>
2
  <layout>
3
+ <adminhtml_manageteam_index>
4
  <reference name="content">
5
  <block type="manageteam/adminhtml_manageteam" name="manageteam" />
6
  </reference>
7
+ </adminhtml_manageteam_index>
8
  </layout>
app/design/frontend/base/default/layout/manageteam.xml CHANGED
@@ -1,24 +1,11 @@
1
  <?xml version="1.0"?>
2
  <layout>
3
  <default>
4
- <reference name="top.links">
5
- <action method="addLink" ifconfig="manageteamsection/manageteamgroup/toplink">
6
- <label>Our Team</label>
7
- <url helper="manageteam/getManageteamsUrl"/>
8
- <title>Our Team</title>
9
- <prepare />
10
- <urlParams/>
11
- <position>120</position>
12
- </action>
13
- </reference>
14
- <reference name="top.menu">
15
- <block type="manageteam/index" template="manageteam/toplinks.phtml"/>
16
- </reference>
17
  <reference name="footer_links">
18
- <action method="addLink" translate="label title" module="manageteam" ifconfig="manageteamsection/manageteamgroup/footerlink">
19
- <label>Our Team</label>
20
  <url helper="manageteam/getManageteamsUrl" />
21
- <title>Our Team</title>
22
  <prepare />
23
  <urlParams/>
24
  <position>120</position>
@@ -30,16 +17,15 @@
30
  <name>css/manageteam.css</name>
31
  </action>
32
  </reference>
33
- </default>
34
- <manageteam_index_index>
35
- <reference name="root">
36
  <action method="setTemplate">
37
  <template>page/1column.phtml</template>
38
- </action>
39
- </reference>
40
- <reference name="content">
41
- <block type="manageteam/index" name="manageteam_index" template="manageteam/index.phtml"/>
42
- </reference>
43
- </manageteam_index_index>
44
- </layout>
45
-
1
  <?xml version="1.0"?>
2
  <layout>
3
  <default>
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <reference name="footer_links">
5
+ <action method="addLink" translate="label title" module="manageteam" ifconfig="manageteamsection/manageteamgroup/enable">
6
+ <label>Manage Team</label>
7
  <url helper="manageteam/getManageteamsUrl" />
8
+ <title>Manage Team</title>
9
  <prepare />
10
  <urlParams/>
11
  <position>120</position>
17
  <name>css/manageteam.css</name>
18
  </action>
19
  </reference>
20
+ </default>
21
+ <manageteam_index_index>
22
+ <reference name="root">
23
  <action method="setTemplate">
24
  <template>page/1column.phtml</template>
25
+ </action>
26
+ </reference>
27
+ <reference name="content">
28
+ <block type="manageteam/index" name="manageteam_index" template="manageteam/index.phtml"/>
29
+ </reference>
30
+ </manageteam_index_index>
31
+ </layout>
 
app/design/frontend/base/default/template/manageteam/index.phtml CHANGED
@@ -1,23 +1,10 @@
1
  <?php
2
- $modname = Mage::app()->getRequest()->getModuleName();
3
- $controllerName = Mage::app()->getRequest()->getControllerName();
4
- $actionName = Mage::app()->getRequest()->getActionName();
5
- $baseUrl = $this->getBaseUrl();
6
- $redirectPath = $baseUrl . $modname . DS . $controllerName . DS . $actionName;
7
  $enable = Mage::getStoreConfig('manageteamsection/manageteamgroup/enable');
8
- $currId = $this->getRequest()->getParam('id');
9
  if ($enable) {
 
10
  if ($currId != ''):
11
- $currId = $this->getRequest()->getParam('id');
12
  $collection = Mage::getModel('manageteam/manageteam')->load($currId);
13
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
14
- $name = $collection->getName();
15
- $designation = $collection->getDesignation();
16
- $description = $collection->getDescription();
17
- $facebookurl = $collection->getFacebookurl();
18
- $googleurl = $collection->getGoogleurl();
19
- $twitterurl = $collection->getTwitterurl();
20
- $email = $collection->getEmail();
21
  ?>
22
  <div class="ourteam-view">
23
  <div class="ourteam-detail">
@@ -25,54 +12,40 @@ if ($enable) {
25
  <?php if ($collection->getImage()) { ?>
26
  <img src="<?php echo $media_url . $collection->getImage(); ?>" alt="<?php echo $this->htmlEscape($collection->getName()); ?>" />
27
  <?php } else { ?>
28
- <img src="<?php echo $this->getSkinUrl('images/manageteam/manageteam.jpg'); ?>" alt="<?php echo $this->htmlEscape($collection->getName()); ?>" />
29
  <?php } ?>
30
  </div>
31
  <div class="team-block-right">
32
- <?php if (!empty($name)): ?>
33
- <h2 class="ourteam-name">
34
- <b><?php echo Mage::helper('manageteam')->__('Name'); ?>: </b><?php echo $collection->getName(); ?>
35
- </h2>
36
- <?php endif; ?>
37
- <?php if (!empty($designation)): ?>
38
- <div class="ourteam-short_desc">
39
- <b><?php echo Mage::helper('manageteam')->__('Designation'); ?>: </b><?php echo $collection->getDesignation(); ?>
40
- </div>
41
- <?php endif; ?>
42
- <?php if (!empty($description)): ?>
43
- <div class="ourteam-description">
44
- <b><?php echo Mage::helper('manageteam')->__('Description'); ?>: </b><?php echo $collection->getDescription(); ?>
45
- </div>
46
- <?php endif; ?>
47
-
48
- <?php if (!empty($facebookurl)): ?>
49
- <div class="ourteam-short_desc">
50
- <b><?php echo Mage::helper('manageteam')->__('Facebook'); ?>: </b><a target="_new" href="<?php echo $collection->getFacebookurl(); ?>"><?php echo $collection->getFacebookurl(); ?></a>
51
- </div>
52
- <?php endif; ?>
53
- <?php if (!empty($googleurl)): ?>
54
- <div class="ourteam-short_desc">
55
- <b><?php echo Mage::helper('manageteam')->__('Google+'); ?>: </b><a target="_new" href="<?php echo $collection->getGoogleurl(); ?>"><?php echo $collection->getGoogleurl(); ?></a>
56
- </div>
57
- <?php endif; ?>
58
- <?php if (!empty($twitterurl)): ?>
59
- <div class="ourteam-short_desc">
60
- <b><?php echo Mage::helper('manageteam')->__('Twitter'); ?>: </b><a target="_new" href="<?php echo $collection->getTwitterurl(); ?>"><?php echo $collection->getTwitterurl(); ?></a>
61
- </div>
62
- <?php endif; ?>
63
- <?php if (!empty($email)): ?>
64
- <div class="ourteam-short_desc">
65
- <b><?php echo Mage::helper('manageteam')->__('Email'); ?>: </b><a href="mailto:<?php echo $collection->getEmail(); ?>"><?php echo $collection->getEmail(); ?></a>
66
- </div>
67
- <?php endif; ?>
68
  </div>
69
  </div>
70
  </div>
71
  <div class="back-btn">
72
- <a class="read-more" href="<?php echo $baseUrl . $modname; ?>" title="Back">
73
  <?php echo __('Back'); ?>
74
  </a>
75
  </div>
 
76
  <?php else: ?>
77
  <div class="page-title ourteam-title">
78
  <h1><?php echo Mage::helper('manageteam')->__('Our Team') ?></h1>
@@ -89,38 +62,24 @@ if ($enable) {
89
  <ul class="team-wrapper">
90
  <?php foreach ($collection as $teamData): ?>
91
  <li class="ourteam-list-item">
92
- <div class="team-mem-img"
93
- <a href="<?php echo $redirectPath . '/id/' . $teamData->getManageteam_id(); ?>" title="<?php echo $this->htmlEscape($teamData->getName()) ?>">
94
- <?php if ($teamData->getImage()): ?>
95
- <img class="member_avatar " src="<?php echo $media_url . $teamData->getImage(); ?>" alt="<?php echo $teamData->getName(); ?>" width="190" height="190"/>
96
- <?php else: ?>
97
- <img class="member_avatar" src="<?php echo $this->getSkinUrl('images/manageteam/manageteam.jpg') ?>" alt="<?php echo $teamData->getName(); ?>" width="190" height="190"/>
98
- <?php endif; ?>
99
- </a>
100
- </div>
101
  <h2 class="full-name">
102
  <?php echo $teamData->getName(); ?>
103
  </h2>
104
  <?php if ($teamData->getDesignation()): ?>
105
- <div id="greg_description">(<?php echo $teamData->getDesignation(); ?>)</div>
 
 
 
 
 
106
  <?php endif; ?>
107
- <div class="social-icon">
108
- <?php if ($teamData->getFacebookurl()): ?>
109
- <a target="_new" href="<?php echo $teamData->getFacebookurl(); ?>"><img src="<?php echo $this->getSkinUrl('images/manageteam/facebook.png') ?>"></a>
110
- <?php endif; ?>
111
- <?php if ($teamData->getGoogleurl()): ?>
112
- <a target="_new" href="<?php echo $teamData->getGoogleurl(); ?>"><img src="<?php echo $this->getSkinUrl('images/manageteam/google-plus.png') ?>"></a>
113
- <?php endif; ?>
114
- <?php if ($teamData->getTwitterurl()): ?>
115
- <a target="_new" href="<?php echo $teamData->getTwitterurl(); ?>"><img src="<?php echo $this->getSkinUrl('images/manageteam/twitter.png') ?>"></a>
116
- <?php endif; ?>
117
- <?php if ($teamData->getEmail()): ?>
118
- <a target="_new" href="mailto:<?php echo $teamData->getEmail(); ?>"><img src="<?php echo $this->getSkinUrl('images/manageteam/mail.png') ?>"></a>
119
- <?php endif; ?>
120
- </div>
121
- <a class="read-more" href="<?php echo $redirectPath . '/id/' . $teamData->getManageteam_id(); ?>" title="<?php echo $this->htmlEscape($teamData->getName()) ?>">
122
- <?php echo __('Read More'); ?>
123
- </a>
124
  </li>
125
  <?php endforeach; ?>
126
  <?php
1
  <?php
 
 
 
 
 
2
  $enable = Mage::getStoreConfig('manageteamsection/manageteamgroup/enable');
 
3
  if ($enable) {
4
+ $currId = $this->getRequest()->getParam('id');
5
  if ($currId != ''):
 
6
  $collection = Mage::getModel('manageteam/manageteam')->load($currId);
7
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
 
 
 
 
 
 
 
8
  ?>
9
  <div class="ourteam-view">
10
  <div class="ourteam-detail">
12
  <?php if ($collection->getImage()) { ?>
13
  <img src="<?php echo $media_url . $collection->getImage(); ?>" alt="<?php echo $this->htmlEscape($collection->getName()); ?>" />
14
  <?php } else { ?>
15
+ <img src="<?php echo $this->getSkinUrl('images/manageteam/manageteam.png'); ?>" alt="<?php echo $this->htmlEscape($collection->getName()); ?>" />
16
  <?php } ?>
17
  </div>
18
  <div class="team-block-right">
19
+ <h2 class="ourteam-name">
20
+ <b><?php echo Mage::helper('manageteam')->__('Name'); ?>: </b><?php echo $collection->getName(); ?>
21
+ </h2>
22
+ <div class="ourteam-short_desc">
23
+ <b><?php echo Mage::helper('manageteam')->__('Designation'); ?>: </b><?php echo $collection->getDesignation(); ?>
24
+ </div>
25
+ <div class="ourteam-description">
26
+ <b><?php echo Mage::helper('manageteam')->__('Description'); ?>: </b><?php echo $collection->getDescription(); ?>
27
+ </div>
28
+ <div class="ourteam-short_desc">
29
+ <b><?php echo Mage::helper('manageteam')->__('Facebook Url'); ?>: </b><a target="_new" href="<?php echo $collection->getFacebookurl(); ?>"><?php echo $collection->getFacebookurl(); ?></a>
30
+ </div>
31
+ <div class="ourteam-short_desc">
32
+ <b><?php echo Mage::helper('manageteam')->__('Google+ Url'); ?>: </b><a target="_new" href="<?php echo $collection->getGoogleurl(); ?>"><?php echo $collection->getGoogleurl(); ?></a>
33
+ </div>
34
+ <div class="ourteam-short_desc">
35
+ <b><?php echo Mage::helper('manageteam')->__('Twitter Url'); ?>: </b><a target="_new" href="<?php echo $collection->getTwitterurl(); ?>"><?php echo $collection->getTwitterurl(); ?></a>
36
+ </div>
37
+ <div class="ourteam-short_desc">
38
+ <b><?php echo Mage::helper('manageteam')->__('Email'); ?>: </b><a href="mailto:<?php echo $collection->getEmail(); ?>"><?php echo $collection->getEmail(); ?></a>
39
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  </div>
41
  </div>
42
  </div>
43
  <div class="back-btn">
44
+ <a class="read-more" href="<?php echo $this->getBaseUrl() . 'manageteam/index/index/'; ?>" title="Back">
45
  <?php echo __('Back'); ?>
46
  </a>
47
  </div>
48
+
49
  <?php else: ?>
50
  <div class="page-title ourteam-title">
51
  <h1><?php echo Mage::helper('manageteam')->__('Our Team') ?></h1>
62
  <ul class="team-wrapper">
63
  <?php foreach ($collection as $teamData): ?>
64
  <li class="ourteam-list-item">
65
+ <a href="<?php echo $this->getBaseUrl() . 'manageteam/index/index/id/' . $teamData->getManageteam_id(); ?>" title="<?php echo $this->htmlEscape($teamData->getName()) ?>">
66
+ <?php if ($teamData->getImage()): ?>
67
+ <img class="member_avatar " src="<?php echo $media_url . $teamData->getImage(); ?>" alt="<?php echo $teamData->getName(); ?>" width="190" height="190"/>
68
+ <?php else: ?>
69
+ <img class="member_avatar" src="<?php echo $this->getSkinUrl('images/manageteam/manageteam.png') ?>" alt="<?php echo $teamData->getName(); ?>" width="190" height="190"/>
70
+ <?php endif; ?>
71
+ </a>
 
 
72
  <h2 class="full-name">
73
  <?php echo $teamData->getName(); ?>
74
  </h2>
75
  <?php if ($teamData->getDesignation()): ?>
76
+ <div id="greg_description"><?php echo $teamData->getDesignation(); ?> </div>
77
+ <?php endif; ?>
78
+ <?php if ($teamData->getDescription()): ?>
79
+ <a class="read-more" href="<?php echo $this->getBaseUrl() . 'manageteam/index/index/id/' . $teamData->getManageteam_id(); ?>" title="<?php echo $this->htmlEscape($teamData->getName()) ?>">
80
+ <?php echo __('View Details'); ?>
81
+ </a>
82
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  </li>
84
  <?php endforeach; ?>
85
  <?php
app/design/frontend/base/default/template/manageteam/toplinks.phtml DELETED
@@ -1,16 +0,0 @@
1
-
2
- <?php if (Mage::getStoreConfig('manageteamsection/manageteamgroup/enable') && Mage::getStoreConfig('manageteamsection/manageteamgroup/topmenu')): ?>
3
- <div id="manageteam_container" style="display: none">
4
- <li class="level0 nav-3 last level-top">
5
- <a href="<?php echo $this->getUrl('manageteam') ?>">
6
- <span><?php echo $this->__('Our Team') ?></span>
7
- </a>
8
- </li>
9
- </div>
10
- <script type="text/javascript">
11
- var menu = $('nav');
12
- if (menu) {
13
- menu.insert($('manageteam_container').innerHTML);
14
- }
15
- </script>
16
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Solwin_Manageteam.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Solwin_Manageteam>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.0.1</version>
8
  </Solwin_Manageteam>
9
  </modules>
10
  </config>
4
  <Solwin_Manageteam>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.0.3</version>
8
  </Solwin_Manageteam>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Solwin_Manageteam</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>It manages all the basic details of the team members like employee name, image and description, social profile, email etc from the backend panel and display all employee details in frontend. Add Manage Team link in front end footer that display all team members list.</description>
11
  <notes>Manage Team extension is used to display team member's information on the website with ease.</notes>
12
  <authors><author><name>Sanjay Dabhoya</name><user>solwin</user><email>stdabhoya@yahoo.com</email></author></authors>
13
- <date>2016-04-01</date>
14
- <time>06:18:00</time>
15
- <contents><target name="magecommunity"><dir name="Solwin"><dir name="Manageteam"><dir name="Block"><dir name="Adminhtml"><dir name="Manageteam"><dir name="Edit"><file name="Form.php" hash="a27ef5db33e44d89619c554a2d5ca748"/><dir name="Tab"><file name="Form.php" hash="db20267748575efc0311a73bb47678d2"/></dir><file name="Tabs.php" hash="f6efd72c6aaba75f2e40f9c841611dbc"/></dir><file name="Edit.php" hash="f79b5476752b82b03b57903ed2e25325"/><file name="Grid.php" hash="c826538cd3babfd75f775bbb52230b27"/></dir><file name="Manageteam.php" hash="a563969ee104cfada2c50dbedd70b0e8"/><dir name="Renderer"><file name="Image.php" hash="56b39c7853ecba12af9b7aab96fd70d1"/></dir></dir><file name="Index.php" hash="e89897b9fcaeee2acaa492e34c9cc161"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ManageteamController.php" hash="a313071f203c4aff8bf312d36c0e4cc0"/></dir><file name="IndexController.php" hash="de4449a6f50e2cdd423f49980409af84"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dc19fa0c1fb3c3b5f4d49f8c498673b0"/><file name="config.xml" hash="260c621950e861ead431d49efd73d800"/><file name="system.xml" hash="473cec776005406cf83bfa3a79617cdf"/></dir><dir name="Helper"><file name="Data.php" hash="35a2f60bb2abea4a5059ea4454c5419e"/></dir><dir name="Model"><file name="Manageteam.php" hash="7af144e511bac1e7a2f209cac9ce0c97"/><dir name="Mysql4"><dir name="Manageteam"><file name="Collection.php" hash="e5b257066432045bd4b509de4377e1f6"/></dir><file name="Manageteam.php" hash="06d2d50fc1510b5d089089b5460b2d75"/></dir></dir><dir name="sql"><dir name="manageteam_setup"><file name="mysql4-install-1.0.1.php" hash="e631da310526dfaf35d05a3917bd0ca3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Solwin_Manageteam.xml" hash="f8f89fa02c8714d61e31d4cf1e5de009"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="manageteam.xml" hash="da3e600551874cc45c06746d7607188b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="manageteam.xml" hash="83145807d066818a19947fe156048e11"/></dir><dir name="template"><dir name="manageteam"><file name="index.phtml" hash="1cbe241f408cdfeb65d8d39c4e09eddf"/><file name="toplinks.phtml" hash="572c37ea6852593acebf2cfbdbbbb5f6"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="manageteam"><file name="manageteam.jpg" hash="5899668cf07da547e66436fc87bacc19"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="manageteam.css" hash="8c1359102a448f0e244edc5bf0283938"/></dir><dir name="images"><dir name="manageteam"><file name="facebook.png" hash="79cab086ed8c49a91389c0ba6242aa59"/><file name="google-plus.png" hash="23d4c6ed2e4ad47aceee9db1eb93e6df"/><file name="mail.png" hash="93e80db59ee1ccdd69dad358f80fa15e"/><file name="manageteam.jpg" hash="5899668cf07da547e66436fc87bacc19"/><file name="twitter.png" hash="035a083e619bc79e1c0998bed704047e"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Solwin_Manageteam</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>It manages all the basic details of the team members like employee name, image and description, social profile, email etc from the backend panel and display all employee details in frontend. Add Manage Team link in front end footer that display all team members list.</description>
11
  <notes>Manage Team extension is used to display team member's information on the website with ease.</notes>
12
  <authors><author><name>Sanjay Dabhoya</name><user>solwin</user><email>stdabhoya@yahoo.com</email></author></authors>
13
+ <date>2016-07-19</date>
14
+ <time>13:10:01</time>
15
+ <contents><target name="magecommunity"><dir name="Solwin"><dir name="Manageteam"><dir name="Block"><dir name="Adminhtml"><dir name="Manageteam"><dir name="Edit"><file name="Form.php" hash="a27ef5db33e44d89619c554a2d5ca748"/><dir name="Tab"><file name="Form.php" hash="db20267748575efc0311a73bb47678d2"/></dir><file name="Tabs.php" hash="f6efd72c6aaba75f2e40f9c841611dbc"/></dir><file name="Edit.php" hash="f79b5476752b82b03b57903ed2e25325"/><file name="Grid.php" hash="c826538cd3babfd75f775bbb52230b27"/></dir><file name="Manageteam.php" hash="a563969ee104cfada2c50dbedd70b0e8"/><dir name="Renderer"><file name="Image.php" hash="262809dfbaaf0c67b6cfcc42742dd0e1"/></dir></dir><file name="Index.php" hash="25e771de24ce2994bea2c5484d8be78b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ManageteamController.php" hash="c066d2649e63796642b4a7742a488d7b"/></dir><file name="IndexController.php" hash="cdd9a99f368809324cf2c5a9419ba38a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dc19fa0c1fb3c3b5f4d49f8c498673b0"/><file name="config.xml" hash="cfcaf3d3565bb12e24a92883b8e00c3d"/><file name="system.xml" hash="975ccb2be6e3e7a2cf9810031381cdc9"/></dir><dir name="Helper"><file name="Data.php" hash="1372312a448a635d25f9d27a9bdbf2ff"/></dir><dir name="Model"><file name="Manageteam.php" hash="7af144e511bac1e7a2f209cac9ce0c97"/><dir name="Mysql4"><dir name="Manageteam"><file name="Collection.php" hash="e5b257066432045bd4b509de4377e1f6"/></dir><file name="Manageteam.php" hash="06d2d50fc1510b5d089089b5460b2d75"/></dir></dir><dir name="sql"><dir name="manageteam_setup"><file name="mysql4-install-1.0.3.php" hash="9677dee5b1876b3e46a694fa1dc87bfb"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Solwin_Manageteam.xml" hash="7b837d25e61f2b1aad570f0e2021fc06"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="manageteam.xml" hash="ff5ddadd8fca678bb72b0e0730bb5a4b"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="manageteam.xml" hash="ba33985ed0088688bc886b3160ad8eff"/></dir><dir name="template"><dir name="manageteam"><file name="index.phtml" hash="971be9073ccb5865e1e002a7c97d8a0b"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="manageteam"><file name="manageteam.jpg" hash=""/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="manageteam.css" hash="c43bb78b8b1b9cd01fc9cf1b6e19f787"/></dir><dir name="images"><dir name="manageteam"><file name="manageteam.png" hash="2ccf3b566006f4a58947ac1df20d918a"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/images/manageteam/manageteam.jpg DELETED
Binary file
skin/frontend/base/default/css/manageteam.css CHANGED
@@ -1,7 +1,7 @@
1
  .team-wrapper{
2
  display: inline-block;
3
  }
4
- .team-wrapper li {
5
  display: inline-block;
6
  text-align: center;
7
  float: left;
@@ -9,25 +9,9 @@
9
  min-height: 310px!important;
10
  margin: 10px 8px;
11
  width: 187px;
 
12
  padding: 10px;
13
  }
14
- .team-wrapper li.ourteam-list-item .team-mem-img {
15
- position: relative;
16
- overflow: hidden;
17
- border: 2px solid #999999;
18
- border-radius: 50%;
19
- }
20
- .team-wrapper li.ourteam-list-item a img {
21
- display: inline-block;
22
- max-width: 100%;
23
- height: auto;
24
- }
25
- .team-wrapper li.ourteam-list-item:hover .team-mem-img {
26
- border-color: #de5400;
27
- }
28
- .team-wrapper li.ourteam-list-item:hover .team-mem-img img {
29
- transform: scale(1.1);
30
- }
31
  .team-wrapper li:hover a{
32
  text-decoration: none;
33
  }
@@ -36,12 +20,11 @@
36
  text-align: center;
37
  display: inherit;
38
  }
39
- h2.full-name {
40
  font-size: 16px;
41
- margin: 10px 0px 5px;
42
  max-height: 20px;
43
  overflow: hidden;
44
- color: #2f2f2f;
45
  }
46
  h2.full-name a{
47
  color: #000;
@@ -50,7 +33,6 @@ h2.full-name a{
50
  .team-wrapper li #greg_description {
51
  max-height: 45px;
52
  overflow: hidden;
53
- color: #0a263c;
54
  }
55
  .ourteam-detail .ourteam-short_desc{
56
  float: left;
@@ -63,18 +45,17 @@ h2.full-name a{
63
  margin-top: 5px;
64
  }
65
  .read-more {
66
- background: #999999;
67
  border-radius: 2px;
68
  color: #fff;
69
  display: inline-block;
70
  margin: 15px 0;
71
- padding: 5px 10px;
72
  text-decoration: none;
73
  font-weight: bold;
74
  }
75
- .read-more:hover{
76
  color: #fff;
77
- background: #de5400;
78
  }
79
  .ourteam-view {
80
  padding: 20px;
@@ -104,6 +85,7 @@ h2.full-name a{
104
  float: left;
105
  width: 100%;
106
  }
107
- .social-icon {
108
- padding-top: 5px;
 
109
  }
1
  .team-wrapper{
2
  display: inline-block;
3
  }
4
+ .team-wrapper li{
5
  display: inline-block;
6
  text-align: center;
7
  float: left;
9
  min-height: 310px!important;
10
  margin: 10px 8px;
11
  width: 187px;
12
+ border: 1px solid #e5e5e5;
13
  padding: 10px;
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  .team-wrapper li:hover a{
16
  text-decoration: none;
17
  }
20
  text-align: center;
21
  display: inherit;
22
  }
23
+ h2.full-name{
24
  font-size: 16px;
25
+ margin: 10px 0px;
26
  max-height: 20px;
27
  overflow: hidden;
 
28
  }
29
  h2.full-name a{
30
  color: #000;
33
  .team-wrapper li #greg_description {
34
  max-height: 45px;
35
  overflow: hidden;
 
36
  }
37
  .ourteam-detail .ourteam-short_desc{
38
  float: left;
45
  margin-top: 5px;
46
  }
47
  .read-more {
48
+ background-color: #de5400;
49
  border-radius: 2px;
50
  color: #fff;
51
  display: inline-block;
52
  margin: 15px 0;
53
+ padding: 5px 22px;
54
  text-decoration: none;
55
  font-weight: bold;
56
  }
57
+ .read-more :hover{
58
  color: #fff;
 
59
  }
60
  .ourteam-view {
61
  padding: 20px;
85
  float: left;
86
  width: 100%;
87
  }
88
+ .team-block-left > img {
89
+ float: left;
90
+ width: 280px;
91
  }
skin/frontend/base/default/images/manageteam/facebook.png DELETED
Binary file
skin/frontend/base/default/images/manageteam/google-plus.png DELETED
Binary file
skin/frontend/base/default/images/manageteam/mail.png DELETED
Binary file
skin/frontend/base/default/images/manageteam/manageteam.jpg DELETED
Binary file
skin/frontend/base/default/images/manageteam/manageteam.png ADDED
Binary file
skin/frontend/base/default/images/manageteam/twitter.png DELETED
Binary file