Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pattyok committed Oct 25, 2022
0 parents commit df0e72a
Show file tree
Hide file tree
Showing 19 changed files with 28,715 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of `npm pack`
*.tgz

# Output of `wp-scripts plugin-zip`
*.zip

# dotenv environment variables file
.env
114 changes: 114 additions & 0 deletions acf-json/group_603533d8eb114.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"key": "group_603533d8eb114",
"title": "Custom Links",
"fields": [
{
"key": "field_60353f306a6a8",
"label": "",
"name": "",
"type": "message",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"message": "Add ONE PDF, page link (internal link) or external link.",
"new_lines": "wpautop",
"esc_html": 0
},
{
"key": "field_60353f176a6a7",
"label": "External Link",
"name": "cl_external_link",
"type": "url",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": ""
},
{
"key": "field_603533e197488",
"label": "PDF Link",
"name": "cl_pdf_link",
"type": "file",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "url",
"library": "all",
"min_size": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_603534275ed32",
"label": "Page Link",
"name": "cl_page_link",
"type": "page_link",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": "",
"taxonomy": "",
"allow_null": 0,
"allow_archives": 1,
"multiple": 0
},
{
"key": "field_6035341553205",
"label": "Notes",
"name": "cl_notes",
"type": "text",
"instructions": "Optional - add notes that will display in the link lists",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "custom_link"
}
]
],
"menu_order": 0,
"position": "acf_after_title",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"modified": 1614211699
}
65 changes: 65 additions & 0 deletions build/custom-links/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "carkeek-blocks/custom-link-list",
"version": "0.1.0",
"title": "Custom Link List",
"category": "widgets",
"icon": "smiley",
"description": "Example block scaffolded with Create Block tool.",
"supports": {
"html": false,
"anchor": true
},
"keywords": [
"link",
"list",
"accordion"
],
"textdomain": "carkeek-blocks",
"editorScript": "file:./index.js",
"style": "file:./style-index.css",
"attributes": {
"sortBy": {
"type": "string",
"default": "title"
},
"order": {
"type": "string",
"default": "ASC"
},
"groupByChild": {
"type": "boolean",
"default": true
},
"makeCollapsible": {
"type": "boolean",
"default": true
},
"makeTitlesCollapsible": {
"type": "boolean",
"default": false
},
"listSelected": {
"type": "string"
},
"hideIfEmpty": {
"type": "boolean",
"default": true
},
"emptyMessage": {
"type": "string"
},
"headline": {
"type": "string"
},
"headlineLevel": {
"type": "number",
"default": 2
},
"primaryContent": {
"type": "string",
"default": "links"
}
}
}
1 change: 1 addition & 0 deletions build/custom-links/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'f08c1cb2fc39ace359c9');
1 change: 1 addition & 0 deletions build/custom-links/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/custom-links/style-index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.wp-block-create-block-example-dynamic{background-color:#21759b;color:#fff;padding:2px}
Loading

0 comments on commit df0e72a

Please sign in to comment.