- view/index.blade.php
{{ Form::open(['url' => '/profile', 'method' => 'get']) }}
{{ Form::text('user', null, ['id'=>'users']) }}
{{ Form::submit('GO') }}
{{ Form::close() }}- routes.php
Route::get('/', 'SearchController@index');| <?php | |
| add_action('admin_init', function () { | |
| // register a new setting for "wporg" page | |
| register_setting('wporg', 'wporg_options'); | |
| // register a new section in the "wporg" page | |
| add_settings_section( | |
| 'wporg_section_developers', | |
| __('The Matrix has you.', 'wporg'), |
| <script> | |
| // 1. Habilitar clic derecho | |
| (function (d) { | |
| d.oncontextmenu = function () { | |
| return true; | |
| }; | |
| d.addEventListener("click", function () { | |
| console.log("El clic derecho regresó..."); | |
| }); | |
| })(document); |
| var defaults = { | |
| number: 1, | |
| bool: true, | |
| magic: 'real', | |
| animal: 'whale', | |
| croutons: 'delicious' | |
| }; | |
| var options = { | |
| number: 2, |
| <?php | |
| /** | |
| * [list_searcheable_acf list all the custom fields we want to include in our search query] | |
| * @return [array] [list of custom fields] | |
| */ | |
| function list_searcheable_acf(){ | |
| $list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
| return $list_searcheable_acf; | |
| } |
| <?php | |
| function cwc_viewpdf($attr, $url) { | |
| return '<iframe src="http://docs.google.com/viewer?url=' . $url . '&embedded=true" style="width:' .$attr['width']. '; height:' .$attr['height']. ';" frameborder="0">Your browser should support iFrame to view this PDF document</iframe>'; | |
| } | |
| add_shortcode('embedpdf', 'cwc_viewpdf'); |
| <?php | |
| // ADDING CUSTOM POST TYPE | |
| add_action('init', 'all_custom_post_types'); | |
| function all_custom_post_types() { | |
| $types = array( | |
| // News and Events |
| <?php | |
| /* | |
| Plugin Name: WPTutsPlus Post-listing shortcode | |
| Plugin URI: http://rachelmccollin.co.uk | |
| Description: This plugin provides a shortcode to list posts, with parameters. It also registers a couple of post types and tacxonomies to work with. | |
| Version: 1.0 | |
| Author: Rachel McCollin | |
| Author URI: http://rachelmccollin.co.uk | |
| License: GPLv2 | |
| */ |
| <?php | |
| define('MY_POST_TYPE', 'my'); | |
| define('MY_POST_SLUG', 'gallery'); | |
| function my_register_post_type () { | |
| $args = array ( | |
| 'label' => 'Gallery', | |
| 'supports' => array( 'title', 'excerpt' ), | |
| 'register_meta_box_cb' => 'my_meta_box_cb', |
{{ Form::open(['url' => '/profile', 'method' => 'get']) }}
{{ Form::text('user', null, ['id'=>'users']) }}
{{ Form::submit('GO') }}
{{ Form::close() }}Route::get('/', 'SearchController@index');| /******************************************************************************* | |
| 1. DEPENDENCIES | |
| *******************************************************************************/ | |
| var gulp = require('gulp'); // gulp core | |
| sass = require('gulp-sass'), // sass compiler | |
| uglify = require('gulp-uglify'), // uglifies the js | |
| jshint = require('gulp-jshint'), // check if js is ok | |
| rename = require("gulp-rename"); // rename files | |
| concat = require('gulp-concat'), // concatinate js |