Esempio n. 1
0
function tagclouds_widget($num = 1)
{
    $widget = 'tagclouds_widget_' . $num;
    // имя для опций = виджет + номер
    $options = mso_get_option($widget, 'plugins', array());
    // получаем опции
    // заменим заголовок, чтобы был в  h2 class="box"
    if (isset($options['header']) and $options['header']) {
        $options['header'] = mso_get_val('widget_header_start', '<h2 class="box"><span>') . $options['header'] . mso_get_val('widget_header_end', '</span></h2>');
    } else {
        $options['header'] = '';
    }
    return tagclouds_widget_custom($options, $num);
}
Esempio n. 2
0
				if (sh == 1) 
				{ 
					elem1.style.display = "none"; 
					elem2.style.display = "block"; 
				}
				else
				{
					elem1.style.display = "block"; 
					elem2.style.display = "none"; 				
				}
			}			
		</script>' . NR;
    // только первые 20
    $f_all_tags .= tagclouds_widget_custom(array('max_num' => isset($editor_options['tags_count']) ? $editor_options['tags_count'] : 20, 'max_size' => '180', 'sort' => isset($editor_options['tags_sort']) ? $editor_options['tags_sort'] : 0, 'block_start' => '<p id="f_all_tags_max_num">', 'block_end' => ' <a title="' . t('Показать все метки') . '" href="#" onClick="shtags(1); return false;">&gt;&gt;&gt;</a></p>', 'format' => '<span style="font-size: [SIZE]%"><a href="#" onClick="addTag(\'[TAG]\'); return false;">[TAG]</a><sub style="font-size: 7pt;">[COUNT]</sub></span>'));
    // все метки
    $f_all_tags .= tagclouds_widget_custom(array('max_num' => 9999, 'max_size' => '180', 'sort' => isset($editor_options['tags_sort']) ? $editor_options['tags_sort'] : 0, 'block_start' => '<p id="f_all_tags_all" style="display: none;">', 'block_end' => ' <a title="' . t('Показать только самые популярные метки') . '" href="#" onClick="shtags(2); return false;">&lt;&lt;&lt;</a></p>', 'format' => '<span style="font-size: [SIZE]%"><a href="#" onClick="addTag(\'[TAG]\'); return false;">[TAG]</a><sub style="font-size: 7pt;">[COUNT]</sub></span>'));
}
$fses = mso_form_session('f_session_id');
// сессия
// получаем все типы страниц
$all_post_types = '';
$query = $CI->db->get('page_type');
$page_type_js_obj = '{';
// для скрытия метаполей в зависимости от типа записи
foreach ($query->result_array() as $row) {
    if ($f_page_type == $row['page_type_id']) {
        $che = 'checked="checked"';
    } else {
        $che = '';
    }
    $page_type_desc = $row['page_type_desc'] ? ' <em>(' . t($row['page_type_desc']) . ')</em>' : '';