From ade2d04cb30cd249794f53a2a92e1c601073402c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 18 Jan 2011 15:58:28 -0800 Subject: [PATCH] Work in progress on helper wizard for feed mirror discovery/setup --- plugins/SubMirror/actions/mirrorsettings.php | 2 + .../SubMirror/images/providers/facebook.png | Bin 0 -> 958 bytes plugins/SubMirror/images/providers/feed.png | Bin 0 -> 2434 bytes .../SubMirror/images/providers/linkedin.png | Bin 0 -> 2100 bytes .../SubMirror/images/providers/statusnet.png | Bin 0 -> 6168 bytes .../SubMirror/images/providers/twitter.png | Bin 0 -> 1192 bytes .../SubMirror/images/providers/wordpress.png | Bin 0 -> 4861 bytes plugins/SubMirror/lib/addmirrorwizard.php | 155 ++++++++++++++++++ 8 files changed, 157 insertions(+) create mode 100644 plugins/SubMirror/images/providers/facebook.png create mode 100644 plugins/SubMirror/images/providers/feed.png create mode 100644 plugins/SubMirror/images/providers/linkedin.png create mode 100644 plugins/SubMirror/images/providers/statusnet.png create mode 100644 plugins/SubMirror/images/providers/twitter.png create mode 100644 plugins/SubMirror/images/providers/wordpress.png create mode 100644 plugins/SubMirror/lib/addmirrorwizard.php diff --git a/plugins/SubMirror/actions/mirrorsettings.php b/plugins/SubMirror/actions/mirrorsettings.php index 20e1807b3d..195946c884 100644 --- a/plugins/SubMirror/actions/mirrorsettings.php +++ b/plugins/SubMirror/actions/mirrorsettings.php @@ -88,6 +88,8 @@ class MirrorSettingsAction extends AccountSettingsAction function showAddFeedForm() { + $form = new AddMirrorWizard($this); + $form->show(); $form = new AddMirrorForm($this); $form->show(); } diff --git a/plugins/SubMirror/images/providers/facebook.png b/plugins/SubMirror/images/providers/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..13a53aa63cfb8204e93237a364f795717c16f58d GIT binary patch literal 958 zcmV;v13~Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipM> z7brL%Yf~uz00TZrL_t(&-tC%OPZL2D$NxLKy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@gj#qRs-ikg=bet@*hgzU z{be|p(1q2W@ZK^yU3e8rwr3tjoc#}>Pwe##BDDTij4RUC!|;J!zW!M&Kj8_VF#}>W z2tRmfp;q2V@Jr7Ux}}!jEw!kPKS$)3kHL?ohP~&g|YJP}XcNb#Tc}bEWazQofnnxf%MJ-%|v4@EN`(giCSb0r) zk#aS$hJSkc%A5iMb1F08lR>2i-~(@!ufwXm(wiojgY~g{GWPTFh8J)@P&mR5tx zN-I)!(*gg0&%Y!C-m?<><-Dxe=sP%oELj2BrRh5FYT^gIb6cn&f%2-fB4s!FpW;;6 zq6~PSt%Q%-WY3;7006R!GY%t(w_e4sPz4rVnx-ypv!;N-%9!8v# z4W50h!uc5$*6C{T_RY!9gg2vrAhqLk8ZAIb&mv_y4xN&WHwlTctXP)pzgL~Q= zN=6DYDy)tTdHZHXGT;pYVM(;(bSR+JiN}joKmiHQFJ?~N9}(?Gv6kO}n7wG^+tBgX zvG+ZO9_sUi*RH`G>_HEE93{1zQDNO^H+pD-Z!%Sc3Zd=TSSkf_g1EK~hEt;MrsCh0 zRW81B_M99n6ZNdHGx}~b#eUwe!g?*(u{WO#D0g8IZZJVx)3M)3DcRN6-i{FwjIhpm zc%dwE=FO(RqXSE_TUPDp+&kPKeXYN%2Q6~XX?TFViV_CiH4+&lXBfxFt9 zjwNi{!Znd|7CyJUkYHh$w#KG}w)hStWpwqB%C+rzVRH{_L;63Nd;g|m`RHe>QOHnXX7 zoFaY3qb>D!<|bpjQAmjlNSv6>U~eyd?d=TrM{6Qj69e)*~2Qv7jk_&l0w z1aqWPlYfGEpG`YXJBC&v#4AFY=c;yedY+X250H6G$)NE5&Hw-a07*qoM6N<$f@%i6 A82|tP literal 0 HcmV?d00001 diff --git a/plugins/SubMirror/images/providers/linkedin.png b/plugins/SubMirror/images/providers/linkedin.png new file mode 100644 index 0000000000000000000000000000000000000000..82103d1f3f17839c6fe0bd90222d4f94c351feb5 GIT binary patch literal 2100 zcmV-42+Q}0P)Px#24YJ`L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%dV-|O@5b&`5v*Ne@k|xpKe2#^PQ+)b+2jL-gO7f>eEdM_wKyl1J74$LYyFp9`L0N8;O-6GZQXYa zMaYi65L^<45CUc0!udiS3l$ynWgU6VglaNyA>fuM!fqMe0T*H+54!v=^aNZ8xfKY( zF;}eP$;liJ&zJOgBE7E~pZr>O@AsZJGx6GTX7lP!>LnSHFXRhvziDfD=j;F7)82K< zP`ih`ePa|?_qRD|#|4{JPFdX;gj{gQO$Y?%h?i9SWGsVU&s9;Y*E8z56aSXk`~64E zd?G7Mga4^MHIM)Vd;apnyM1f7+(kV8tyKjfIsN#k5~P%2LRdC)gNrX{>~v+ zSO0d&;~%Cj&pNNyyE5!^M}2NrK#^q^A%Mjg(+sm-(ab_s)#goIofMijZk2N. + * + * @package StatusNet + * @copyright 2010-2011 StatusNet, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://status.net/ + */ + +if (!defined('STATUSNET') && !defined('LACONICA')) { + exit(1); +} + +class AddMirrorWizard extends Form +{ + /** + * Name of the form + * + * Sub-classes should overload this with the name of their form. + * + * @return void + */ + function formLegend() + { + } + + /** + * Visible or invisible data elements + * + * Display the form fields that make up the data of the form. + * Sub-classes should overload this to show their data. + * + * @return void + */ + function formData() + { + $this->out->elementStart('fieldset'); + + $providers = $this->providers(); + $this->showProviders($providers); + + $this->out->elementEnd('fieldset'); + } + + function providers() + { + return array( + array( + 'id' => 'statusnet', + 'name' => _m('StatusNet'), + ), + array( + 'id' => 'twitter', + 'name' => _m('Twitter'), + ), + array( + 'id' => 'wordpress', + 'name' => _m('WordPress'), + ), + array( + 'id' => 'linkedin', + 'name' => _m('LinkedIn'), + ), + array( + 'id' => 'feed', + 'name' => _m('RSS or Atom feed'), + ), + ); + } + + function showProviders(array $providers) + { + $out = $this->out; + + $out->elementStart('table', array('width' => '100%')); + foreach ($providers as $provider) { + $icon = common_path('plugins/SubMirror/images/providers/' . $provider['id'] . '.png'); + $out->elementStart('tr'); + + $out->elementStart('td', array('style' => 'text-align: right; vertical-align: middle')); + $out->element('img', array('src' => $icon)); + $out->elementEnd('td'); + + $out->elementStart('td', array('style' => 'text-align: left; vertical-align: middle')); + $out->text($provider['name']); + $out->elementEnd('td'); + + $out->elementEnd('tr'); + } + $out->elementEnd('table'); + } + + /** + * Buttons for form actions + * + * Submit and cancel buttons (or whatever) + * Sub-classes should overload this to show their own buttons. + * + * @return void + */ + function formActions() + { + } + + /** + * ID of the form + * + * Should be unique on the page. Sub-classes should overload this + * to show their own IDs. + * + * @return string ID of the form + */ + function id() + { + return 'add-mirror-wizard'; + } + + /** + * Action of the form. + * + * URL to post to. Should be overloaded by subclasses to give + * somewhere to post to. + * + * @return string URL to post to + */ + function action() + { + return common_local_url('addmirror'); + } + + /** + * Class of the form. + * + * @return string the form's class + */ + function formClass() + { + return 'form_settings'; + } +}