Resolved #9 Layout Issue - Custom Lookup Field.

This commit is contained in:
2016-07-12 22:07:55 +01:00
parent 53cf534664
commit 2f9e54e371
382 changed files with 1023 additions and 970 deletions

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_views.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage ajax.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage compiler.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage components.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.php
@ -104,10 +104,16 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->php_view))
if (!empty($item->php_model))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->php_jview))
@ -116,10 +122,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->css_document))
if (!empty($item->php_view))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_document))
@ -140,12 +146,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->php_model))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->css))
{
// base64 Decode css.
@ -879,10 +879,16 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_get'] = '';
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_view'] = base64_encode($data['php_view']);
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the php_jview string to base64 string.
@ -891,10 +897,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['css_document'] = base64_encode($data['css_document']);
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_document string to base64 string.
@ -915,12 +921,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_views.php
@ -267,20 +267,20 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
continue;
}
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode css
$item->css = base64_decode($item->css);
// decode default

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_get.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_gets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage adminviews.php
@ -132,16 +132,11 @@ class JFormFieldAdminviews extends JFormFieldList
// check if button was created for admin_view field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage articles.php
@ -132,16 +132,11 @@ class JFormFieldArticles extends JFormFieldList
// check if button was created for article field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customadminviews.php
@ -132,16 +132,11 @@ class JFormFieldCustomadminviews extends JFormFieldList
// check if button was created for custom_admin_view field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfilelist.php
@ -132,16 +132,11 @@ class JFormFieldCustomfilelist extends JFormFieldList
// check if button was created for field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php
@ -132,16 +132,11 @@ class JFormFieldCustomfolderlist extends JFormFieldList
// check if button was created for field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customgets.php
@ -132,16 +132,11 @@ class JFormFieldCustomgets extends JFormFieldList
// check if button was created for dynamic_get field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dbtables.php
@ -132,16 +132,11 @@ class JFormFieldDbtables extends JFormFieldList
// check if button was created for field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamicgets.php
@ -132,16 +132,11 @@ class JFormFieldDynamicgets extends JFormFieldList
// check if button was created for dynamic_get field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php
@ -132,16 +132,11 @@ class JFormFieldFields extends JFormFieldList
// check if button was created for field field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldsmulti.php
@ -132,16 +132,11 @@ class JFormFieldFieldsmulti extends JFormFieldList
// check if button was created for field field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php
@ -132,16 +132,11 @@ class JFormFieldFieldtypes extends JFormFieldList
// check if button was created for fieldtype field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage maingets.php
@ -132,16 +132,11 @@ class JFormFieldMaingets extends JFormFieldList
// check if button was created for dynamic_get field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage siteviews.php
@ -132,16 +132,11 @@ class JFormFieldSiteviews extends JFormFieldList
// check if button was created for site_view field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php
@ -132,16 +132,11 @@ class JFormFieldSnippets extends JFormFieldList
// check if button was created for snippet field.
if (is_array($button) && count($button) > 0)
{
// Add some final script
$script[] = "
jQuery(document).ready(function() {
jQuery('#jform_".$buttonName."').closest('.control-group').addClass('input-append');
});";
// Load the needed script.
$document = JFactory::getDocument();
$document->addScriptDeclaration(implode(' ',$script));
// return the button attached to input field.
return $html . implode('',$button);
return '<div class="input-append">' .$html . implode('',$button).'</div>';
}
}
return $html;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.js

View File

@ -157,17 +157,30 @@
required="false"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<!-- Php_model Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="flase"
/>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true"
/>
<!-- Php_jview Field. Type: Textarea. (joomla) -->
@ -183,17 +196,17 @@
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
required="true"
/>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true"
/>
<!-- Php_document Field. Type: Textarea. (joomla) -->
@ -224,8 +237,14 @@
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Js_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@ -239,19 +258,8 @@
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true"
/>
<!-- Php_model Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="flase"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Css Field. Type: Textarea. (joomla) -->
<field
type="textarea"

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_get.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_documents.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage import.php
@ -199,7 +199,8 @@ class ComponentbuilderModelImport extends JModelLegacy
protected function _getPackageFromUpload()
{
// Get the uploaded file information
$input = JFactory::getApplication()->input;
$app = JFactory::getApplication();
$input = $app->input;
// Do not change the filter type 'raw'. We need this to let files containing PHP code to upload. See JInputFiles::get.
$userfile = $input->files->get('import_package', null, 'raw');
@ -207,21 +208,21 @@ class ComponentbuilderModelImport extends JModelLegacy
// Make sure that file uploads are enabled in php
if (!(bool) ini_get('file_uploads'))
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTFILE'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTFILE'), 'warning');
return false;
}
// If there is no uploaded file, we have a problem...
if (!is_array($userfile))
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_NO_FILE_SELECTED'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_NO_FILE_SELECTED'), 'warning');
return false;
}
// Check if there was a problem uploading the file.
if ($userfile['error'] || $userfile['size'] < 1)
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTUPLOADERROR'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_WARNIMPORTUPLOADERROR'), 'warning');
return false;
}
@ -259,7 +260,8 @@ class ComponentbuilderModelImport extends JModelLegacy
*/
protected function _getPackageFromFolder()
{
$input = JFactory::getApplication()->input;
$app = JFactory::getApplication();
$input = $app->input;
// Get the path to the package to import
$p_dir = $input->getString('import_directory');
@ -267,7 +269,7 @@ class ComponentbuilderModelImport extends JModelLegacy
// Did you give us a valid path?
if (!file_exists($p_dir))
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PLEASE_ENTER_A_PACKAGE_DIRECTORY'), 'warning');
return false;
}
@ -277,7 +279,7 @@ class ComponentbuilderModelImport extends JModelLegacy
// Did you give us a valid package?
if (!$type)
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_PATH_DOES_NOT_HAVE_A_VALID_PACKAGE'), 'warning');
}
// check the extention
@ -288,7 +290,7 @@ class ComponentbuilderModelImport extends JModelLegacy
break;
default:
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
return false;
break;
}
@ -308,15 +310,16 @@ class ComponentbuilderModelImport extends JModelLegacy
*/
protected function _getPackageFromUrl()
{
$input = JFactory::getApplication()->input;
$app = JFactory::getApplication();
$input = $app->input;
// Get the URL of the package to import
$url = $input->getString('import_url');
// Did you give us a URL?
if (!$url)
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_ENTER_A_URL'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_ENTER_A_URL'), 'warning');
return false;
}
@ -326,7 +329,7 @@ class ComponentbuilderModelImport extends JModelLegacy
// Was the package downloaded?
if (!$p_file)
{
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_INVALID_URL'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_INVALID_URL'), 'warning');
return false;
}
@ -347,6 +350,7 @@ class ComponentbuilderModelImport extends JModelLegacy
*/
protected function check($archivename)
{
$app = JFactory::getApplication();
// Clean the name
$archivename = JPath::clean($archivename);
@ -360,7 +364,7 @@ class ComponentbuilderModelImport extends JModelLegacy
default:
// Cleanup the import files
$this->remove($archivename);
JError::raiseWarning('', JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'));
$app->enqueueMessage(JText::_('COM_COMPONENTBUILDER_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
return false;
break;
}

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layouts.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_views.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.14
@build 28th June, 2016
@version 2.1.16
@build 12th July, 2016
@created 30th April, 2015
@package Component Builder
@subpackage templates.php