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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Rtrim', | |
'pi_version' => '1.0', | |
'pi_author' => 'Justin Kimbrell', | |
'pi_author_url' => 'http://objectivehtml.com/', | |
'pi_description' => 'Removes characters form the end of a string.', | |
'pi_usage' => Rtrim::usage() | |
); |
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
{exp:rtrim string="{exp:low_replace find="^http:\\/\\/(www\\.)?(.*)\\/$" replace="$2" regex="yes"}http://www.domain.com/folder/{/exp:low_replace}" trim="/"} |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Rtrim', | |
'pi_version' => '1.0', | |
'pi_author' => 'Justin Kimbrell', | |
'pi_author_url' => 'http://objectivehtml.com/', | |
'pi_description' => 'Removes characters form the end of a string.', | |
'pi_usage' => Rtrim::usage() | |
); |
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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$plugin_info = array( | |
'pi_name' => 'Rtrim', | |
'pi_version' => '1.0', | |
'pi_author' => 'Justin Kimbrell', | |
'pi_author_url' => 'http://objectivehtml.com/', | |
'pi_description' => 'Removes characters form the end of a string.', | |
'pi_usage' => Rtrim::usage() | |
); |
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
{exp:rtrim string="http://www.wonderifthisworks.com/" trim="/" remove="http://|https://|www."} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) index.php/$1 [L] | |
</IfModule> |
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
{exp:channel:entries channel="map_demo" class="open|closed"} | |
{if group_id == 1 || group_id == 5 && status == "open"} | |
{title} <br> | |
{/if} | |
{/exp:channel:entries} |
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
<!-- | |
Note, the id parameter will become a prefix to the javascript variables. In this example, the map's id is "map", thus all javascript variables have a prefix of "map_". | |
--> | |
{exp:gmap:init id="map" style="width:400px;height:300px"} | |
{exp:channel:entries channel="map"} | |
{exp:gmap:marker id="map" latitude="{map_latitude}" longitude="{map_longitude}"} | |
{title} |
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
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
<div id="content" class="container_12 clearfix stockists"> | |
<h1 class="noborder">Find stockists in your area</h1> | |
<br/> | |
{exp:gmap:search channel="stockists" return="/the/page/with-the-gmap-results-tag" geocode_field="postal_code|country" distance_field="radius_max" require="postal_code"} |
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
$('.tabs').tabs(); | |
$('.tabs a').click(function() { | |
var $t = $(this); | |
var href = $t.attr('href'); | |
if(href == '#map') { | |
google.maps.event.addListener(map_canvas, 'resize', function() { | |
map_canvas.setCenter(map_bounds.getCenter()); | |
}); |
OlderNewer