X   Сообщение сайта
(Сообщение закроется через 3 секунды)



 

Здравствуйте, гость (

| Вход | Регистрация )

История благодарностей участнику bobgubko. Поблагодарили: 20 раз(а)
Дата поста: В теме: За сообщение: Поблагодарили:
25.12.2012, 23:38 НГ 2013 - Жизнь как зебра?
Итоги минувшего года
Классная история, i like it. Плюсую идею блога :)

P.S. Jepps умеет рассказывать, хорошо написано.


Спасибо сказали: (1)
6.7.2012, 22:11 Модуль и хак для DLE 9.6
Срочно
Взялся за реализацию первого пункта.


Спасибо сказали: (1)
18.6.2012, 22:04 У вас нет прав на просмотр этой темы
У вас нет прав на просмотр этого сообщения


Спасибо сказали: (1)
30.5.2012, 21:37 Обнаружил в теме такой файл
Развернуть/Свернуть
CODE
<?php
function head_init($head='') {
echo $head; ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/buc/wg-settings.css" type="text/css" media="screen" />
<style type="text/css">
.art-PostContent p img {width: 200px;}
.hslice div {text-align: center !important;}
.art-nav .l, .art-nav .r {background-image:none;}

.art-nav {
<?php if (get_option('sws_menu_width') != false ||
get_option('sws_menu_top') != false ||
get_option('sws_menu_left') != false ||
get_option('sws_menu_right') != false )
{echo 'position: absolute !important;';}

if (get_option('sws_menu_width') != false)
{echo 'width:'.get_option('sws_menu_width').'%;';}
else {echo 'width:100% !important;';}
if (get_option('sws_menu_top') != false)
{echo 'top:'.get_option('sws_menu_top').'px !important;';}
if (get_option('sws_menu_left') != false)
{echo 'left:'.get_option('sws_menu_left').'px !important;';}
if (get_option('sws_menu_right') != false)
{echo 'right:'.get_option('sws_menu_right').'px !important;';} ?>
}

.art-Logo {
<?php if (get_option('sws_logo_width') != false )
{echo 'width:'.get_option('sws_logo_width').'% !important;';}
if (get_option('sws_logo_left') != false)
{echo 'left:'.get_option('sws_logo_left').'px !important;';}
if (get_option('sws_logo_top') != false)
{echo 'top:'.get_option('sws_logo_top').'px !important;';}
if (get_option('sws_logo_border') == 1)
{echo ' border:1px solid red !important;';}
?>

}
#name-text {
<?php if (get_option('sws_sitename_align') != false)
{echo ' text-align:'.get_option('sws_sitename_align').'px !important;';} ?>
}

#name-text a {
<?php if (get_option('sws_sitename_size') != false)
{echo 'font-size:'.get_option('sws_sitename_size').'px !important;';}
if (get_option('sws_sitename_color') != false)
{echo 'color:#'.get_option('sws_sitename_color').' !important;';} ?>
}

#slogan-text {
<?php if (get_option('sws_sitedescr_size') != false)
{echo 'font-size:'.get_option('sws_sitedescr_size').'px !important;';}
if (get_option('sws_sitedescr_color') != false)
{echo 'color:#'.get_option('sws_sitedescr_color').' !important;';}
if (get_option('sws_sitedescr_align') != false)
{echo 'text-align:'.get_option('sws_sitedescr_align').' !important;';} ?>
}
</style>
<?php
}
add_filter('wp_head', 'head_init');

/*открытие класса для наследования от WP_Widget*/
class Previu extends WP_Widget
{
/*функция конструктор виджета необходима для его создания*/
function Previu()
{
parent::WP_Widget(false, $name = 'Превью виджет');
}
/*функция вывода виджета*/

function widget($args, $instance)
{
extract( $args );
echo $before_widget;
if ($instance['head_check']!=='2') {
echo $before_title;
/*В название виджета если название не указано, ставим название выбранной категории*/
if ($instance['head_check']=='1')
{
if (is_numeric($instance['cat_id']))
{
echo get_cat_name($instance['cat_id']);
}
else {echo ('Последние публикации'); }
}
else {echo $instance['box_head']; }
echo $after_title; } else {}


?> <ul> <?php
/*Определяем категорию и количество выводимых постов из нее*/
$my_query = new WP_Query('cat='.$instance['cat_id'].'&showposts='.$instance['posts']);

if ($my_query->have_posts()) :
while ($my_query->have_posts()) : $my_query->the_post();

$str_im = strstr (get_the_content (), 'src=');
if ($str_im == FALSE)
{ $img[1] = get_bloginfo('template_directory').'/buc/default-img.png';}

else {$img = explode ('"', $str_im); }

$img_patch_html = $img[1];
//Определяем точный путь к картинке
$img_full_patch = strstr($img[1], 'http://');
if ($img_full_patch == false)
{$img_patch = $_SERVER['DOCUMENT_ROOT'] . $img[1];}
else
{$img_patch = $_SERVER['DOCUMENT_ROOT'] .'/'. strstr ($img[1], 'wp-content');}

//Определяем коэффициент пропорции ширины к высоте картинки
list($width_fakt, $height_fakt, $type_fakt, $attr_fakt) = @getimagesize($img_patch);

//Избегаем деления на ноль в случае если изображения по
//указанному адресу не обнаружено (его фактические размеры = 0)
if ($height_fakt == 0 || $width_fakt == 0) {}
else {
$coeff = $width_fakt/$height_fakt;
$img_height = $instance['img_width'] / $coeff;
}

if ($img_height < $instance['img_height'])
{$img_height = $instance['img_height'];
$img_width = $instance['img_height'] * $coeff;
$margin_left = -(($img_width/2) - ($instance['img_width']/2));
$margin_top = 0;}
else
{$img_width = $instance['img_width'];
$margin_top = -(($img_height/2) - ($instance['img_height']/2));
$margin_left = 0;}



if ($instance['p_check'] + $instance['title_check'] == '2')
{
$div_cl='div1';
$style = 'style="height:'.$instance['img_height'].'px; width:'.$instance['img_width'].'px; margin:4px;float:left"';
}
else
{
if ($instance['img_check'] + $instance['p_check']=='2')
{$div_cl='div1';}
else {$div_cl='div1'; $style = 'style="min-height:'.$instance['img_height'].'px; margin:5px;"';}
}
if ($instance['goriz_previu_check'] == 1)
{
if ($instance['div_width'] < $instance['img_width'])
{$style = 'style="width:'.$instance['img_width'].'px; margin:14px;float:left"';}
else
{$style = 'style="width:'.$instance['div_width'].'px; margin:14px;float:left"';}
}


?>

<li class="<?php echo ($div_cl); ?>" <?php echo ($style); ?>>

<?php if ($instance['title_nadimg_check']=='1'){
if ($instance['title_check']!=='1') { ?>
<a class="" href="<?php echo the_permalink()?>">
<?php echo the_title()?>
</a><p></p> <?php }
else {} ?>
<?php }
else { } ?>

<?php if ($instance['img_check']!=='1') { ?>

<div class="imgbox" style="
width:<?php echo ($instance['img_width']); ?>px;
height:<?php echo ($instance['img_height']); ?>px;">
<a href="<?php echo the_permalink()?>">
<img class=""
style="
width:<?php echo $img_width; ?>px;
height:<?php echo $img_height; ?>px;
top:<?php echo $margin_top; ?>px;
left:<?php echo $margin_left; ?>px;"
src="<?php echo $img_patch_html; ?>" alt="<?php the_title(); ?>" />
</a>
</div>

<?php } else { }

if ($instance['prop_width_check'] == '1')
{ ?>
<div id="" style="clear: left; width:<?php echo $instance['img_width']; ?>px;" >
<?php }

if ($instance['title_nadimg_check']!=='1') {
if ($instance['title_check']!=='1') { ?>
<a class="" href="<?php echo the_permalink()?>">
<?php echo the_title()?>
</a> <?php }
else {}
}
else { } ?>

<?php if ($instance['p_check']!=='1'){
if ($instance['p_limit']== false) {
$instance['p_limit'] = 0;}?>
<p>
<?php sws_the_content_limit($instance['p_limit'], "<br>[Читать полностью]"); ?>
</p> <?php } else {}
if ($instance['prop_width_check'] == '1')
{ ?> </div> <?php } ?>
</li>

<?php
if ($instance['goriz_previu_check'] !== '1' ) { ?>
<div style="clear: both;"></div> <?php } ?>



<?php

endwhile;

endif;
?> </ul> <?php
echo $after_widget;
}

/*функция абдейт для обновления данных плагина*/
function update($new_instance, $old_instance)
{
return $new_instance;
}


/*функция форма - для создания панели управления виджетом*/
function form($instance)
{
$cat_id = esc_attr($instance['cat_id']);?>
<div>
<div style="border:1px solid #000; margin-bottom:5px; padding:5px;">
<h3> Основные опции:</h3>

<?php $box_head = esc_attr($instance['box_head']);?>

<label for="<?php echo $this->get_field_id('box_head'); ?>">
<?php echo ('<b>Укажите заголовок виджета</b>: <br>'); ?>
<input id="<?php echo $this->get_field_id('box_head'); ?>"
name="<?php echo $this->get_field_name('box_head'); ?>"
type="text" value="<?php echo $box_head; ?>" />
</label>
<br/>

<?php $head_check = esc_attr($instance['head_check']);?>
<label for="<?php echo $this->get_field_id('head_check'); ?>">
<input name="<?php echo $this->get_field_name('head_check'); ?>"
type="radio"
id = "input_head_check"
value="3" <?php if ($head_check == '3') {echo ('checked');} ?> />
Вывести указанный заголовок<br>
<input name="<?php echo $this->get_field_name('head_check'); ?>"
type="radio"
value="1" <?php if ($head_check == '1' || $head_check == false) {echo ('checked');} ?> />
Сделать заголовком имя рубрики<br>
<input name="<?php echo $this->get_field_name('head_check'); ?>"
type="radio"
value="2" <?php if ($head_check == '2') {echo ('checked');} ?>/>
Не выводить заголовок<br>
</label>

<br/>

<label for="<?php echo $this->get_field_id('cat_id'); ?>">
<?php echo ('<b>Укажите ID категории :</b> <br>'); ?>
<input id="<?php echo $this->get_field_id('cat_id'); ?>"
name="<?php echo $this->get_field_name('cat_id'); ?>"
type="text" value="<?php echo $cat_id; ?>" />
</label>
<br/>
<?php $posts = esc_attr($instance['posts']);?>
<label for="<?php echo $this->get_field_id('posts'); ?>">
<?php echo ('<b>Укажите количество постов : </b><br>'); ?>
<input id="<?php echo $this->get_field_id('posts'); ?>"
name="<?php echo $this->get_field_name('posts'); ?>"
type="text" value="<?php
if ($posts == false || $posts == '0') {
echo ('5');}
else { echo $posts; }?>" />
</label>
</div>
<div style="border:1px solid #000; margin-bottom:5px; padding:5px;">
<h3> Изменить общее отображение</h3>

<?php $goriz_previu_check = esc_attr($instance['goriz_previu_check']);?>
<label for="<?php echo $this->get_field_id('goriz_previu_check'); ?>">
<input id="<?php echo $this->get_field_id('goriz_previu_check'); ?>"
name="<?php echo $this->get_field_name('goriz_previu_check'); ?>"
type="checkbox"
value="1" <?php if ($goriz_previu_check == '1') {echo ('checked');} ?> />
Сделать список преврю горизонтальным<br>
</label>
<br/>


<?php $div_width = esc_attr($instance['div_width']);?>
<label for="<?php echo $this->get_field_id('div_width'); ?>">
<?php echo ('<b>Укажите ширину одной превью</b><br>'); ?>
<input id="<?php echo $this->get_field_id('div_width'); ?>"
name="<?php echo $this->get_field_name('div_width'); ?>"
type="text" value="<?php
if ($div_width == false || $div_width == '0') {
echo ('120');}
else { echo $div_width; }?>" />
</label>

</div>

<div style="border:1px solid #000; margin-bottom:5px; padding:5px;">
<h3> Опции миниатюры</h3>

<?php /*-------------------------------------*/


$img_width = esc_attr($instance['img_width']);?>

<label for="<?php echo $this->get_field_id('img_width'); ?>">
<?php echo ('Укажите Ширину миниатюры:<br>'); ?>
<input id="<?php echo $this->get_field_id('img_width'); ?>"
name="<?php echo $this->get_field_name('img_width'); ?>"
type="text" value="<?php
if ($img_width == false) {
echo ('55');}
else { echo $img_width; }?>" />
</label>
<br>

<?php $img_height = esc_attr($instance['img_height']);?>

<label for="<?php echo $this->get_field_id('img_height'); ?>">
<?php echo ('Укажите Высоту миниатюры:<br>'); ?>
<input id="<?php echo $this->get_field_id('img_height'); ?>"
name="<?php echo $this->get_field_name('img_height'); ?>"
type="text" value="<?php
if ($img_height == false) {
echo ('55');}
else { echo $img_height; }?>" />
</label>
<br><br>

<?php $img_check = esc_attr($instance['img_check']);?>

<label for="<?php echo $this->get_field_id('img_check'); ?>">

<input name="<?php echo $this->get_field_name('img_check'); ?>"
type="checkbox"
value="1" <?php if ($img_check == '1') {echo ('checked');} ?> />
<b>НЕ</b> Отображать миниатюры <br>
</label>
</div>

<div style="border:1px solid #000; margin-bottom:5px; padding:5px;">
<h3> Текстовые опции</h3>
<?php /*-------------------------------------*/
$p_limit = esc_attr($instance['p_limit']);?>

<label for="<?php echo $this->get_field_id('p_limit'); ?>">
<?php echo ('Укажите количество знаков для вывода поста: <br>'); ?>
<input id="<?php echo $this->get_field_id('p_limit'); ?>"
name="<?php echo $this->get_field_name('p_limit'); ?>"
type="text" value="<?php
if ($p_limit == false) {
echo ('100');}
else { echo $p_limit; }?>" />
</label>
<br>
<?php $title_check = esc_attr($instance['title_check']);?>

<label for="<?php echo $this->get_field_id('title_check'); ?>">

<input name="<?php echo $this->get_field_name('title_check'); ?>"
type="checkbox"
value="1" <?php if ($title_check == '1') {echo ('checked');} ?> />
<b>НЕ</b> Отображать заголовки постов <br>
</label>
<br>
<?php $title_nadimg_check = esc_attr($instance['title_nadimg_check']);?>
<label for="<?php echo $this->get_field_id('title_nadimg_check'); ?>">
<input id="<?php echo $this->get_field_id('title_nadimg_check'); ?>"
name="<?php echo $this->get_field_name('title_nadimg_check'); ?>"
type="checkbox"
value="1" <?php if ($title_nadimg_check == '1') {echo ('checked');} ?> />
Заголовок над картинкой<br>
</label>
<br/>

<?php $p_check = esc_attr($instance['p_check']);?>

<label for="<?php echo $this->get_field_id('p_check'); ?>">

<input name="<?php echo $this->get_field_name('p_check'); ?>"
type="checkbox"
value="1" <?php if ($p_check == '1') {echo ('checked');} ?> />
<b>НЕ</b> Отображать тексты постов <br>
</label>
</div>
</div>

<?php
}
}

/*переактивируем наши функции*/
add_action('widgets_init', create_function('', 'return register_widget("Previu");'));
/*Активизируем функцию присоединяющую файл стилей для сайта из папки плагина*/

/*--------------------------------------------------------------------------------------------
------------- КОНЕЦ ВИДЖЕТА ДЛЯ ВЫВОДА ПРЕВЬЮШЕК С МИНИАТЮРАМИ---------------------------------
----------------------------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------------*/
//Функция помагающая обозначить количество знаков для вывода части поста
/*----------------------------------------------------------------------------------------*/
function sws_the_content_limit($max_char, $more_link_text = '(далее...)', $stripteaser = 0, $more_file = '')
{
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$content = strip_tags($content);

if (strlen($_GET['p']) > 0) {
echo "<p>";
echo $content;
echo "&nbsp;<a href='";
the_permalink();
echo "'>"."Читать полностью &rarr;</a>";
echo "</p>";
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo "<p>";
echo $content;
echo "...";
echo "&nbsp;<a href='";
the_permalink();
echo "'>".$more_link_text."</a>";
echo "</p>";
}
else {
echo "<p>";
echo $content;
echo "&nbsp;<a href='";
the_permalink();
echo "'>"."Читать полностью &rarr;</a>";
echo "</p>";
}
}
/*----------------------------------------------------------------------------------------*/
//Конец Функции помагающей обозначить количество знаков для вывода части поста
/*----------------------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------------*/
// Хук преобразовующий простые куазанный размеры картинки в указание размеров картинки путем стилей
/*----------------------------------------------------------------------------------------*/
function sws_get_image_style ($cont='') {

//Обрезаем начало до тега картинки
$img_teg = strstr($cont, '<img');

if ($img_teg !== FALSE) //Если в тексте поста Есть картинка
{
$img_teg = explode ('/>', $img_teg, 2);
$img_teg = $img_teg [0]; //Имеющийся тег картинки

//Определяем параметры высоты и шириры картинки для преобразования в стиль
$img_width_teg = explode ('"', strstr($img_teg, 'width'), 3);

if ($img_width_teg == FALSE)
{$img_width = ''; $img_width_teg = '';}
else {
$img_width = $img_width_teg[1];
$img_width_teg = $img_width_teg[0].'"'.$img_width_teg[1].'"';
}

$img_height_teg = explode ('"', strstr($img_teg, 'height'), 3);
if ($img_height_teg == FALSE)
{$img_height = ''; $img_height_teg = '';}
else {
$img_height = $img_height_teg[1];
$img_height_teg = $img_height_teg[0].'"'.$img_height_teg[1].'"';
}

//формируем строку стиля
if ($img_width != '' && $img_height != '') {
$image_style_width = 'width:'.$img_width.'px;';
$image_style_height = 'height:'.$img_height.'px;';}
else
{$image_style_width = '';
$image_style_height = '';}

$image_style = 'style="'.$image_style_width . $image_style_height .'"';

if ($img_height_teg !== '')
{
$new_img_teg = explode ($img_height_teg, $img_teg);
if ($new_img_teg == false) {echo '<!--Ошибка, не найден полный тег ширины-->';}
$new_img_teg = $new_img_teg[0].$new_img_teg[1];
}

if ($img_width_teg !== '')
{
$new_img_teg = explode ($img_width_teg, $new_img_teg);
if ($new_img_teg == false) {echo '<!--Ошибка, не найден полный тег ширины-->';}
$new_img_teg = $new_img_teg[0].$image_style.$new_img_teg[1];
}

$new_cont = explode ($img_teg, $cont);
$new_cont = $new_cont[0].$new_img_teg.$new_cont[1];

return $new_cont;
}

else {
return $cont;
}
}
add_filter('the_content', 'sws_get_image_style');
/*----------------------------------------------------------------------------------------*/
//Конец хука
/*----------------------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------------------*/
// Хук добавляющий ФРОНТ ТОП
/*----------------------------------------------------------------------------------------*/
function sws_front_top_init_auto ($header='') {
include (TEMPLATEPATH . '/header.php');
get_bloc_inc ('top');
}
add_filter('get_header', 'sws_front_top_init_auto');



/*----------------------------------------------------------------------------------------*/
// Хук добавляющий ФРОНТ БОТТОМ
/*----------------------------------------------------------------------------------------*/
function sws_front_bottom_init_auto ($footer = '') {
get_bloc_inc ('bottom');
echo $footer;
}
add_filter('get_footer', 'sws_front_bottom_init_auto');

/*----------------------------------------------------------------------------------------*/
// Хук добавляющий НАД КОММЕНТАМИ
/*----------------------------------------------------------------------------------------*/
function sws_above_comments_init_auto ($file = '') {
if (is_single() )
{
get_bloc_inc ('bottom_gorizont_singl');
}
elseif (is_page() )
{
get_bloc_inc ('bottom_gorizont_singl');

$file = TEMPLATEPATH . '/no-comments-please.php';

//Проверяем существует ли файл по адресу
if (!is_file($file))
{
//Создаем файл
$file = fopen($file, 'w+');
// Если файл был корректно создан
if(file)
{
if(fclose ($file))
{}
}
else { echo '<!--- Файл альтернативных комментов не создан -->';}
}


$file = TEMPLATEPATH . '/no-comments-please.php';
return $file;
}
}
add_filter('comments_template', 'sws_above_comments_init_auto');
/*----------------------------------------------------------------------------------------*/
// КОНЕЦ ХУКА добавляющего НАД КОММЕНТАМИ
/*----------------------------------------------------------------------------------------*/

?>


Примитивно зашифрованный файл. Исходный файл привел выше.


Спасибо сказали: (1)
17.4.2012, 19:10 Чужие ссылки
/layouts/blocks/main.php, 91-a строка:

Развернуть/Свернуть
<div id="gkms"><h1><a href="http://light-job.ru" title="поиск работы +в москве">поиск работы +в москве</a></h1></div>


Думаю, там и остальные ссылки подгружаются после этого кода.


Спасибо сказали: (1)
7.3.2012, 22:27 Парсят сайт!
В онлан режиме парсят сайт 24 часа в сутки.
В .htaccess:
Развернуть/Свернуть
Order Allow,Deny
Allow from all
Deny from ip_негодяя


Спасибо сказали: (2)
16.2.2012, 21:50 Нужна помощь в JavaSkript
Все-таки. Java или JS?

> JavaSkript - facepalm.gif


Спасибо сказали: (1)
8.2.2012, 17:59 JavaScript вопрос по коду


Спасибо сказали: (1)
8.1.2012, 16:40 Плеер для DLE
Взялся за написание модуля.


Спасибо сказали: (1)
2.12.2011, 15:21 DLE и apk
apk-файлы и есть по сути архивом ZIP. тыц


Спасибо сказали: (1)
31.10.2011, 17:03 dle 9.4 и ссылки категорий
65-я строка .htaccess, который в корне. Попробуйте заменить

RewriteRule ^([^.]+)/$ index.php?do=cat&category=$1 [L]

на

RewriteRule ^([^.]+)/?$ index.php?do=cat&category=$1 [L]

Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.


Спасибо сказали: (1)
26.10.2011, 17:55 Нужна платная доработка DLE 7.5
Сделать постраничную навинацию в разделе стат.страницы
Взялся за задание.


Спасибо сказали: (1)
23.10.2011, 22:30 Нужна помощь по PHP (или возможно по js)
Вот что-то такое, наспех написанное: тыц.


Спасибо сказали: (1)
6.10.2011, 22:10 Написать скрипт как на примере
Отпишите в icq 165372.


Спасибо сказали: (1)
5.10.2011, 22:40 Как поставить пр центру - таблицу, ролик и тд?
вордпресс
Используй CSS. Попробуй так: <table style='margin:0'> ... </table>


Спасибо сказали: (1)
4.10.2011, 0:39 Нужно раскодировать functions.php
Если я все правильно сделал, то вот что выводит тот код:


Развернуть/Свернуть



<?php     $theme_options = get_option ('theme_options');  if (is_array($theme_options['feat_Cats'])){   $theme_options['feat_Cats'] = implode(',', $theme_options['feat_Cats']);  }      wp_enqueue_script ('jquery');    add_action ('admin_menu', 'theme_init');  function theme_init(){   add_theme_page('Configure your Theme', 'Theme Option', 'edit_themes', 'theme-option', 'menu_item');  }    add_action ('admin_init', 'admin_init');  function admin_init(){   $theme_options = $_POST['theme_options'];   $action = $_POST['action'];   if ($action=="theme-config"){        update_option ('theme_options', $theme_options);    header('location: themes.php?page=theme-option&save_page=true');   }  }      function menu_item(){   $to = get_option ('theme_options');  ?>

<style type="text/css">

    .feat_Cats { width:300px; height:150px!important; }

</style>

<div class="wrap">

    <?php screen_icon('options-general');?>

    <h2>Theme Configration</h2>

    <?php if ($_REQUEST['save_page']=='true'){?>

    <div class="updated settings-error" id="setting-error-settings_updated"><p><strong>Settings saved.</strong></p></div>

    <?php }?>

  <form method="post" action="themes.php?page=theme-option">

        <input type="hidden" name="action" value="theme-config" />

    <table class="form-table">

            <tr>

                <th scope="row"><label for="fcat1">Featured Categories</label></th>

              <td>

                     <?php          $tFC = wp_dropdown_categories( 'name=theme_options[feat_Cats][]&id=feat_Cats&hierarchical=0&echo=0&class=feat_Cats');          $tFC = str_replace('<select ', '<select multiple="multiple" ', $tFC);        $myFCat = $to['feat_Cats'];        if (is_array($myFCat)){         foreach ($myFCat as $i=>$v){          $tFC = str_replace('value="' . $v . '"', 'value="' . $v . '" selected="selected"', $tFC);         }        }        echo $tFC;        ?>

              </td>

              </tr>

              <tr>

                <td colspan="2"><h3>Additional Setting</h3></td>

            </tr>

            <?php ?>

            <tr>

                <th scope="row"><label for="pubid">Publisher ID</label></th>

                <td><input type="text" class="regular-text" value="<?php echo $to['pubid']; ?>" id="pubid" name="theme_options[pubid]"></td>

            </tr>

              <tr>

            <th scope="row"><label for="facebook">Facebook</label></th>

            <td><input type="text" class="regular-text" value="<?php echo $to['facebook']; ?>" id="facebook" name="theme_options[facebook]"></td>

            </tr>

            <tr>

            <th scope="row"><label for="twitter">Twitter</label></th>

            <td><input type="text" class="regular-text" value="<?php echo $to['twitter']; ?>" id="twitter" name="theme_options[twitter]"></td>

            </tr>

            <tr>

            <th scope="row"><label for="linked">Liked In</label></th>

            <td><input type="text" class="regular-text" value="<?php echo $to['linked']; ?>" id="su" name="theme_options[linked]"></td>

            </tr>

            <tr>

            <th scope="row"><label for="technorati">Technorati</label></th>

            <td><input type="text" class="regular-text" value="<?php echo $to['technorati']; ?>" id="su" name="theme_options[technorati]"></td>

            </tr>



    </table>  

        

        <p class="submit">

            <input type="submit" value="Save Changes" class="button-primary" name="Submit">

        </p>

  </form>

</div>

<?php }     add_action( 'widgets_init', 'twentyten_widgets_init' );  function twentyten_widgets_init() {      register_sidebar( array(    'name' => __( 'Primary Widget Area', 'twentyten' ),    'id' => 'primary-widget-area',    'description' => __( 'The primary widget area', 'twentyten' ),    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',    'after_widget' => '</li>',    'before_title' => '<h3 class="widget-title">',    'after_title' => '</h3>',   ) );}        function the_description($len, $morelink=false, $moretext='More &raquo;'){      global $post;   $content = $post->post_content;         $content = preg_replace("/\[caption.*\[\/caption\]/", '', $content);       $output = substr(strip_tags($content), 0, $len-3) . "...";      $output = apply_filters('wptexturize', $output);      $output = apply_filters('convert_chars', $output);         $output2 = '<p>';   $output2 .= $output;   if ($morelink) $output2 .= '&nbsp;<a class="morelink" href="' . get_permalink($post->ID) . '#more' . $post->ID . '">' . $moretext . '</a>';   $output2 .= '</p>';      echo $output2;  }    function twentyten_excerpt_length( $length ) {   return 20;  }  add_filter( 'excerpt_length', 'twentyten_excerpt_length' );    function twentyten_continue_reading_link() {     }    function twentyten_auto_excerpt_more( $more ) {   return ' ... ' . twentyten_continue_reading_link();  }  add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );  add_action( 'wp_footer', 'wp_Enfooter' );   function wp_Enfooter(){   echo '<div class="copyright">           Copyright &copy; ' . date("Y") . ' <a href="' . home_url("") . '" title="' . get_bloginfo('name') . '">' . get_bloginfo('name') . '</a> - All rights are reserved. Designed by <a href="http://www.templatescraze.com/" title="Website Templates">Website Templates</a> and made free by <a href="' . home_url("") . '" title="Health Tips">Health Tips</a>          </div>';    }    ?>






2 ZeroHold, причем тут расшифровка md5? Для названий переменных рандомные данные берутся.


Спасибо сказали: (2)
3.10.2011, 22:53 Нужно раскодировать functions.php
Можно на файлик сам взглянуть?


Спасибо сказали: (1)
21.11.2010, 17:54 Регистрация в 4000+ каталогах по доступным ценам
Бесплатный проект и активация писем
всё замечательно, спасибо за прогон! за такие деньги это отличное решение!


Спасибо сказали: (1)

RSS Текстовая версия Сейчас: 25.4.2024, 9:04
Дизайн