diff --git a/css/admin.css b/css/admin.css new file mode 100644 index 0000000..b1597ca --- /dev/null +++ b/css/admin.css @@ -0,0 +1,72 @@ +i.d12mb-nutshell { + background-image: url(../icons/acorn.png); + margin: 2px 6px 0 0; +} +i.d12mb-update { + background-image: url(../icons/update.png); + margin: 2px 6px 0 0; +} +i.d12mb-attach { + background-image: url(../icons/attach.png); + margin: 2px 6px 0 0; +} +i.d12mb-delete { + background-image: url(../icons/delete.png); + margin: 2px 6px 0 0; +} +i.d12mb-part { + background-image: url(../icons/cog.png); + margin: 2px 6px 0 0; +} +i.d12mb-mentions { + background-image: url(../icons/mentions.png); + margin: 2px 6px 0 0; +} +i.d12mb-warning { + background-image: url(../icons/warning.png); + margin: 2px 6px 0 0; +} +i.d12mb-important { + background-image: url(../icons/important.png); + margin: 2px 6px 0 0; +} +i.d12mb-notice { + background-image: url(../icons/notice.png); + margin: 2px 6px 0 0; +} +i.d12mb-error { + background-image: url(../icons/error.png); + margin: 2px 6px 0 0; +} +i.d12mb-caution { + background-image: url(../icons/caution.png); + margin: 2px 6px 0 0; +} +i.d12mb-archive { + background-image: url(../icons/archive.png); + margin: 2px 6px 0 0; +} +i.d12mb-support { + background-image: url(../icons/support.png); + margin: 2px 6px 0 0; +} +i.d12mb-contact { + background-image: url(../icons/contact.png); + margin: 2px 6px 0 0; +} +i.d12mb-global { + background-image: url(../icons/global.png); + margin: 2px 6px 0 0; +} +i.d12mb-green { + background-image: url(../icons/green.png); + margin: 2px 6px 0 0; +} +i.d12mb-accept { + background-image: url(../icons/okay.png); + margin: 2px 6px 0 0; +} +i.d12mb-stats { + background-image: url(../icons/statistics.png); + margin: 2px 6px 0 0; +} diff --git a/css/bs-mw-thick-thick.css b/css/bs-mw-thick-thick.css new file mode 100644 index 0000000..062d45d --- /dev/null +++ b/css/bs-mw-thick-thick.css @@ -0,0 +1,18 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 2px #000; + border-radius: 0px; + border-left-width: 8px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-mw-thick-thin.css b/css/bs-mw-thick-thin.css new file mode 100644 index 0000000..2cea036 --- /dev/null +++ b/css/bs-mw-thick-thin.css @@ -0,0 +1,18 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 1px #000; + border-radius: 0px; + border-left-width: 8px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-mw-thin-thick.css b/css/bs-mw-thin-thick.css new file mode 100644 index 0000000..aff4a44 --- /dev/null +++ b/css/bs-mw-thin-thick.css @@ -0,0 +1,18 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 2px #000; + border-radius: 0px; + border-left-width: 4px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-mw-thin-thin.css b/css/bs-mw-thin-thin.css new file mode 100644 index 0000000..d381ca7 --- /dev/null +++ b/css/bs-mw-thin-thin.css @@ -0,0 +1,18 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 1px #000; + border-radius: 0px; + border-left-width: 4px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-round-double.css b/css/bs-round-double.css new file mode 100644 index 0000000..b7b505c --- /dev/null +++ b/css/bs-round-double.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: double 3px #000; + border-radius: 4px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-round-single-thick.css b/css/bs-round-single-thick.css new file mode 100644 index 0000000..ad35b74 --- /dev/null +++ b/css/bs-round-single-thick.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 2px #000; + border-radius: 4px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-round-single-thin.css b/css/bs-round-single-thin.css new file mode 100644 index 0000000..bff3f60 --- /dev/null +++ b/css/bs-round-single-thin.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 1px #000; + border-radius: 4px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-square-double.css b/css/bs-square-double.css new file mode 100644 index 0000000..69f59e6 --- /dev/null +++ b/css/bs-square-double.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: double 3px #000; + border-radius: 0px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-square-single-thick.css b/css/bs-square-single-thick.css new file mode 100644 index 0000000..e86f2e5 --- /dev/null +++ b/css/bs-square-single-thick.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 2px #000; + border-radius: 0px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/bs-square-single-thin.css b/css/bs-square-single-thin.css new file mode 100644 index 0000000..4c1aab7 --- /dev/null +++ b/css/bs-square-single-thin.css @@ -0,0 +1,17 @@ +.d12-block { + margin: 10px auto; + width: 85%; + border: solid 1px #000; + border-radius: 0px; + padding: 10px 10px 10px 54px; + } +.d12-block p:first-child { + margin-top: 0px; + border-bottom: solid 1px #000; + padding-bottom: 5px; + margin-bottom: 5px; + font-size: 1.2em; + } +.d12-block ul { + margin-left: 14px !important; + } diff --git a/css/cs-aqua.css b/css/cs-aqua.css new file mode 100644 index 0000000..7a47ded --- /dev/null +++ b/css/cs-aqua.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #3399FF; + background: #F3F9FF url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Updates */ +.d12-update { + border-color: #3399FF; + background: #F3F9FF url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #3399FF; + border-color: #F3F9FF; + } + +/* Attachments */ +.d12-attach { + border-color: #3399FF; + background: #F3F9FF url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Deletion */ +.d12-delete { + border-color: #3399FF; + background: #F3F9FF url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Part of a Series */ +.d12-part { + border-color: #3399FF; + background: #F3F9FF url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Mentions */ +.d12-mention { + border-color: #3399FF; + background: #F3F9FF url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Warning */ +.d12-warning { + border-color: #3399FF; + background: #F3F9FF url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Important */ +.d12-important { + border-color: #3399FF; + background: #F3F9FF url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Notice */ +.d12-notice { + border-color: #3399FF; + background: #F3F9FF url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Error */ +.d12-error { + border-color: #3399FF; + background: #F3F9FF url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Caution */ +.d12-caution { + border-color: #3399FF; + background: #F3F9FF url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Archive */ +.d12-archive { + border-color: #3399FF; + background: #F3F9FF url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Support */ +.d12-support { + border-color: #3399FF; + background: #F3F9FF url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Contact */ +.d12-contact { + border-color: #3399FF; + background: #F3F9FF url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Global */ +.d12-global { + border-color: #3399FF; + background: #F3F9FF url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Green */ +.d12-green { + border-color: #3399FF; + background: #F3F9FF url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Accept */ +.d12-accept { + border-color: #3399FF; + background: #F3F9FF url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #3399FF; + border-color: #3399FF; + } + +/* Stats */ +.d12-stats { + border-color: #3399FF; + background: #F3F9FF url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #3399FF; + border-color: #3399FF; + } diff --git a/css/cs-bark.css b/css/cs-bark.css new file mode 100644 index 0000000..e4f6ba9 --- /dev/null +++ b/css/cs-bark.css @@ -0,0 +1,188 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + color: #fff; + } + +/* Nutshell */ +.d12-nutshell { + border-color: #E5DDD4; + background: #704214 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Updates */ +.d12-update { + border-color: #E5DDD4; + background: #704214 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #E5DDD4; + border-color: #704214; + } + +/* Attachments */ +.d12-attach { + border-color: #E5DDD4; + background: #704214 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Deletion */ +.d12-delete { + border-color: #E5DDD4; + background: #704214 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Part of a Series */ +.d12-part { + border-color: #E5DDD4; + background: #704214 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Mentions */ +.d12-mention { + border-color: #E5DDD4; + background: #704214 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Warning */ +.d12-warning { + border-color: #E5DDD4; + background: #704214 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Important */ +.d12-important { + border-color: #E5DDD4; + background: #704214 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Notice */ +.d12-notice { + border-color: #E5DDD4; + background: #704214 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Error */ +.d12-error { + border-color: #E5DDD4; + background: #704214 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Caution */ +.d12-caution { + border-color: #E5DDD4; + background: #704214 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Archive */ +.d12-archive { + border-color: #E5DDD4; + background: #704214 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Support */ +.d12-support { + border-color: #E5DDD4; + background: #704214 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Contact */ +.d12-contact { + border-color: #E5DDD4; + background: #704214 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Global */ +.d12-global { + border-color: #E5DDD4; + background: #704214 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Green */ +.d12-green { + border-color: #E5DDD4; + background: #704214 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Accept */ +.d12-accept { + border-color: #E5DDD4; + background: #704214 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } + +/* Stats */ +.d12-stats { + border-color: #E5DDD4; + background: #704214 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #E5DDD4; + border-color: #E5DDD4; + } diff --git a/css/cs-beach.css b/css/cs-beach.css new file mode 100644 index 0000000..c69ad3f --- /dev/null +++ b/css/cs-beach.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #8A643F; + background: #FBF5DD url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Updates */ +.d12-update { + border-color: #8A643F; + background: #FBF5DD url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #8A643F; + border-color: #FBF5DD; + } + +/* Attachments */ +.d12-attach { + border-color: #8A643F; + background: #FBF5DD url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Deletion */ +.d12-delete { + border-color: #8A643F; + background: #FBF5DD url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Part of a Series */ +.d12-part { + border-color: #8A643F; + background: #FBF5DD url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Mentions */ +.d12-mention { + border-color: #8A643F; + background: #FBF5DD url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Warning */ +.d12-warning { + border-color: #8A643F; + background: #FBF5DD url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Important */ +.d12-important { + border-color: #8A643F; + background: #FBF5DD url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Notice */ +.d12-notice { + border-color: #8A643F; + background: #FBF5DD url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Error */ +.d12-error { + border-color: #8A643F; + background: #FBF5DD url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Caution */ +.d12-caution { + border-color: #8A643F; + background: #FBF5DD url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Archive */ +.d12-archive { + border-color: #8A643F; + background: #FBF5DD url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Support */ +.d12-support { + border-color: #8A643F; + background: #FBF5DD url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Contact */ +.d12-contact { + border-color: #8A643F; + background: #FBF5DD url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Global */ +.d12-global { + border-color: #8A643F; + background: #FBF5DD url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Green */ +.d12-green { + border-color: #8A643F; + background: #FBF5DD url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Accept */ +.d12-accept { + border-color: #8A643F; + background: #FBF5DD url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #8A643F; + border-color: #8A643F; + } + +/* Stats */ +.d12-stats { + border-color: #8A643F; + background: #FBF5DD url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #8A643F; + border-color: #8A643F; + } diff --git a/css/cs-business.css b/css/cs-business.css new file mode 100644 index 0000000..4501ed5 --- /dev/null +++ b/css/cs-business.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #404777; + background: #F6F7F8 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #404777; + border-color: #404777; + } + +/* Updates */ +.d12-update { + border-color: #404777; + background: #F6F7F8 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #404777; + border-color: #F6F7F8; + } + +/* Attachments */ +.d12-attach { + border-color: #404777; + background: #F6F7F8 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #404777; + border-color: #404777; + } + +/* Deletion */ +.d12-delete { + border-color: #404777; + background: #F6F7F8 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #404777; + border-color: #404777; + } + +/* Part of a Series */ +.d12-part { + border-color: #404777; + background: #F6F7F8 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #404777; + border-color: #404777; + } + +/* Mentions */ +.d12-mention { + border-color: #404777; + background: #F6F7F8 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #404777; + border-color: #404777; + } + +/* Warning */ +.d12-warning { + border-color: #404777; + background: #F6F7F8 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #404777; + border-color: #404777; + } + +/* Important */ +.d12-important { + border-color: #404777; + background: #F6F7F8 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #404777; + border-color: #404777; + } + +/* Notice */ +.d12-notice { + border-color: #404777; + background: #F6F7F8 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #404777; + border-color: #404777; + } + +/* Error */ +.d12-error { + border-color: #404777; + background: #F6F7F8 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #404777; + border-color: #404777; + } + +/* Caution */ +.d12-caution { + border-color: #404777; + background: #F6F7F8 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #404777; + border-color: #404777; + } + +/* Archive */ +.d12-archive { + border-color: #404777; + background: #F6F7F8 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #404777; + border-color: #404777; + } + +/* Support */ +.d12-support { + border-color: #404777; + background: #F6F7F8 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #404777; + border-color: #404777; + } + +/* Contact */ +.d12-contact { + border-color: #404777; + background: #F6F7F8 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #404777; + border-color: #404777; + } + +/* Global */ +.d12-global { + border-color: #404777; + background: #F6F7F8 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #404777; + border-color: #404777; + } + +/* Green */ +.d12-green { + border-color: #404777; + background: #F6F7F8 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #404777; + border-color: #404777; + } + +/* Accept */ +.d12-accept { + border-color: #404777; + background: #F6F7F8 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #404777; + border-color: #404777; + } + +/* Stats */ +.d12-stats { + border-color: #404777; + background: #F6F7F8 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #404777; + border-color: #404777; + } diff --git a/css/cs-bw.css b/css/cs-bw.css new file mode 100644 index 0000000..11a400c --- /dev/null +++ b/css/cs-bw.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #444; + background: #fff url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #444; + border-color: #444; + } + +/* Updates */ +.d12-update { + border-color: #444; + background: #fff url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #444; + border-color: #fff; + } + +/* Attachments */ +.d12-attach { + border-color: #444; + background: #fff url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #444; + border-color: #444; + } + +/* Deletion */ +.d12-delete { + border-color: #444; + background: #fff url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #444; + border-color: #444; + } + +/* Part of a Series */ +.d12-part { + border-color: #444; + background: #fff url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #444; + border-color: #444; + } + +/* Mentions */ +.d12-mention { + border-color: #444; + background: #fff url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #444; + border-color: #444; + } + +/* Warning */ +.d12-warning { + border-color: #444; + background: #fff url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #444; + border-color: #444; + } + +/* Important */ +.d12-important { + border-color: #444; + background: #fff url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #444; + border-color: #444; + } + +/* Notice */ +.d12-notice { + border-color: #444; + background: #fff url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #444; + border-color: #444; + } + +/* Error */ +.d12-error { + border-color: #444; + background: #fff url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #444; + border-color: #444; + } + +/* Caution */ +.d12-caution { + border-color: #444; + background: #fff url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #444; + border-color: #444; + } + +/* Archive */ +.d12-archive { + border-color: #444; + background: #fff url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #444; + border-color: #444; + } + +/* Support */ +.d12-support { + border-color: #444; + background: #fff url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #444; + border-color: #444; + } + +/* Contact */ +.d12-contact { + border-color: #444; + background: #fff url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #444; + border-color: #444; + } + +/* Global */ +.d12-global { + border-color: #444; + background: #fff url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #444; + border-color: #444; + } + +/* Green */ +.d12-green { + border-color: #444; + background: #fff url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #444; + border-color: #444; + } + +/* Accept */ +.d12-accept { + border-color: #444; + background: #fff url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #444; + border-color: #444; + } + +/* Stats */ +.d12-stats { + border-color: #444; + background: #fff url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #444; + border-color: #444; + } diff --git a/css/cs-default.css b/css/cs-default.css new file mode 100644 index 0000000..12e092c --- /dev/null +++ b/css/cs-default.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #8C4815; + background: #FFEFCF url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #8c4815; + border-color: #8C4815; + } + +/* Updates */ +.d12-update { + border-color: #4282B6; + background: #EFF6FA url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #4282B6; + border-color: #4282B6; + } + +/* Attachments */ +.d12-attach { + border-color: #404777; + background: #F6F7F8 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #404777; + border-color: #404777; + } + +/* Deletion */ +.d12-delete { + border-color: #A60B05; + background: #FCEDEB url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #A60B05; + border-color: #A60B05; + } + +/* Part of a Series */ +.d12-part { + border-color: #333; + background: #eee url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #333; + border-color: #333; + } + +/* Mentions */ +.d12-mention { + border-color: #0B5DA1; + background: #FFF5DB url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #0B5DA1; + border-color: #0B5DA1; + } + +/* Warning */ +.d12-warning { + border-color: #D56D01; + background: #fafafa url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #D56D01; + border-color: #D56D01; + } + +/* Important */ +.d12-important { + border-color: #BF3829; + background: #FFF7F7 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #BF3829; + border-color: #BF3829; + } + +/* Notice */ +.d12-notice { + border-color: #D56D01; + background: #fafafa url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #D56D01; + border-color: #D56D01; + } + +/* Error */ +.d12-error { + border-color: #C13A29; + background: #FFF5F5 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #C13A29; + border-color: #C13A29; + } + +/* Caution */ +.d12-caution { + border-color: #D56D01; + background: #fafafa url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #D56D01; + border-color: #D56D01; + } + +/* Archive */ +.d12-archive { + border-color: #0B5DA1; + background: #eee url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #0B5DA1; + border-color: #0B5DA1; + } + +/* Support */ +.d12-support { + border-color: #CD0000; + background: #fff url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #CD0000; + border-color: #CD0000; + } + +/* Contact */ +.d12-contact { + border-color: #630; + background: #fff url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #630; + border-color: #630; + } + +/* Global */ +.d12-global { + border-color: #074; + background: #fff url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #074; + border-color: #074; + } + +/* Green */ +.d12-green { + border-color: #427D00; + background: #fff url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #427D00; + border-color: #427D00; + } + +/* Accept */ +.d12-accept { + border-color: #99C700; + background: #fff url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #427D00; + border-color: #99C700; + } + +/* Stats */ +.d12-stats { + border-color: #376EA3; + background: #fff url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #376EA3; + border-color: #376EA3; + } diff --git a/css/cs-forest.css b/css/cs-forest.css new file mode 100644 index 0000000..ec31414 --- /dev/null +++ b/css/cs-forest.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #5D3800; + background: #EEF2EA url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #336600; + border-color: #336600; + } + +/* Updates */ +.d12-update { + border-color: #5D3800; + background: #EEF2EA url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #336600; + border-color: #336600; + } + +/* Attachments */ +.d12-attach { + border-color: #5D3800; + background: #EEF2EA url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #336600; + border-color: #336600; + } + +/* Deletion */ +.d12-delete { + border-color: #5D3800; + background: #EEF2EA url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #336600; + border-color: #336600; + } + +/* Part of a Series */ +.d12-part { + border-color: #5D3800; + background: #EEF2EA url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #336600; + border-color: #336600; + } + +/* Mentions */ +.d12-mention { + border-color: #5D3800; + background: #EEF2EA url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #336600; + border-color: #336600; + } + +/* Warning */ +.d12-warning { + border-color: #5D3800; + background: #EEF2EA url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #336600; + border-color: #336600; + } + +/* Important */ +.d12-important { + border-color: #5D3800; + background: #EEF2EA url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #336600; + border-color: #336600; + } + +/* Notice */ +.d12-notice { + border-color: #5D3800; + background: #EEF2EA url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #336600; + border-color: #336600; + } + +/* Error */ +.d12-error { + border-color: #5D3800; + background: #EEF2EA url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #336600; + border-color: #336600; + } + +/* Caution */ +.d12-caution { + border-color: #5D3800; + background: #EEF2EA url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #336600; + border-color: #336600; + } + +/* Archive */ +.d12-archive { + border-color: #5D3800; + background: #EEF2EA url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #336600; + border-color: #336600; + } + +/* Support */ +.d12-support { + border-color: #5D3800; + background: #EEF2EA url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #336600; + border-color: #336600; + } + +/* Contact */ +.d12-contact { + border-color: #5D3800; + background: #EEF2EA url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #336600; + border-color: #336600; + } + +/* Global */ +.d12-global { + border-color: #5D3800; + background: #EEF2EA url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #336600; + border-color: #336600; + } + +/* Green */ +.d12-green { + border-color: #5D3800; + background: #EEF2EA url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #336600; + border-color: #336600; + } + +/* Accept */ +.d12-accept { + border-color: #5D3800; + background: #EEF2EA url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #336600; + border-color: #336600; + } + +/* Stats */ +.d12-stats { + border-color: #5D3800; + background: #EEF2EA url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #336600; + border-color: #336600; + } diff --git a/css/cs-leaves.css b/css/cs-leaves.css new file mode 100644 index 0000000..ec4d32c --- /dev/null +++ b/css/cs-leaves.css @@ -0,0 +1,188 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + color: #fff; + } + +/* Nutshell */ +.d12-nutshell { + border-color: #D1E3D1; + background: #006600 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Updates */ +.d12-update { + border-color: #D1E3D1; + background: #006600 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #D1E3D1; + border-color: #006600; + } + +/* Attachments */ +.d12-attach { + border-color: #D1E3D1; + background: #006600 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Deletion */ +.d12-delete { + border-color: #D1E3D1; + background: #006600 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Part of a Series */ +.d12-part { + border-color: #D1E3D1; + background: #006600 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Mentions */ +.d12-mention { + border-color: #D1E3D1; + background: #006600 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Warning */ +.d12-warning { + border-color: #D1E3D1; + background: #006600 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Important */ +.d12-important { + border-color: #D1E3D1; + background: #006600 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Notice */ +.d12-notice { + border-color: #D1E3D1; + background: #006600 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Error */ +.d12-error { + border-color: #D1E3D1; + background: #006600 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Caution */ +.d12-caution { + border-color: #D1E3D1; + background: #006600 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Archive */ +.d12-archive { + border-color: #D1E3D1; + background: #006600 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Support */ +.d12-support { + border-color: #D1E3D1; + background: #006600 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Contact */ +.d12-contact { + border-color: #D1E3D1; + background: #006600 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Global */ +.d12-global { + border-color: #D1E3D1; + background: #006600 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Green */ +.d12-green { + border-color: #D1E3D1; + background: #006600 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Accept */ +.d12-accept { + border-color: #D1E3D1; + background: #006600 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } + +/* Stats */ +.d12-stats { + border-color: #D1E3D1; + background: #006600 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #D1E3D1; + border-color: #D1E3D1; + } diff --git a/css/cs-magique.css b/css/cs-magique.css new file mode 100644 index 0000000..8c06006 --- /dev/null +++ b/css/cs-magique.css @@ -0,0 +1,188 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + color: #fff; + } + +/* Nutshell */ +.d12-nutshell { + border-color: #DCB9FF; + background: #5100A2 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Updates */ +.d12-update { + border-color: #DCB9FF; + background: #5100A2 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #DCB9FF; + border-color: #5100A2; + } + +/* Attachments */ +.d12-attach { + border-color: #DCB9FF; + background: #5100A2 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Deletion */ +.d12-delete { + border-color: #DCB9FF; + background: #5100A2 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Part of a Series */ +.d12-part { + border-color: #DCB9FF; + background: #5100A2 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Mentions */ +.d12-mention { + border-color: #DCB9FF; + background: #5100A2 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Warning */ +.d12-warning { + border-color: #DCB9FF; + background: #5100A2 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Important */ +.d12-important { + border-color: #DCB9FF; + background: #5100A2 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Notice */ +.d12-notice { + border-color: #DCB9FF; + background: #5100A2 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Error */ +.d12-error { + border-color: #DCB9FF; + background: #5100A2 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Caution */ +.d12-caution { + border-color: #DCB9FF; + background: #5100A2 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Archive */ +.d12-archive { + border-color: #DCB9FF; + background: #5100A2 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Support */ +.d12-support { + border-color: #DCB9FF; + background: #5100A2 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Contact */ +.d12-contact { + border-color: #DCB9FF; + background: #5100A2 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Global */ +.d12-global { + border-color: #DCB9FF; + background: #5100A2 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Green */ +.d12-green { + border-color: #DCB9FF; + background: #5100A2 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Accept */ +.d12-accept { + border-color: #DCB9FF; + background: #5100A2 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } + +/* Stats */ +.d12-stats { + border-color: #DCB9FF; + background: #5100A2 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #DCB9FF; + border-color: #DCB9FF; + } diff --git a/css/cs-sol.css b/css/cs-sol.css new file mode 100644 index 0000000..81d03d2 --- /dev/null +++ b/css/cs-sol.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #FFCC00; + background: #FFFFEE url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Updates */ +.d12-update { + border-color: #FFCC00; + background: #FFFFEE url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #FFCC00; + border-color: #FFFFEE; + } + +/* Attachments */ +.d12-attach { + border-color: #FFCC00; + background: #FFFFEE url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Deletion */ +.d12-delete { + border-color: #FFCC00; + background: #FFFFEE url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Part of a Series */ +.d12-part { + border-color: #FFCC00; + background: #FFFFEE url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Mentions */ +.d12-mention { + border-color: #FFCC00; + background: #FFFFEE url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Warning */ +.d12-warning { + border-color: #FFCC00; + background: #FFFFEE url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Important */ +.d12-important { + border-color: #FFCC00; + background: #FFFFEE url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Notice */ +.d12-notice { + border-color: #FFCC00; + background: #FFFFEE url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Error */ +.d12-error { + border-color: #FFCC00; + background: #FFFFEE url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Caution */ +.d12-caution { + border-color: #FFCC00; + background: #FFFFEE url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Archive */ +.d12-archive { + border-color: #FFCC00; + background: #FFFFEE url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Support */ +.d12-support { + border-color: #FFCC00; + background: #FFFFEE url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Contact */ +.d12-contact { + border-color: #FFCC00; + background: #FFFFEE url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Global */ +.d12-global { + border-color: #FFCC00; + background: #FFFFEE url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Green */ +.d12-green { + border-color: #FFCC00; + background: #FFFFEE url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Accept */ +.d12-accept { + border-color: #FFCC00; + background: #FFFFEE url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } + +/* Stats */ +.d12-stats { + border-color: #FFCC00; + background: #FFFFEE url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #FFCC00; + border-color: #FFCC00; + } diff --git a/css/cs-solstice.css b/css/cs-solstice.css new file mode 100644 index 0000000..a5e6112 --- /dev/null +++ b/css/cs-solstice.css @@ -0,0 +1,188 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + color: #fff; + } + +/* Nutshell */ +.d12-nutshell { + border-color: #EEE; + background: #000 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Updates */ +.d12-update { + border-color: #EEE; + background: #000 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #EEE; + border-color: #000; + } + +/* Attachments */ +.d12-attach { + border-color: #EEE; + background: #000 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Deletion */ +.d12-delete { + border-color: #EEE; + background: #000 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Part of a Series */ +.d12-part { + border-color: #EEE; + background: #000 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Mentions */ +.d12-mention { + border-color: #EEE; + background: #000 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Warning */ +.d12-warning { + border-color: #EEE; + background: #000 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Important */ +.d12-important { + border-color: #EEE; + background: #000 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Notice */ +.d12-notice { + border-color: #EEE; + background: #000 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Error */ +.d12-error { + border-color: #EEE; + background: #000 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Caution */ +.d12-caution { + border-color: #EEE; + background: #000 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Archive */ +.d12-archive { + border-color: #EEE; + background: #000 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Support */ +.d12-support { + border-color: #EEE; + background: #000 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Contact */ +.d12-contact { + border-color: #EEE; + background: #000 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Global */ +.d12-global { + border-color: #EEE; + background: #000 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Green */ +.d12-green { + border-color: #EEE; + background: #000 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Accept */ +.d12-accept { + border-color: #EEE; + background: #000 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #EEE; + border-color: #EEE; + } + +/* Stats */ +.d12-stats { + border-color: #EEE; + background: #000 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #EEE; + border-color: #EEE; + } diff --git a/css/cs-winter.css b/css/cs-winter.css new file mode 100644 index 0000000..5efec34 --- /dev/null +++ b/css/cs-winter.css @@ -0,0 +1,187 @@ +/* + Don't need this class right now, but let's save it. + We can use it in future updates. + Plugin adopters can also style this text using a child theme. +*/ +.d12-sc-text { + } + +/* Nutshell */ +.d12-nutshell { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/acorn.png) no-repeat 10px 10px; + } +.d12-nutshell p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Updates */ +.d12-update { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/update.png) no-repeat 10px 10px; + } +.d12-update p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Attachments */ +.d12-attach { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/attach.png) no-repeat 10px 10px; + } +.d12-attach p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Deletion */ +.d12-delete { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/delete.png) no-repeat 10px 10px; + } +.d12-delete p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Part of a Series */ +.d12-part { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/cog.png) no-repeat 10px 10px; + } +.d12-part p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Mentions */ +.d12-mention { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/mentions.png) no-repeat 10px 10px; + } +.d12-mention p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Warning */ +.d12-warning { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/warning.png) no-repeat 10px 10px; + } +.d12-warning p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Important */ +.d12-important { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/important.png) no-repeat 10px 10px; + } +.d12-important p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Notice */ +.d12-notice { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/notice.png) no-repeat 10px 10px; + } +.d12-notice p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Error */ +.d12-error { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/error.png) no-repeat 10px 10px; + } +.d12-error p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Caution */ +.d12-caution { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/caution.png) no-repeat 10px 10px; + } +.d12-caution p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Archive */ +.d12-archive { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/archive.png) no-repeat 10px 10px; + } +.d12-archive p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Support */ +.d12-support { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/support.png) no-repeat 10px 10px; + } +.d12-support p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Contact */ +.d12-contact { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/contact.png) no-repeat 10px 10px; + } +.d12-contact p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Global */ +.d12-global { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/global.png) no-repeat 10px 10px; + } +.d12-global p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Green */ +.d12-green { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/green.png) no-repeat 10px 10px; + } +.d12-green p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Accept */ +.d12-accept { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/okay.png) no-repeat 10px 10px; + } +.d12-accept p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } + +/* Stats */ +.d12-stats { + border-color: #B9B9D5; + background: #F2F2F7 url(../images/statistics.png) no-repeat 10px 10px; + } +.d12-stats p:first-child { + color: #5D5D9E; + border-color: #5D5D9E; + } diff --git a/d12-message-blocks.php b/d12-message-blocks.php new file mode 100644 index 0000000..74c9bf6 --- /dev/null +++ b/d12-message-blocks.php @@ -0,0 +1,350 @@ +

'; + _e( 'This article in a nutshell:', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-nutshell' , 'd12_nutshell' ); + +/* Update */ +function d12_update( $atts, $content= NULL) { + echo '

'; + _e( 'Update Information:', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-update' , 'd12_update' ); + +/* Attach */ +function d12_attach( $atts, $content= NULL) { + echo '

'; + _e( 'Downloads:', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-attach' , 'd12_attach' ); + +/* Delete */ +function d12_delete( $atts, $content= NULL) { + echo '

'; + _e( 'This page has been marked for deletion.', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-delete' , 'd12_delete' ); + +/* Part of a Series */ +function d12_part( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'series' => '', + ), $atts ) + ); + echo '

'; + printf(__( 'This page is part of a series on %s', 'd12-message-blocks' ), $series ); + echo '.

' . $content . '
'; +} +add_shortcode( 'd12-part' , 'd12_part' ); + +/* Mentions */ +function d12_mentions( $atts, $content= NULL) { + echo '

'; + _e( 'This page has been mentioned here:', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-mentions' , 'd12_mentions' ); + +/* Warning */ +function d12_warning( $atts, $content= NULL) { + echo '

'; + _e ( 'Warning!', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-warning' , 'd12_warning' ); + +/* Important */ +function d12_important( $atts, $content= NULL) { + echo '

'; + _e ( 'Important!', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-important' , 'd12_important' ); + +/* Notice */ +function d12_notice( $atts, $content= NULL) { + echo '

'; + _e( 'Notice!', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-notice' , 'd12_notice' ); + +/* Error */ +function d12_error( $atts, $content= NULL) { + echo '

'; + _e( 'Error!', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-error' , 'd12_error' ); + +/* Caution */ +function d12_caution( $atts, $content= NULL) { + echo '

'; + _e( 'Caution!', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-caution' , 'd12_caution' ); + +/* Archive */ +function d12_archive( $atts, $content= NULL) { + echo '

'; + _e( 'This page has been archived.', 'd12-message-blocks' ); + echo '

' . $content . '
'; +} +add_shortcode( 'd12-archive' , 'd12_archive' ); + +/* Support */ +function d12_support( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-support' , 'd12_support' ); + +/* Contact */ +function d12_contact( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-contact' , 'd12_contact' ); + +/* Global */ +function d12_global( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-global' , 'd12_global' ); + +/* Green */ +function d12_green( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-green' , 'd12_green' ); + +/* Accept */ +function d12_accept( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-accept' , 'd12_accept' ); + +/* Stats */ +function d12_stats( $atts, $content= NULL) { + extract( shortcode_atts( + array( + 'title' => '', + ), $atts ) + ); + return '
+

' . $title . '

' . $content . '
+
+ '; +} +add_shortcode( 'd12-stats' , 'd12_stats' ); + + +/* +* Register a function with TinyMCE +*/ +add_action( 'init', 'd12mb_buttons' ); +function d12mb_buttons() { + if ( current_user_can('edit_posts') && current_user_can('edit_pages') ) + { + add_filter( "mce_external_plugins", "d12mb_add_buttons" ); + add_filter( 'mce_buttons_2', 'd12mb_register_buttons' ); + } +} +function d12mb_add_buttons( $plugin_array ) { + $plugin_array['d12mb'] = plugins_url( 'js/d12mb.js', __FILE__ ); + return $plugin_array; +} +function d12mb_register_buttons( $buttons ) { + array_push( $buttons, 'd12-mb-button', 'd12-mb-button-2' ); + return $buttons; +} + +// Experiment to add shortcode to excerpts +// wordpress.org/support/topic/how-to-enable-shortcodes-in-excerpts?replies=8#post-1843419 + + + +/** + * Add an options page + * + * @since d12 Message Blocks 1.1 + */ +require plugin_basename( 'plugin-options.php' ); \ No newline at end of file diff --git a/d12mb-tinymce-plugin-langs.php b/d12mb-tinymce-plugin-langs.php new file mode 100644 index 0000000..854f35b --- /dev/null +++ b/d12mb-tinymce-plugin-langs.php @@ -0,0 +1,21 @@ + __('This page in a nutshell', 'd12-message-blocks'), + ); + $locale = _WP_Editors::$mce_locale; + $translated = 'tinyMCE.addI18n("' . $locale . '.d12-message-blocks", ' . json_encode( $strings ) . ");\n"; + + return $translated; +} + +$strings = d12mb_tinymce_plugin_translation(); \ No newline at end of file diff --git a/examples/example01.png b/examples/example01.png new file mode 100644 index 0000000..7ae2222 Binary files /dev/null and b/examples/example01.png differ diff --git a/examples/example02.png b/examples/example02.png new file mode 100644 index 0000000..a8330e5 Binary files /dev/null and b/examples/example02.png differ diff --git a/examples/example03.png b/examples/example03.png new file mode 100644 index 0000000..1e28c0f Binary files /dev/null and b/examples/example03.png differ diff --git a/examples/example04.png b/examples/example04.png new file mode 100644 index 0000000..22c3f1c Binary files /dev/null and b/examples/example04.png differ diff --git a/examples/example05.png b/examples/example05.png new file mode 100644 index 0000000..7b04fc7 Binary files /dev/null and b/examples/example05.png differ diff --git a/examples/example06.png b/examples/example06.png new file mode 100644 index 0000000..9559f5d Binary files /dev/null and b/examples/example06.png differ diff --git a/examples/example07.png b/examples/example07.png new file mode 100644 index 0000000..c0eb8b3 Binary files /dev/null and b/examples/example07.png differ diff --git a/examples/example08.png b/examples/example08.png new file mode 100644 index 0000000..37c4a8a Binary files /dev/null and b/examples/example08.png differ diff --git a/examples/example09.png b/examples/example09.png new file mode 100644 index 0000000..e664c25 Binary files /dev/null and b/examples/example09.png differ diff --git a/examples/example10.png b/examples/example10.png new file mode 100644 index 0000000..d8be0fc Binary files /dev/null and b/examples/example10.png differ diff --git a/icons/acorn.png b/icons/acorn.png new file mode 100644 index 0000000..85d1777 Binary files /dev/null and b/icons/acorn.png differ diff --git a/icons/archive.png b/icons/archive.png new file mode 100644 index 0000000..ce24062 Binary files /dev/null and b/icons/archive.png differ diff --git a/icons/attach.png b/icons/attach.png new file mode 100644 index 0000000..169a845 Binary files /dev/null and b/icons/attach.png differ diff --git a/icons/caution.png b/icons/caution.png new file mode 100644 index 0000000..dbfda22 Binary files /dev/null and b/icons/caution.png differ diff --git a/icons/cog.png b/icons/cog.png new file mode 100644 index 0000000..8f4eeb7 Binary files /dev/null and b/icons/cog.png differ diff --git a/icons/contact.png b/icons/contact.png new file mode 100644 index 0000000..91650cf Binary files /dev/null and b/icons/contact.png differ diff --git a/icons/cross.png b/icons/cross.png new file mode 100644 index 0000000..33a3837 Binary files /dev/null and b/icons/cross.png differ diff --git a/icons/delete.png b/icons/delete.png new file mode 100644 index 0000000..ace289e Binary files /dev/null and b/icons/delete.png differ diff --git a/icons/error.png b/icons/error.png new file mode 100644 index 0000000..33c876b Binary files /dev/null and b/icons/error.png differ diff --git a/icons/film.png b/icons/film.png new file mode 100644 index 0000000..d612c8b Binary files /dev/null and b/icons/film.png differ diff --git a/icons/global.png b/icons/global.png new file mode 100644 index 0000000..b83e746 Binary files /dev/null and b/icons/global.png differ diff --git a/icons/green.png b/icons/green.png new file mode 100644 index 0000000..4c97a3e Binary files /dev/null and b/icons/green.png differ diff --git a/icons/important.png b/icons/important.png new file mode 100644 index 0000000..d49653a Binary files /dev/null and b/icons/important.png differ diff --git a/icons/mentions.png b/icons/mentions.png new file mode 100644 index 0000000..9058397 Binary files /dev/null and b/icons/mentions.png differ diff --git a/icons/notice.png b/icons/notice.png new file mode 100644 index 0000000..86fde52 Binary files /dev/null and b/icons/notice.png differ diff --git a/icons/okay.png b/icons/okay.png new file mode 100644 index 0000000..719e391 Binary files /dev/null and b/icons/okay.png differ diff --git a/icons/statistics.png b/icons/statistics.png new file mode 100644 index 0000000..ae39b56 Binary files /dev/null and b/icons/statistics.png differ diff --git a/icons/support.png b/icons/support.png new file mode 100644 index 0000000..1ae1c84 Binary files /dev/null and b/icons/support.png differ diff --git a/icons/update.png b/icons/update.png new file mode 100644 index 0000000..b7639f1 Binary files /dev/null and b/icons/update.png differ diff --git a/icons/warning.png b/icons/warning.png new file mode 100644 index 0000000..3ead1a7 Binary files /dev/null and b/icons/warning.png differ diff --git a/images/acorn.png b/images/acorn.png new file mode 100644 index 0000000..4e2ee9b Binary files /dev/null and b/images/acorn.png differ diff --git a/images/archive.png b/images/archive.png new file mode 100644 index 0000000..35e7df5 Binary files /dev/null and b/images/archive.png differ diff --git a/images/attach.png b/images/attach.png new file mode 100644 index 0000000..398fabe Binary files /dev/null and b/images/attach.png differ diff --git a/images/caution.png b/images/caution.png new file mode 100644 index 0000000..6277a69 Binary files /dev/null and b/images/caution.png differ diff --git a/images/cog.png b/images/cog.png new file mode 100644 index 0000000..bbe200e Binary files /dev/null and b/images/cog.png differ diff --git a/images/contact.png b/images/contact.png new file mode 100644 index 0000000..609572f Binary files /dev/null and b/images/contact.png differ diff --git a/images/cross.png b/images/cross.png new file mode 100644 index 0000000..4ee1253 Binary files /dev/null and b/images/cross.png differ diff --git a/images/delete.png b/images/delete.png new file mode 100644 index 0000000..30a45b8 Binary files /dev/null and b/images/delete.png differ diff --git a/images/error.png b/images/error.png new file mode 100644 index 0000000..1b20ae0 Binary files /dev/null and b/images/error.png differ diff --git a/images/film.png b/images/film.png new file mode 100644 index 0000000..70e5a68 Binary files /dev/null and b/images/film.png differ diff --git a/images/global.png b/images/global.png new file mode 100644 index 0000000..4c8403e Binary files /dev/null and b/images/global.png differ diff --git a/images/green.png b/images/green.png new file mode 100644 index 0000000..f5f8789 Binary files /dev/null and b/images/green.png differ diff --git a/images/important.png b/images/important.png new file mode 100644 index 0000000..8270104 Binary files /dev/null and b/images/important.png differ diff --git a/images/mentions.png b/images/mentions.png new file mode 100644 index 0000000..6540ce0 Binary files /dev/null and b/images/mentions.png differ diff --git a/images/notice.png b/images/notice.png new file mode 100644 index 0000000..12baca5 Binary files /dev/null and b/images/notice.png differ diff --git a/images/okay.png b/images/okay.png new file mode 100644 index 0000000..7786ac7 Binary files /dev/null and b/images/okay.png differ diff --git a/images/statistics.png b/images/statistics.png new file mode 100644 index 0000000..3a840e6 Binary files /dev/null and b/images/statistics.png differ diff --git a/images/support.png b/images/support.png new file mode 100644 index 0000000..c003c0d Binary files /dev/null and b/images/support.png differ diff --git a/images/update.png b/images/update.png new file mode 100644 index 0000000..c1ab75d Binary files /dev/null and b/images/update.png differ diff --git a/images/warning.png b/images/warning.png new file mode 100644 index 0000000..2693b85 Binary files /dev/null and b/images/warning.png differ diff --git a/js/d12-mb-mce-button-2.png b/js/d12-mb-mce-button-2.png new file mode 100644 index 0000000..9935952 Binary files /dev/null and b/js/d12-mb-mce-button-2.png differ diff --git a/js/d12-mb-mce-button.png b/js/d12-mb-mce-button.png new file mode 100644 index 0000000..5be9636 Binary files /dev/null and b/js/d12-mb-mce-button.png differ diff --git a/js/d12mb.js b/js/d12mb.js new file mode 100644 index 0000000..09f9018 --- /dev/null +++ b/js/d12mb.js @@ -0,0 +1,455 @@ +(function() { + tinymce.create('tinymce.plugins.d12mb', { + init : function (ed, url) { + ed.addButton('d12-mb-button', { + title:'Add a message block', + type:'menubutton', + image: url + '/d12-mb-mce-button.png', + menu: [ + { + text: 'This article in a nutshell', + value: 'Nutshell', + icon: 'icon d12mb-nutshell', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( enutshell ) { + ed.selection.setContent('[d12-nutshell]' + enutshell.data.contents + '[/d12-nutshell]'); + } + }); + } + }, + { + text: 'Highlight updates', + value: 'Update', + icon: 'icon d12mb-update', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( eupdate ) { + ed.selection.setContent('[d12-update]' + eupdate.data.contents + '[/d12-update]'); + } + }); + } + }, + { + text: 'Highlight attachments', + value: 'Attach', + icon: 'icon d12mb-attach', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( eattach ) { + ed.selection.setContent('[d12-attach]' + eattach.data.contents + '[/d12-attach]'); + } + }); + } + }, + { + text: 'Mark page for deletion', + value: 'Delete', + icon: 'icon d12mb-delete', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( edelete ) { + ed.selection.setContent('[d12-delete]' + edelete.data.contents + '[/d12-delete]'); + } + }); + } + }, + { + text: 'Highlight mentions', + value: 'Mentions', + icon: 'icon d12mb-mentions', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( ementions ) { + ed.selection.setContent('[d12-mentions]' + ementions.data.contents + '[/d12-mentions]'); + } + }); + } + }, + { + text: 'Warning', + value: 'Warning', + icon: 'icon d12mb-warning', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( ewarning ) { + ed.selection.setContent('[d12-warning]' + ewarning.data.contents + '[/d12-warning]'); + } + }); + } + }, + { + text: 'Important', + value: 'Iportant', + icon: 'icon d12mb-important', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( eimportant ) { + ed.selection.setContent('[d12-important]' + eimportant.data.contents + '[/d12-important]'); + } + }); + } + }, + { + text: 'Notice', + value: 'Notice', + icon: 'icon d12mb-notice', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( enotice ) { + ed.selection.setContent('[d12-notice]' + enotice.data.contents + '[/d12-notice]'); + } + }); + } + }, + { + text: 'Error', + value: 'Error', + icon: 'icon d12mb-error', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( eerror ) { + ed.selection.setContent('[d12-error]' + eerror.data.contents + '[/d12-error]'); + } + }); + } + }, + { + text: 'Caution', + value: 'Caution', + icon: 'icon d12mb-caution', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( ecaution ) { + ed.selection.setContent('[d12-caution]' + ecaution.data.contents + '[/d12-caution]'); + } + }); + } + }, + { + text: 'Archive', + value: 'Archive', + icon: 'icon d12mb-archive', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contents for this message box', + body: [{ + type: 'textbox', + minHeight: 150, + minWidth: 400, + multiline: 'true', + name: 'contents', + label: 'Contents:' + } + ], + onsubmit: function( earchive ) { + ed.selection.setContent('[d12-archive]' + earchive.data.contents + '[/d12-archive]'); + } + }); + } + } + ] // end of menu + }); // end of ed.addButton + ed.addButton('d12-mb-button-2', { + title:'Add a message block with a custom title', + type:'menubutton', + image: url + '/d12-mb-mce-button-2.png', + menu: [ + { + text: 'Part of a series', + value: 'Part', + icon: 'icon d12mb-part', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the data for this message box', + body: [{ + type: 'textbox', + name: 'title', + label: 'This series of articles is about:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Description of this series:' + } + ], + onsubmit: function( epart ) { + ed.selection.setContent('[d12-part series="' + epart.data.title + '"]' + epart.data.description + '[/d12-part]'); + } + }); + } + }, // End of "Part" + { + text: 'Add a support message', + value: 'Support', + icon: 'icon d12mb-support', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the support information', + body: [{ + type: 'textbox', + name: 'title', + label: 'Support title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Support message:' + } + ], + onsubmit: function( esupport ) { + ed.selection.setContent('[d12-support title="' + esupport.data.title + '"]' + esupport.data.description + '[/d12-support]'); + } + }); + } + }, // End of "Support" + { + text: 'Add contact information', + value: 'Contact', + icon: 'icon d12mb-contact', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter the contact information', + body: [{ + type: 'textbox', + name: 'title', + label: 'Contact box title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Contact information:' + } + ], + onsubmit: function( econtact ) { + ed.selection.setContent('[d12-contact title="' + econtact.data.title + '"]' + econtact.data.description + '[/d12-contact]'); + } + }); + } + }, // End of "Contact" + { + text: 'Add a global message', + value: 'Global', + icon: 'icon d12mb-global', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter a title for this message box', + body: [{ + type: 'textbox', + name: 'title', + label: 'Global title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Global message:' + } + ], + onsubmit: function( eglobal ) { + ed.selection.setContent('[d12-global title="' + eglobal.data.title + '"]' + eglobal.data.description + '[/d12-global]'); + } + }); + } + }, // End of "Global" + { + text: 'Add a green message', + value: 'Green', + icon: 'icon d12mb-green', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter a title for this message box', + body: [{ + type: 'textbox', + name: 'title', + label: 'Green title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Green message:' + } + ], + onsubmit: function( egreen ) { + ed.selection.setContent('[d12-green title="' + egreen.data.title + '"]' + egreen.data.description + '[/d12-green]'); + } + }); + } + }, // End of "Green" + { + text: 'Add an accept message', + value: 'Accept', + icon: 'icon d12mb-accept', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter a title for this message box', + body: [{ + type: 'textbox', + name: 'title', + label: 'Accept title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Accept message:' + } + ], + onsubmit: function( eaccept ) { + ed.selection.setContent('[d12-accept title="' + eaccept.data.title + '"]' + eaccept.data.description + '[/d12-accept]'); + } + }); + } + }, // End of "Green" + { + text: 'Add a stats message', + value: 'Statistics', + icon: 'icon d12mb-stats', + onclick: function() { + ed.windowManager.open( { + title: 'Please enter a title for this message box', + body: [{ + type: 'textbox', + name: 'title', + label: 'Statistics title:' + }, + { + type: 'textbox', + minHeight: 200, + minWidth: 400, + multiline: 'true', + name: 'description', + label: 'Statistics message:' + } + ], + onsubmit: function( estats ) { + ed.selection.setContent('[d12-stats title="' + estats.data.title + '"]' + estats.data.description + '[/d12-stats]'); + } + }); + } + } // End of "Statistics" + ] // end of menu + }); // end of ed.addButton + }, + createControl : function(n, cm) { + return null; + }, + }); // end of tinymce.create() + tinymce.PluginManager.add( 'd12mb', tinymce.plugins.d12mb ); +})(); // closes the first line diff --git a/plugin-options.php b/plugin-options.php new file mode 100644 index 0000000..bdfd597 --- /dev/null +++ b/plugin-options.php @@ -0,0 +1,190 @@ + + +
+

d12 Message Blocks Options

+

New! In version 1.1, you can select from 10 different border styles and 11 color schemes. Seven of the color schemes are suitable for light backgrounds, and the other four are suitable for dark backgrounds. (Screenshots display the "Business" color scheme.)

+ + +
+ + +
+
+Select from one of 10 different border styles.

'; +}; + + + +// Callback for color scheme setting_section +function cs_settings_section() { + echo '

Select from one of 11 different color schemes.

'; +}; + + + +// Callback for settings_field for Border Style +function bs_settings_field(){ + $options = get_option( 'd12mb_options' ); + + $html = '

Rounded Corner Options

'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= '

Square Corner Options

'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= '

MediaWiki Style Borders have a bar on the left side

'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + +echo $html; +} + +// Callback for settings_field for Color Scheme +function cs_settings_field(){ + $options = get_option( 'd12mb_options' ); + + $html = '

Light Themes — suitable for light backgrounds

'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= '

Dark Themes — suitable for dark backgrounds

'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + $html .= ''; + $html .= '
'; + + echo $html; +}; + diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..4437fac --- /dev/null +++ b/readme.txt @@ -0,0 +1,90 @@ +=== d12 Message Blocks === +Contributors: kjodle +Tags: shortcodes, message blocks, posts, pages +Donate link: http://kjodle.info/support +Requires at least: 2.5 +Tested up to: 4.3.1 +Stable tag: 2.0 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl.html + +Highlight important information by adding message blocks to your posts and pages + + +== Description == +d12 Message Blocks makes it easy for you to highlight important information on your posts and pages by adding easy-to-notice message blocks. The plugin's functions are easily accessible from a drop-down menu in the TinyMCE editor toolbar. + +There are two types of message blocks. The first type provides a title and prompts you for the message block's content. The second type prompts you for both a title and the content. + +Want to see it in action? Check out [my demo page](http://techblog.kjodle.net/2015/06/28/message-blocks-wordpress-plugin/). + +Want to check it out in different themes? Check out [my multi-theme demo page](http://waybeta.net/2015/07/d12-message-blocks-wordpress-plugin/). + + +== Installation == + +**From your WordPress dashboard** + +1. Visit 'Plugins > Add New' +1. Search for 'd12 Message Blocks' +1. Activate d12 Message Blocksfrom your Plugins page. + +**From WordPress.org** + +1. Download d12 Message Blocks. +1. Upload the 'd12-message-blocks' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...) +1. Activate d12 Message Blocks from your Plugins page. + + +== Frequently Asked Questions == + += Will this plugin work with all themes? = + +It should. I haven't tested it with all themes, but I've written it in such a way that it should. If you encounter issues, please post a link to your site in the [support forum](http://wordpress.org/support/plugin/d12-message-blocks) along with a description of your issue. + += Is this plugin responsive? = + +Yes. It should look good on all mobile devices, although on extremely narrow screens, the icon will shift to the top. + += Can I change the border or background colors? = + +New in 2.0 You can now select from 10 different border styles and 11 different color schemes from the plugin's options page. + += I can't see the toolbar buttons. = + +Click on the ["Toggle Toolbar"](https://make.wordpress.org/support/user-manual/content/editors/visual-editor/#row-2) button at the end of the first row. + += Can I add links or lists? = + +You can add any html you like in the popup window, and it will be passed to the visual editor. If you are not comfortable editing html, it is easier to add links or lists after you have clicked "OK" and been returned to the visual editor. + + +== Screenshots == + +1. The plugin adds these two buttons to the end of the second toolbar. +2. The first button lets you add these message blocks. They will automatically add the title shown in the menu. +3. A popup box from the first button. +4. The second button lets you add these message blocks. You will be prompted both for a title and content. +5. A popup box from the second button. +6. The "Part of a series" button is a little different, as you only need a single word or phrase for the title. +7. The output from the "Part of a series" button. +8. New in 2.0! Choose from among 10 different border styles. +9. New in 2.0! Choose from 7 new light color schemes (in addition to the default color scheme). +10. New in 2.0! Choose from 4 new dark color schemes. + + +== Changelog == + += 2.0 = +* Added an option page allowing users to select from 10 different border styles and 11 different color schemes. + += 1.1 = +* Plugin is now translatable + += 1.0 = +* Initial release + +== Upgrade Notice == + += 2.0 = +You can now change color schemes or border styles from the plugin's options page. \ No newline at end of file