diff --git a/e107_admin/image.php b/e107_admin/image.php index b34dd3562..b9fea517a 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -994,10 +994,6 @@ class media_admin_ui extends e_admin_ui $options = array(); $options['bbcode'] = ($this->getQuery('bbcode')=='img') ? 'img' : FALSE; - if($this->getQuery('for') == '_icon') - { - // $options['glyphs'] = true; - } $text = " @@ -1010,7 +1006,7 @@ class media_admin_ui extends e_admin_ui $text .= "
  • Appearance
  • \n"; } - if(varset($options['glyphs'])) + if($this->getQuery('glyphs') == 1) { $text .= "
  • Glyphs
  • \n"; } @@ -1137,14 +1133,21 @@ class media_admin_ui extends e_admin_ui "; } - if(varset($options['glyphs'])) + if($this->getQuery('glyphs') == 1) { //TODO - $text .= "
    + $text .= "
    "; + $glyphs = e107::getMedia()->getGlyphs(); + + foreach($glyphs as $val) + { + $text .= ""; + $text .= ""; + $text .= "\n\n"; + } - -
    + $text .= "
    "; @@ -1153,7 +1156,8 @@ class media_admin_ui extends e_admin_ui $text .= ""; // For BBCODE mode. //TODO image-float. - if($options['bbcode']) + + if($options['bbcode'] || E107_DEBUG_LEVEL > 0) { @@ -1184,9 +1188,7 @@ class media_admin_ui extends e_admin_ui return $text; } - - - + function importPage() diff --git a/e107_admin/links.php b/e107_admin/links.php index b1fe46371..9cb4e39c4 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -78,7 +78,7 @@ class links_admin_ui extends e_admin_ui protected $fields = array( 'checkboxes' => array('title'=> '', 'width' => '3%','forced' => true, 'thclass' => 'center first','class' => 'center first'), - 'link_button' => array('title'=> LAN_ICON, 'type'=>'icon', 'width'=>'5%', 'thclass' => 'center', 'class'=>'center'), + 'link_button' => array('title'=> LAN_ICON, 'type'=>'icon', 'width'=>'5%', 'thclass' => 'center', 'class'=>'center', 'writeParms'=>'glyphs=1'), 'link_id' => array('title'=> LAN_ID, 'type'=>'text','readParms'=>'link=link_url&target=dialog','noedit'=>TRUE), 'link_name' => array('title'=> LCLAN_15, 'width'=>'auto','type'=>'text', 'inline'=>true, 'required' => true, 'validate' => true), 'link_category' => array('title'=> LAN_TEMPLATE, 'type' => 'dropdown', 'inline'=>true, 'batch'=>true, 'filter'=>true, 'width' => 'auto'), diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index c4f4bf6ae..1294381f3 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -1549,7 +1549,6 @@ Inverse 10 10 { $catid = $admin_cat['id'][$subitem[4]]; $tmp = array(); - $tmp['text'] = $subitem[1]; $tmp['description'] = $subitem[2]; $tmp['link'] = $subitem[0]; @@ -1749,7 +1748,7 @@ Inverse 10 10 $tmp[$c]['link'] = $tp->replaceConstants($link,'full'); $tmp[$c]['image'] = vartrue($lk['link_button']) ? "".$tp->toAttribute($lk[": "" ; $tmp[$c]['image_large'] = ''; - $tmp[$c]['image_src'] = ''; + $tmp[$c]['image_src'] = vartrue($lk['link_button']); $tmp[$c]['image_large_src'] = ''; $tmp[$c]['perm'] = ''; $c++; diff --git a/e107_core/templates/navigation_template.php b/e107_core/templates/navigation_template.php index 9a7309eda..105a83220 100644 --- a/e107_core/templates/navigation_template.php +++ b/e107_core/templates/navigation_template.php @@ -23,7 +23,7 @@ $NAVIGATION_TEMPLATE['main']['item'] = ' $NAVIGATION_TEMPLATE['main']['item_submenu'] = '