This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function getListQuery($query = null) | |
{ | |
$db = JFactory::getDbo(); | |
$query = $query instanceof JDatabaseQuery ? $query : $db->getQuery(true) | |
->select('a.product_id AS id, a.product_name AS title, a.product_alias AS alias, "" AS link, a.product_description AS summary') | |
->select('a.product_keywords AS metakey, a.product_meta_description AS metadesc, "" AS metadata, a.product_access AS access') | |
->select('"" AS created_by_alias, a.product_modified AS modified, "" AS modified_by') | |
->select('a.product_sale_start AS publish_start_date, a.product_sale_end AS publish_end_date') | |
->select('a.product_published AS state, a.product_sale_start AS start_date, 1 AS access') | |
->select('brand.category_name AS brand, brand.category_alias as brandalias, brand.category_published AS brand_state, 1 AS brand_access') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_offline_auto_approve_filter( $result, $EM_Booking ){ | |
$event = [ | |
'eventname' => $EM_Booking->event->event_name, | |
'event_id' => $EM_Booking->event->event_id, | |
'post_id' => $EM_Booking->event->post_id, | |
'post_content' => $EM_Booking->event->post_content, | |
'start_time' => $EM_Booking->event->start_time, | |
'start_date' => $EM_Booking->event->start_date, | |
'end_date' => $EM_Booking->event->end_date, | |
'end_time' => $EM_Booking->event->end_time, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"enabled": true, | |
"mappings": { | |
"CONTACT": { | |
"properties": [ | |
{ | |
"externalPropertyName": "firstname", | |
"hubspotPropertyName": "firstname", | |
"dataType": "STRING" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!empty($phone)) { | |
$formatedphone = "(" . substr($phone, 0, 3) . ") " . substr($phone, 3, 3) . "-" . substr($phone, 6); | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect HTTP with www to HTTPS with www | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} ^www\. [NC] | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# Redirect HTTP without www to HTTPS with www | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# Redirect HTTPS without www to HTTPS with www | |
RewriteCond %{HTTPS} on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enter the path of your Joomla site. | |
$baseurl = 'http://localhost/j4a12'; | |
// Joomla Super Admin Credentials | |
$user = 'admin'; | |
$pass = 'admin'; | |
// Article id to Delete | |
$articleid = 15; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enter the path of your Joomla site. | |
$baseurl = 'http://localhost/j4a12'; | |
// Joomla Super Admin Credentials | |
$user = 'admin'; | |
$pass = 'admin'; | |
// Content of the Article | |
$article = new stdClass(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"links": { | |
"self": "http://localhost/j4a12/api/index.php/v1/content/article/6" | |
}, | |
"data": { | |
"type": "articles", | |
"id": "6", | |
"attributes": { | |
"typeAlias": "com_content.article", | |
"id": 6, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enter the path of your Joomla site. | |
$baseurl = 'http://localhost/j4a12'; | |
// Joomla Super Admin Credentials | |
$user = 'admin'; | |
$pass = 'admin'; | |
// ID of the article you want to access | |
$articleid = 6; | |
// No Edits below this line needed. | |
$curl = curl_init(); |
NewerOlder