Skip to content

Instantly share code, notes, and snippets.

@veerkun
veerkun / meta-tags.md
Created January 15, 2021 09:56 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@veerkun
veerkun / appsScript_ListFilesFolders_ver.2.js
Created June 10, 2020 08:20 — forked from mesgarpour/appsScript_ListFilesFolders_ver.2.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/*
* Copyright 2017 Mohsen Mesgarpour
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<?php
// Checkbox Multiple Options
$options = array(
'label' => 'Label',
'field_type' => 'checkbox_multiple',
'attributes' => [
'name' => 'animal[]',
'class' => '',
],
'checked' => ['dog', 'bear'], // array selected
<?php
// Checkbox Multiple Options Fields
$field[] = array(
'label' => 'Label',
'field_type' => 'checkbox_multiple',
'attributes' => [
'name' => 'animal[]',
'class' => '',
],
'checked' => ['dog', 'bear'], // array selected
<?php
$options = array(
'has_form' => false, // true | false show or hide wrap by form
'form_attributes' => [], // form attributes array
'wrap_id' => '', // wrap div ID
'wrap_class' => '', // Wrap div class, default form-horizontal form-stripe
'html_before' => '', // html before render field (after wrap div)
'html_after' => '', // html after render field (before close wrap div)
'template_field' => '', // use tag {{html_label}} {{html_field}}
'template_label' => '' // use tag {{id}} {{label}}
TEMPLATE TAGS
+ Template Field template_field
{{html_label}} {{html_field}}
+Template Label template_label
{{id}} {{label}}
Default Template Field
<div class="form-group">
<?php
$options = array (
'has_form' => true,
'form_attributes' => ['method'=>'POST', 'id'=> 'form-id'],
'wrap_id' => '',
'wrap_class' => 'form-stripe',
'html_before' => '',
'html_after' => '',
'template_field' => '<div class="form-group">{{html_label}}{{html_field}}</div>',
'template_label' => ''
<?php
$options = array (
'has_form' => true,
'form_attributes' => ['method'=>'POST', 'id'=> 'form-id'],
'wrap_id' => '',
'wrap_class' => 'form-horizontal form-stripe',
'html_before' => '<div class="table-responsive"><table class="table table-striped table-bordered vk_table_vertical_middle"><tbody>',
'html_after' => '</tbody></table></div>',
'template_field' => '<tr><td>{{html_label}}</td><td>{{html_field}}</td></tr>',
'template_label' => ''
<?php
$options = array (
'has_form' => true, // show open vs close <form></form
'form_attributes' => ['method'=>'POST', 'id'=> 'form-id'], // array attribute name => value
'wrap_id' => '',
'wrap_class' => 'form-horizontal form-stripe', // Default form-horizontal form-stripe
'template_field' => '',
'template_label' => ''
);
<?php
// html Fields
$field[] = array(
'label' => 'Label',
'field_type' => 'html',
'content' => 'Submit'
);
?>