Example #1
0
/**
 * Smarty {url} function plugin
 *
 * Type:     function
 * Name:     url
 * @author:  Trimo
 * @mail:     trimo.1992[at]gmail[dot]com
 */
function smarty_function_url($params, &$smarty)
{
    if (!function_exists('current_url')) {
        if (!function_exists('get_instance')) {
            $smarty->trigger_error("url: Cannot load CodeIgniter");
            return;
        }
        $CI =& get_instance();
        $CI->load->helper('url');
    }
    if ($params['type'] == 'string') {
        return uri_string();
    } elseif ($params['type'] == 'anchor' && isset($params['url'])) {
        return anchor($params['url'], $params['text'], $params['attr']);
    } elseif ($params['type'] == 'safemail' && isset($params['url'])) {
        return safe_mailto($params['url'], $params['text'], $params['attr']);
    } elseif ($params['type'] == 'mail' && isset($params['url'])) {
        return mailto($params['url'], $params['text'], $params['attr']);
    } elseif ($params['type'] == 'autolink' && isset($params['url'])) {
        return auto_link($params['url'], isset($params['mode']) ? $params['mode'] : 'both', $params['new'] == 1 ? TRUE : FALSE);
    } elseif ($params['type'] == 'urltitle' && isset($params['title'])) {
        return url_title($params['title'], isset($params['mode']) ? $params['mode'] : 'dash', $params['lower'] == 1 ? TRUE : FALSE);
    } elseif ($params['type'] == 'prep' && isset($params['url'])) {
        return prep_url($params['url']);
    } elseif ($params['type'] == 'current') {
        return current_url();
    } elseif ($params['type'] == 'site') {
        return site_url($params['url']);
    } else {
        return base_url();
    }
}
Example #2
0
 /**
  * Process before outputting for the plugin
  *
  * This creates an array of data to be merged with the
  * tag array so relationship data can be called with
  * a {field.column} syntax
  *
  * @access	public
  * @param	string
  * @param	string
  * @param	array
  * @return	array
  */
 public function pre_output_plugin($input, $params)
 {
     $choices = array();
     get_instance()->load->helper('url');
     $choices['email_address'] = $input;
     $choices['mailto_link'] = mailto($input, $input);
     $choices['safe_mailto_link'] = safe_mailto($input, $input);
     return $choices;
 }
Example #3
0
 public function index()
 {
     $this->load->helper('url');
     $this->base = $this->config->item('base_url');
     echo '</br>Bienvenido a la página principal.</br>';
     echo $this->base;
     echo '</br>Bienvenido a la página principal.</br>';
     echo site_url();
     echo '</br>Bienvenido a la página principal.</br>';
     echo base_url();
     echo '</br>Bienvenido a la página principal.</br>';
     echo anchor('start/hello/fred', 'Say hello to Fred');
     echo '</br>Bienvenido a la página principal.</br>';
     echo safe_mailto('*****@*****.**', 'Click Here to Email Me');
 }
Example #4
0
function get_valtype($val, $type, $mode = 'grid')
{
    $ci =& get_instance();
    switch ($type) {
        case "yes_no":
            return !$val ? img('public/img/icons/decline_inline.gif') : img('public/img/icons/accept_inline.gif');
            break;
        case "email":
            return $val ? safe_mailto($val) : '';
            break;
        case "url":
            return $val ? anchor(prep_url($val), lang('GO_LINK'), 'target="_blank"') : '';
            break;
        default:
            return $val;
    }
}
Example #5
0
function auto_link($str, $type = 'both', $popup = FALSE, $trimwidth = 0)
{
    if ($type != 'email') {
        if (preg_match_all("#(^|\\s|\\()((http(s?)://)|(www\\.))(\\w+[^\\s\\)\\<]+)#i", $str, $matches)) {
            $pop = '';
            if ($popup) {
                if ($popup === true) {
                    $popup = '_blank';
                }
                $pop = sprintf(' target="%s" ', $popup);
            }
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['6'][$i])) {
                    $period = '.';
                    $matches['6'][$i] = substr($matches['6'][$i], 0, -1);
                }
                $url = sprintf('http%s://%s%s', $matches['4'][$i], $matches['5'][$i], $matches['6'][$i]);
                $url_display = $url;
                if ($trimwidth) {
                    $url_display = mb_strimwidth($url, 0, $trimwidth, '...');
                }
                $replaced = sprintf('<a href="%s"%s>%s</a>', $url, $pop, $url_display);
                $str = str_replace($matches['0'][$i], $replaced, $str);
            }
        }
    }
    if ($type != 'url') {
        if (preg_match_all("/([a-zA-Z0-9_\\.\\-\\+]+)@([a-zA-Z0-9\\-]+)\\.([a-zA-Z0-9\\-\\.]*)/i", $str, $matches)) {
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['3'][$i])) {
                    $period = '.';
                    $matches['3'][$i] = substr($matches['3'][$i], 0, -1);
                }
                $str = str_replace($matches['0'][$i], safe_mailto($matches['1'][$i] . '@' . $matches['2'][$i] . '.' . $matches['3'][$i]) . $period, $str);
            }
        }
    }
    return $str;
}
Example #6
0
			<!-- contents  -->
			<div id="contents" class="container">
				
				<?php 
echo $contents;
?>
				
			</div>
			<div style="clearfix"></div>
			<!-- footer  -->
			<footer id="footer" class="well hidden-phone">
				<div class="container">
					<p class="muted">
						Powered by IT Pole Interactif - In case of problems with WebTV, please contact Mohamed Rakza (
						<?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
)
					</p>
					<a href="https://sites.google.com/a/oxylane.com/webtv/" target="_blank"><?php 
echo tagimg('qrcode.png', 'Qr Code', '100', '100');
?>
<br />WebTv Help</a>
				</div>
				<blockquote class="pull-right mt35">
  					<p>Ensemble, créer l'envie et rendre accessibles à chacun le plaisir et les bienfaits du sport.</p>
  					<small>Sportivement votre <cite title="Source Title">Oxylane</cite></small>
				</blockquote>
			</footer>

	<!-- external javascript
Example #7
0
<article id="postit" class="pull-right post-it fade in shadow visible-desktop">
	<button type="button" class="close" data-dismiss="alert">&times;</button>
	<ul class="unstyled">
		<li><h3><?php 
echo $infos[0]->nom;
?>
</h3></li>
<!-- 		<li>Responsable : <?php 
echo safe_mailto($infos[0]->responsablemail, $infos[0]->responsable);
?>
</li> -->
		<li>Responsable : <?php 
echo $infos[0]->responsable;
?>
</li>
		<?php 
if ($nbliens != 0) {
    ?>
<li>Nb de Pages : <?php 
    echo $nbliens;
    ?>
</li><?php 
}
?>
		<?php 
if ($tempssequence[0]->temps != NULL) {
    ?>
<li>Durée Sequence : <?php 
    echo $tempssequence[0]->temps;
    ?>
 sec</li><?php 
?>
</li>
            <li class="mail"><?php 
echo safe_mailto('*****@*****.**', 'Pressestelle');
?>
</li>
            <li class="mail"><?php 
echo safe_mailto('*****@*****.**', 'Jugendfeuerwehr');
?>
</li>
            <li class="mail"><?php 
echo safe_mailto('*****@*****.**', 'Minifeuerwehr');
?>
</li>
            <li class="mail"><?php 
echo safe_mailto('*****@*****.**', 'Verein');
?>
</li>
        </ul>
        <br />
    </div>    
</div>
<hr class="clear" />

<?php 
if (strpos(current_url(), 'captcha') !== false || strpos(current_url(), 'validierung') !== false) {
    ?>
    <script type="text/javascript">
        $("#js_openKontakt").removeClass('active');
        $("#js_closeKontakt").addClass('active');
        $(".kontaktformular").css('display', 'block');
 function auto_link($str, $type = 'both', $popup = FALSE)
 {
     if ($type != 'email') {
         if (preg_match_all("#(^|\\s|\\()((http(s?)://)|(www\\.))(\\w+[^\\s\\)\\<]+)#i", $str, $matches)) {
             $pop = $popup == TRUE ? " target=\"_blank\" " : "";
             for ($i = 0; $i < count($matches['0']); $i++) {
                 $period = '';
                 if (preg_match("|\\.\$|", $matches['6'][$i])) {
                     $period = '.';
                     $matches['6'][$i] = substr($matches['6'][$i], 0, -1);
                 }
                 $str = str_replace($matches['0'][$i], $matches['1'][$i] . '<a href="http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '"' . $pop . '>http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '</a>' . $period, $str);
             }
         }
     }
     if ($type != 'url') {
         if (preg_match_all("/([a-zA-Z0-9_\\.\\-\\+]+)@([a-zA-Z0-9\\-]+)\\.([a-zA-Z0-9\\-\\.]*)/i", $str, $matches)) {
             for ($i = 0; $i < count($matches['0']); $i++) {
                 $period = '';
                 if (preg_match("|\\.\$|", $matches['3'][$i])) {
                     $period = '.';
                     $matches['3'][$i] = substr($matches['3'][$i], 0, -1);
                 }
                 $str = str_replace($matches['0'][$i], safe_mailto($matches['1'][$i] . '@' . $matches['2'][$i] . '.' . $matches['3'][$i]) . $period, $str);
             }
         }
     }
     return $str;
 }
 /**
  * Modifies the auto_link helper (url_helper) by accepting as an optional third
  * argument an array of html attributes for the anchor tags (just like the anchor helper).
  *
  * This array is supplied as the third argument, replacing the
  * optional argument $pop in the original helper.
  *
  * This modified helper attempts to be backward compatible with the use of the
  * original helper by accepting TRUE and FALSE as possible values for the $attributes
  * argument, and giving output identical to the original usage of the helper.
  *
  * use:  auto_link($string, 'url' , array('class' => 'external', 'target'=>'_blank'));
  * use:  auto_link($string, 'email', array('class' => 'email_link' , 'style' => 'color:red;'));
  * use(legacy): auto_link($string, 'url' , TRUE);
  *
  * @link https://github.com/EllisLab/CodeIgniter/wiki/auto-link
  * @author Derek Jones (original author)
  * @author Ivan Tcholakov (adaptation)
  *
  * @see url_helper
  * @link http://codeigniter.com/user_guide/helpers/url_helper.html
  * @param string $str
  * @param string $type
  * @param mixed $attributes
  * @return string
  */
 function auto_link($str, $type = 'both', $attributes = '')
 {
     static $html_helper_loaded = null;
     if ($html_helper_loaded !== true) {
         get_instance()->load->helper('html');
         $html_helper_loaded = true;
     }
     // MAKE THE THIRD ARGUMENT BACKWARD COMPATIBLE
     // here we deal with the original third argument $pop
     // which could be TRUE or FALSE, and was FALSE by default.
     if ($attributes === TRUE) {
         $attributes = ' target="_blank"';
     } elseif ($attributes === FALSE) {
         $attributes = '';
     }
     if ($attributes != '') {
         $attributes = ' ' . get_attributes_string($attributes);
     }
     // Find and replace any URLs.
     // Modified by Ivan Tcholakov, 19-DEC-2013.
     //if ($type !== 'email' && preg_match_all('#(\w*://|www\.)[^\s()<>;]+\w#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER))
     if ($type !== 'email' && preg_match_all('#(\\w*://|www\\.)[^\\s()<>;]+(\\w|/)#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER)) {
         // We process the links in reverse order (last -> first) so that
         // the returned string offsets from preg_match_all() are not
         // moved as we add more HTML.
         foreach (array_reverse($matches) as $match) {
             // $match[0] is the matched string/link
             // $match[1] is either a protocol prefix or 'www.'
             //
             // With PREG_OFFSET_CAPTURE, both of the above is an array,
             // where the actual value is held in [0] and its offset at the [1] index.
             $a = '<a href="' . (strpos($match[1][0], '/') ? '' : 'http://') . $match[0][0] . '"' . $attributes . '>' . $match[0][0] . '</a>';
             $str = substr_replace($str, $a, $match[0][1], strlen($match[0][0]));
         }
     }
     // Find and replace any emails.
     if ($type !== 'url' && preg_match_all('#([\\w\\.\\-\\+]+@[a-z0-9\\-]+\\.[a-z0-9\\-\\.]+[^[:punct:]\\s])#i', $str, $matches, PREG_OFFSET_CAPTURE)) {
         foreach (array_reverse($matches[0]) as $match) {
             if (filter_var($match[0], FILTER_VALIDATE_EMAIL) !== FALSE) {
                 $str = substr_replace($str, safe_mailto($match[0], '', $attributes), $match[1], strlen($match[0]));
             }
         }
     }
     return $str;
 }
Example #11
0
 /**
  * Auto-linker
  *
  * Automatically links URL and Email addresses.
  * Note: There's a bit of extra code here to deal with
  * URLs or emails that end in a period. We'll strip these
  * off and add them after the link.
  *
  * @param	string	the string
  * @param	string	the type: email, url, or both
  * @param	bool	whether to create pop-up links
  * @return	string
  */
 function auto_link($str, $type = 'both', $popup = FALSE)
 {
     if ($type !== 'email' && preg_match_all('#(^|\\s|\\(|\\b)((http(s?)://)|(www\\.))(\\w+[^\\s\\)\\<]+)#i', $str, $matches)) {
         $pop = $popup ? ' target="_blank" ' : '';
         for ($i = 0, $c = count($matches[0]); $i < $c; $i++) {
             if (preg_match('|\\.$|', $matches[6][$i])) {
                 $period = '.';
                 $matches[6][$i] = substr($matches[6][$i], 0, -1);
             } else {
                 $period = '';
             }
             $str = str_replace($matches[0][$i], $matches[1][$i] . '<a href="http' . $matches[4][$i] . '://' . $matches[5][$i] . $matches[6][$i] . '"' . $pop . '>http' . $matches[4][$i] . '://' . $matches[5][$i] . $matches[6][$i] . '</a>' . $period, $str);
         }
     }
     if ($type !== 'url' && preg_match_all('/([a-zA-Z0-9_\\.\\-\\+]+)@([a-zA-Z0-9\\-]+)\\.([a-zA-Z0-9\\-\\.]*)/i', $str, $matches)) {
         for ($i = 0, $c = count($matches); $i < $c; $i++) {
             if (preg_match('|\\.$|', $matches[3][$i])) {
                 $period = '.';
                 $matches[3][$i] = substr($matches[3][$i], 0, -1);
             } else {
                 $period = '';
             }
             $str = str_replace($matches[0][$i], safe_mailto($matches[1][$i] . '@' . $matches[2][$i] . '.' . $matches[3][$i]) . $period, $str);
         }
     }
     return $str;
 }
Example #12
0
<footer class="footer-distributed">
    <div class="footer-center">

        <div>
            <i class="fa fa-map-marker"></i>
            <p><? echo anchor('contact', 'Sheidow Park, South Australia');?></p>
        </div>

        <div>
            <i class="fa fa-phone"></i>
            <p><a href="tel:+61-8-<? echo $phone;?>"><? echo substr_replace($phone, ' ', 4, 0);?></a></p>
        </div>

        <div>
            <i class="fa fa-envelope"></i>
            <p><? echo safe_mailto($email)?></p>
        </div>
        
        <div>
            <a href="https://fb.com/trottparkfencingclub"><i class="fa fa-facebook"></i></a> 
            <p> <a href="https://fb.com/trottparkfencingclub">fb.com/trottparkfencingclub</a></p>

        </div>

    </div>

    <div class="footer-right">
    <div class="map_canvas" style="width:100%; height: 250px"></div>
    <? echo $this->load->view('training',$this->data,true);?>
	<div class="footer-company-about">
    Copyright &copy;<? echo date('Y');?> Trott Park Fencing Club Inc., website built by <a href="http://jonno.9ch.in">Jonathan Mackenzie</a>
Example #13
0
	//]]>
	</script>
</head>

<body class="<?php 
echo fuel_var('body_class', 'Body Class');
?>
">
<div id="container">
	<div id="container_inner">
		<div id="header">
			<div id="topnav">
				<ul>
					<li><a href="http://www.thedaylightstudio.com">About Daylight</a></li>
					<li class="last"><?php 
echo safe_mailto('*****@*****.**', 'Contact');
?>
</li>
				</ul>
			</div>
			<a href="http://www.thedaylightstudio.com" id="daylight_logo"></a>
		
	
			<a href="<?php 
echo site_url();
?>
" id="fuel_logo">FUEL CMS</a>

			<div id="fuel_intro">
				<h1 id="fuel_cms">FUEL CMS</h1>
				<div id="fuel_tagline"></div>
Example #14
0
<h1>Credits</h1>
<p>We've borrowed a ton of ideas from a ton of people. Here are a few that we'd like to acknowledge:</p>

<ul>
	<li><a href="http://ellislabs.com" target="_blank">EllisLabs</a> - for the great work with CodeIgniter/ExpressionEngine</li>
	<li><a href="http://jquery.com" target="_blank">jQuery Team</a> - it's hard to imagine doing our jobs without jQuery</li>
	<li><a href="http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home" target="_blank">wiredesignz</a> - for his excellent <a href="http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home" target="_blank">Modular Extensions - HMVC</a> module library</li>
	<li><a href="http://codeigniter.com/forums/viewthread/57117/" target="_blank">Al James</a> - for his Cache library we use all over</li>
	<li><a href="http://markitup.jaysalvat.com/home/" target="_blank">Jay Salvat</a> - for his great textarea editor MarkItUp!</li>
	<li><a href="http://philsturgeon.co.uk" target="_blank">Phil Sturgeon</a> - for his MY_Parser implementation with Dwoo and Unzip class (and many other great contributions to the CI community including <a href="http://www.pyrocms.com" target="_blank">PyroCMS</a>)</li>
	<li><a href="http://dwoo.org" target="_blank">Jordi Boggiano</a> - for his Dwoo template library. We tried reinventing the wheel but quickly realized Jordi had already done it.</li>
	<li><a href="http://www.famfamfam.com/lab/icons/" target="_blank">famfamfam icon set</a> and <a href="https://github.com/yusukekamiyamane/fugue-icons" target="_blank">Fugue Icons by Yusuke Kamiyamane</a> - for their great icon libraries</li>
</ul>

<p>And last but not least, the growing FUEL CMS community that has taken the time to provide valuable feedback, bug fixes, and suggestions.</p>

<p class="important">If you feel like you should be on this list, <?php 
echo safe_mailto('*****@*****.**', 'please send us an email');
?>
.</p>
Example #15
0
/**
 * Auto-linker
 * 
 * Corrected so it takes URLs without space before (begining of line, for example).
 *
 * Adds the subject attribute in email.
 * Example : mailto:my.name@domain.tld?subject='My subject' will be linked correctly
 *
 * Automatically links URL and Email addresses.
 * Note: There's a bit of extra code here to deal with
 * URLs or emails that end in a period.  We'll strip these
 * off and add them after the link.
 *
 * @access	public
 * @param	string	the string
 * @param	string	the type: email, url, or both
 * @param	bool 	whether to create pop-up links
 * @return	string
 *
 */
function auto_link($str, $type = 'both', $popup = FALSE)
{
    $m = array();
    if (preg_match_all('(<a\\ .+?>.+?</a>)', $str, $m)) {
        foreach ($m[0] as $k => $val) {
            $str = str_replace($val, '[[[a' . $k . ']]]', $str);
        }
    }
    if ($type != 'email') {
        // (|\b) : Includes href="..." in auto_link, which isn't good
        // if (preg_match_all("#(^|\s|\(|\b)((http(s?)://)|(www\.))(\w+[^\s\)\<]+)#i", $str, $matches))
        if (preg_match_all("#(^|\\>|\\s|\\()((http(s?)://)|(www\\.))(\\w+[^\\s\\)\\<]+)#i", $str, $matches)) {
            $pop = $popup == TRUE ? " target=\"_blank\" " : "";
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['6'][$i])) {
                    $period = '.';
                    $matches['6'][$i] = substr($matches['6'][$i], 0, -1);
                }
                $str = str_replace($matches['0'][$i], $matches['1'][$i] . '<a href="http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '"' . $pop . '>http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '</a>' . $period, $str);
            }
        }
    }
    if ($type != 'url') {
        if (preg_match_all("#([a-zA-Z0-9_\\.\\-\\+]+)@([a-zA-Z0-9\\-]+)\\.([a-zA-Z0-9\\-\\.]*)((\\?subject\\=)(\\')(.*)(\\'))*#i", $str, $matches)) {
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['3'][$i])) {
                    $period = '.';
                    $matches['3'][$i] = substr($matches['3'][$i], 0, -1);
                }
                $comp_email = $matches['1'][$i] . '@' . $matches['2'][$i] . '.' . $matches['3'][$i] . $matches['5'][$i] . $matches['7'][$i];
                $email = $matches['1'][$i] . '@' . $matches['2'][$i] . '.' . $matches['3'][$i];
                $str = str_replace($matches['0'][$i], safe_mailto($comp_email, $email) . $period, $str);
            }
        }
    }
    if (!empty($m)) {
        foreach ($m[0] as $k => $val) {
            $str = str_replace('[[[a' . $k . ']]]', $val, $str);
        }
    }
    return $str;
}
" /></a></div>
                        </figure>
                    </li>
                </ul>
            </div>


        </div>
        <div id="SidebarContent">   
           	<div class="address">
				<h1 class="first">Kontaktadresse</h1>
				<p>Rettungshundeeinheit<br/>der Freiwilligen Feuerwehr<br/>Bad Soden am Taunus</p>
				<p>Marco Bölling<br/>Patrick Ritter</p>
				<ul>
					<li class="mail"><?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
</li>
				</ul>
			</div>    
			<div class="textTeaser">    
				<h1>Interesse bekommen?</h1>
				<p>Wir suchen engagierte Personen, die sich und ihren Hund zum Rettungshundeteam ausbilden lassen möchten. </p>
                <p>
                    Wenn Sie neben Motivation, regelmäßig Zeit für die Ausbildung ihres Hundes und Interesse am Mitwirken in der Feuerwehr haben, 
                    schauen Sie bei unserem unverbindlichen Schnuppertraining vorbei.
                </p>
				<p>Insbesondere aktive Feuerwehrangehörige anderer Feuerwehren können mit und ohne Hund bei der Einheit mitwirken.</h2>
			</div>
			<div class="textTeaser">    
				<h1>Trainingsgelände</h1>
					<div class="contact-info-content">
						<div class="title">Contact Number:</div>
						<div class="description">+977-980-297-2075</div>
					</div>
				</li>
				<li>
					<i class="fa fa-envelope"></i>
					<div class="contact-info-content">
						<div class="title">Email:</div>
						<div class="description">
							<?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
 <br/>
							<?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
						</div>
					</div>
				</li>
				<li>
					<i class="fa fa-globe"></i>
					<div class="contact-info-content">
						<div class="title">URL:</div>
						<div class="description"><a href="http://www.ingnepal.org" target="_blank">www.ingnepal.org</a></div>
					</div>
				</li>
			</ul>
		</div>
		<div class="col-sm-6">
			<!-- Contact Form -->
>Über uns</a></li>
<? if(current_url() == base_url('menschen/minifeuerwehr/aktivitaeten')) : $class = 'class="active"'; else : $class = ''; endif; ?>    
                    <li><a href="<?php 
echo base_url('menschen/minifeuerwehr/aktivitaeten');
?>
"<?php 
echo $class;
?>
>Aktivitäten</a></li>
                </ul>
                </ul>
			</div>
           	<div class="address">
				<h1 class="first">Kontaktadresse</h1>
				<p>Minifeuerwehr<br/>Bad Soden am Taunus</p>
				<p>Hunsrückstr. 5-7<br/>65812 Bad Soden am Taunus</p>
				<ul>
					<li class="mail"><?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
</li>
				</ul>
			</div>    
			<div class="textTeaser">    
				<h1>Interesse bekommen?</h1>
				<p>Dann bist Du herzlich eingeladen, einfach bei uns vorbei zu schauen.</p>
                <p>Wir treffen uns alle 14 Tage dienstags ab 17:00 Uhr in der Feuerwehr Bad Soden.</p>
			</div>
        </div>
    <hr class="clear" />   
Example #19
0
<section class="container">
    <div class="login">
        <h1>Ваш профайл</h1>
        <p>Логин: <?php 
echo $login;
?>
</p>
        <p>Email: <?php 
echo safe_mailto($email);
?>
</p>
        <p>Имя: <?php 
echo $name;
?>
</p>
        <p>Дата последней авторизации: <?php 
echo $lastAuth;
?>
</p>
        <p><img width="200" src="/uploads/users/<?php 
echo $img;
?>
" /></p>
    </div>
</section>
Example #20
0
?>
        <?php 
if (trim($user_about['user_blog']) != '') {
    ?>
        <li><strong>Blog:</strong><?php 
    print auto_link($user_about['user_blog']);
    ?>
</li>
        <?php 
}
?>
        <?php 
if (trim($user_about['email']) != '') {
    ?>
        <li><strong>Email:</strong><?php 
    echo safe_mailto($user_about['email'], $user_about['email']);
    ?>
</li>
        <?php 
}
?>
        
        
        
        
        
        <?php 
$more = CI::model('core')->getCustomFields('table_users', $user_about['id']);
?>
         <?php 
if (!empty($more)) {
        <div id="SidebarContent">
           	<div class="menueBox">
                <h1 class="first">Weitere Informationen</h1>
                <ul>           
                    <li><a href="{base_url('menschen/jugend')}">Über uns</a></li> 
                    <li><a href="{base_url('menschen/jugend/aktivitaeten')}">Aktivitäten</a></li>  
                    <li><a href="{base_url('menschen/jugend/ausbildung')}" class="active">Ausbildung</a></li>
                </ul>
			</div>
           	<div class="address">
				<h1 class="first">Kontaktadresse</h1>
				<p>Jugendfeuerwehr<br/>Bad Soden am Taunus</p>
				<p>Hunsrückstr. 5-7<br/>65812 Bad Soden am Taunus</p>
				<ul>
					<li class="mail"><?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
</li>
				</ul>
			</div>    
			<div class="textTeaser">    
				<h1>Interesse bekommen?</h1>
				<p>Dann bist Du herzlich eingeladen, einfach bei uns vorbei zu schauen.</p>
                <p>Wir treffen uns immer montags ab 17:30 Uhr in der Feuerwehr Bad Soden.</p>
			</div>
            <div class="textTeaser"> 
            <h1>Historie</h1>
                <p>Die Jugendfeuerwehr nimmt jährlich an einem Bundeswettbewerb teil.</p> 
                <ul> 
                	<li>
                    	<h2>2013</h2>
            <p class="button"><input type="submit" name="sendeButton" value="Formular Senden" class="submitButton" /></p>
            </form>
        </div>
    </div>
    <hr class="clear" />
</div>    
<div id="SidebarContent">   
    <div class="address">
        <h1 class="first">Kontaktadresse</h1>
        <p>Freiwillige Feuerwehr<br/>Bad Soden am Taunus e.V.</p>
        <p>Hunsrückstr. 5-7<br/>65812 Bad Soden am Taunus</p>
        <ul>
            <li class="tel">+49 6196 24074</li>
            <li class="fax">+49 6196 62596</li></li>
            <li class="mail"><?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
</li>
        </ul>
        <br />
    </div>    
</div>
<hr class="clear" />

<?php 
if (strpos(current_url(), 'captcha') !== false || strpos(current_url(), 'validierung') !== false) {
    ?>
    <script type="text/javascript">
        $("#js_openKontakt").removeClass('active');
        $("#js_closeKontakt").addClass('active');
        $(".kontaktformular").css('display', 'block');
Example #23
0
echo $author->name;
?>
</h1>
<?php 
if (!empty($author->avatar_image)) {
    echo $author->get_avatar_img_tag(array('class' => 'img_right'));
}
echo $author->about_formatted;
?>

<ul>
	<?php 
if (!empty($author->email)) {
    ?>
	<li><?php 
    echo safe_mailto($author->email);
    ?>
</li>
	<?php 
}
?>
	
	<?php 
if (!empty($author->website)) {
    ?>
	<li><?php 
    echo $author->website_link;
    ?>
</li>
	<?php 
}
Example #24
0
        <?php 
    } else {
        ?>
        <tr>
            <td>E-mail:</td><td><?php 
        echo safe_mailto($user['email'], '<span class="icon icon-envelope"></span> написать письмо');
        ?>
</td>
        </tr>    
        <?php 
    }
}
?>
    <tr>
        <td>E-mail:</td><td><span class="icon icon-envelope"></span> <?php 
echo safe_mailto($user['email'], 'написать письмо');
?>
</td>
    </tr>    
    <tr>
        <td>Материалов:</td><td><strong><?php 
echo form_prep($user['posts_count']);
?>
</strong></td>
    </tr>    
    <?php 
/*
<tr>
    <td>Комментариев:</td><td><strong><?= form_prep($user['comments_count']) ?></strong></td>
</tr>
*/
Example #25
0
<h1>Contact and support</h1>
<p>In case there are issues getting NextShare plugins to work or for any other information or suggestion, please contact us:

<dl>
	<dt><img src="<?php 
echo site_url('img/email-icon.png');
?>
" class="inline" alt="email" /> E-mail: </dt>
	<dd>
		<?php 
echo safe_mailto('*****@*****.**', '*****@*****.**');
?>
	</dd>
	
	<dt><img src="<?php 
echo site_url('img/redmine-logo.png');
?>
" class="inline" alt="redmine" width="48" height="33" /> Redmine Issue Tracker: </dt>
	<dd>
		<a href="http://p2p-next.cs.pub.ro/redmine/site/issues">http://p2p-next.cs.pub.ro/redmine/site/issues</a>
	</dd>
	
	<dt><img src="<?php 
echo site_url('img/redmine-logo.png');
?>
" class="inline" alt="redmine" width="48" height="33" /> Redmine Forums: </dt>
	<dd>
		<a href="https://p2p-next.cs.pub.ro/redmine/projects/site/boards">https://p2p-next.cs.pub.ro/redmine/projects/site/boards</a>
	</dd>
</dl>
Example #26
0
							</address>
							<address>
								<span class="address-header">Телефон: </span><?php 
echo $contact['phones'];
?>
							</address>
							<address>
								<span class="address-header">Email: </span>
								<?php 
$mails = explode(',', strip_tags($contact['emails']));
?>
								<?php 
for ($i = 0; $i < count($mails); $i++) {
    ?>
									<?php 
    echo safe_mailto($mails[$i], $mails[$i]);
    if ($i != count($mails) - 1) {
        echo '<span class="cont__delim">, </span>';
    }
    ?>
								<?php 
}
?>
							</address>
							<span class="download-scheme">Сохраните удобную</span> <a class="download-scheme fancybox" href="<?php 
echo base_url('img/scheme.jpg');
?>
">карточку с контактами и схемой проезда</a>
						</div>
					</div>
				</section>
Example #27
0
 /**
  * Auto-linker
  *
  * Automatically links URL and Email addresses.
  * Note: There's a bit of extra code here to deal with
  * URLs or emails that end in a period. We'll strip these
  * off and add them after the link.
  *
  * @param	string	the string
  * @param	string	the type: email, url, or both
  * @param	bool	whether to create pop-up links
  * @return	string
  */
 function auto_link($str, $type = 'both', $popup = FALSE)
 {
     // Find and replace any URLs.
     if ($type !== 'email' && preg_match_all('#(\\w*://|www\\.)[^\\s()<>;]+\\w#i', $str, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER)) {
         // Set our target HTML if using popup links.
         $target = $popup ? ' target="_blank"' : '';
         // We process the links in reverse order (last -> first) so that
         // the returned string offsets from preg_match_all() are not
         // moved as we add more HTML.
         foreach (array_reverse($matches) as $match) {
             // $match[0] is the matched string/link
             // $match[1] is either a protocol prefix or 'www.'
             //
             // With PREG_OFFSET_CAPTURE, both of the above is an array,
             // where the actual value is held in [0] and its offset at the [1] index.
             $a = '<a href="' . (strpos($match[1][0], '/') ? '' : 'http://') . $match[0][0] . '"' . $target . '>' . $match[0][0] . '</a>';
             $str = substr_replace($str, $a, $match[0][1], strlen($match[0][0]));
         }
     }
     // Find and replace any emails.
     if ($type !== 'url' && preg_match_all('#([\\w\\.\\-\\+]+@[a-z0-9\\-]+\\.[a-z0-9\\-\\.]+[^[:punct:]\\s])#i', $str, $matches, PREG_OFFSET_CAPTURE)) {
         foreach (array_reverse($matches[0]) as $match) {
             if (filter_var($match[0], FILTER_VALIDATE_EMAIL) !== FALSE) {
                 $str = substr_replace($str, safe_mailto($match[0]), $match[1], strlen($match[0]));
             }
         }
     }
     return $str;
 }
Example #28
0
</h1>
            </div>
        </div>

        <div class="row">
            <div class="large-12 columns">
                <?php 
$this->load->view($view_page, $view_model);
?>
            </div>
        </div>
        <div class="row">
            <div class="large-12 columns">
                <hr>
                <p class="footer"><?php 
echo safe_mailto('*****@*****.**', 'Contact Us');
?>
 | Page rendered in <strong>{elapsed_time}</strong> seconds</p>
            </div>
        </div>
        <script src="<?php 
echo base_url();
?>
assets/js/vendor/jquery.js"></script>
        <script src="<?php 
echo base_url();
?>
assets/js/foundation.min.js"></script>
        <script>
            $(document).foundation();
        </script>
 public function _parse_single($key, $val, $string)
 {
     $newval = $val;
     $find = "/" . $this->l_delim . "" . $key . ".*" . $this->r_delim . "/U";
     preg_match($find, $string, $matches);
     if (!empty($matches)) {
         $temp = trim($matches[0], "{}");
         $res = explode(":", $temp);
         // var_dump($res);
         if (count($res) > 1) {
             switch ($res[1]) {
                 case "allcaps":
                     $newval = strtoupper($val);
                     break;
                 case "money":
                     $newval = number_format((int) $val, 2, ".", ",");
                     break;
                 case "caps":
                     $newval = ucwords(strtolower($val));
                     break;
                 case "nocaps":
                     $newval = strtolower($val);
                     break;
                 case "ucfirst":
                     $newval = ucfirst($val);
                     break;
                 case "bool1":
                     $newval = $val == 1 ? "True" : "False";
                     break;
                 case "bool2":
                     $newval = $val == 1 ? "Yes" : "No";
                     break;
                 case "bool3":
                     $newval = $val == 1 ? "Active" : "Inactive";
                     break;
                 case "climit":
                     $int = count($res) < 3 ? 128 : $res[2];
                     $newval = character_limiter($val, $int);
                     break;
                 case "htmlchars":
                     $newval = quotes_to_entities($val);
                     break;
                 case "wlimit":
                     $int = count($res) < 3 ? 25 : $res[2];
                     $newval = word_limiter($val, $int);
                     break;
                 case "wrap":
                     $int = count($res) < 3 ? 76 : $res[2];
                     $newval = word_wrap($val, $int);
                     break;
                 case "hilite":
                     $str = count($res) < 3 ? "" : $res[2];
                     $color = count($res) < 4 ? "#990000" : $res[3];
                     $newval = highlight_phrase($val, $str, "<span style=\"color:{$color}\">", "</span>");
                     break;
                 case "safe_mailto":
                     $alt_text = count($res) < 3 ? "" : $res[2];
                     $newval = safe_mailto($val, $alt_text);
                     break;
                 case "url_title":
                     $sep = count($res) < 3 ? "dash" : $res[2];
                     $newval = url_title($val, $sep);
                     break;
                 case "remove_img":
                     $newval = strip_image_tags($val);
                     break;
                 case "hash":
                     $hash = count($res) < 3 ? "md5" : $res[2];
                     $newval = dohash($val, $hash);
                     break;
                 case "stripslashes":
                     $newval = stripslashes($val);
                     break;
                 case "strip_tags":
                     $allowed = count($res) < 3 ? "" : $res[2];
                     $newval = strip_tags($val, $allowed);
                     break;
                     /** other output string format options here **/
             }
             return str_replace($matches[0], $newval, $string);
         }
     }
     return parent::_parse_single($key, $val, $string);
 }
Example #30
0
function auto_link_pic($str, $type = 'both', $popup = FALSE)
{
    if ($type != 'email') {
        if (preg_match_all("#(^|\\s|\\()((http(s?)://)|(www\\.))(\\w+[^\\s\\)\\<]+)#i", $str, $matches)) {
            $pop = $popup == TRUE ? " target=\"_blank\" " : "";
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['6'][$i])) {
                    $period = '.';
                    $matches['6'][$i] = substr($matches['6'][$i], 0, -1);
                }
                $img_ext = array('jpg', 'png', 'gif', 'jpeg');
                $file_ext = strtolower(end(explode(".", $matches['0'][$i])));
                if (in_array($file_ext, $img_ext)) {
                    $str = str_replace($matches['0'][$i], $matches['1'][$i] . '<img src="http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '" alt="">' . $period, $str);
                } else {
                    $str = str_replace($matches['0'][$i], $matches['1'][$i] . '<a href="http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '"' . $pop . '>http' . $matches['4'][$i] . '://' . $matches['5'][$i] . $matches['6'][$i] . '</a>' . $period, $str);
                }
            }
        }
    }
    if ($type != 'url') {
        if (preg_match_all("/([a-zA-Z0-9_\\.\\-\\+]+)@([a-zA-Z0-9\\-]+)\\.([a-zA-Z0-9\\-\\.]*)/i", $str, $matches)) {
            for ($i = 0; $i < count($matches['0']); $i++) {
                $period = '';
                if (preg_match("|\\.\$|", $matches['3'][$i])) {
                    $period = '.';
                    $matches['3'][$i] = substr($matches['3'][$i], 0, -1);
                }
                $str = str_replace($matches['0'][$i], safe_mailto($matches['1'][$i] . '@' . $matches['2'][$i] . '.' . $matches['3'][$i]) . $period, $str);
            }
        }
    }
    return $str;
}