示例#1
0
     $rows = $db->loadObjectList();
     //print_r($rows);
     $num_rows = count($rows);
     //print_r($num_rows);
     $hayarchivo = 0;
     foreach ($rows as $row) {
         if ($hayarchivo == 0) {
             $hayarchivo = 1;
             print_r('<br/>');
             print_r('<div class="blog-separador-archivo"></div>');
             print_r('<ul  class="ul_blog">');
         }
         print_r('<li>');
         //print_r('<a href="index.php/50-blogcesae/?search=ano&query1=' . $row->ano . '" title=title="BLOG CESAE post año ' . fechatranslate(str_replace("&","&amp;",$row->ano)) . '" class="menuenlace">Año ');
         //print_r('<a href="/blog-portada/?search=ano&query1=' . $row->ano . '" title=title="BLOG CESAE post año ' . fechatranslate(str_replace("&","&amp;",$row->ano)) . '" class="menuenlace">Año ');
         print_r('<a href="/blog/' . $row->alias . '" title=title="BLOG CESAE post año ' . fechatranslate(str_replace("&", "&amp;", $row->ano)) . '" class="menuenlace">');
         //print_r(str_replace("&","&amp;",$row->ano));
         print_r(str_replace("&", "&amp;", $row->title));
         print_r('</a><span class="blogcontadorgris">&nbsp;&nbsp;(');
         print_r(str_replace("&", "&amp;", $row->contador));
         print_r(')</li>');
     }
     print_r('</ul>');
     ?>
     </div>
 </div>
 <div class="contenedor-blog-2-caja-2 barra-superior">ÚLTIMOS POSTS</div>
 <div class="contenedor-blog-2-caja-1" style="background-color: #f9f9f9 !important;">
     <div class="contenedor-blog-2-caja-1-inner">
         <ul class="ul_blog">
             <?php 
示例#2
0
                //print_r($row->alias);
                print_r('?search=categoria&query1=' . $row->catid . '"  title="');
                print_r(str_replace("&", " ", $row->cattitle));
                print_r('"  class="menuenlace" >');
                print_r(str_replace("&", "&amp;", $row->cattitle));
                print_r('</a>');
                print_r('</div>');
                $categoriapost = '<a href="/blog/blog-portada/?search=categoria&query1=' . $row->catid . '"  title="' . str_replace("&", " ", $row->cattitle) . '"  class="menuenlace" >' . str_replace("&", "&amp;", $row->cattitle) . '</a>';
                print_r('<div>');
                print_r('<h1 class="contenedor-blog-1-tit">' . str_replace("&", "&amp;", $row->title) . '</h1>');
                print_r('</div>');
                print_r('<div class="contenedor-blog-1-aut">');
                print_r('<div class="contenedor-blog-1-aut-1"><img src="');
                print_r($this->baseurl);
                print_r('/images/ico-cesae-blog.jpg" title="Blog CESAE" alt="Blog CESAE" /></div>');
                print_r('<div class="contenedor-blog-1-aut-2"><div class="contenedor-blog-1-aut-2-1"><a href="/blog/blog-portada/?search=autores&query1=' . $row->created_by . '">' . str_replace("&", "&amp;", $row->name) . '</a></div><div class="contenedor-blog-1-aut-2-2">' . fechatranslate($row->publish_upformat) . '</div></div>');
                print_r('<div class="contenedor-blog-1-aut-3">COMENTARIOS</div>');
                print_r('<div class="contenedor-blog-1-aut-4" style="background-image:url(');
                print_r($this->baseurl);
                //print_r('/images/ico-comentarios-blog.jpg)"><div class="contenedor-blog-1-aut-4-2">' . str_replace("&","&amp;",$row->contadorcomments) .  '</div></div>');
                print_r('/images/ico-comentarios-blog.jpg)"><div class="contenedor-blog-1-aut-4-2"><fb:comments-count href=' . $pagename . '></fb:comments-count></div></div>');
                print_r('</div>');
            }
            ?>
        <div class="contenedor-blog-1-sep">
        </div>

        <script type="text/javascript" >
            $.getScript("http://platform.linkedin.com/in.js?async=true", function(){
                IN.init();
            });