Пример #1
0
    public function action_facebookConnect()
    {
        assert(Auth::guest());
        $profile = Helper::facebook()->api('/me');
        $user = Model\User::where_facebook_id($profile['id'])->first();
        if (!$user) {
            $user = new Model\User();
            $user->facebook_id = $profile['id'];
            $user->name = $profile['name'];
            $user->save();
        }
        Auth::login($user->id);
        ?>
		<html>
			<head>
				<script type="text/javascript">
					if (window.opener) {
						window.opener.location = '<?php 
        echo URL::to_route('login');
        ?>
';
						window.close();
					} else {
						window.location = '<?php 
        echo URL::to_route('login');
        ?>
';
					}
				</script>
			</head>	
			<body>
			</body>
		</html>
		<?php 
    }
Пример #2
0
 /**
  * Magic Method to handle redirecting to routes.
  */
 public static function __callStatic($method, $parameters)
 {
     $parameters = isset($parameters[0]) ? $parameters[0] : array();
     if (strpos($method, 'to_secure_') === 0) {
         return static::to(URL::to_route(substr($method, 10), $parameters, true));
     }
     if (strpos($method, 'to_') === 0) {
         return static::to(URL::to_route(substr($method, 3), $parameters));
     }
     throw new \Exception("Method [{$method}] is not defined on the Redirect class.");
 }
Пример #3
0
 /**
  * Constructor function
  *
  * @param string|int	$field
  * @param array|string	$info
  * @param ModelConfig 	$config
  */
 public function __construct($field, $info, $config)
 {
     parent::__construct($field, $info, $config);
     $this->sizes = array_get($info, 'sizes', $this->sizes);
     $this->naming = array_get($info, 'naming', $this->naming);
     $this->location = array_get($info, 'location');
     $this->sizeLimit = (int) array_get($info, 'size_limit', $this->sizeLimit);
     $this->uploadUrl = \URL::to_route('admin_image_upload', array($config->name, $this->field));
     $replace = path('public');
     if (strpos($this->location, $replace) === 0) {
         $this->displayUrl = \URL::to('/' . substr_replace($this->location, '', 0, strlen($replace)));
     }
     //make sure the naming is one of the two accepted values
     $this->naming = in_array($this->naming, array('keep', 'random')) ? $this->naming : 'random';
 }
Пример #4
0
 public function post_send_message()
 {
     $input = Input::all();
     try {
         $validator = new Services\Home\Contact\Validator($input);
         $validator->publish();
     } catch (ValidateException $errors) {
         return Redirect::to(URL::to_route('home.contact'))->with_input()->with_errors($errors->get());
     }
     $errors = new Laravel\Messages();
     try {
         $message = Message::to(Config::get('app.email_address'))->from($input['email'], $input['last_name'] + ', ' + $input['first_name'])->subject($input['subject'])->body($input['message'])->send();
         if ($message->was_sent()) {
             return Redirect::to(URL::to_route('home.index'))->with('status_success', __('application.email_sent'));
         } else {
             $errors->add('errors', __('application.email_error'));
             return Redirect::to(URL::to_route('home.contact'))->with_input()->with_errors($errors);
         }
     } catch (\Exception $e) {
         $errors->add('errors', $e->getMessage());
         return Redirect::to(URL::to_route('home.contact'))->with_input()->with_errors($errors);
     }
 }
Пример #5
0
 public function delete_events_delete($id)
 {
     $event = GroupEvent::find($id);
     $errors = new Laravel\Messages();
     if ($event) {
         if ($event->delete()) {
             return Redirect::to(URL::to_route('dashboard.events'))->with('status_success', __('application.event_deleted'));
         } else {
             $errors->add('errors', __('application.generic_error'));
             return Redirect::to(URL::to_route('dashboard.events'))->with_errors($errors);
         }
     } else {
         return Response::error(404);
     }
 }
Пример #6
0
        //this is the training frame, we don't want to display it.
        $count_progress_xp--;
    } else {
        //Let's setup some data
        $num_frames_for_width++;
        $current_battle_frame_id = $progress->xp[$i]->sdb_id;
        $is_active = $current_battle_frame_id != $progress->chassis_id ? '' : 'active';
        $current_battle_frame_simple_name = chassisIdToSimpleName($current_battle_frame_id);
        $current_battle_frame_as_class = strtolower($current_battle_frame_simple_name);
        $current_battle_frame_as_icon = simpleNameToClassIcon($current_battle_frame_simple_name);
        $current_battle_frame_lifetime_xp = number_format($progress->xp[$i]->lifetime_xp);
        $current_battle_frame_xp = number_format($progress->xp[$i]->current_xp);
        //Let's generate some data
        $ol_items .= "<li data-battleframe='{$current_battle_frame_id}' data-target='#frameCarousel' data-slide-to='" . $i . "' rel='tooltip' title='{$current_battle_frame_simple_name}' class='changeFrame {$is_active}'><img src='/img/assets/items/64/{$current_battle_frame_as_icon}.png' alt='' /></li>";
        $div_items .= "<div class='item {$current_battle_frame_as_class} {$is_active}'>";
        $div_items .= "<p><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a target='_blank' href='" . URL::to_route('players') . "/" . e($player->name) . "/battleframe/" . strtolower($current_battle_frame_simple_name) . "'>Link This Frame</a></p>";
        $div_items .= "<p class='total-xp'><i>{$current_battle_frame_simple_name}</i><br/>{$current_battle_frame_lifetime_xp} TOTAL XP</p>";
        $div_items .= "</div>";
    }
}
?>

			{{-- THIS OUTPUTS THE CAROUSEL SKIP LINKS --}}
	<div id="frameCarousel" class="carousel slide">
		<ol class="carousel-indicators">
			{{ $ol_items }}
		</ol>
		<div class="carousel-inner">
			{{-- THIS OUTPUTS THE CAROUSEL FRAME DATA COMPUTED ABOVE --}}
				{{ $div_items }}
		</div>
Пример #7
0
<?php

echo File::get(Bundle::path('rejigger') . 'jquery/jquery-1.7.2.min.js');
?>
var reJquery = jQuery.noConflict(true);

var rejigger_version;
var rejigger_version_uri = "<?php 
echo URL::to_route('rejigger_version');
?>
";

reJquery(document).ready(function() {
	rejigger();
});

function rejigger() {
	reJquery.get(rejigger_version_uri, {
		uri: window.location.href
	}, function(data) {
		if (data.charAt(0) == '{') {
			var json = (new Function("return " + data))();

			if (typeof rejigger_version == 'undefined') {
				rejigger_version = json.version;
			}

			if (rejigger_version == json.version) {
				setTimeout("rejigger()", <?php 
echo Config::get('rejigger::settings.update_milliseconds', '1000');
?>
Пример #8
0
 public function get_confirmation($email = null, $hash = null)
 {
     try {
         $confirmation = Sentry::reset_password_confirm($email, $hash);
         if ($confirmation) {
             return Redirect::to(URL::to_route('session.login'))->with('status_success', __('application.resset_ok'));
         } else {
             return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header'));
         }
     } catch (Sentry\SentryException $e) {
         return View::make('session/reset_confirmation_invalid')->with('title', HtmlHelpers::name('reset_invalid_header'));
     }
 }
Пример #9
0
    $editFields = Field::getEditFields($config);
    //add the view fields
    $view->primaryKey = $model::$key;
    $view->rows = ModelHelper::getRows($config, $config->sort);
    $view->editFields = $editFields;
    $view->actions = $config->actions;
    $view->filters = Field::getFilters($config);
    $view->baseUrl = $baseUrl;
    $view->assetUrl = URL::to('bundles/administrator/');
    $view->route = $route['path'] . '/';
    $view->model = isset($view->model) ? $view->model : false;
});
//admin settings view
View::composer('administrator::settings', function ($view) {
    $config = $view->config;
    $baseUrl = URL::to_route('admin_index');
    $route = parse_url($baseUrl);
    //get the edit fields
    $editFields = Field::getEditFields($config);
    //add the view fields
    $view->editFields = $editFields;
    $view->actions = $config->actions;
    $view->baseUrl = $baseUrl;
    $view->assetUrl = URL::to('bundles/administrator/');
    $view->route = $route['path'] . '/';
});
//header view
View::composer(array('administrator::partials.header', 'administrator::dashboard'), function ($view) {
    $view->menu = Menu::getMenu();
    $view->settingsPrefix = Admin\Libraries\SettingsConfig::$prefix;
});
?>
" />
<title>jQuery File Upload Plugin Test</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css">
</head>
<body>
<h1 id="qunit-header">jQuery File Upload Plugin Test</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
    <!-- The file upload form used as target for the file upload widget -->
    <form id="fileupload" action="<?php 
echo URL::to_route('upload');
?>
" method="POST" enctype="multipart/form-data">
        <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
        <div class="row fileupload-buttonbar">
            <div class="span7">
                <!-- The fileinput-button span is used to style the file input field as button -->
                <span class="btn btn-success fileinput-button">
                    <i class="icon-plus icon-white"></i>
                    <span>Add files...</span>
                    <input type="file" name="files[]" multiple>
                </span>
                <button type="submit" class="btn btn-primary start">
                    <i class="icon-upload icon-white"></i>
                    <span>Start upload</span>
                </button>
Пример #11
0
<?php

Autoloader::map(array('Rejigger\\URI' => Bundle::path('rejigger') . 'uri.php'));
$envs = Config::get('rejigger::settings.environments', array('*'));
if (in_array('*', $envs) || isset($_SERVER['LARAVEL_ENV']) && in_array($_SERVER['LARAVEL_ENV'], $envs)) {
    Event::listen('laravel.done', function ($response) {
        if (!(Request::route()->is('rejigger_js') || Request::route()->is('rejigger_version'))) {
            echo HTML::script(URL::to_route('rejigger_js'));
        }
    });
}
Пример #12
0
?>
",
		base_url = "<?php 
echo $baseUrl;
?>
/",
		asset_url = "<?php 
echo $assetUrl;
?>
",
		file_url = "<?php 
echo URL::to_route('admin_display_file', array($config->name));
?>
",
		rows_per_page_url = "<?php 
echo URL::to_route('admin_rows_per_page', array($config->name));
?>
",
		route = "<?php 
echo $route;
?>
",
		csrf = "<?php 
echo Session::token();
?>
",
		language = "<?php 
echo Config::get('application.language');
?>
",
		adminData = {
Пример #13
0
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>clementia</title>
  <meta name="viewport" content="width=device-width">
  <?php 
echo Asset::styles();
?>
  <?php 
echo Asset::container('header')->scripts();
?>
</head>
<body>
  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="brand" href="<?php 
echo URL::to_route('home');
?>
">clementia</a>
        <ul class="nav">
        </ul>

        
        <ul class="nav pull-right">
          <?php 
if (Auth::check()) {
    ?>
            <li><?php 
    echo HTML::link('test', 'Tests');
    ?>
</li>
            <li><?php 
Пример #14
0
<?php

return array('name_acronym' => 'J&amp;B', 'name' => 'J&amp;B Abstract Art Group', 'brouwer' => 'Juan L. Brouwer', 'brouwer_full' => 'Juan Leo Brouwer Pardo', 'jacas' => 'Oscar J. Jacas', 'jacas_full' => 'Oscar Javier Jacas Hern&aacute;ndez', 'phone_numbers' => '(537) 8 322929 <br /> (537) 8 325264', 'address_heading' => 'Address', 'address' => 'Línea No 6 entre N y O. Piso 10, Apto 10A. Plaza. La Habana. Cuba.', 'header1' => '<span class="firstword">Who</span> We Are', 'comment1' => 'J&amp;B Abstract Art Group continues motivated by the energy of this pictorial form. New artist generations explore new ways. The abstraction for us are revelations without end. Enjoy...', 'header2' => '<span class="firstword">Get</span> in Touch', 'comment2' => 'We would like to receive yours questions, opinions and comments. Thanks. If you are to interest some of our works you may <a href="' . URL::to_route('home.contact') . '">contact us</a>. We\'ll keep in touch.', 'header3' => '<span class="firstword">Oscar</span> J. Jacas', 'comment3' => 'I\'m a painter and artisan. Make Paper Marché. The technique is being used to develop environments. My designs and works have been used to decorate empty spaces of cafeteria, hotels, stand\'s and other inner spaces. You may <a href="' . URL::to_route('home.contact') . '">contact me</a>.', 'home' => 'Home', 'work' => 'Work', 'pricing' => 'Pricing', 'contact' => 'Contact', 'contact1' => 'Contact', 'about' => 'About', 'sign_in' => 'Sign In', 'motto' => '&ndash; Oscar J. Jacas &amp; Juan L. Brouwer &ndash;', 'all' => 'All', 'series' => 'Series', 'tags' => 'Tags', 'dashboard' => 'Dashboard', 'about_long' => "<p>The J&amp;B Abstract Art Group is the fruit of collaboration between two young Cuban artists: Juan Leo Brouwer Pardo and Oscar Javier Jacas Hernandez. From a friendship of more than 10 years emerge this project blended by the self admirations that feel these artists and their preference by Abstract Painting.</p>" . "<p>Juan L. Brouwer chooses this way since the time when he was a student at the Academy of San Alejandro where he had his first Exposition. The work he has been doing since then by experimentation using extra artistic resources and tools which visually send us to old textures and other constructive elements, the use of design in occasions combines with those showing a self aesthetics.</p>" . "<p>All these facts have encouraged Oscar Javier Jacas Hernández painter and artisan to wander in abstract painting some years ago. His work approach him to Action Painting for the use of expressive freedom in gestures.</p>", 'about_small' => 'We are a youg group of cuban painters specializing in the abstract world.', 'our' => 'Our', 'group' => 'Group', 'perks' => 'Perks', 'email_sent' => 'Message sent. Thanks for contacting us. We\'ll write back soon.', 'email_error' => 'There was a problem sending the email. It is our fault. Try again later.', 'events' => 'Events', 'event' => 'Event', 'manage_events' => 'Manage Events', 'search_events' => 'Search Events', 'new_event' => 'New Event', 'event_name' => 'Event Name', 'event_place' => 'Event Place', 'event_date' => 'Event Date', 'event_description' => 'Event Description', 'create_event' => 'Create Event', 'event_added' => 'Event Added.', 'edit_event' => 'Edit Event', 'event_save' => 'Save Event', 'event_updated' => 'Event Updated.', 'event_deleted' => 'Event Deleted.', 'brouwer_about' => "<p>This painter was born in Havana in 1973. Since early age he tends to plastic arts. He develops studies of Painting and Drawing. Graduated from the Academy of Fine Arts San Alejandro in 2001 and from the Technological Institute Pablo de la Torriente Brau specialty craftsmanship. He works professionally since 2001.</p>" . "<p>He has participated in many massive expositions and has 5 expositions of his own; he belongs to the Register of the Creator. In 2001 he performed his first personal exposition \"Beyond Identity\" in the gallery of the Center of development of Fine Arts on Luz and Oficios.st. In 2003 he performed \"From the possible\" at Salvador Allende's House. In 2004 he participated in the \"Event Jojazz\" with an exposition of paintings and photographs at the lobby of the theatre on 23 and 12 st.</p>" . "<p>His paintings and photographs are purely abstract. He has worked in more than 20 collective expositions. His works are part of private collections in Cuba, Canada, Mexico, Japan, Italy and U.S.A.</p>", 'jacas_about' => "<p>This painter and artisan was born in Havana in 1980. Since early age he tends to plastic arts winning contests of children's painting. He performs elementary studies in Painting and Ceramics at 11 years old. When finishing the secondary school he enters the Technological Institute Pablo de la Torriente Brau specialty Craftsmanship. In 1999 as part of his studies he performs works of imitation jewelry, engraving, miniature and marquetry in a Work Shop, being this the one he has chosen for his thesis \"Geometry for the box of cigars\", which was chosen among the best three works of the year, therefore it was shown at the International Fair (FIART) in 1999. He works professionally since then.</p>" . "<p>He has been linked to Artists participating in the design and development of works using different techniques which have been shown in national and international events. Since 2004 he works independently, he is a member of the Association of Artisans Artists of Cuba (ACAA) and also of the Register of the Creator.</p>" . "<h3>Expositions</h3>" . "<ul>" . "<li>FIART - 1999</li>" . "<li>Imago Gallery\t- 2002</li>" . "<li>Salvador Allende's House - 2003</li>" . "<li>Third Hall of Paper Marché \"Antonia Eiriz\" - 2004</li>" . "<li>Expocuba Journey of the African Culture - 2005</li>" . "<li>Fourth Hall of Paper Marché \"Antonia Eiriz\" - 2006</li>" . "<li>Exposition \"Guess of the ACAA\" - 2006</li>" . "<li>Casa de las FAR Gallery - 2006</li>" . "<li>Journey of the environment San Miguel del Padrón Gallery - 2006</li>" . "<li>Personal Exposition \"Identity and dreams\" - 2006</li>" . "<li>Fernando Boada Martin Gallery - 2008</li>" . "<li>Fifth Hall of Paper Marché \"Antonia Eiriz\" - 2008</li>" . "<li>Seventh Hall of Paper Marché \"Love and Fantasy\" - 2011</li>" . "<li>Exposition \"Looking Mexico from Cuba\" (Special Prize) - 2012</li>" . "<li>Exposition \"Connections\" Hotel Plaza Lobby - 2012</li>" . "</ul>" . "<p>He received awards at the Fourth National Hall of Paper Marché \"Antonia Eiriz\". Second award and award given by the Center of Development of Visual Arts and Special Prize for the Project Virgin.</p>" . "<p>He has made donations of his works to different Cuban organizations as the Work Shop \"Antonia Eiriz\", ACLIFIM, television programs and The Art Center for children \"José de la Luz y Caballero\". He donated paintings to The Office of the Historian of the City, to The State Council and Ministers. Paper Marché technique is being used to develop environments works of toys and kinetics besides a wide range of useful and decorative objects. His painting is abstract and it has a gesture character.</p>" . "<p>He performed environments in Belgium with the tour operator Montana at the 2007 Fair of Tourism. He designed sets of columns and capitals for The Aventoura Raisen Agency at the Fair of Tourism (ITB) Berlin 2008. Designs and works of his own have been used to decorate empty spaces of cafeterias, hotels, and other inner spaces. Some of his works are shown in private collections and institutions of different countries such as Cuba, Finland, Denmark, Switzerland, Germany, Holland, Belgium, England, Italy, Spain, USA, Argentina and Mexico.</p>", 'faq' => 'FAQ', 'faq_large' => 'Frequently Asked Questions', 'faq1' => 'Why J&B Abstrac Art Group?', 'faq1_answer' => 'It\'s because abstract art enthrall us and give meaning to our union. Jacas and Brouwer are our last names and the name under our work lives.', 'faq2' => 'Which painters has influenced us?', 'faq2_answer' => '<strong><a href="' . URL::to_route('home.contact') . '">Jacas</a>: </strong>On my case painters from the 50s and 70s. Painters of the height of Jackson Pollock of the so called "Beat Generation". Cuban painters also as Raúl Martínez with his phase Pop and Abstract, Carlos García, Glexys Novoa. Foreigns like Franz Kline, Gerard Richter, Tapies had also mark me on my conception and aesthetics of any given abstract work.<br /><br /><strong><a href="' . URL::to_route('home.contact') . '">Brouwer</a>: </strong> My influences extend across the 50s up until the 70s of the past century, and, among the prime painters, I have been influenced by Guido Llinas, Cabrera Moreno in his abstract stage and more recently from the 80s Carlos García de la Nuez. Foreign painters had also mark me in some way, they are Gerard Richter, Antoni Tapies, Brice Marden, Callum Innes, Barnett Newman, Cy Twombly and others from the abstract expressionism.', 'faq3' => 'Do you have paintings for sale?', 'faq3_answer' => 'You can become interested on some of our work and, for us to be able to inform and interact, you must use <a href="' . URL::to_route('home.contact') . '">our contacts</a> and employ Serie and (#) or Title of the painting you are interested in. We promise you that we will answer your requests as soon as possible.', 'faq4' => 'What projects do you have?', 'faq4_answer' => 'We are currently painting canvas of great format which we will include on a Dossier we are working on and that will soon be ready. We are planning the next Group exhibition on Havana. We also are counting with the collaboration of a canadian painter for us to participate on a collective display on Toronto in 2013.', 'lang' => 'Language', 'lang_en' => 'English', 'lang_sp' => 'Spanish', 'switch_lang' => 'Switch to Spanish (Cambiar a Español)', 'phones' => 'Phones', 'first_name' => 'First Name', 'email_address' => 'Email Address', 'last_name' => 'Last Name', 'subject' => 'Subject', 'message' => 'Message', 'send' => 'Send', 'work' => 'Work', 'painting_about' => 'About', 'no_paintings' => 'There are no paintings to show', 'view_gallery' => 'View Gallery', 'all' => 'All', 'search_results' => 'Search Results', 'navigation' => 'Navigation', 'links' => 'Usefull Links', 'mails' => 'Mails', 'group_mails' => HTML::mailto('*****@*****.**', '*****@*****.**') . '<br />' . HTML::mailto('*****@*****.**', '*****@*****.**'), 'who' => 'Who We Are', 'social' => 'Find us, connect &amp; collaborate.', 'quote' => 'What would replace the object?<br />According to Vasily Kandinsky it had to be a spiritual thing.', 'quote_author' => 'Vasily Kandinsky &ndash; <strong>Pintor</strong>', 'author' => 'Designed and built with all the love in the world by ' . HTML::mailto('*****@*****.**', 'Julio C. Villasante') . ' &ndash; Copyright &copy; ' . date('Y'), 'photographer' => 'Luis Mario Gell &ndash; Photographer', 'note' => 'Best seen on Chrome4+, Firefox3.6+, Opera8+, IE9+', 'phones' => 'Phones', 'first_name' => 'First Name', 'email_address' => 'Email Address', 'last_name' => 'Last Name', 'subject' => 'Subject', 'message' => 'Message', 'send' => 'Send', 'work' => 'Work', 'painting_about' => 'About', 'no_paintings' => 'There are no paintings to show', 'view_gallery' => 'View Gallery', 'all' => 'All', 'search_results' => 'Search Results', 'navigation' => 'Navigation', 'links' => 'Usefull Links', 'mails' => 'Mails', 'who' => 'Who We Are', 'social' => 'Find us, connect &amp; collaborate.', 'quote' => 'What would replace the object?<br />According to Vasily Kandinsky it had to be a spiritual thing.', 'log_in' => 'Sign In', 'logout' => 'Log Out', 'email' => 'Email Address', 'password' => 'Password', 'new_password' => 'New Password', 'new_password_confirm' => 'Confirm New Password', 'remember_me' => 'Remember Me', 'forgot_password' => 'Forgot Your Password?', 'reset_password' => 'Reset Your Password', 'reset_confirm_header' => 'You are reseting your password.', 'reset_confirm_link' => 'Be sure to confirm the reseting by visiting', 'reset_invalid_header' => 'Invalid Confirmation Key', 'reset_invalid_body' => 'Make sure to confirm your password reset by visiting the link we send you.', 'dashboard' => 'Dashboard', 'profile' => 'Profile', 'manage_users' => 'Manage Users', 'manage_paintings' => 'Manage Paintings', 'manage_slideshow' => 'Manage Slideshow', 'logout' => 'Log Out', 'username' => 'Username', 'full_name' => 'Full Name', 'email_footer' => 'Your email is for logging in and cannot be changed.', 'first_name' => 'First Name', 'last_name' => 'Last Name', 'save_profile' => 'Save Profile', 'profile_updated' => 'You have updated your profile', 'new_user' => 'New User', 'add_painting' => 'Add Painting', 'painting_name' => 'Name of the Painting', 'painting_dimensions' => 'Painting Dimensions', 'painting_type' => 'Painting Type (Tempera sobre Lienzo)', 'painting_painter' => 'Painter Name', 'painting_year' => 'Painting Creation Year (2012)', 'painting_comment' => 'Painting Comment', 'painting_tags' => 'Painting Tags', 'painting_tags_explanation' => 'Type some tags in the input field, separate them with comma (or tab).', 'edit_painting' => 'Edit Painting', 'painting_save' => 'Save Changes', 'select_option' => '--Select Your Option--', 'new_painting' => 'New Painting', 'painting' => 'Painting', 'change_password' => 'Change Password', 'change_password_header' => 'Change your Password', 'current_password' => 'Current Password', 'new_password' => 'New Password', 'new_password_confirm' => 'Confirm New Password', 'new_user' => 'New User', 'create_user' => 'Create User', 'img1' => 'Image 1', 'img2' => 'Image 2', 'img3' => 'Image 3', 'img4' => 'Image 4', 'img5' => 'Image 5', 'img6' => 'Image 6', 'select_image' => 'Select Image', 'change_image' => 'Change', 'remove_image' => 'Remove', 'search' => 'Search', 'search_users' => 'Search Users', 'search_paintings' => 'Search Paintings', 'remove' => 'Remove', 'edit' => 'Edit', 'save' => 'Save', 'error_header' => 'Oh Snap! There are errors in the form you send.', 'generic_error' => 'Something went wrong. It is our fault. We are sorry for that.', 'pass_changed' => 'You have changed your password.', 'user_added' => 'User Added susscesfully', 'remove_yourself' => 'You can\'t remove yourself.', 'user_deleted' => 'User deleted.', 'painting_added' => 'Painting Added.', 'painting_updated' => 'Painting Updated.', 'painting_deleted' => 'Painting Deleted.', 'slideshow_added' => 'Slideshow Painting Added.', 'slideshow_deleted' => 'Slideshow Painting Deleted.', 'upload_error' => 'There was an error uploading the image. Sorry for that.', 'invalid_login' => 'Invalid Login', 'resset_error' => 'There was in issue when resseting your password.', 'resset_ok' => 'You have resseted your password', '404_message1' => 'We need a map.', '404_message2' => 'I think we\'re lost.', '404_message3' => 'We took a wrong turn.', '404_h2' => 'Server Error: 404 (Not Found)', '404_h3' => 'What does this mean?', '404_p1' => 'We couldn\'t find the page you requested on our servers. We\'re really sorry about that. It\'s our fault, not yours. We\'ll work hard to get this page back online as soon as possible.', '404_p2' => 'Perhaps you would like to go to our ' . HTML::link('/', 'home page') . '?');
Пример #15
0
 /**
  * Generate an HTML link to a route.
  *
  * @param  string  $name
  * @param  string  $title
  * @param  array   $parameters
  * @param  array   $attributes
  * @return string
  */
 public static function link_to_route($name, $title, $parameters = array(), $attributes = array(), $https = false)
 {
     return static::link(URL::to_route($name, $parameters, $https), $title, $attributes);
 }
Пример #16
0
 * @copyright 2012 CreativityKills, LLC
 * @link http://github.com/CreativityKills/placeholdr/
 * @version 1.0
 */
/**
 * Placeholdr bundle root path.
 *
 * Using this value instead of Bundle::path('placeholdr') gives the developer
 * more options, especially when trying to rename the bundle.
 */
define('PLACEHOLDR', __DIR__ . DIRECTORY_SEPARATOR);
/**
 * Add libraries folder to autoloader loading directories.
 *
 * This will tell Laravel where to look when attempting to autoload Placeholdr
 * classes.
 */
Autoloader::directories(array(PLACEHOLDR . 'libraries'));
/**
 * Register a HTML macro for use in views.
 *
 * The Placeholdr HTML macro makes using Placeholdr within the application
 * views a breeze. Simple and elegant, the Laravel way ;)
 *
 * <code>
 * 	{{ HTML::placeholdr('300x300') }}
 * </code>
 */
HTML::macro('placeholdr', function ($dimension, $text = '', $attributes = array()) {
    return '<img src="' . URL::to_route('placeholdr', array($dimension, $text)) . '"' . HTML::attributes($attributes) . ' />';
});
Пример #17
0
    $content = Sprunge::where_hash($hash)->first();
    if ($content) {
        return Response::make($content->content, 200, ['Content-Type' => 'text/plain']);
    } else {
        return 'Not found.';
    }
}]);
Route::post('/', function () {
    $sprunge = Input::get('sprunge');
    if (!empty($sprunge)) {
        $hash = md5(uniqid());
        $newsprunge = new Sprunge();
        $newsprunge->hash = $hash;
        $newsprunge->content = $sprunge;
        if ($newsprunge->save()) {
            return URL::to_route('sprunge', [$hash]);
        } else {
            return 'Error.';
        }
    } else {
        return Redirect::to('/');
    }
});
/*
|--------------------------------------------------------------------------
| Application 404 & 500 Error Handlers
|--------------------------------------------------------------------------
|
| To centralize and simplify 404 handling, Laravel uses an awesome event
| system to retrieve the response. Feel free to modify this function to
| your tastes and the needs of your application.
Пример #18
0
      @include('layouts.partials.masthead_about')
    @endif

    <div class="container-fluid main">
      @include('layouts.partials.status')
      <div class="row-fluid">
        @yield('content')
      </div>
    </div><!-- end container -->

    @include('layouts.partials.footer')

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript">var BASE = "<?php 
echo URL::base();
?>
";</script>
    <script type="text/javascript">var url_to_work = "<?php 
echo URL::to_route('work.index');
?>
";</script>
    @section('scripts')
      {{ Basset::show('scripts.js') }}
    @yield_section
  </body>
</html>


Пример #19
0
<?php

/*
|--------------------------------------------------------------------------
| Translations lines for spanish (sp)
|--------------------------------------------------------------------------
|
| The following language lines are used by the web to build every entry on
| spanish. As this is meant to be outputted by a web browser there are some
| characters that has to be written in HTML. What follows are some of them:
|
| á: &aacute;
| é: &eacute;
| í: &iacute;
| ó: &oacute;
| ú: &uacute;
| &: &amp;
| -: &ndash;
| ": &ldquo;  (left double quotation mark)
| ": &rdquo;  (right double quotation mark)
|
| Feel free to modify or change this file with anything you want.
*/
return array('name_acronym' => 'J&amp;B', 'name' => 'J&amp;B Grupo de Arte Abstracto', 'brouwer' => 'Juan L. Brouwer', 'brouwer_full' => 'Juan Leo Brouwer Pardo', 'jacas' => 'Oscar J. Jacas', 'jacas_full' => 'Oscar Javier Jacas Hern&aacute;ndez', 'phone_numbers' => '(537) 8 322929 <br /> (537) 8 325264', 'address_heading' => 'Direcci&oacute;n', 'address' => 'L&iacute;nea No 6 entre N y O. Piso 10, Apto 10A. Plaza. La Habana. Cuba.', 'header1' => '<span class="firstword">Quienes</span> Somos', 'comment1' => 'El grupo de arte abstracto J&amp;B contin&uacute;a motivado con la energ&iacute;a de esta forma pict&oacute;rica. La nueva generaci&oacute;n de artistas explora nuevas v&iacute;as de creaci&oacute;n. La abstracci&oacute;n para nosotros es una revelaci&oacute;n sin fin. Disfruten...', 'header2' => '<span class="firstword">Cont&aacute;ctenos</span>', 'comment2' => 'Nos gustar&iacute;a recibir sus preguntas, opiniones y comentarios. Gracias. Si usted est&aacute; interesado en nuestro trabajo puede <a href="' . URL::to_route('home.contact') . '">contactarnos</a>. Nosotros le contactaremos.', 'header3' => '<span class="firstword">Oscar</span> J. Jacas', 'comment3' => 'Yo soy pintor y artesano. Realizo obras en Papier Mach&eacute;. La t&eacute;cnica se usa para desarrollar ambientaciones. Mis obras y diseños se han empleado en diversos espacios de cafeter&iacute;as, hoteles, stands y otros. Si lo desea puede <a href="' . URL::to_route('home.contact') . '">contactarme</a>.', 'home' => 'Casa', 'work' => 'Trabajo', 'contact' => 'Contacto', 'contact1' => 'Contactar', 'about' => 'Acerca de', 'sign_in' => 'Entrar', 'motto' => '&ndash; Oscar J. Jacas &amp; Juan L. Brouwer &ndash;', 'all' => 'Todos', 'series' => 'Series', 'tags' => 'Etiquetas', 'dashboard' => 'Control', 'about_long' => '<p>El grupo de arte JB es fruto de la colaboraci&oacute;n entre dos j&oacute;venes artistas cubanos: Juan Leo Brouwer Pardo y Oscar J. Jacas Hern&aacute;ndez. De una amistad de m&aacute;s de diez años surge este proyecto matizado por la admiraci&oacute;n mutua que sienten estos artistas y su preferencia por la Pintura Abstracta.</p>' . '<p>Juan L. Brouwer escoge este camino desde los tiempos de estudiante en la Academia de San Alejandro donde tuvo su primera exposici&oacute;n. El trabajo que lleva a cabo desde entonces por la v&iacute;a de la experimentaci&oacute;n empleando recursos y herramientas extra art&iacute;sticas que visualmente nos remiten a añejas texturas y otros elementos constructivos, el uso del diseño en ocasiones se combina con estos mostrando una est&eacute;tica propia.</p>' . '<p>Esta impronta ha impulsado a Oscar Javier Jacas Hern&aacute;ndez pintor y artesano a incursionar en la pintura abstracta desde hace algunos años. Su obra lo acerca por la libertad expresiva en lo gestual a la Pintura de Acci&oacute;n (Action Painting).</p>', 'about_small' => 'Somos un grupo de dos j&oacute;venes pintores cubanos que se especializan en el mundo abstracto.', 'our' => 'Nuestro', 'group' => 'Grupo', 'email_sent' => 'Correo enviado. Gracias por contactarnos. Nosotros le responderemos lo antes posible.', 'email_error' => 'Ocurrió un problema al enviar el correo. Es nuestra falta. Por favor, inténtelo más tarde.', 'lang' => 'Lenguaje', 'lang_en' => 'Ingl&eacute;s', 'lang_sp' => 'Español', 'switch_lang' => 'Cambiar a Ingl&eacute;s (Switch to English)', 'events' => 'Eventos', 'event' => 'Evento', 'manage_events' => 'Administrar Eventos', 'search_events' => 'Buscar Eventos', 'new_event' => 'Nuevo Evento', 'event_name' => 'Nombre del Evento', 'event_place' => 'Lugar del Evento', 'event_date' => 'Fecha del Evento', 'event_description' => 'Descripci&oacute;n del Evento', 'create_event' => 'Crear Evento', 'event_added' => 'Evento Agregado.', 'edit_event' => 'Editar Evento', 'event_save' => 'Guardar Evento', 'event_updated' => 'Evento Actualizado.', 'event_deleted' => 'Evento Eliminado.', 'brouwer_about' => '<p>Pintor nace en 1973 en la Habana. Desde temprana edad comienza a inclinarse hacia las artes pl&aacute;sticas. Cursa estudios de pintura y dibujo. Graduado de la Academia de Bellas Artes San Alejandro en el año 2001 y del Instituto Tecnol&oacute;gico Pablo de la Torriente Brau en la especialidad de Artesan&iacute;a. Trabaja profesionalmente desde el año 2001. Ha participado en numerosas exposiciones colectivas y tiene hasta el momento 5 exposiciones individuales, pertenece al Registro del Creador.</p>' . '<p>En el 2001 realiz&oacute; su primera expo individual, &ldquo;Mas all&aacute; de la identidad&rdquo; en la galer&iacute;a del centro de desarrollo de las artes pl&aacute;sticas de Luz y Oficios. En el año 2003 realiza la exposici&oacute;n &ldquo;De lo posible&rdquo; en la Casa Salvador Allende. En 2004 participa en el &ldquo;Evento Jojazz&rdquo; con una exposici&oacute;n de pintura y fotograf&iacute;a en el Lobby del Cine 23 y 12.</p>' . '<p>Su pintura y fotograf&iacute;as son puramente abstractas. Ha participado en m&aacute;s de 20 exposiciones colectivas. Su obra forma parte de colecciones privadas, en Cuba, Canad&aacute;, M&eacute;xico, Jap&oacute;n, y Estados Unidos.</p>', 'jacas_about' => '<p>Pintor y Artesano nace en 1980 en la Habana. Desde temprana edad comienza a inclinarse hacia las artes pl&aacute;sticas ganando concursos de pintura infantil. Cursa estudios elementales de pintura y cer&aacute;mica a los once años. Al terminar la enseñanza secundaria ingresa en el Instituto Tecnol&oacute;gico Pablo de la Torriente Brau en la especialidad de Artesan&iacute;a. En 1999 como parte de sus estudios trabaja en un Taller  de Artesan&iacute;as donde realiza trabajos de bisuter&iacute;a, talla, miniatura y marqueter&iacute;a, siendo esta &uacute;ltima la que escogi&oacute; para su trabajo de Tesis, &ldquo;Geometr&iacute;a para Caja de Tabacos&rdquo; la que qued&oacute; seleccionada entre las tres mejores del año por lo cual se expuso en la Feria internacional (FIART) 1999. Trabaja profesionalmente desde ese año.</p>' . '<p>Ha estado vinculado a Artistas participando en el diseño y desarrollo de obras en diversas t&eacute;cnicas que han sido expuestas en diferentes eventos nacionales e internacionales. Desde 2004 se desempeña de forma independiente. Es miembro de La Asociaci&oacute;n de Artesanos Artistas de Cuba (ACAA) y pertenece al Registro del Creador.</p>' . '<h3>Exposiciones</h3>' . '<ul>' . '  <li>FIART &ndash; 1999</li>' . '  <li>Galer&iacute;a Image &ndash; 2002</li>' . '  <li>Casa Salvador Allende &ndash; 2003</li>' . '  <li>Galer&iacute;a Fama &ndash; 2003</li>' . '  <li>Tercer Sal&oacute;n de Papier Mach&eacute; &ldquo;Antonia Eiriz&rdquo; &ndash; 2004</li>' . '  <li>Expocuba Jornada de la Cultura Africana &ndash; 2005</li>' . '  <li>Cuarto Sal&oacute;n de Papier Mach&eacute; &ldquo;Antonia Eiriz&rdquo; &ndash; 2006</li>' . '  <li>Expo &ldquo;Invitados de la ACAA&rdquo; &ndash; 2006</li>' . '  <li>Galer&iacute;a de la Casa de las FAR &ndash; 2006</li>' . '  <li>Jornada del Medio Ambiente Galer&iacute;a San Miguel del Padr&oacute;n &ndash; 2006</li>' . '  <li>Exposici&oacute;n personal &ldquo;Identidad y Sueños&rdquo; &ndash; 2006</li>' . '  <li>Galer&iacute;a Fernando Boada Mart&iacute;n &ndash; 2008</li>' . '  <li>Quinto Sal&oacute;n de Papier Mache &ldquo;Antonia Eiriz&rdquo; &ndash; 2008</li>' . '  <li>S&eacute;ptimo Sal&oacute;n de Papier Mach&eacute; &ldquo;Amor y Fantas&iacute;a&rdquo; &ndash; 2011</li>' . '  <li>Expo &ldquo;De Cuba mirando a M&eacute;xico&rdquo; &ndash; 2012</li>' . '  <li>Exposici&oacute;n de pintura Enlaces. Hotel Plaza &ndash; 2012</li>' . '</ul>' . '<p>Recibi&oacute; premios en el cuarto sal&oacute;n Nacional de Papier mach&eacute; &ldquo;Antonia Eiriz&rdquo;. Segundo Premio y Premio otorgado por el Centro de Desarrollo de las Artes Visuales y premio colateral por el Proyecto Virgen.</p>' . '<p>Ha realizado donaciones de sus obras artesanales a diferentes instituciones cubanas como la casa taller &ldquo;Antonia Eiriz&rdquo;, La ACLIFIM, Programas de televisi&oacute;n y Centro de Artes para Niños &ldquo;Jos&eacute; de la Luz y Caballero&rdquo;. Don&oacute; Pinturas a la Oficina del Historiador de la Ciudad y para el Consejo de Estado y de Ministros. La t&eacute;nica del Papier Mach&eacute; la emplea para desarrollar Ambientaciones, trabajos de jugueter&iacute;a y cin&eacute;ticos adem&aacute;s de una amplia gama de objetos utilitarios y decorativos. Su pintura es abstracta y de car&aacute;cter gestual.</p>' . '<p>Realiz&oacute; ambientaciones en B&eacute;lgica con el tour operador Montana en la Feria de Turismo del 2007. Diseñ&oacute; conjuntos de columnas y capiteles para la agencia Aventoura Raisen en la Feria de Turismo (ITB) Berl&iacute;n 2008. Diseños y obras suyas se han empleado para decorar espacios de cafeter&iacute;as, Hoteles, Agencias y en otros interiores. Algunas de sus obras se exhiben en colecciones privadas e instituciones de diversos pa&iacute;ses tales como Cuba Finlandia, Dinamarca, Suiza, Alemania, Holanda, B&eacute;lgica, Inglaterra, Italia, España, Estados Unidos, Argentina y M&eacute;xico.</p>', 'faq' => 'FAQ', 'faq_large' => 'Preguntas Frecuentes', 'faq1' => '¿Por qu&eacute; grupo de arte abstracto J&amp;B?', 'faq1_answer' => 'Es porque el arte abstracto nos cautiva y fue lo que dio  sentido a esta uni&oacute;n. Jacas y Brouwer son nuestros apellidos y el nombre bajo el cual est&aacute;n  nuestras obras.', 'faq2' => '¿Qu&eacute; pintores les han influenciado?', 'faq2_answer' => '<strong><a href="' . URL::to_route('home.contact') . '">Jacas</a>: </strong>En mi caso la pintura de los años 50 a la d&eacute;cada del 70. Pintores de la talla de Jackson Pollock de la llamada &ldquo;beat generation&rdquo; generaci&oacute;n quemada. Pintores cubanos como Ra&uacute;l Mart&iacute;nez  con sus etapas Pop y Abstracta, Carlos Garc&iacute;a, Glexys Novoa. For&aacute;neos como Franz Kline,  Gerard Richter, Tapies influyeron a la hora de valorar la concepci&oacute;n y est&eacute;tica de una obra abstracta.<br /><br /><strong><a href="' . URL::to_route('home.contact') . '">Brouwer</a>: </strong>Mis influencias abarcan el periodo de los 50 a los 70 y entre los principales pintores est&aacute;n Guido Llinas,  Cabrera Moreno en su etapa abstracta y m&aacute;s recientemente en los 80 Carlos Garc&iacute;a de la nuez, por la parte for&aacute;nea me siento influenciado por pintores como Gerard Richter, Antoni Tapies, Brice Marden, Callum Innes, Barnett Newman, Cy Twombly, y otros del expresionismo abstracto.', 'faq3' => '¿Tienen obras a la venta?', 'faq3_answer' => 'Usted puede que se interese en alguna de nuestras obras. Para poder informarle e interactuar debe usar <a href="' . URL::to_route('home.contact') . '"> nuestros contactos</a> y emplear Serie  y (#) o T&iacute;tulo de la pintura. Responderemos a su solicitud.', 'faq4' => '¿Qu&eacute; proyectos tienen?', 'faq4_answer' => 'Estamos pintando lienzos de gran formato los cuales incluiremos en un Dossier que desarrollamos y estar&aacute; listo pr&oacute;ximamente. Planeamos la pr&oacute;xima exposici&oacute;n del grupo en la Habana. Contamos con la colaboraci&oacute;n de un pintor canadiense para participar en una muestra colectiva en la ciudad de Toronto 2013.', 'phones' => 'Tel&eacute;fonos', 'first_name' => 'Nombre', 'email_address' => 'Direcci&oacute;n de Correo', 'last_name' => 'Appellidos', 'subject' => 'Sujeto', 'message' => 'Mensaje', 'send' => 'Enviar', 'work' => 'Trabajo', 'painting_about' => 'Acerca de', 'no_paintings' => 'No hay cuadros que mostrar.', 'view_gallery' => 'Ver Galer&iacute;a', 'all' => 'Todos', 'search_results' => 'Resultados de B&uacute;squeda', 'navigation' => 'Navegaci&oacute;n', 'links' => 'Enlaces de Inter&eacute;s', 'mails' => 'Correos', 'group_mails' => HTML::mailto('*****@*****.**', '*****@*****.**') . '<br />' . HTML::mailto('*****@*****.**', '*****@*****.**'), 'who' => 'Quienes Somos', 'social' => 'Encu&eacute;ntranos, con&eacute;ctate y collabora.', 'quote' => '¿Qu&eacute; reemplazar&iacute;a al objeto?<br />Seg&uacute;n Vasily Kandinsky, ten&iacute;a que ser una cosa espiritual.', 'quote_author' => 'Vasily Kandinsky &ndash; <strong>Painter</strong>', 'author' => 'Diseñado y Construido con todo el amor del mundo por ' . HTML::mailto('*****@*****.**', 'Julio C. Villasante') . ' &ndash; Copyright &copy; ' . date('Y'), 'photographer' => 'Luis Mario Gell &ndash; Fot&oacute;grafo', 'note' => 'Mejor visto en Chrome4+, Firefox3.6+, Opera8+, IE9+', 'log_in' => 'Entrar', 'logout' => 'Salir', 'email' => 'Direcci&oacute;n de Correo', 'password' => 'Contraseña', 'new_password' => 'Nueva Contraseña', 'new_password_confirm' => 'Confirmar Nueva Contraseña', 'remember_me' => 'Recordarme', 'forgot_password' => '¿Olvid&oacute; su Contraseña?', 'reset_password' => 'Restaurar su Contraseña', 'reset_confirm_header' => 'Usted est&aacute; restaurando su contraseña.', 'reset_confirm_link' => 'Aseg&uacute;rese de confirmar la restauraci&oacute;n de su contraseña visitando', 'reset_invalid_header' => 'LLave de Confirmaci&oacute;n Inv&aacute;lida', 'reset_invalid_body' => 'Aseg&uacute;rese de confirmar visitando el enlace que le mandamos.', 'dashboard' => 'Panel de Control', 'profile' => 'Perfil', 'manage_users' => 'Administrar Usuarios', 'manage_paintings' => 'Administrar Cuadros', 'manage_slideshow' => 'Administrar Carousel', 'logout' => 'Salir', 'username' => 'Nombre de Usuario', 'full_name' => 'Nombre Completo', 'email_footer' => 'Su direcci&oacute;n de correo es para entrar al sistema y no puede ser cambiada.', 'first_name' => 'Nombre', 'last_name' => 'Apellidos', 'save_profile' => 'Guardar Perfil', 'profile_updated' => 'Usted ha actualizado su perfil', 'new_user' => 'Nuevo Usuario', 'add_painting' => 'Agregar Cuadro', 'painting_name' => 'Nombre del Cuadro', 'painting_dimensions' => 'Dimensiones del Cuadro', 'painting_type' => 'Tipo de Pintura (Tempera sobre Lienzo)', 'painting_painter' => 'Nombre del Pintor', 'painting_year' => 'Año de Creaci&oacute;n (2012)', 'painting_comment' => 'Comentario del Cuadro', 'painting_tags' => 'Etiquetas del Cuadro', 'painting_tags_explanation' => 'Escriba algunas etiquetas en el cuadro de di&aacute;logo, sep&aacute;relas con comma (o tab).', 'edit_painting' => 'Editar Cuadro', 'painting_save' => 'Guardar Cambios', 'select_option' => '&mdash;Seleccione una Opci&oacute;n&mdash;', 'new_painting' => 'Nuevo Cuadro', 'painting' => 'Cuadro', 'change_password' => 'Cambiar Contraseña', 'change_password_header' => 'Cambie su Contraseña', 'current_password' => 'Contraseña Actual', 'new_password' => 'Nueva Contraseña', 'new_password_confirm' => 'Confirme Contraseña', 'new_user' => 'Nuevo Usuario', 'create_user' => 'Crear Usuario', 'img1' => 'Imagen 1', 'img2' => 'Imagen 2', 'img3' => 'Imagen 3', 'img4' => 'Imagen 4', 'img5' => 'Imagen 5', 'img6' => 'Imagen 6', 'select_image' => 'Seleccione Imagen', 'change_image' => 'Cambiar', 'remove_image' => 'Eliminar', 'search' => 'Buscar', 'search_users' => 'Buscar Usuarios', 'search_paintings' => 'Buscar Cuadros', 'remove' => 'Eliminar', 'edit' => 'Editar', 'save' => 'Salvar', 'error_header' => 'Oh Snap! Existen errores en la forma que nos ha enviado.', 'generic_error' => 'Algo sali&oacute; mal. Es nuestra falta. Lo sentimos por las inconveniencias.', 'pass_changed' => 'Usted ha cambiado su contraseña exitosamente.', 'user_added' => 'Usuario Agregado exitosamente.', 'remove_yourself' => 'Usten no puede eliminarse a usted mismo.', 'user_deleted' => 'Usuario Eliminado.', 'painting_added' => 'Cuadro Agregado.', 'painting_updated' => 'Cuadro Actualizado.', 'painting_deleted' => 'Cuadro Eliminado', 'slideshow_added' => 'Cuadro de Carousel Agregado', 'slideshow_deleted' => 'Cuadro de Carousel Eliminado.', 'upload_error' => 'Ocurri&oacute; un error subiendo la im&aacute;gen. Lo sentimos por las inconveniencias.', 'invalid_login' => 'Entrada Inv&aacute;lida', 'resset_error' => 'Ocurri&oacute; un problema restaurando su contraseña. Lo sentimos por las inconveniencias.', 'resset_ok' => 'Usted ha restaurado su contraseña.', '404_message1' => 'Necesitamos un mapa.', '404_message2' => 'Creo que estamos perdidos.', '404_message3' => 'Hemos cogido el camino equivocado.', '404_h2' => 'Error del Servidor: 404 (Recurso no Encontrado)', '404_h3' => '¿Qu&eacute; significa este error?', '404_p1' => 'No podemos encontrar el recurso que usted ha solicitado en nuestros servidores. Realmente sentimos las inconveniencias que esto le pueda ocacionar. Es nuestra falta, no suya. Trabajaremos duro para conseguir este recurso de vuelta lo antes posible.', '404_p2' => 'Quizas usted quisiera ir a nuestra ' . HTML::link('/', 'p&aacute;gina de inicio') . '?');
Пример #20
0
 /**
  * Magic Method to handle creation of redirects to named routes.
  *
  * <code>
  *		// Create a redirect response to the "profile" named route
  *		return Redirect::to_profile();
  *
  *		// Create a redirect response to a named route using HTTPS
  *		return Redirect::to_secure_profile();
  *
  *		// Create a redirect response to a named route with wildcard parameters
  *		return Redirect::to_profile(array($username));
  * </code>
  */
 public static function __callStatic($method, $parameters)
 {
     // Extract the parameters that should be placed in the URL. These parameters
     // are used to fill all of the wildcard slots in the route URI definition.
     // They are passed as the first parameter to this magic method.
     $wildcards = isset($parameters[0]) ? $parameters[0] : array();
     $status = isset($parameters[1]) ? $parameters[1] : 302;
     if (strpos($method, 'to_secure_') === 0) {
         return static::to(URL::to_route(substr($method, 10), $wildcards, true), $status);
     }
     if (strpos($method, 'to_') === 0) {
         return static::to(URL::to_route(substr($method, 3), $wildcards), $status);
     }
     throw new \BadMethodCallException("Method [{$method}] is not defined on the Redirect class.");
 }
Пример #21
0
 public static function render_tag_cloud()
 {
     $tags = Tag::all();
     $maxCount = NULL;
     $minCount = NULL;
     $html = array();
     uksort($tags, function () {
         return rand() > rand();
     });
     foreach ($tags as $tag) {
         $maxCount = $tag->count > $maxCount ? $tag->count : $maxCount;
         $minCount = $tag->count < $minCount || $minCount == NULL ? $tag->count : $minCount;
     }
     foreach ($tags as $tag) {
         if ($tag->count == $maxCount) {
             $class = 'largeTag';
         } else {
             if ($tag->count >= $maxCount / 3) {
                 $class = 'mediumTag';
             } else {
                 $class = 'smallTag';
             }
         }
         $html[] = '<span class="' . $class . '">';
         $html[] = '<a href="' . URL::to_route('tags.show', array('tag' => $tag->name)) . '">' . $tag->name . ' (' . $tag->count . ')' . "</a>";
         $html[] = '</span>';
     }
     return implode("\r\n", $html);
 }
Пример #22
0
    $assets->add('knockout-custom-bindings', 'js/knockout/custom-bindings.js');
    //accountingjs
    $assets->add('accountingjs', 'js/accounting.js');
    //historyjs
    $assets->add('historyjs', 'js/history/native.history.js');
    //and finally the admin js file
    $assets->add('admin', 'js/admin.js');
});
//validate_admin filter
Route::filter('validate_admin', function () {
    //get the admin check closure that should be supplied in the config
    $authCheck = Config::get('administrator::administrator.auth_check');
    if (!$authCheck()) {
        $loginUrl = URL::to(Config::get('administrator::administrator.login_path', 'user/login'));
        $redirectKey = Config::get('administrator::administrator.login_redirect_key', 'redirect');
        $redirectUri = URL::to_route('admin_dashboard');
        return Redirect::to($loginUrl)->with($redirectKey, $redirectUri);
    }
});
//validate_model filter
Route::filter('validate_model', function () {
    $modelName = URI::segment(2);
    $model = ModelHelper::getModelInstance($modelName);
    //if the model doesn't exist at all, redirect to 404
    if (!$model) {
        return Response::error('404');
    }
    //if the model does exist, check if this user has permission to access it
    if (!ModelHelper::checkPermission($modelName)) {
        Redirect::to_route('admin_dashboard');
    }
<?php

return array('script_url' => URL::to_route('upload'), 'upload_dir' => path('public') . 'bundles/jupload/uploads/files/', 'upload_url' => URL::base() . '/bundles/jupload/uploads/files/', 'delete_type' => 'POST', 'image_versions' => array('thumbnail' => array('upload_dir' => path('public') . 'bundles/jupload/uploads/thumbnails/', 'upload_url' => URL::base() . '/bundles/jupload/uploads/thumbnails/')));
Пример #24
0
    ?>
        </td>
        <td>
          <a href="<?php 
    echo $test->url;
    ?>
" target="_blank"><?php 
    echo $test->url;
    ?>
</a>
          <i class="icon-share"></i>
        </td>
        <td>
          <a href="<?php 
    echo URL::to_route('test_detail', array($test->id));
    ?>
"><i class="icon-zoom-in"></i></a>
          <a data-method="DELETE" href="<?php 
    echo URL::to_route('test_delete', array($test->id));
    ?>
"><i class="icon-remove"></i></a>
        </td>
      </tr>
    <?php 
}
?>
  </tbody>
</table>

<?php 
Section::stop();
Пример #25
0
<?php

return array('UploaderClass' => 'Uploader\\FileUploadHandler', 'UploaderArguments' => '1', 'Server' => array('override_name' => function ($name = null) {
    return \Str::random(10);
}, 'script_url' => URL::to_route('upload'), 'upload_dir' => path('public') . 'bundles/juploader/uploads/files/', 'upload_url' => URL::base() . '/bundles/juploader/uploads/files/', 'max_width' => '2000', 'max_height' => '2000', 'image_versions' => array('thumbnail' => array('max_width' => 120, 'max_height' => 120, 'jpeg_quality' => 75, 'fixed_size' => false)), 'user_dirs' => false, 'mkdir_mode' => 0755, 'param_name' => 'files', 'delete_type' => 'POST', 'access_control_allow_origin' => '*', 'access_control_allow_credentials' => false, 'access_control_allow_methods' => array('OPTIONS', 'HEAD', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE'), 'access_control_allow_headers' => array('Content-Type', 'Content-Range', 'Content-Disposition'), 'download_via_php' => false, 'inline_file_types' => '/\\.(gif|jpe?g|png)$/i', 'accept_file_types' => '/\\.(gif|jpe?g|png)$/i', 'max_file_size' => null, 'min_file_size' => 1, 'max_number_of_files' => 100, 'max_width' => null, 'max_height' => null, 'min_width' => 1, 'min_height' => 1, 'discard_aborted_uploads' => true, 'orient_image' => false));
Пример #26
0
 /**
  * Generate an HTML link to a route.
  *
  * An array of parameters may be specified to fill in URI segment wildcards.
  *
  * <code>
  *		// Generate a link to the "profile" named route
  *		echo HTML::link_to_route('profile', 'Profile');
  *
  *		// Generate a link to the "profile" route and add some parameters
  *		echo HTML::link_to_route('profile', 'Profile', array('taylor'));
  * </code>
  *
  * @param  string  $name
  * @param  string  $title
  * @param  array   $parameters
  * @param  array   $attributes
  * @return string
  */
 public static function link_to_route($name, $title = null, $parameters = array(), $attributes = array())
 {
     return static::link(URL::to_route($name, $parameters), $title, $attributes);
 }
Пример #27
0
 /**
  * Test the URL::to_route method.
  *
  * @group laravel
  */
 public function testToRouteMethodGeneratesURLsToRoutes()
 {
     Route::get('url/test', array('as' => 'url-test'));
     Route::get('url/test/(:any)/(:any?)', array('as' => 'url-test-2'));
     Route::get('url/secure/(:any)/(:any?)', array('as' => 'url-test-3', 'https' => true));
     $this->assertEquals('http://localhost/index.php/url/test', URL::to_route('url-test'));
     $this->assertEquals('http://localhost/index.php/url/test/taylor', URL::to_route('url-test-2', array('taylor')));
     $this->assertEquals('https://localhost/index.php/url/secure/taylor', URL::to_route('url-test-3', array('taylor')));
     $this->assertEquals('http://localhost/index.php/url/test/taylor/otwell', URL::to_route('url-test-2', array('taylor', 'otwell')));
 }
Пример #28
0
?>
/",
		asset_url = "<?php 
echo $assetUrl;
?>
",
		save_url = "<?php 
echo URL::to_route('admin_settings_save', array($config->name));
?>
",
		custom_action_url = "<?php 
echo URL::to_route('admin_settings_custom_action', array($config->name));
?>
",
		file_url = "<?php 
echo URL::to_route('admin_settings_display_file', array($config->name));
?>
",
		route = "<?php 
echo $route;
?>
",
		csrf = "<?php 
echo Session::token();
?>
",
		language = "<?php 
echo Config::get('application.language');
?>
",
		adminData = {