-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lights, camera, action - First commit
- Loading branch information
1 parent
d61edd2
commit ae5240b
Showing
242 changed files
with
22,863 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<access component="com_subusers"> | ||
<section name="component"> | ||
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" /> | ||
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" /> | ||
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" /> | ||
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" /> | ||
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" /> | ||
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" /> | ||
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" /> | ||
</section> | ||
|
||
</access> |
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 @@ | ||
<html><body></body></html> |
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,55 @@ | ||
.icon-48-organizations { | ||
background-image: url(../images/l_organizations.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-organization { | ||
background-image: url(../images/l_organizations.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-users { | ||
background-image: url(../images/l_users.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-user { | ||
background-image: url(../images/l_users.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-roles { | ||
background-image: url(../images/l_roles.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-role { | ||
background-image: url(../images/l_roles.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-actions { | ||
background-image: url(../images/l_actions.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-action { | ||
background-image: url(../images/l_actions.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-mappings { | ||
background-image: url(../images/l_mappings.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
.icon-48-mapping { | ||
background-image: url(../images/l_mappings.png); | ||
padding-left:60px!important; | ||
} | ||
|
||
|
||
|
||
.other-filters{ | ||
padding: 0 14px; | ||
} |
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 @@ | ||
<html><body></body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<html><body></body></html> |
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,133 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<config> | ||
<fieldset label="COM_SUBUSERS" name="subusers"> | ||
|
||
<!-- Added to set category for easysocial group --> | ||
<field | ||
name="escategory" type="sql" | ||
component="com_subusers" | ||
label="JCONFIG_ESGROUP_CATEGORY_LABEL" | ||
query="select id,title from #__social_clusters_categories where type='group'" | ||
key_field="id" value_field="title" | ||
section="component" /> | ||
|
||
<field | ||
name="guest_usergroup" | ||
type="usergrouplist" | ||
default="1" | ||
label="COM_USERS_CONFIG_FIELD_GUEST_USER_GROUP_LABEL" | ||
description="COM_USERS_CONFIG_FIELD_GUEST_USER_GROUP_DESC"> | ||
</field> | ||
|
||
<field | ||
name="announementcategory" type="sql" | ||
component="com_subusers" | ||
label="COM_SUBUSERS_CATEGORY_LABEL" | ||
query="select id,title from #__categories" | ||
key_field="id" value_field="title" | ||
section="component" /> | ||
|
||
|
||
<field type="spacer" name="myspacer" hr="true" /> | ||
|
||
<field | ||
name="max_logo_size" type="text" | ||
label="COM_SUBUSERS_MAX_LOGO_SIZE_LBL" | ||
description="COM_SUBUSERS_MAX_LOGO_SIZE_DESC" | ||
default="1" class="validate-numeric" filter="int" > | ||
</field> | ||
|
||
<field | ||
name="allowed_logo_types" type="FileMultiple" | ||
label="COM_SUBUSERS_MAX_LOGO_TYPE_LBL" | ||
description="COM_SUBUSERS_MAX_LOGO_TYPE_DESC" | ||
default=".png" > | ||
</field> | ||
</fieldset> | ||
|
||
<fieldset | ||
name="permissions" | ||
description="JCONFIG_PERMISSIONS_DESC" | ||
label="JCONFIG_PERMISSIONS_LABEL"> | ||
|
||
<field | ||
name="rules" type="rules" component="com_subusers" | ||
class="inputbox" filter="rules" validate="rules" | ||
label="JCONFIG_PERMISSIONS_LABEL" | ||
section="component" /> | ||
</fieldset> | ||
</config> | ||
<!-- | ||
######################################################################################## | ||
The following are a list of all the different types of fields you can add to this file | ||
They are here for copy pasting - neat eh? | ||
######################################################################################## | ||
http://docs.joomla.org/Calendar_parameter_type | ||
<field name="mycalendar" type="calendar" default="5-10-2008" label="Select a date" description="" format="%d-%m-%Y" /> | ||
http://docs.joomla.org/Category_parameter_type | ||
<field name="mycategory" type="category" label="Select a category" description="" section="3" /> | ||
http://docs.joomla.org/Editors_parameter_type | ||
<field name="myeditor" type="editors" default="none" label="Select an editor" /> | ||
http://docs.joomla.org/Filelist_parameter_type | ||
<field name="myfile" type="filelist" default="" label="Select a file" description="" directory="administrator" filter="" exclude="" stripext="" /> | ||
http://docs.joomla.org/Folderlist_parameter_type | ||
<field name="myfolder" type="folderlist" default="" label="Select a folder" directory="administrator" filter="" exclude="" stripext="" /> | ||
http://docs.joomla.org/Helpsites_parameter_type | ||
<field name="myhelpsite" type="helpsites" default="" label="Select a help site" description="" /> | ||
http://docs.joomla.org/Hidden_parameter_type | ||
<field name="mysecretvariable" type="hidden" default="" /> | ||
http://docs.joomla.org/Imagelist_parameter_type | ||
<field name="myimage" type="imagelist" default="" label="Select an image" description="" directory="" exclude="" stripext="" /> | ||
http://docs.joomla.org/Languages_parameter_type | ||
<field name="mylanguage" type="languages" client="site" default="en-GB" label="Select a language" description="" /> | ||
http://docs.joomla.org/List_parameter_type | ||
<field name="mylistvalue" type="list" default="" label="Select an option" description=""> | ||
<option value="0">Option 1</option> | ||
<option value="1">Option 2</option> | ||
</field> | ||
http://docs.joomla.org/Menu_parameter_type | ||
<field name="mymenu" type="menu" default="mainmenu" label="Select a menu" description="Select a menu" /> | ||
http://docs.joomla.org/Menuitem_parameter_type | ||
<field name="mymenuitem" type="menuitem" default="45" label="Select a menu item" description="Select a menu item" /> | ||
http://docs.joomla.org/Password_parameter_type | ||
<field name="mypassword" type="password" default="secret" label="Enter a password" description="" size="5" /> | ||
http://docs.joomla.org/Radio_parameter_type | ||
<field name="myradiovalue" type="radio" default="0" label="Select an option" description=""> | ||
<option value="0">1</option> | ||
<option value="1">2</option> | ||
</field> | ||
http://docs.joomla.org/Spacer_parameter_type | ||
<field type="spacer" default="<b>Advanced parameters</b>" /> | ||
http://docs.joomla.org/Sql_parameter_type | ||
<field name="myfield" type="sql" default="10" label="Select an article" query="SELECT id, title FROM #__content" key_field=”id” value_field=”title” /> | ||
http://docs.joomla.org/Text_parameter_type | ||
<field name="mytextvalue" type="text" default="Some text" label="Enter some text" description="" size="10" /> | ||
http://docs.joomla.org/Textarea_parameter_type | ||
<field name="mytextarea" type="textarea" default="default" label="Enter some text" description="" rows="10" cols="5" /> | ||
http://docs.joomla.org/Timezones_parameter_type | ||
<field name="mytimezone" type="timezones" default="-10" label="Select a timezone" description="" /> | ||
http://docs.joomla.org/Usergroup_parameter_type | ||
<field name="myusergroups" type="usergroup" default="" label="Select a user group" description="" /> | ||
--> |
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 | ||
|
||
/** | ||
* @version CVS: 1.0.0 | ||
* @package Com_Subusers | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2015. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
// No direct access | ||
defined('_JEXEC') or die; | ||
|
||
/** | ||
* Class SubusersController | ||
* | ||
* @since 1.6 | ||
*/ | ||
class SubusersController extends JControllerLegacy | ||
{ | ||
/** | ||
* Method to display a view. | ||
* | ||
* @param boolean $cachable If true, the view output will be cached | ||
* @param mixed $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. | ||
* | ||
* @return JController This object to support chaining. | ||
* | ||
* @since 1.5 | ||
*/ | ||
public function display($cachable = false, $urlparams = false) | ||
{ | ||
require_once JPATH_COMPONENT . '/helpers/subusers.php'; | ||
|
||
$view = JFactory::getApplication()->input->getCmd('view', 'organizations'); | ||
JFactory::getApplication()->input->set('view', $view); | ||
|
||
parent::display($cachable, $urlparams); | ||
|
||
return $this; | ||
} | ||
} |
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,32 @@ | ||
<?php | ||
/** | ||
* @version CVS: 1.0.0 | ||
* @package Com_Subusers | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2015. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access | ||
defined('_JEXEC') or die; | ||
|
||
jimport('joomla.application.component.controllerform'); | ||
|
||
/** | ||
* Action controller class. | ||
* | ||
* @since 1.6 | ||
*/ | ||
class SubusersControllerAction extends JControllerForm | ||
{ | ||
/** | ||
* Constructor | ||
* | ||
* @throws Exception | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->view_list = 'actions'; | ||
parent::__construct(); | ||
} | ||
} |
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,107 @@ | ||
<?php | ||
/** | ||
* @version CVS: 1.0.0 | ||
* @package Com_Subusers | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2015. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access. | ||
defined('_JEXEC') or die; | ||
|
||
jimport('joomla.application.component.controlleradmin'); | ||
|
||
use Joomla\Utilities\ArrayHelper; | ||
|
||
/** | ||
* Actions list controller class. | ||
* | ||
* @since 1.6 | ||
*/ | ||
class SubusersControllerActions extends JControllerAdmin | ||
{ | ||
/** | ||
* Method to clone existing Actions | ||
* | ||
* @return void | ||
*/ | ||
public function duplicate() | ||
{ | ||
// Check for request forgeries | ||
Jsession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); | ||
|
||
// Get id(s) | ||
$pks = $this->input->post->get('cid', array(), 'array'); | ||
|
||
try | ||
{ | ||
if (empty($pks)) | ||
{ | ||
throw new Exception(JText::_('COM_SUBUSERS_NO_ELEMENT_SELECTED')); | ||
} | ||
|
||
ArrayHelper::toInteger($pks); | ||
$model = $this->getModel(); | ||
$model->duplicate($pks); | ||
$this->setMessage(Jtext::_('COM_SUBUSERS_ITEMS_SUCCESS_DUPLICATED')); | ||
} | ||
catch (Exception $e) | ||
{ | ||
JFactory::getApplication()->enqueueMessage($e->getMessage(), 'warning'); | ||
} | ||
|
||
$this->setRedirect('index.php?option=com_subusers&view=actions'); | ||
} | ||
|
||
/** | ||
* Proxy for getModel. | ||
* | ||
* @param string $name Optional. Model name | ||
* @param string $prefix Optional. Class prefix | ||
* @param array $config Optional. Configuration array for model | ||
* | ||
* @return object The Model | ||
* | ||
* @since 1.6 | ||
*/ | ||
public function getModel($name = 'action', $prefix = 'SubusersModel', $config = array()) | ||
{ | ||
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); | ||
|
||
return $model; | ||
} | ||
|
||
/** | ||
* Method to save the submitted ordering values for records via AJAX. | ||
* | ||
* @return void | ||
* | ||
* @since 3.0 | ||
*/ | ||
public function saveOrderAjax() | ||
{ | ||
// Get the input | ||
$input = JFactory::getApplication()->input; | ||
$pks = $input->post->get('cid', array(), 'array'); | ||
$order = $input->post->get('order', array(), 'array'); | ||
|
||
// Sanitize the input | ||
ArrayHelper::toInteger($pks); | ||
ArrayHelper::toInteger($order); | ||
|
||
// Get the model | ||
$model = $this->getModel(); | ||
|
||
// Save the ordering | ||
$return = $model->saveorder($pks, $order); | ||
|
||
if ($return) | ||
{ | ||
echo "1"; | ||
} | ||
|
||
// Close the application | ||
JFactory::getApplication()->close(); | ||
} | ||
} |
Oops, something went wrong.