diff --git a/wp-content/themes/score/comments.bak.php b/wp-content/themes/score/comments.bak.php deleted file mode 100644 index d0312cd..0000000 --- a/wp-content/themes/score/comments.bak.php +++ /dev/null @@ -1,205 +0,0 @@ - - - - - $post->ID, 'user_id' => $current_user->ID); -$usercomment = get_comments($args); - -function comment_template($comment, $args, $depth) { -$GLOBALS['comment'] = $comment; -global $post, $gp_settings; - -require(ghostpool_inc . 'options.php'); - -?> - -
  • id="li-comment-"> - -
    - -
    - -
    - -
    - - - - - - - -
    - -
    - , -
    - - - -
    - - -
    - -
    - - -
    - -
    - - comment_approved == '0') { ?> -
    - -
    - -
    - - - - - - - -
    - - - - -comment_status OR have_comments()) { ?> - -
    - -

    - - - - - -
      - -
    - - 1) { ?> -
    - - - comment_status) { // If comments are open, but there are no comments yet ?> - - - - - - - - - - - - comment_status) { ?> - - -
    = $comment_number) { ?> class="hidden"> - - -
    - -

    - - - -

    - - - -
    - - -
    -
    -
    - -
    -
    - - - - -

    />

    - -

    />

    - -

    - - - -

    - - - - - - ID); ?> - -
    - - - -
    - - -
    - - - - - = $comment_number) { ?> - -
    - - - - -comment_status OR have_comments()) { ?> -
    - - \ No newline at end of file diff --git a/wp-content/themes/score/comments.php b/wp-content/themes/score/comments.php index 9d57fa3..480d458 100644 --- a/wp-content/themes/score/comments.php +++ b/wp-content/themes/score/comments.php @@ -64,6 +64,12 @@ require(ghostpool_inc . 'options.php'); + +
    + +
    + +
    @@ -75,70 +81,126 @@ require(ghostpool_inc . 'options.php');
    + + + + + + + + + +comment_status OR have_comments()) { ?> + +
    + +

    + -
    - comment_status OR have_comments()) : ?> -

    - -
      - -
    + + +
      + +
    + + 1) { ?> +
    + - + comment_status) { // If comments are open, but there are no comments yet ?> + + + + + + + + +
      +
    + + + comment_status) { ?> + + +
    = $comment_number) { ?> class="hidden"> + + +
    + +

    - - + + +

    + + + +
    - - -

    + +
    +
    +
    + +
    +
    + + + + +

    />

    + +

    />

    + +

    + + + +

    + + + + + + ID); ?> + +
    + + + +
    + + +
    + + + - - -
    - - - -
    -

    -
    - -
    - -

    - -
    - - -

    %2$s.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?>

    - - - -

    /> -

    - -

    /> -

    - -

    -

    - - - - - -

    - -

    - -

    - ID); ?> -
    -
    - -
    - - + = $comment_number) { ?> + +
    + + + + +comment_status OR have_comments()) { ?> +
    + + \ No newline at end of file diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php index 04016d2..c761ee6 100644 --- a/wp-content/themes/score/functions.php +++ b/wp-content/themes/score/functions.php @@ -212,7 +212,7 @@ function gp_enqueue_scripts() { //wp_enqueue_script('jqueryui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js', array('jquery')); - if (is_singular()) + if (is_singular() OR is_home() OR is_front_page()) wp_enqueue_script('comment-reply'); wp_enqueue_script('swfobject', 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'); diff --git a/wp-content/themes/score/header.php b/wp-content/themes/score/header.php index 5bb67a0..64bae5f 100644 --- a/wp-content/themes/score/header.php +++ b/wp-content/themes/score/header.php @@ -11,9 +11,13 @@ - + + + + + diff --git a/wp-content/themes/score/home-comments.php b/wp-content/themes/score/home-comments.php index 0281397..b1696bd 100644 --- a/wp-content/themes/score/home-comments.php +++ b/wp-content/themes/score/home-comments.php @@ -14,7 +14,7 @@ if (post_password_required()) { + +
    +

    +
    + +
    + +

    + +
    + -
    -

    -
    - +

    %2$s.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?>

    + + + +

    /> +

    + +

    /> +

    + +

    +

    + + + +

    + +

    + +

    + ID); ?> + +
    +
    - -

    - -
    - - -

    %2$s.'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?>

    - - - -

    /> -

    - -

    /> -

    - -

    -

    - - - -

    - -

    - -

    - ID); ?> -
    -
    - -
    - + diff --git a/wp-content/themes/score/lib/scripts/comment-home.php b/wp-content/themes/score/lib/scripts/comment-home.php new file mode 100644 index 0000000..95d7130 --- /dev/null +++ b/wp-content/themes/score/lib/scripts/comment-home.php @@ -0,0 +1,199 @@ + diff --git a/wp-content/themes/score/lib/scripts/custom.php b/wp-content/themes/score/lib/scripts/custom.php index 2bbefa5..1f1155c 100644 --- a/wp-content/themes/score/lib/scripts/custom.php +++ b/wp-content/themes/score/lib/scripts/custom.php @@ -103,6 +103,7 @@ function updateInfo() { var from_to = jQuery('#postdata-from-to-' + id).html(); var artist = jQuery('#postdata-artist-' + id).html(); var song = jQuery('#postdata-song-' + id).html(); + var link = jQuery('#postdata-link-' + id).html(); var comments = jQuery('#postdata-comments-' + id).html(); var nUrl = oUrl + 'id/' + the_id; @@ -135,7 +136,21 @@ function updateInfo() { jQuery('#dedicationComments_container').slideUp( 'fast', - function() { jQuery('#dedicationComments_container').html(comments); } + //function() { jQuery('#dedicationComments_container').html(comments); } + function() { + jQuery('#dedicationComments_container').load( + link + ' #comments', '', function(data) { + init_comments(); + jQuery('#dedicationComments_container').on('submit', + '#commentform', + function() { + prepare_new_comment_home(); + return false; + } + ) + } + ); + } ); jQuery('#dedicationComments_container').slideDown(); } @@ -156,6 +171,7 @@ function shrinkTitle() textH1.style.fontSize -= 10+"px"; } + jQuery(window).ready(function() { if (jQuery('#slider-wrapper')) { diff --git a/wp-content/themes/score/single-video.php b/wp-content/themes/score/single-video.php index 9e2d196..5596769 100644 --- a/wp-content/themes/score/single-video.php +++ b/wp-content/themes/score/single-video.php @@ -1,24 +1,28 @@ - +

    +$is_ajax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && (strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')); +if ($is_ajax) : + comments_template(''); +endif; - +if (!$is_ajax) : + require('video-slider.php'); +?> - -
    - - - +
    &pagelink=%&after=
    '); ?> -
    + +
    - + +
    - \ No newline at end of file + \ No newline at end of file diff --git a/wp-content/themes/score/video-slider.php b/wp-content/themes/score/video-slider.php index e6bd953..6411e5d 100644 --- a/wp-content/themes/score/video-slider.php +++ b/wp-content/themes/score/video-slider.php @@ -130,8 +130,9 @@ if (have_posts()) { + - + FROM: