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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
p { | |
text-align: center; | |
font-size: 60px; | |
margin-top: 0px; | |
} |
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
{ | |
"name": "OEGlobal Custom Blocks", | |
"version": "1.1", | |
"download_url": "https://github.com/ocwc/oeg-blocks-acf/archive/refs/heads/main.zip", | |
"homepage": "http://oeglobal.org/", | |
"requires": "4.5", | |
"tested": "5.7", | |
"last_updated": "2021-08-21 21:08:00", | |
"upgrade_notice": "Here's why you should upgrade...", |
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
wp core download | |
wp core config --dbname="dbname" --dbuser="dbuser" --dbpass="dbpass" --extra-php <<PHP | |
/* Pressbooks */ | |
define( 'WP_DEFAULT_THEME', 'pressbooks-book' ); | |
define( 'PB_PRINCE_COMMAND', '/usr/bin/prince' ); | |
define( 'PB_KINDLEGEN_COMMAND', '/opt/kindlegen/kindlegen' ); | |
define( 'PB_EPUBCHECK_COMMAND', '/usr/bin/java -jar /opt/epubcheck-3.0.1/epubcheck-3.0.1.jar' ); | |
define( 'PB_XMLLINT_COMMAND', '/usr/bin/xmllint' ); | |
PHP | |
wp core install --url="http://domain.com" --title="Pressbooks" --admin_user="username" --admin_password="password" --admin_email="[email protected]" |
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 | |
$settings=array( | |
/* (string) Unique identifier for the form. Defaults to 'acf-form' */ | |
'id'=>'acf-form', | |
/* (int|string) The post ID to load data from and save data to. Defaults to the current post ID. | |
Can also be set to 'new_post' to create a new post on submit */ | |
'post_id'=>false, | |
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 | |
/** | |
* Plugin Name: CPT para academia municipal | |
* Author: Mario Badilla PEM | |
* Version: 1.0.0 | |
*/ | |
function cptui_register_my_cpts() { |
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
const theme = { | |
colors: | |
{ | |
'blue-100': '#0d1530', | |
'blue-200': '#1c2b5a', | |
'blue-300': '#1f377a', | |
'blue-400': '#1952b3', | |
'blue-500': '#0d59f2', | |
'blue-600': '#3b80f7', | |
'blue-700': '#6ea5f7', |
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
void main() { | |
List<String> myList = [ | |
'Angela', | |
'James', | |
'Katie', | |
'Jack', | |
]; | |
//print(myList[2]); | |
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
<header class="p-2 md:p-3 lg:p-4 xl:p-5 shadow-md z-10 flex flex-row justify-between items-center"> | |
<img src="img/oeg-mainH-RGB.svg" class="h-10 sm:h-12 md:h-14 lg:h-16" alt="Open Education Global"> | |
<nav> | |
<ul class="list-none flex flex-row justify-around sm:justify-end p-0 m-0 bg-red-200"> | |
<li class="p-4">About OE GLOBAL +</li> | |
<li class="p-4">Activities +</li> | |
</ul> | |
</nav> | |
</header> |
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 | |
/** | |
* Display thumbs generate by Wordpress' service Mshot and write | |
* locally the thumb after generation to have better loading web performance. | |
* | |
* Thx @jd_ma for help :) | |
*/ | |
function show_and_write_thumbnail ($url, $width=200, $height=150) { |
NewerOlder