Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guaraci WordPress Plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
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
open-source
Guaraci WordPress Plugin
Commits
87d182e8
Commit
87d182e8
authored
Apr 14, 2020
by
Bruno Antunes Magrini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adiciona campo para link no título e no slogan
parent
1a230453
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
pagebuilder-components/widgets/section-title/section-title.php
...uilder-components/widgets/section-title/section-title.php
+10
-1
pagebuilder-components/widgets/section-title/tpl/template.php
...builder-components/widgets/section-title/tpl/template.php
+21
-4
No files found.
pagebuilder-components/widgets/section-title/section-title.php
View file @
87d182e8
...
...
@@ -24,12 +24,21 @@ class SectionTitle extends \SiteOrigin_Widget {
'label'
=>
__
(
'Título da seção'
,
'guaraci'
),
'description'
=>
__
(
'Deixe em branco para não utilizar'
,
'guaraci'
)
],
'link_titulo'
=>
[
'type'
=>
'text'
,
'label'
=>
__
(
'Endereço do link do título'
,
'guaraci'
),
'description'
=>
__
(
'Deixe em branco para não utilizar'
,
'guaraci'
)
],
'slogan'
=>
[
'type'
=>
'text'
,
'label'
=>
__
(
'Slogan da seção'
,
'guaraci'
),
'description'
=>
__
(
'Deixe em branco para não utilizar'
,
'guaraci'
)
],
'link_slogan'
=>
[
'type'
=>
'text'
,
'label'
=>
__
(
'Endereço do link do slogan'
,
'guaraci'
),
'description'
=>
__
(
'Deixe em branco para não utilizar'
,
'guaraci'
)
],
'element'
=>
[
'type'
=>
'select'
,
'label'
=>
__
(
'Selecione o tamanho do título'
,
'guaraci'
),
...
...
pagebuilder-components/widgets/section-title/tpl/template.php
View file @
87d182e8
...
...
@@ -5,13 +5,30 @@ $tag_open = "<$element class=\"section-title $class\">";
$tag_close
=
"</
$element
>"
;
?>
<?=
$tag_open
?>
<?php
if
(
!
empty
(
$instance
[
'link_titulo'
]))
:
?>
<a
class=
"link-titulo"
href=
"
<?php
echo
$instance
[
'link_titulo'
]
?>
"
>
<?php
endif
;
?>
<i
class=
"section-title--icon"
></i>
<?php
if
(
!
empty
(
$instance
[
'slogan'
]))
:
?>
<span
class=
"section-title--title"
>
<?=
$instance
[
'title'
]
?>
</span>
<?php
if
(
!
empty
(
$instance
[
'titulo'
]))
:
?>
<span
class=
"section-title--title"
>
<?=
$instance
[
'title'
]
?>
</span>
<?php
endif
;
?>
<?php
if
(
!
empty
(
$instance
[
'link_slogan'
]))
:
?>
</a>
<?php
endif
;
?>
<?php
if
(
!
empty
(
$instance
[
'link_slogan'
]))
:
?>
<a
class=
"link-slogan"
href=
"
<?php
echo
$instance
[
'link_slogan'
]
?>
"
>
<?php
endif
;
?>
<?php
if
(
!
empty
(
$instance
[
'slogan'
]))
:
?>
<span
class=
"section-title--slogan"
>
<?=
$instance
[
'slogan'
]
?>
</span>
<?php
endif
;
?>
<?php
if
(
!
empty
(
$instance
[
'link_slogan'
]))
:
?>
</a>
<?php
endif
;
?>
<?=
$tag_close
?>
\ No newline at end of file
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