diff --git a/bl-kernel/admin/themes/default/css/default.css b/bl-kernel/admin/themes/default/css/default.css index 958f0b5c..b9cfd13c 100644 --- a/bl-kernel/admin/themes/default/css/default.css +++ b/bl-kernel/admin/themes/default/css/default.css @@ -179,17 +179,53 @@ button.delete-button:hover { text-transform: uppercase; } -#jstagList { - margin-top: 5px; +#bludit-tags { + margin-top: 15px; } -#jstagList span { - background: #f1f1f1; - border-radius: 3px; - color: #2672ec; +#bludit-tags .uk-button { + padding: 0 12px !important; + margin-left: 10px; +} + +#jstagList { + margin-top: 15px; +} + +#jstagList span.unselect, +#jstagList span.select { + margin-top: 5px; margin-right: 5px; - padding: 3px 10px; + padding: 1px 15px; cursor: pointer; + display: inline-block; + border-radius: 3px; + background: #f1f1f1; + vertical-align: middle; +} + +#jstagList span.unselect:before { + font-family: FontAwesome; + content: "\f067"; + padding-right: 5px; +} + +#jstagList span.unselect { + color: #AAA; +} + +#jstagList span.unselect:hover { + color: #888; +} + +#jstagList span.select:before { + font-family: FontAwesome; + content: "\f00c"; + padding-right: 5px; +} + +#jstagList span.select { + color: #2672ec; } /* ----------- BLUDIT IMAGES V8 ----------- */ diff --git a/bl-kernel/admin/themes/default/init.php b/bl-kernel/admin/themes/default/init.php index dcfed7e1..c674843b 100644 --- a/bl-kernel/admin/themes/default/init.php +++ b/bl-kernel/admin/themes/default/init.php @@ -21,20 +21,21 @@ class HTML { { $html = ''; -$script = ''; -'; echo $html.$script; } @@ -67,108 +68,32 @@ $(document).ready(function() { echo $html; } - public static function tagsAutocomplete($args) + public static function tags($args) { - // Tag array for Javascript - $tagArray = 'var tagArray = [];'; - if(!empty($args['value'])) { - $tagArray = 'var tagArray = ["'.implode('","', $args['value']).'"]'; + // Javascript code + include(PATH_JS.'bludit-tags.js'); + + $html = '
'; + + $html .= ''; + + $html .= ''; + + $html .= '
'; + $html .= ''; + $html .= ''; + + $html .= '
'; + + foreach($args['allTags'] as $tag) { + $html .= ''.$tag.''; } - $args['value'] = ''; - // Text input - self::formInputText($args); - - echo '
'; - -$script = ''; - - echo $script; + $html .= '
'; + $html .= '
'; + $html .= '
'; + echo $html; } public static function formInputPassword($args) diff --git a/bl-kernel/admin/views/edit-page.php b/bl-kernel/admin/views/edit-page.php index 95012756..d3b44fec 100644 --- a/bl-kernel/admin/views/edit-page.php +++ b/bl-kernel/admin/views/edit-page.php @@ -77,13 +77,11 @@ echo '