Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few layout tweaks and Composer support #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md

This file was deleted.

3 changes: 3 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1. smd_bio

Customisable user biographies/profile information within Textpattern CMS.
16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "bloke/smd_bio",
"description": "Customisable user biographies/profile information within Textpattern CMS",
"keywords": ["textpattern", "plugin", "users", "biographies"],
"homepage": "https://github.com/bloke/smd_bio",
"license": "GPL-2.0",
"type": "textpattern-plugin",
"support": {
"issues": "https://github.com/bloke/smd_bio/issues",
"source": "https://github.com/bloke/smd_bio"
},
"require": {
"textpattern/lock": ">=4.6.0",
"textpattern/installer": "*"
}
}
11 changes: 11 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "smd_bio",
"description": "Customisable user biographies/profile information",
"version": "0.6.0-beta",
"type": 5,
"author": "Stef Dawson",
"author_uri": "https://stefdawson.com/",
"order": 5,
"flags": 2,
"help": {"file" : ["./README.textile"]}
}
25 changes: 13 additions & 12 deletions smd_bio.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
// 1 = Plugin help is in raw HTML. Not recommended.
# $plugin['allow_html_help'] = 1;

$plugin['version'] = '0.50';
$plugin['version'] = '0.6.0-beta';
$plugin['author'] = 'Stef Dawson';
$plugin['author_uri'] = 'http://stefdawson.com/';
$plugin['description'] = 'Customisable user biographies / profile info.';
$plugin['author_uri'] = 'https://stefdawson.com/';
$plugin['description'] = 'Customisable user biographies/profile information';

// Plugin load order:
// The default value of 5 would fit most plugins, while for instance comment
Expand Down Expand Up @@ -56,7 +56,7 @@

$plugin['textpack'] = <<<EOT
#@smd_bio
smd_bio_admin_tab => Bio config
smd_bio_admin_tab => Bio configuration
smd_bio_colsize => Column size
smd_bio_coltype => Column type
smd_bio_help => ?
Expand Down Expand Up @@ -258,17 +258,18 @@ function smd_bio_meta_edit() {

$toggleState = get_pref('pane_smd_bio_coltype_visible') ? true : false;

return hed($caption, 1, ' class="txp-heading"').
return hed(gTxt('smd_bio_admin_tab'), 1, array('class' => 'txp-heading')).
form(
'<div class="txp-edit">'.
inputLabel('name', ($id && $step == 'meta_edit' ? strong($name) : fInput('text', 'name', $name, '', '', '', '', '', 'name')), 'name').
inputLabel('title', fInput('text', 'title', $title, '', '', '', '', '', 'title'), 'title').
'<div class="txp-edit">'.
hed($caption, 2).
inputLabel('name', ($id && $step == 'meta_edit' ? strong($name) : fInput('text', 'name', $name, '', '', '', INPUT_REGULAR, '', 'name')), 'name').
inputLabel('title', fInput('text', 'title', $title, '', '', '', INPUT_REGULAR, '', 'title'), 'title').
inputLabel('smd_bio_widget_type', selectInput('type', $selv, $type, false, '', 'smd_bio_widget_type') .sp. '<a id="smd_bio_colgroup" class="txp-summary lever'.(($toggleState) ? ' expanded' : '').'" href="#">'.gTxt('smd_bio_more').'</a>', 'type').
inputLabel('smd_bio_coltype', selectInput('coltype', $coltypes, $coltype, false, '', 'smd_bio_coltype'), 'smd_bio_coltype', '', 'txp-form-field smd_bio_coltype '.(($toggleState) ? '' : ' smd_bio_toggler')).
inputLabel('smd_bio_colsize', fInput('number', 'colsize', $colsize, '', '', '', '', '', 'smd_bio_colsize'), 'smd_bio_colsize', '', 'txp-form-field smd_bio_coltype '.(($toggleState) ? '' : ' smd_bio_toggler')).
inputLabel('smd_bio_size', fInput('text', 'size', $size, '', '', '', '', '', 'smd_bio_size'), 'smd_bio_size', 'smd_bio_size').
inputLabel('smd_bio_value', text_area('val', '100', '300', $val, 'smd_bio_value'), 'smd_bio_value', 'smd_bio_val').
inputLabel('smd_bio_position', fInput('text', 'position', $position, '', '', '', '', '', 'smd_bio_position'), 'smd_bio_position').
inputLabel('smd_bio_colsize', fInput('number', 'colsize', $colsize, '', '', '', INPUT_SMALL, '', 'smd_bio_colsize'), 'smd_bio_colsize', '', 'txp-form-field smd_bio_coltype '.(($toggleState) ? '' : ' smd_bio_toggler')).
inputLabel('smd_bio_size', fInput('text', 'size', $size, '', '', '', INPUT_XSMALL, '', 'smd_bio_size'), 'smd_bio_size', 'smd_bio_size').
inputLabel('smd_bio_value', text_area('val', '', '', $val, 'smd_bio_value'), 'smd_bio_value', 'smd_bio_val').
inputLabel('smd_bio_position', fInput('text', 'position', $position, '', '', '', INPUT_XSMALL, '', 'smd_bio_position'), 'smd_bio_position').
graf(
fInput('submit', 'save', gTxt('save'), 'publish'),
array('class' => 'txp-edit-actions')
Expand Down