Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
76e79057
Commit
76e79057
authored
May 28, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion
parent
c8af440e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
app/Resources/views/producto/landing_producto.html.twig
app/Resources/views/producto/landing_producto.html.twig
+3
-3
src/NutrapharmBundle/Controller/DefaultController.php
src/NutrapharmBundle/Controller/DefaultController.php
+9
-0
No files found.
app/Resources/views/producto/landing_producto.html.twig
View file @
76e79057
{%
extends
'base.html.twig'
%}
{%
extends
'base.html.twig'
%}
{%
block
head
%}
{%
block
head
%}
{%
if
idp
==
"none"
and
fa
==
1
%}
{%
if
idp
==
"none"
and
fa
==
1
%}
<meta
property=
"og:url"
content=
"https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
{{
idp
}}
&fa=
{{
fa
}}
"
/>
<meta
property=
"og:url"
content=
"https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
{{
idp
}}
&fa=
{{
fa
}}
&r=0
"
/>
<meta
property=
"og:type"
content=
"website"
/>
<meta
property=
"og:type"
content=
"website"
/>
<meta
property=
"og:title"
content=
"NutraPharm"
/>
<meta
property=
"og:title"
content=
"NutraPharm"
/>
<meta
property=
"og:description"
content=
"Producto Nutrapharm"
/>
<meta
property=
"og:description"
content=
"Producto Nutrapharm"
/>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<meta
property=
"og:image:height"
content=
"630"
/>
<meta
property=
"og:image:height"
content=
"630"
/>
<meta
property=
"og:image"
content=
"https://test-inovage.gearlabs.cl/uploads/users/
{{
idp
}}
."
/>
<meta
property=
"og:image"
content=
"https://test-inovage.gearlabs.cl/uploads/users/
{{
idp
}}
."
/>
{%
elseif
idp
!=
"none"
and
fa
==
0
%}
{%
elseif
idp
!=
"none"
and
fa
==
0
%}
<meta
property=
"og:url"
content=
"https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
none&fa
=1"
/>
<meta
property=
"og:url"
content=
"https://test-inovage.gearlabs.cl/nutrapharm/index?idp=
{{
idp
}}
&fa=
{{
fa
}}
&r
=1"
/>
<meta
property=
"og:type"
content=
"website"
/>
<meta
property=
"og:type"
content=
"website"
/>
<meta
property=
"og:title"
content=
"NutraPharm Comparacion Foto"
/>
<meta
property=
"og:title"
content=
"NutraPharm Comparacion Foto"
/>
<meta
property=
"og:description"
content=
"Producto Nutrapharm - Foto "
/>
<meta
property=
"og:description"
content=
"Producto Nutrapharm - Foto "
/>
...
...
src/NutrapharmBundle/Controller/DefaultController.php
View file @
76e79057
...
@@ -28,6 +28,8 @@ class DefaultController extends Controller {
...
@@ -28,6 +28,8 @@ class DefaultController extends Controller {
$log
->
debug
(
"Ingresando al landing de nutrapharm... IP :
$ip
| UA :
$ua
"
);
$log
->
debug
(
"Ingresando al landing de nutrapharm... IP :
$ip
| UA :
$ua
"
);
$idPersona
=
$request
->
get
(
"idp"
,
null
);
$idPersona
=
$request
->
get
(
"idp"
,
null
);
$firstAttempt
=
$request
->
get
(
"fa"
,
1
);
$firstAttempt
=
$request
->
get
(
"fa"
,
1
);
$reset
=
$request
->
get
(
"r"
,
0
);
if
(
$idPersona
==
null
)
{
if
(
$idPersona
==
null
)
{
$id
=
"none"
;
$id
=
"none"
;
...
@@ -35,6 +37,13 @@ class DefaultController extends Controller {
...
@@ -35,6 +37,13 @@ class DefaultController extends Controller {
$id
=
$idPersona
;
$id
=
$idPersona
;
}
}
if
(
$reset
==
1
){
$id
=
"none"
;
$firstAttempt
=
1
;
}
return
$this
->
render
(
'producto/landing_producto.html.twig'
,
array
(
"idp"
=>
$id
,
"fa"
=>
$firstAttempt
));
return
$this
->
render
(
'producto/landing_producto.html.twig'
,
array
(
"idp"
=>
$id
,
"fa"
=>
$firstAttempt
));
}
}
...
...
Write
Preview
Markdown
is supported
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