";
$thpath = isset($sc_parameters['nothumb']) || vartrue($hide) ? $default : $default_thumb;
- $style = ($blank) ? "width:64px;height:64px" : "";
- $label = "

";
+ $style = ($blank) ? "width:64px;height:64px;font-size:32px;" : "font-size:32px;";
+ $label = "
";
+
+ if($glyph = $tp->glyph($default_url))
+ {
+ $label .= $glyph;
+ }
+ else
+ {
+ $label .= "

";
+ }
+
+
+ $label .= "
+
+
";
+
+ // $label = "

";
}
else // Images
@@ -2608,7 +2613,15 @@ class e_form
break;
case 'icon':
- $value = '
.$value, 'abs').')
';
+
+ if($glyph = $tp->glyph($value))
+ {
+ $value = $glyph;
+ }
+ else
+ {
+ $value = '
.$value, 'abs').')
';
+ }
break;
case 'file':
diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php
index 540220752..ec5a9ce13 100644
--- a/e107_handlers/media_class.php
+++ b/e107_handlers/media_class.php
@@ -659,10 +659,10 @@ class e_media
$repl = array($im['media_url'],$media_path);
if($bbcode == null) // e107 Media Manager
- {
+ {
$onclicki = "parent.document.getElementById('{$tagid}').value = '{$im['media_url']}';
- parent.document.getElementById('".$prevId."').src = '{$realPath}';
- return false;";
+ parent.document.getElementById('".$prevId."').src = '{$realPath}';
+ return false;";
//$onclicki = "";
$class .= " e-media-select e-dialog-close";
}
@@ -753,6 +753,162 @@ class e_media
return $newpath;
}
+
+
+
+ function getGlyphs()
+ {
+ $icons = array(
+ "icon-glass",
+ "icon-music",
+ "icon-search",
+ "icon-envelope",
+ "icon-heart",
+ "icon-star",
+ "icon-star-empty",
+ "icon-user",
+ "icon-film",
+ "icon-th-large",
+ "icon-th",
+ "icon-th-list",
+ "icon-ok",
+ "icon-remove",
+ "icon-zoom-in",
+ "icon-zoom-out",
+ "icon-off",
+ "icon-signal",
+ "icon-cog",
+ "icon-trash",
+ "icon-home",
+ "icon-file",
+ "icon-time",
+ "icon-road",
+ "icon-download-alt",
+ "icon-download",
+ "icon-upload",
+ "icon-inbox",
+ "icon-play-circle",
+ "icon-repeat",
+ "icon-refresh",
+ "icon-list-alt",
+ "icon-lock",
+ "icon-flag",
+ "icon-headphones",
+ "icon-volume-off",
+ "icon-volume-down",
+ "icon-volume-up",
+ "icon-qrcode",
+ "icon-barcode",
+ "icon-tag",
+ "icon-tags",
+ "icon-book",
+ "icon-bookmark",
+ "icon-print",
+ "icon-camera",
+ "icon-font",
+ "icon-bold",
+ "icon-italic",
+ "icon-text-height",
+ "icon-text-width",
+ "icon-align-left",
+ "icon-align-center",
+ "icon-align-right",
+ "icon-align-justify",
+ "icon-list",
+
+ "icon-indent-left",
+ "icon-indent-right",
+ "icon-facetime-video",
+ "icon-picture",
+ "icon-pencil",
+ "icon-map-marker",
+ "icon-adjust",
+ "icon-tint",
+ "icon-edit",
+ "icon-share",
+ "icon-check",
+ "icon-move",
+ "icon-step-backward",
+ "icon-fast-backward",
+ "icon-backward",
+ "icon-play",
+ "icon-pause",
+ "icon-stop",
+ "icon-forward",
+ "icon-fast-forward",
+ "icon-step-forward",
+ "icon-eject",
+ "icon-chevron-left",
+ "icon-chevron-right",
+ "icon-plus-sign",
+ "icon-minus-sign",
+ "icon-remove-sign",
+ "icon-ok-sign",
+
+ "icon-question-sign",
+ "icon-info-sign",
+ "icon-screenshot",
+ "icon-remove-circle",
+ "icon-ok-circle",
+ "icon-ban-circle",
+ "icon-arrow-left",
+ "icon-arrow-right",
+ "icon-arrow-up",
+ "icon-arrow-down",
+ "icon-share-alt",
+ "icon-resize-full",
+ "icon-resize-small",
+ "icon-plus",
+ "icon-minus",
+ "icon-asterisk",
+ "icon-exclamation-sign",
+ "icon-gift",
+ "icon-leaf",
+ "icon-fire",
+ "icon-eye-open",
+ "icon-eye-close",
+ "icon-warning-sign",
+ "icon-plane",
+ "icon-calendar",
+ "icon-random",
+ "icon-comment",
+ "icon-magnet",
+
+ "icon-chevron-up",
+ "icon-chevron-down",
+ "icon-retweet",
+ "icon-shopping-cart",
+ "icon-folder-close",
+ "icon-folder-open",
+ "icon-resize-vertical",
+ "icon-resize-horizontal",
+ "icon-hdd",
+ "icon-bullhorn",
+ "icon-bell",
+ "icon-certificate",
+ "icon-thumbs-up",
+ "icon-thumbs-down",
+ "icon-hand-right",
+ "icon-hand-left",
+ "icon-hand-up",
+ "icon-hand-down",
+ "icon-circle-arrow-right",
+ "icon-circle-arrow-left",
+ "icon-circle-arrow-up",
+ "icon-circle-arrow-down",
+ "icon-globe",
+ "icon-wrench",
+ "icon-tasks",
+ "icon-filter",
+ "icon-briefcase",
+ "icon-fullscreen"
+ );
+
+ return $icons;
+
+ }
+
+
function getPath($mime)
diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php
index 20a4a72c5..43690d995 100644
--- a/e107_handlers/sitelinks_class.php
+++ b/e107_handlers/sitelinks_class.php
@@ -1058,6 +1058,8 @@ class e_navigation
{
global $E_ADMIN_MENU; //TODO remove me?
+ $tp = e107::getParser();
+
if (!$tmpl)
$tmpl = $E_ADMIN_MENU;
@@ -1213,7 +1215,16 @@ class e_navigation
$replace[7] = varset($e107_vars[$act]['link_class']);
$replace[8] = '';
- $replace[9] = varset($e107_vars[$act]['image']);
+
+ if(vartrue($e107_vars[$act]['image_src']) && strstr($e107_vars[$act]['image_src'],'.glyph'))
+ {
+ $replace[9] = $tp->glyph($e107_vars[$act]['image_src']);
+ }
+ else
+ {
+ $replace[9] = varset($e107_vars[$act]['image']);
+ }
+
if($rid == 'logout' || $rid == 'home' || $rid == 'language')
{
@@ -1605,8 +1616,22 @@ class navigation_shortcodes extends e_shortcode
*/
function sc_link_image($parm='')
{
- if (!vartrue($this->var['link_image'])) return '';
- return e107::getParser()->replaceConstants($this->var['link_image'], 'full', TRUE);
+ $tp = e107::getParser();
+
+ if (!vartrue($this->var['link_button'])) return '';
+
+ if($icon = $tp->glyph($this->var['link_button']))
+ {
+ return $icon;
+ }
+ else
+ {
+ $path = e107::getParser()->replaceConstants($this->var['link_button'], 'full', TRUE);
+ return "

";
+ }
+
+
+
}
diff --git a/e107_themes/bootstrap/admin_theme.php b/e107_themes/bootstrap/admin_theme.php
index 4b4b15f52..7ed65154c 100644
--- a/e107_themes/bootstrap/admin_theme.php
+++ b/e107_themes/bootstrap/admin_theme.php
@@ -7,6 +7,7 @@ define("SEP","
");
e107::js('core','bootstrap/js/bootstrap.min.js');
e107::css('core','bootstrap/css/bootstrap.min.css');
e107::css('core','bootstrap/css/bootstrap-responsive.min.css');
+e107::css('url', "//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css");
// e107::css('core','bootstrap/css/jquery-ui.custom.css');
e107::css('theme','admin_style.css');
diff --git a/e107_web/js/core/mediaManager.js b/e107_web/js/core/mediaManager.js
index 654619e90..0878b09fc 100644
--- a/e107_web/js/core/mediaManager.js
+++ b/e107_web/js/core/mediaManager.js
@@ -140,8 +140,9 @@ $(document).ready(function()
var name = $(this).attr('data-name');
var width = $(this).attr('data-width');
var height = ''; // disable for now - will be updated by bb parser. // $(this).attr('data-height');
-
-
+ var type = $(this).attr('data-type');
+
+ // return;
// alert(width);
$(this).addClass("media-select-active");
@@ -181,8 +182,26 @@ $(document).ready(function()
$('#width').val(width);
$('#height').val(height);
+
+
+
$('img#' + target + "_prev", window.top.document).attr('src',preview); // set new value
+
+
+ if(type == 'glyph')
+ {
+ preview = "
";
+ $('#html_holder').val(preview);
+ $('#path').attr('value',path);
+ }
+ else
+ {
+ eMediaAttribute(this);
+ preview = $('#html_holder').val();
+ }
+
+
$('div#' + target + "_prev", window.top.document).html(preview); // set new value
$('span#' + target + "_prev", window.top.document).html(preview); // set new value
@@ -192,7 +211,7 @@ $(document).ready(function()
$('input#' + target , window.top.document).attr('value',path); // set new value
}
- eMediaAttribute(this);
+
// $(this).parent('#src').attr('value',preview); // set new value