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($_SESSION['hasSession'] == FALSE) { | |
// create the callback url, | |
$callback = 'http://www.feed2meme.com/'; | |
// pass the credentials to get an auth url. | |
// this URL will be used for the pop-up. | |
$auth_url = YahooSession::createAuthorizationUrl(CONSUMER_KEY,CONSUMER_SECRET, $callback); | |
}else { | |
// pass the credentials to initiate a session |
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
$ch = curl_init(); | |
$query = 'select * from search.web where query="pizza"'; | |
$url = "http://query.yahooapis.com/v1/public/yql?q=" . urlencode($query) . "&diagnostics=false&env=store://datatables.org/alltableswithkeys&format=json"; | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
$response = curl_exec($ch); |
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
rename -v 's/(\d{5})\s\w{1}\.jpg$/$1\.jpg/' *.jpg |
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 | |
trait Translatable | |
{ | |
public function translate() | |
{ | |
$modelname = get_called_class(); | |
//check if the current locale is the default one. | |
$current_locale = get_current_locale(); |
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 | |
class AnastasiaTheme { | |
static function listimages($params=''){ | |
return \Image::lists('original_filename','id'); | |
} | |
static function getimages($params=''){ | |
$slides = array(); |
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 | |
return array( | |
'main_menu' => 'Main Menu', | |
'secondary_menu' => 'Secondary Menu', | |
'logo' => 'Logo', | |
'menu' => 'Menu', | |
'carousel' => 'Carousel', | |
'html_box' => 'Panel', | |
'call_to_action' => 'Call to action', |
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 | |
register_menu_positions(array( | |
'main_menu' => t('anastasia::strings.main_menu'), | |
'secondary_menu' => t('anastasia::strings.secondary_menu') | |
)); | |
register_content_block(array( | |
'menu_select_block' => array( | |
'name' => 'menu_select_block', |
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
<?xml version="1.0"?> | |
<addon> | |
<name>anastasia</name> | |
<title>Anastasia Default Theme</title> | |
<image>http://laravel.com/assets/img/laravel-logo.png</image> | |
<version>1.0</version> | |
<author>bonweb.gr</author> | |
<url>http://www.bonweb.gr</url> | |
<configurator> | |
<logo type="image">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAAAeCAIAAADb42XYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wQbDQ0aHTBmYAAACvhJREFUWMONWXt0VMUZ/2bu3H0kkAQISYW4CWASCGAIiYBKCwIqB1AiRXyhKIKotRYLKkURsbUqUl/ltFU8VauHilUUwarHg1pQLCiPyEOUlEc20JgGQl6b7N47M/1jli9fZgG9f+zZnTuv3+97f8sqKysBgDGmtQYAzjkAKKUYYwBgXjHGlFIAoLXWWpsR81YpZSY7jmNemSVm0MzH/bXWnHOlFOfcjJvHjONMM2JemW3NznQ3XIibW3ueBQs3v/GFUopeXWttRhzHwZUAIKU0aM1kzjlONl9SAVN4uAQfwynioZyateZTCIG7mU3MK6Se8nUmLMk11klUpOa7AWnd47SUQ8qDl3Mch3PuOA7uj3is70ZKZhWqlfk0ZOFNrCNQDc+CRdAf9B0OmrOllDhiGKWk+r5vkKAQqGDNzfCueFGjjZQ+cxbFT09hjEkpjdJRGZojqHGlYkFzSxKJl6NoqWCts424qG0jx1SfLRVABUFzoHqBtqDIQ1XdGBceTTdnjAkhqGalYpFS4k9BbQlNwuICL20EnqrYqBHUc6TOMePm0tSe8UKpJOKVqIab+cg7ZZk6JooFWVBKdRoM |
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 | |
return array( | |
'captcha_wrong' => 'Please prove that you are not a robot!' | |
); |
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
<div class="clearfix"></div> | |
<div class="g-recaptcha" data-sitekey="{{ get_config_value('recapctha_sitekey') }}"></div> | |
<script type="text/javascript" | |
src="https://www.google.com/recaptcha/api.js?hl={{ get_current_locale() }}"> | |
</script> | |
<div class="clearfix"></div> |
OlderNewer