| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/modules/unidades/assets/educacion/ |
Upload File : |
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<!-- Basic Page Needs -->
<meta charset="utf-8">
<title>GAMQ-educacion</title>
<meta name="description" content="">
<meta name="author" content="fams">
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Favicons -->
<link rel="shortcut icon" href="/assets/images/brand/logo.png">
<!-- FONTS -->
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:100,300,400,400italic,700'>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Patua+One:100,300,400,400italic,700'>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Open+Sans:100,300,400,400italic,500,600,700,700italic'>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Oswald:100,300,400,400italic,500,600,700,700italic'>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:100,300,400'>
<!-- CSS -->
<link rel='stylesheet' href='/assets/css/global.css'>
<link rel='stylesheet' href='/assets/css/structure.css'>
<link rel='stylesheet' href='css/elearning.css'>
<link rel='stylesheet' href='/assets/css/custom.css'>
<script src="/assets/js/lib/jquery-3.7.1.min.js"></script>
<script>
$(function(){
$("#footer").load("/modules/unidades/footer.php");
});
</script>
</head>
<body class="style-simple button-flat layout-full-width no-shadows header-classic minimalist-header-no sticky-header sticky-tb-color ab-hide subheader-both-center menu-link-color menuo-no-borders menuo-right mm-vertical mobile-tb-center mobile-side-slide mobile-mini-mr-ll be-178">
<div id="Wrapper">
<?php
include("_header.html")
?>
<div id="Content">
<div class="content_wrapper clearfix">
<div class="sections_group">
<div class="extra_content"></div>
<div class="section">
<div class="section_wrapper clearfix">
<div class="column one column_blog">
<div class="blog_wrapper isotope_wrapper">
<div class="posts_group lm_wrapper masonry tiles col-3 isotope">
<?php
include('../../app/prensa.php');
$url = "https://prensa.quillacollo.gob.bo/wp-json/wp/v2/posts?per_page=2&categories=261";
$url1 = "https://prensa.quillacollo.gob.bo/wp-json/wp/v2/posts?per_page=2&categories=1";
$url2 = "https://prensa.quillacollo.gob.bo/wp-json/wp/v2/posts?per_page=2&categories=273";
$catList = getList("categories");
$userList =getListC("users");
// var_Dump($userList);
$noticias[] = decode_api($url);
$noticias[] = decode_api($url1);
$noticias[] = decode_api($url2);
foreach ($noticias as $noticia):
foreach ($noticia as $post):
$content = $post['content']['rendered'];
if (preg_match('/<img[^>]+src="([^"]+)"/', $content, $matches)) {
$firstImageURL = $matches[1];
}
$autor=null;
if(!empty($post['author'])){
foreach ($userList as $user) {
if ($user['id'] == $post['author']) {
$autor = $user;
break;
}
}}
$categories = [];
foreach ($catList as $cat) {
foreach ($post['categories'] as $catPost) {
if ($cat['id'] == $catPost) {
$categories[] = $cat;
}
}
}
?>
<div class="post-item isotope-item">
<div class="post-photo-wrapper scale-with-grid">
<div class="image_wrapper_tiles">
<?php if(!empty($firstImageURL)): ?>
<img src="<?= $firstImageURL ?>" class="scale-with-grid wp-post-image">
<?php endif ?>
</div>
</div>
<div class="post-desc-wrapper">
<div class="post-desc">
<div class="post-head">
<div class="post-meta clearfix">
<div class="author-date">
<span class="vcard author post-author">
<span class="label">Publicado Por</span><i class="icon-user"></i>
<span class="fn"> <a href="#"> <?= $autor['name'] ?></a></span></span>
<span class="date"><span class="label"> </span><i class="icon-clock"></i>
<span class="post-date updated">
<?php echo date("d-m-Y", strtotime($post['date_gmt']));?>
</span></span></span>
</div>
</div>
</div>
<div class="post-title">
<h4 class="entry-title"><a href="post.html"><?= $post['title']['rendered'] ?></a></h4>
</div>
</div>
</div>
</div>
<?php endforeach;
endforeach ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer"></div>
</div>
<!-- Side Menu -->
<div id="Side_slide" class="right dark">
<div class="close-wrapper">
<a href="#" class="close"><i class="icon-cancel-fine"></i></a>
</div>
<div class="menu_wrapper"></div>
</div>
<div id="body_overlay"></div>
<!-- JS -->
<script src="/assets/js/jquery-3.6.0.min.js"></script>
<script src="/assets/js/jquery-migrate-3.4.0.min.js"></script>
<script src="/assets/js/mfn.menu.js"></script>
<script src="/assets/js/jquery.plugins.js"></script>
<script src="/assets/js/jquery.jplayer.min.js"></script>
<script src="/assets/js/animations/animations.js"></script>
<script src="/assets/js/translate3d.js"></script>
<script src="/assets/js/scripts.js"></script>
<script>
jQuery(window).load(function () {
var retina = window.devicePixelRatio> 1 ? true : false;
if (retina) {
var retinaEl = jQuery("#logo img.logo-main");
var retinaLogoW = retinaEl.width();
var retinaLogoH = retinaEl.height();
retinaEl.attr("src","/assets/images/brand/logo1.png").width(retinaLogoW).height(retinaLogoH);
var stickyEl = jQuery("#logo img.logo-sticky");
var stickyLogoW = stickyEl.width();
var stickyLogoH = stickyEl.height();
stickyEl.attr("src","/assets/images/brand/logo1.png").width(stickyLogoW).height(stickyLogoH);
var mobileEl = jQuery("#logo img.logo-mobile");
var mobileLogoW = mobileEl.width();
var mobileLogoH = mobileEl.height();
mobileEl.attr("src","/assets/images/brand/logo1.png").width(mobileLogoW).height(mobileLogoH);
var mobileStickyEl = jQuery("#logo img.logo-mobile-sticky");
var mobileStickyLogoW = mobileStickyEl.width();
var mobileStickyLogoH = mobileStickyEl.height();
mobileStickyEl.attr("src","/assets/images/brand/logo1.png").width(mobileStickyLogoW).height(mobileStickyLogoH);
}
});
</script>
</body>
</html>