<a href="https://console.cloud.google.com/apis/credentials">Get Your Api Credentials Here</a> <a href="https://calendar.google.com/calendar">Get your Calender ID</a> <?php include_once("wp-load.php"); function get_calender_events() { $params = array(); /*Get current date*/ $current_date = date('Y-m-d H:i:s'); /*Convert it to google calendar's rfc_format */ $rfc_format = date("c", strtotime($current_date)); $params[] = 'orderBy=startTime'; $params[] ='maxResults=100'; $params[] = 'timeMin='.urlencode($rfc_format); $url_param = ''; foreach($params as $param) { $url_param.= '&'.$param; } $calender_id = "calender_id"; $client_key = "client_key"; $url = "https://www.googleapis.com/calendar/v3/calendars/".$calender_id."/events?key=".$client_key."&singleEvents=true".$url_param; $list_events = wp_remote_post($url, ...
***************
for contact form ADD htlml email template components/com_contact/controllers/contact.php
for html format
$mail = JFactory::getMailer();
$mail->addRecipient($contact->email_to);
$mail->addReplyTo(array($email, $name));
$mail->setSender(array($mailfrom, $fromname));
$mail->setSubject($sitename.': '.$subject);
$mail->isHTML(true);
$mail->Encoding = 'base64';
$mail->setBody($body);
$sent = $mail->Send();
******************************
First, Insert your Template Position in the /squarez/templates/baseline/TemplateDetails.xml like this:
Code:
<positions>
<position>left</position>
<position>right</position>
<position>top</position>
<position>Samrat</position>
</positions>
Then I would Insert a new <div> here in the Index.php for the Panorama image viewer
Code:
<div id="ja-wrapper">
<!-- BEGIN: MAIN NAVIGATION -->
<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix">
<h1 class="logo"><a href="/index.php">Direccion Central de Inteligencia Delictiva - DINTEL</a></h1>
<div id="ja-usertools">
<a href="http://www.dintel.gov.do/webmail">WEBMAIL</a>
</div>
<div id="Image-Viewer>
<jdoc:include type="modules" name="Samrat" />
</div>
<div class="clr">
</div>
</div>
*********************************
for contact form ADD htlml email template components/com_contact/controllers/contact.php
for html format
$mail = JFactory::getMailer();
$mail->addRecipient($contact->email_to);
$mail->addReplyTo(array($email, $name));
$mail->setSender(array($mailfrom, $fromname));
$mail->setSubject($sitename.': '.$subject);
$mail->isHTML(true);
$mail->Encoding = 'base64';
$mail->setBody($body);
$sent = $mail->Send();
******************************
First, Insert your Template Position in the /squarez/templates/baseline/TemplateDetails.xml like this:
Code:
<positions>
<position>left</position>
<position>right</position>
<position>top</position>
<position>Samrat</position>
</positions>
Then I would Insert a new <div> here in the Index.php for the Panorama image viewer
Code:
<div id="ja-wrapper">
<!-- BEGIN: MAIN NAVIGATION -->
<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix">
<h1 class="logo"><a href="/index.php">Direccion Central de Inteligencia Delictiva - DINTEL</a></h1>
<div id="ja-usertools">
<a href="http://www.dintel.gov.do/webmail">WEBMAIL</a>
</div>
<div id="Image-Viewer>
<jdoc:include type="modules" name="Samrat" />
</div>
<div class="clr">
</div>
</div>
*********************************
Comments
Post a Comment