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
b526d38e
Commit
b526d38e
authored
Apr 17, 2020
by
Isaque Melo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://git.hacklab.com.br/open-source/guaraci
into develop
parents
63c21671
24c48cf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
pagebuilder-components/widgets/section-title/section-title.php
...uilder-components/widgets/section-title/section-title.php
+12
-3
pagebuilder-components/widgets/section-title/tpl/template.php
...builder-components/widgets/section-title/tpl/template.php
+14
-2
No files found.
pagebuilder-components/widgets/section-title/section-title.php
View file @
b526d38e
<?php
/*
Widget Name: Título de seção
Description:
Description:
Author: hacklab/
Author URI: https://hacklab.com.br/
*/
...
...
@@ -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_title'
=>
[
'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'
),
...
...
@@ -47,7 +56,7 @@ class SectionTitle extends \SiteOrigin_Widget {
'default'
=>
'none'
,
'options'
=>
$css_classes
],
];
parent
::
__construct
(
'title-button'
,
'Título de seção'
,
[
...
...
pagebuilder-components/widgets/section-title/tpl/template.php
View file @
b526d38e
...
...
@@ -5,13 +5,25 @@ $tag_open = "<$element class=\"section-title $class\">";
$tag_close
=
"</
$element
>"
;
?>
<?=
$tag_open
?>
<?php
if
(
!
empty
(
$instance
[
'link_title'
]))
:
?>
<a
class=
"link-title"
href=
"
<?php
echo
$instance
[
'link_title'
]
?>
"
>
<?php
endif
;
?>
<i
class=
"section-title--icon"
></i>
<?php
if
(
!
empty
(
$instance
[
'
slogan
'
]))
:
?>
<?php
if
(
!
empty
(
$instance
[
'
title
'
]))
:
?>
<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
;
?>
<?=
$tag_close
?>
\ No newline at end of file
<?php
if
(
!
empty
(
$instance
[
'link_slogan'
]))
:
?>
</a>
<?php
endif
;
?>
<?=
$tag_close
?>
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