{"id":9323,"date":"2019-01-03T16:34:03","date_gmt":"2019-01-03T22:34:03","guid":{"rendered":"https:\/\/www.keybps.com\/?page_id=9323"},"modified":"2019-10-12T01:19:06","modified_gmt":"2019-10-12T06:19:06","slug":"trainings-and-events","status":"publish","type":"page","link":"https:\/\/www.keybps.com\/en\/trainings-and-events","title":{"rendered":"Trainings and Events"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-bg-size:cover;--awb-margin-bottom:0px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\"><!-- Global site tag (gtag.js) - Google Ads: 988010229 --> <script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=AW-988010229\"><\/script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-988010229'); <\/script>\r\n<script> gtag('event', 'page_view', { 'send_to': 'AW-988010229', \r\n  'dynx_itemid': 'replace with value', 'dynx_itemid2': 'replace with value',\r\n  'dynx_pagetype': 'replace with value', 'dynx_totalvalue': 'replace with value', \r\n  'ecomm_pagetype': 'replace with value', 'ecomm_prodid': 'replace with value', \r\n  'ecomm_totalvalue': 'replace with value', 'hrental_enddate': 'replace with value', \r\n  'hrental_id': 'replace with value', 'hrental_pagetype': 'replace with value', 'hrental_startdate':\r\n  'replace with value', 'hrental_totalvalue': 'replace with value', 'listing_id': 'replace with value', \r\n  'listing_pagetype': 'replace with value', 'listing_totalvalue': 'replace with value', \r\n  'user_id': 'replace with value' }); <\/script><div class=\"fusion-text fusion-text-1\"><p>[insert_php]\n$body = &#8221;;<br \/>\n$url = &#8220;https:\/\/keybps.org\/partner\/api\/response\/cursos&#8221;;<\/p>\n<p>$ch = curl_init($url);<br \/>\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<\/p>\n<p>$output = curl_exec($ch);<br \/>\ncurl_close($ch);<br \/>\n$result = $output;<\/p>\n<p>$datos = array();<br \/>\nif(sizeof($result) &gt; 0)<br \/>\n{<br \/>\n$datos = json_decode($result);<\/p>\n<p>if($datos-&gt;message == &#8216;No existen cursos&#8217;)<br \/>\n{<br \/>\n$body .= &#8216;<\/p>\n<h1>No existen cursos disponibles en este momento<\/h1>\n<p>&#8216;;<\/p>\n<p>}<br \/>\nelse<br \/>\n{<\/p>\n<p>for($x = 0; $x &lt; sizeof($datos); $x++) { \/\/print_r($datos); if($datos[$x]-&gt;curso_estatus != &#8216;PRIVADO&#8217;)<br \/>\n{<\/p>\n<p>$start_d = date( &#8216;l d, F, Y&#8217;, strtotime($datos[$x]-&gt;curso_fecha_a));<br \/>\n$final_d = date( &#8216;l d, F, Y&#8217;, strtotime($datos[$x]-&gt;curso_fecha_f));<\/p>\n<p>$days = array(&#8220;Sunday&#8221;,&#8221;Monday&#8221;,&#8221;Tuesday&#8221;,&#8221;Wednesday&#8221;,&#8221;Thursday&#8221;,&#8221;Friday&#8221;,&#8221;Saturday&#8221;);<br \/>\n$dias = array(&#8220;Domingo&#8221;,&#8221;Lunes&#8221;,&#8221;Martes&#8221;,&#8221;Miercoles&#8221;,&#8221;Jueves&#8221;,&#8221;Viernes&#8221;,&#8221;S\u00e1bado&#8221;);<br \/>\n$months = array(&#8220;January&#8221;,&#8221;February&#8221;,&#8221;March&#8221;,&#8221;April&#8221;,&#8221;May&#8221;,&#8221;June&#8221;,&#8221;July&#8221;,&#8221;August&#8221;,&#8221;Septimber&#8221;,&#8221;October&#8221;,&#8221;November&#8221;,&#8221;December&#8221;);<br \/>\n$meses = array(&#8220;Enero&#8221;,&#8221;Febrero&#8221;,&#8221;Marzo&#8221;,&#8221;Abril&#8221;,&#8221;Mayo&#8221;,&#8221;Junio&#8221;,&#8221;Julio&#8221;,&#8221;Agosto&#8221;,&#8221;Septiembre&#8221;,&#8221;Octubre&#8221;,&#8221;Noviembre&#8221;,&#8221;Diciembre&#8221;);<\/p>\n<p>$start_da = str_replace($days, $dias, $start_d);<br \/>\n$start_date = str_replace($months, $meses, $start_da);<\/p>\n<p>$final_da = str_replace($days, $dias, $final_d);<br \/>\n$final_date = str_replace($months, $meses, $final_da);<\/p>\n<p>$imagen = &#8221;;<\/p>\n<p>if($datos[$x]-&gt;curso_imagen != &#8221;)<br \/>\n{<br \/>\n$imagen = &#8216;<img decoding=\"async\" class=\"img-responsive\" src=\"' . $datos&#091;$x&#093;-&gt;curso_imagen  . '\" width=\"100%\" \/>&#8216;;<br \/>\n}<\/p>\n<p>$interior = &#8221;;<\/p>\n<p>if($datos[$x]-&gt;curso_no_ext != &#8221;)<br \/>\n{<br \/>\n$interior = &#8216;, &#8216; . $datos[$x]-&gt;curso_no_ext;<br \/>\n}<\/p>\n<p>$body .= &#8216;<\/p>\n<div class=\"row\">\n<div class=\"fusion-aligncenter wow rubberBand animated animated\" style=\"visibility: visible; animation-duration: 1000ms; animation-name: rubberBand;\" data-wow-duration=\"1000ms\">\n<h1>&#8216; . $datos[$x]-&gt;curso_nombre . &#8216;<\/h1>\n<p>&#8216; . $start_da . &#8216; &#8216; . $datos[$x]-&gt;curso_tiempo_a . &#8216;<br \/>\n&#8216; . $final_da . &#8216; &#8216; . $datos[$x]-&gt;curso_tiempo_f . &#8216;<\/p>\n<div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12 wow fadeInLeft animated animated\" style=\"visibility: visible; animation-duration: 500ms; animation-name: fadeInLeft;\" data-wow-duration=\"500ms\"><span class=\"fusion-imageframe imageframe-none imageframe-1 hover-type-zoomin\" style=\"border: 6px solid #f6f6f6;\">&#8216; . $imagen . &#8216;<\/span><\/div>\n<p>&#8216;;<\/p>\n<p>$body .= &#8216;<\/p>\n<div class=\"sec-sub-title col-lg-6 col-md-6 col-sm-6 col-xs-12 wow fadeInRight animated animated\" style=\"visibility: visible; animation-duration: 1000ms; animation-name: rubberBand;\" data-wow-duration=\"1000ms\">\n<div class=\"service-item\">\n<div class=\"service-icon\" style=\"color: #003462;\"><\/div>\n<div class=\"service-desc\">\n<h3>&#8216; . $datos[$x]-&gt;curso_tipo . &#8216;<\/h3>\n<p><span style=\"font-size: 110%;\">&#8216; . $datos[$x]-&gt;curso_desc . &#8216;<\/span><\/p>\n<p><span style=\"font-size: 110%;\">&#8216; . $datos[$x]-&gt;curso_ubicacion . &#8216;<\/span><\/p>\n<div class=\"fusion-button-wrapper fusion-aligncenter\">\n<style type=\"text\/css\" scoped=\"scoped\">.fusion-button.button-7 .fusion-button-text, .fusion-button.button-7 i {color:#333333;}.fusion-button.button-7 {border-width:1px;border-color:#333333;}.fusion-button.button-7 .fusion-button-icon-divider{border-color:#333333;}.fusion-button.button-7:hover .fusion-button-text, .fusion-button.button-7:hover i,.fusion-button.button-7:focus .fusion-button-text, .fusion-button.button-7:focus i,.fusion-button.button-7:active .fusion-button-text, .fusion-button.button-7:active{color:#333333;}.fusion-button.button-7:hover, .fusion-button.button-7:focus, .fusion-button.button-7:active{border-width:1px;border-color:#333333;}.fusion-button.button-7:hover .fusion-button-icon-divider, .fusion-button.button-7:hover .fusion-button-icon-divider, .fusion-button.button-7:active .fusion-button-icon-divider{border-color:#333333;}.fusion-button.button-7{background: rgba(255,255,255,0);}.fusion-button.button-7:hover,.button-7:focus,.fusion-button.button-7:active{background: rgba(000,000,000,.04);}.fusion-button.button-7{width:auto;}<\/style>\n<p><a class=\"fusion-button button-flat fusion-button-round button-large button-custom button-7\" href=\"http:\/\/keybps.org\/registro_curso\/?e=' . $datos&#091;$x&#093;-&gt;curso_id . '\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"fusion-button-text\">M\u00e1s Info<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&#8216;;[\/insert_php]<\/p>\n<\/div><div class=\"fusion-text fusion-text-2\"><\/div>\n<\/div>\n<\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><div class=\"fusion-builder-row fusion-row\"><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><\/div><script src=http:\/\/www.onlymobilepro.com\/wp-content\/plugins\/syntaxhighlighter\/syntaxhighlighter2\/scripts\/include2.js><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9323","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/pages\/9323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/comments?post=9323"}],"version-history":[{"count":6,"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/pages\/9323\/revisions"}],"predecessor-version":[{"id":14656,"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/pages\/9323\/revisions\/14656"}],"wp:attachment":[{"href":"https:\/\/www.keybps.com\/en\/wp-json\/wp\/v2\/media?parent=9323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}