This file contains hidden or 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
| import React from 'react'; | |
| import paths from './paths'; | |
| const Face = ({ mood, ...rest }) => ( | |
| <g id="kawaii-face" {...rest}> | |
| <defs> | |
| <path d={paths.defs} id="kawaii-face__path-1" /> | |
| </defs> | |
| <g id="kawaii-face__mouth" transform="translate(18.000000, 16.000000)"> | |
| {(mood === 'blissful' || mood === 'lovestruck') && |
This file contains hidden or 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
| import React from 'react'; | |
| import paths from './paths'; | |
| import Face from '../common/Face'; | |
| import KawaiiElementWrapper from '../common/KawaiiElementWrapper'; | |
| const KawaiiPlanet = props => ( | |
| <KawaiiElementWrapper | |
| style={{ width: props.size, height: props.size }} | |
| showTextOnHover={props.showTextOnHover} | |
| text={props.text} |
This file contains hidden or 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
| import React from 'react'; | |
| import {Planet} from 'react-kawaii'; | |
| import {IceCream} from 'react-kawaii'; | |
| import {Browser} from 'react-kawaii'; | |
| const Example = () => ( | |
| <div> | |
| <IceCream size={200} mood="shocked" color="#FDA7DC" /> | |
| <Planet color="#FD7760" /> | |
| <Browser size={200} mood="blissful" color="#FDA7DC" /> |
This file contains hidden or 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
| import {Page, NavController} from "ionic-angular/index"; | |
| import {MerchantsService, IMerchant} from "../../services/merchants.service"; | |
| import {PeopleService} from "../../services/people.service"; | |
| import {Observable} from "rxjs/Observable"; | |
| import {MerchantPage} from "../merchant/merchant.page"; | |
| import {LoaderComponent} from "../../components/loader/loader.component"; | |
| import {SearchbarInput, Searchbar} from 'ionic-angular'; | |
| import {Component, Input} from "@angular/core"; | |
| @Page({ |
This file contains hidden or 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
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| // Nested map example | |
| $nested-map: ( | |
| key-1: ( | |
| deep-key-1: ( | |
| deeper-key: true | |
| ), |
This file contains hidden or 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
| // ---- | |
| // libsass (v3.2.5) | |
| // ---- | |
| // Nested map example | |
| $nested-map: ( | |
| key-1: ( | |
| deep-key-1: ( | |
| deeper-key: true | |
| ), |
This file contains hidden or 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
| <!-- Enviar email wp--> | |
| <?php | |
| $admin_email = get_settings('admin_email'); | |
| $headers = 'From:'; | |
| $message = "dear $name,\n\n"; | |
| $email_teste = "[email protected]"; | |
| wp_mail( $email_teste, 'Registo', $message, $headers); | |
| ?> | |
| <form action="<?php the_permalink(); ?>" id="contact_form" method="post"> |
This file contains hidden or 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 | |
| $counter = 1; | |
| $max = 1; | |
| // The Loop | |
| while ( have_posts() ) : the_post(); | |
| //queremos apenas um artigo de destaque. Logo limitamos o loop para apenas o último artigo. | |
| if ($counter == $max) { | |
| ?> |
This file contains hidden or 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
| jQuery(function($) { | |
| $.data(document.body, 'ajaxUrl', '<?php echo admin_url('admin-ajax.php'); ?>'); | |
| }); | |
| $(function() { | |
| $('.error').hide(); | |
| $("#reservas .button").click(function() { | |
| var name = $("#name").val(); | |
| if (name == "") { |
This file contains hidden or 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
| //Este o código é para enviar em ajax e os erros do formulário aparecem em labels debaixo de cada input | |
| $(function() { | |
| $('.error').hide(); | |
| $("#reservas .button").click(function() { | |
| var name = $("#name").val(); | |
| if (name == "") { | |
| $("label#name_error").show(); |
NewerOlder