This file contains 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 | |
/** | |
* @package Astroid Framework | |
* @author JoomDev https://www.joomdev.com | |
* @copyright Copyright (C) 2009 - 2019 JoomDev. | |
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later | |
*/ | |
defined('_JEXEC') or die; | |
?> | |
<div class="blog<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="https://schema.org/Blog"> |
This file contains 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'; | |
// No Edits below this line needed. | |
$curl = curl_init(); |
This file contains 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", | |
"first": "http://localhost/j4a12/api/index.php/v1/content/article?page[offset]=0&page[limit]=20", | |
"next": "http://localhost/j4a12/api/index.php/v1/content/article?page[offset]=20&page[limit]=20", | |
"previous": "http://localhost/j4a12/api/index.php/v1/content/article?page[offset]=0&page[limit]=20", | |
"last": "http://localhost/j4a12/api/index.php/v1/content/article?page[offset]=0&page[limit]=20" | |
}, | |
"data": [ | |
{ |
This file contains 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(); |
This file contains 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 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 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 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); | |
} | |
?> |