$deviceCSSClasses) { $mediaQuery = (isset($mq[$device]) ? $mq[$device] : NULL); if($mediaQuery !== NULL) { $style .= "@media " . $mediaQuery . ' {'; } $style .= ".bpc{margin-top:" . $blogPostsMargin[$device] . "px}"; $cssClassesAdded = array(); $blogPostIndex = ($page - 1) * $blogPostsPerPage; $count = 0; while($blogPostIndex < $blogPostsCount && ++$count <= $blogPostsPerPage) { $blogPost = $blogPosts[$blogPostIndex++]; $cssClasses = $blogPost['cssClasses']; foreach($cssClasses as $cssClass) { if(!in_array($cssClass, $cssClassesAdded) && isset($deviceCSSClasses[$cssClass])) { $style .= $deviceCSSClasses[$cssClass]; } $cssClassesAdded[] = $cssClass; } } if($mediaQuery !== NULL) { $style .= '}'; } } echo ""; ?>
1) { echo ' class="bpc"'; } echo '>'; echo $blogPost['html']; echo '
'; $deferredLoad .= $blogPost['deferredLoad']; } echo ''; ?>
'; if($page > 1) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . ($page - 1); $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); $control = str_replace('href="#"', 'href="' . $url . '"', $control); } echo $control; ?> {page_num}
'; $buttonPage = $start_page + 1 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}
'; $buttonPage = $start_page + 2 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 3 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 4 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 5 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 6 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 7 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 8 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 9 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> {page_num}'; $buttonPage = $start_page + 10 - 1; if($buttonPage <= $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . $buttonPage; $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); if($buttonPage == $page) { $control = str_replace('href="#"', 'style="border: 0; background-color: #efefef; color: #fff; border-color: #677a85"', $control); } else { $control = str_replace('href="#"', 'href="' . $url . '"' . $style, $control); } $control = str_replace('{page_num}', $buttonPage, $control); } echo $control; ?> >>'; if($page < $end_page) { $url = strtok($_SERVER['REQUEST_URI'],'?') . '?page=' . ($page + 1); $control = str_replace('style="visibility:hidden"', '', $control); $control = str_replace('style="display:none"', '', $control); $control = str_replace('href="#"', 'href="' . $url . '"', $control); } echo $control; ?>

Ce site web utilise les cookies. Veuillez consulter notre politique de confidentialité pour plus de détails.

OK