Esempio n. 1
0
 /**
  * all font icons
  */
 function miss_get_all_font_icons()
 {
     $variation = miss_icomoon_option();
     $all_icons = array();
     foreach ($variation as $key => $value) {
         $all_icons[$key] = $value . ' (IcoMoon)';
     }
     $variation = miss_icon_variations();
     foreach ($variation as $key => $value) {
         $all_icons[$key] = $value . ' (FontAwesome)';
     }
     asort($all_icons);
     return $all_icons;
 }
Esempio n. 2
0
 /**
  *
  */
 function select_target_options($type)
 {
     $options = array();
     switch ($type) {
         case 'page':
             $entries = get_pages('title_li=&orderby=name');
             foreach ($entries as $key => $entry) {
                 $options[$entry->ID] = $entry->post_title;
             }
             break;
         case 'cat':
             $entries = get_categories('orderby=name&hide_empty=0');
             foreach ($entries as $key => $entry) {
                 $options[$entry->term_id] = $entry->name;
             }
             break;
         case 'portfolio_category':
             $entries = get_terms('portfolio_category', 'orderby=name&hide_empty=0');
             foreach ($entries as $key => $entry) {
                 $options[$entry->slug] = $entry->name;
             }
             break;
         case 'custom_sidebars':
             $custom_sidebars = get_option(MISS_SIDEBARS) ? get_option(MISS_SIDEBARS) : array();
             foreach ($custom_sidebars as $key => $value) {
                 $options[$value] = $value;
             }
             break;
         case 'style_variations':
             $options = miss_style_option();
             break;
         case 'color_variations':
             $variation = miss_color_variations();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value;
             }
             break;
         case 'icon_variations':
             $variation = miss_icon_variations();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value;
             }
             break;
         case 'icomoon_variations':
             $variation = miss_icomoon_option();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value;
             }
             arsort($options);
             break;
         case 'css_animation':
             $variation = miss_css_animation();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value;
             }
             arsort($options);
             break;
         case 'all_icons':
             $variation = miss_icomoon_option();
             $option = array();
             // List of IcoMoon
             foreach ($variation as $key => $value) {
                 $options[$key] = $value . ' (IcoMoon)';
             }
             $variation = miss_icon_variations();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value . ' (FontAwesome)';
             }
             arsort($options);
             break;
         case 'fontsocial_variations':
             $variation = miss_sociable_option();
             foreach ($variation as $key => $value) {
                 $options[$key] = $value;
             }
             break;
         case 'link':
             $decoration = array('none', 'overline', 'line-through', 'underline');
             $options = array('text-decoration' => $decoration);
             break;
         case 'background':
             $repeat = array('repeat', 'repeat-x', 'repeat-y', 'no-repeat');
             $attachment = array('scroll', 'fixed');
             $position = array('left top', 'left center', 'left bottom', 'right top', 'right center', 'right bottom', 'center top', 'center center', 'center bottom');
             $options = array('background-repeat' => $repeat, 'background-attachment' => $attachment, 'background-position' => $position);
             break;
         case 'typography':
             $options = miss_typography_options();
             break;
         case 'font_family':
             $font_family = miss_typography_options();
             $options = $font_family['font-family'];
             break;
         case 'font_size':
             $options = range(0, 72);
             break;
         case 'font_weight':
             $options = array(100, 300, 400, 600, 900);
             break;
         case 'border':
             $size = range(0, 72);
             $style = array('none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset');
             $options = array('1' => $size, '2' => $style);
             break;
     }
     return $options;
 }