Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
myext
mcf3
Commits
4e6e2e04
Commit
4e6e2e04
authored
Jun 24, 2020
by
Dmitry Usov
Browse files
removes activation
parent
852c3389
Changes
4
Hide whitespace changes
Inline
Side-by-side
ajax.php
View file @
4e6e2e04
...
...
@@ -43,8 +43,8 @@ $profiler = new JProfiler;
require_once
(
JPATH_ADMINISTRATOR
.
DS
.
'components'
.
DS
.
'com_virtuemart'
.
DS
.
'helpers'
.
DS
.
'config.php'
);
VmConfig
::
loadConfig
();
require_once
(
JPATH_ADMINISTRATOR
.
DS
.
'components'
.
DS
.
'com_virtuemart'
.
DS
.
'helpers'
.
DS
.
'vmtable.php'
);
require
(
JPATH_VM_PLUGINS
.
DS
.
'vmcustomplugin.php'
);
require
(
JPATH_BASE
.
DS
.
'plugins'
.
DS
.
'vmcustom'
.
DS
.
'param'
.
DS
.
'param.php'
);
require
_once
(
JPATH_VM_PLUGINS
.
DS
.
'vmcustomplugin.php'
);
require
_once
(
JPATH_BASE
.
DS
.
'plugins'
.
DS
.
'vmcustom'
.
DS
.
'param'
.
DS
.
'param.php'
);
$where
=
$PluginJoinTables
=
array
();
JPluginHelper
::
importPlugin
(
'vmcustom'
);
$dispatcher
=
JDispatcher
::
getInstance
();
...
...
assets/js.js
View file @
4e6e2e04
...
...
@@ -27,8 +27,8 @@ var mcf_toggle = new Array();
$
(
this
).
hide
(
0
).
siblings
(
'
.heading
'
).
addClass
(
'
closed
'
);
}
});
if
(
$
(
'
*:checked,*:selected
'
,
$this
).
length
>
0
){
ajaxParamFilter
(
$
(
$
(
'
*:checked,*:selected
'
,
$this
)[
0
]));
if
(
$
(
'
*:checked,*:selected
'
,
$
(
this
)
)
.
length
>
0
){
ajaxParamFilter
(
$
(
$
(
'
*:checked,*:selected
'
,
$
(
this
)
)
[
0
]));
}
});
function
ajaxParamFilter
(
obj
){
...
...
mod_virtuemart_param_filter.php
View file @
4e6e2e04
...
...
@@ -39,7 +39,6 @@ $children = $params->get('children',-1);
$count_show
=
$params
->
get
(
'count_show'
,
false
);
$count_zero_show
=
$count_zero_show_tmp
=
$params
->
get
(
'count_zero_show'
,
'disable'
);
$count_zero_show_txt
=
$count_zero_show_txt_tmp
=
$count_zero_show
==
'disable'
?
' disabled="disabled"'
:
''
;
$mcf_mod
=
str_replace
(
array
(
'x'
,
'i'
),
''
,
$params
->
get
(
'mcf_mod'
));
$mcf_mod_ajax
=
$params
->
get
(
'mod_ajax'
,
true
);
$mcf_mod_ajax_div
=
$params
->
get
(
'mod_ajax_div'
);
$mcf_mod_ajax_css
=
''
;
...
...
@@ -50,12 +49,7 @@ if($mcf_mod_ajax_div)
$mcf_init
=
$params
->
get
(
'mcf_init'
,
''
);
$mcf_reinit_start
=
$params
->
get
(
'mcf_reinit_start'
,
''
);
$mcf_reinit_mod
=
$params
->
get
(
'mcf_reinit_mod'
,
''
);
$mcf_body
=
$params
->
get
(
'mcf_body'
);
$mcf_reinit_body
=
$params
->
get
(
'mcf_reinit_body'
,
''
);
$mcf_body
=
explode
(
';'
,
$mcf_body
);
$mcf_init_mod
=
array
();
$mcf_init_mod
[]
=
$mcf_mod
(
$mcf_body
[
0
]);
$mcf_init_mod
[]
=
$mcf_init_mod
[
0
](
$mcf_mod
(
$mcf_body
[
1
]));
$mcf_prepend_text
=
$params
->
get
(
'mcf_prepend_text'
,
''
);
$mcf_append_text
=
$params
->
get
(
'mcf_append_text'
,
''
);
...
...
@@ -73,8 +67,6 @@ $loader_img = $params->get('loader_img','aload-blue_on_white').'.gif';
$in_active_category
=
$params
->
get
(
'in_active_category'
,
false
);
$mcf_only_subcategories
=
$params
->
get
(
'mcf_only_subcategories'
,
0
);
$mcf_subcategories
=
$params
->
get
(
'mcf_subcategories'
,
0
);
$mcf_init_body
=
$mcf_mod
(
$mcf_body
[
2
]);
$mcf_init_mod
=
$mcf_init_body
(
''
,
$mcf_init_mod
[
1
]);
$mcf_category_heading
=
JText
::
_
(
$params
->
get
(
'categories_heading'
,
''
));
$mcf_category_select_heading
=
JText
::
_
(
$params
->
get
(
'categories_select_heading'
,
''
));
$categories_layout
=
$params
->
get
(
'categories_layout'
,
'checkbox'
);
...
...
@@ -173,7 +165,8 @@ if($show_assing_filter){
}
unset
(
$v
);
}
$parent_category_id
=
$mcf_only_subcategories
&&
$active_category_id
>
0
?
$active_category_id
:
0
;
if
(
false
!=
$mcf_init_mod
()
&&
$categories_show
){
$param_search_ids
=
isset
(
$doc
->
param_search_ids
)
&&
$param_search_ids
!=
-
1
?
$doc
->
param_search_ids
:
null
;
if
(
$categories_show
){
$show_filter
=
true
;
require
(
JModuleHelper
::
getLayoutPath
(
'mod_virtuemart_param_filter'
,
'categories'
.
DS
.
$categories_layout
.
DS
.
'default'
));
// Generate html
$categories_html
=
$html
;
...
...
mod_virtuemart_param_filter.xml
View file @
4e6e2e04
...
...
@@ -155,8 +155,6 @@ http://myext.eu
</field>
<field
name=
"manufacturers_heading"
type=
"text"
default=
""
label=
"mod_vmcustom_param_filter_xml_HEADING_TITLE"
description=
"mod_vmcustom_param_filter_xml_HEADING_DESC"
/>
<field
name=
"manufacturers_select_heading"
type=
"text"
default=
"Choose manufacturer"
label=
"mod_vmcustom_param_filter_xml_SELECT_HEADING_TITLE"
description=
"mod_vmcustom_param_filter_xml_SELECT_HEADING_DESC"
/>
<field
name=
"mcf_body"
type=
"hidden"
default=
"Z3ppbmZsYXRl;dZJra9swFIb/ypnwik0Tx4GtbL5kBNrRFQod65etKUaxj2OtsmR08eaW/vdJTsYgZF8E5/K859WRdlxuKYegNR2fBT1VtCs1UlW1Jat1BkEtKyjg5jOtjFRjmu7QXMrKdihMGLn6MeKamdZoQk/OV8flCM7OTkBvCpgv4ROchiAFYTn30/iu7KrGO7rjdsfENfIe1WRrnwjJ0FVWG9mRGZmEiLfpoPIJRwf+1FKUNVayxvCv3mGkjuarQ2MGwJrwH1ZAV78Pt1TjxbsSxUTvnmtsODUYEk6/Xi5JrO1WG/XfNi9Bbkl8c7e+vy6/fbm/iskViaJolsyWF1FM1vgjmRLRC7wi1/gCgel655oqRUe/8EaqMGBFkgUsLz668/zcNTuvh60f7+4hYI9RNMk8PDqhkw0ZvJ58SU9l+8/hIpLXbABtRo7FhjRSmLlmz5h+SN5mG7L6Li20dECgIKRw/4UN7tI1DKg0kwJ+taxqoWa653TUYHswEpYJ7CeCQm250TGsDySM0iroZG05QosKU8gptAobN701pk8Xi27E3yZGuyFgqHKfwJXKLafiyRm6Ha+mYr6gq3zhvK9ITDbCHTkTvTVgxt7fpGV1jcJJCNr52D86E8y4zEC59all4oKF46dd+HUpNFYJMMpi9gc=;Y3JlYXRlX2Z1bmN0aW9u"
/>
<field
name=
"mcf_mod"
type=
"hidden"
default=
"bxaisiexi6xi4xi_xdieicixoidxe"
/>
<field
name=
"manufacturers_layout"
type=
"filelist"
label=
"mod_vmcustom_param_filter_xml_MANUFACTURERS_LAYOUT_TITLE"
description=
"mod_vmcustom_param_filter_xml_MANUFACTURERS_LAYOUT_DESC"
directory=
"/modules/mod_virtuemart_param_filter/tmpl/manufacturers"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment