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
// no direct access | |
defined('_JEXEC') or die; | |
?> | |
<ul class="latestnews<?php echo $moduleclass_sfx; ?>"> | |
<?php foreach ($list as $item) : ?> | |
<li> | |
<a href="<?php echo $item->link; ?>"> | |
<?php echo $item->title; ?></a> | |
<?php //json decodes the image object and gets the intro image source. ?> |
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
$view = JRequest::getVar('view'); | |
if ($view == "category") { | |
return false; | |
} | |
if ($view == "product") { | |
return true; | |
} |
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 | |
// In Mobile template index.php | |
// get the form value and change the cookie based on that | |
$fullsite = JRequest::getVar('fullsite'); | |
// if we want the full view forced set the cookie | |
if($fullsite == 1) { | |
setcookie("fullsite", $fullsite, time() + 3600); | |
} |
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
double calcRegBill(int a) | |
{ | |
if (a <= base_R_min) | |
amtDue = R_Srv_Fee; | |
else | |
amtDue = R_Srv_Fee + ((a - base_R_min) * over_RbaseFee ); | |
return amtDue; | |
} |
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
/* So here's the skinny on void & returns: | |
All functions, like double or int, should return _something_. That's why you use the return line. | |
The only time a function DOESN"T return a value, is when you use void. Void means the function does something, but doesn't return a value. | |
So for example you could have two functions: */ | |
// simple main function. just uses two other functions to do everything |
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
//Programming Assignment #8 | |
// CellBillFun | |
//Author: Jess Darling | |
//Date: July 8, 2012 | |
#include <stdlib.h> | |
#include <iostream> | |
#include <iomanip> | |
#include <string> |
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 Joomla.Plugin | |
* @subpackage Fabrik.element.checkbox | |
* @copyright Copyright (C) 2005 Fabrik. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// Check to ensure this file is included in Joomla! | |
defined('_JEXEC') or die(); |
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 | |
/* I used to be able to get the extra fields of | |
** a k2 item by doing this: | |
*/ | |
$id = $item->getId(); | |
$db = JFactory::getDBO(); | |
$query = "SELECT extra_fields FROM #__k2_items WHERE id={$id}"; |
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 | |
/** | |
* An example JApplicationWeb application built on the Joomla Platform. | |
* | |
* To run this example, copy or soft-link this folder to your web server tree. | |
* | |
* @package Joomla.Examples | |
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE | |
*/ |
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 Joomla25.Bizform | |
* @subpackage Components | |
* @author Chad Windnagle | |
* @link http://www.chadwindnagle.com | |
* @license License GNU General Public License version 2 or later | |
*/ | |
// No direct access to this file |
OlderNewer