juliocavalcanti icon

Carregamento de página mobile

juliocavalcanti | PRO | 06/28/25 12:24:14 AM UTC (Edited) | 0 ⭐ | 187 👁️ | Never ⏰ | []
PHP |

1.38 KB

|

None

|

0 👍

/

0 👎

if(is_single() || is_page()) {
      if (have_posts()) {
        while (have_posts()) {
          the_post();
          print '<div class="post" id="post-' . get_the_ID() . '">'. PHP_EOL;
            print '<h2>' . get_the_title() . '</h2>'. PHP_EOL;
            ?>
 
            <script type="text/javascript">
              $(document).ready(function($) {
                $(".commentform-<?php echo get_the_ID(); ?>").each(function(){
                  commentForm = $(this);
                  commentForm.validate();
                  $("div.ui-submit",this).click(function(){
                    commentForm.submit();
                  });
                });
              });
            </script>
           <?
            wpmp_theme_post_single();
        }
      }
 
    } else {
      query_posts("cat=3");
      if (have_posts()) {
        print '<ul data-role="listview" data-filter="true" data-inset="true" data-filter-placeholder="Filtrar...">';
        while (have_posts()) {
          the_post();
          print '<li><a href="'; the_permalink(); print '" rel="bookmark" title="' . __('Link to', 'wpmp') . ' ' . get_the_title() . '">';
          //print wpmp_theme_post_summary();
          print '<p class="metadata">'. get_the_time('d-m-Y') . '</p>';
          print get_the_title();
          print '</a></li>';
        }
        print '</ul>';
      }
    }

Comments