-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from TiagoDGomes/dev
Version 2.5
- Loading branch information
Showing
29 changed files
with
545 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
class Toolbar { | ||
|
||
public static function HTMLMenu(){ | ||
if (AccessCheck::isValidAdminPage()){ | ||
Toolbar::HTMLLinkAnchor('javascript:edit()','Editar','edit',''); | ||
Toolbar::HTMLLinkAnchor('javascript:save()','Salvar','save',''); | ||
echo '<hr>'; | ||
Toolbar::HTMLLinkAnchor(Style::getStyleURL('',TRUE),'','',''); | ||
Toolbar::HTMLMenuItems('media/custom-admin', TRUE); | ||
} | ||
echo '<hr>'; | ||
Toolbar::HTMLMenuItems('media/custom', FALSE); | ||
} | ||
|
||
public static function HTMLLinkAnchor($url, $title, $class, $style_in_line){ | ||
?> | ||
|
||
<div class="item <?= $class ?>"> | ||
<a title="<?= $title ?>" href="<?= $url ?>"> | ||
<i style="<?= $style_in_line ?>" class="icon <?= $class ?>"></i> | ||
</a> | ||
</div> | ||
|
||
<?php | ||
} | ||
|
||
public static function HTMLMenuItems($path, $admin=FALSE){ | ||
global $HIDE_STYLES; | ||
$files = array_diff(scandir($path), array('..', '.')); | ||
foreach ($files as $file){ | ||
if (in_array($file, $HIDE_STYLES)){ | ||
// | ||
} else { | ||
if (file_exists("$path/$file/$file.png")){ | ||
$style_in_line = "background-image: url($path/$file/$file.png);"; | ||
} else if (file_exists("$path/$file/$file.svg")){ | ||
$style_in_line = "background-image: url($path/$file/$file.svg);"; | ||
} else { | ||
$style_in_line = ''; | ||
} | ||
$url = Style::getStyleURL($file,$admin); | ||
Toolbar::HTMLLinkAnchor($url,$file,$file, $style_in_line); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<p style="text-align:center">[ss] [pause]</p> | ||
<p style="text-align:center">[0:30] [1:00] [1:30] [2:00] [3:00] [4:00] [5:00] [10:00] [15:00]</p> | ||
<br><br><hr> | ||
<p style="text-align:center"> | ||
Para alterar o tempo dos botões ou adicionar textos adicionais, | ||
clique no botão "Editar" localizado na barra de ferramentas. | ||
</p> | ||
<hr> | ||
<p> | ||
Todos os exemplos: | ||
<br> | ||
[iniciar] : Botão iniciar sem o label de tempo atual | ||
<br> | ||
[ss]: Botão iniciar com o label de tempo atual | ||
<br> | ||
[2:30]: Botão de preparar tempo em minutos e segundos | ||
<br> | ||
[90]: Botão de preparar tempo em segundos (conversão automática) | ||
<br> | ||
[pause]: Botão para pausar o tempo (ele fica oculto caso já esteja pausado) | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.