Changeset 417645
- Timestamp:
- 07/31/2011 07:02:22 PM (15 years ago)
- Location:
- subscription-options/trunk
- Files:
-
- 6 edited
-
GNU General Public License.txt (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
-
screenshot-3.png (modified) (previous)
-
suboptions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
subscription-options/trunk/GNU General Public License.txt
r194297 r417645 1 1 GNU GENERAL PUBLIC LICENSE 2 2 3 Version 3, 29 June 2007 3 4 5 6 4 7 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 8 5 9 Everyone is permitted to copy and distribute verbatim copies 10 6 11 of this license document, but changing it is not allowed. 7 12 13 14 8 15 Preamble 9 16 17 18 10 19 The GNU General Public License is a free, copyleft license for 20 11 21 software and other kinds of works. 12 22 23 24 13 25 The licenses for most software and other practical works are designed 26 14 27 to take away your freedom to share and change the works. By contrast, 28 15 29 the GNU General Public License is intended to guarantee your freedom to 30 16 31 share and change all versions of a program--to make sure it remains free 32 17 33 software for all its users. We, the Free Software Foundation, use the 34 18 35 GNU General Public License for most of our software; it applies also to 36 19 37 any other work released this way by its authors. You can apply it to 38 20 39 your programs, too. 21 40 41 42 22 43 When we speak of free software, we are referring to freedom, not 44 23 45 price. Our General Public Licenses are designed to make sure that you 46 24 47 have the freedom to distribute copies of free software (and charge for 48 25 49 them if you wish), that you receive source code or can get it if you 50 26 51 want it, that you can change the software or use pieces of it in new 52 27 53 free programs, and that you know you can do these things. 28 54 55 56 29 57 To protect your rights, we need to prevent others from denying you 58 30 59 these rights or asking you to surrender the rights. Therefore, you have 60 31 61 certain responsibilities if you distribute copies of the software, or if 62 32 63 you modify it: responsibilities to respect the freedom of others. 33 64 65 66 34 67 For example, if you distribute copies of such a program, whether 68 35 69 gratis or for a fee, you must pass on to the recipients the same 70 36 71 freedoms that you received. You must make sure that they, too, receive 72 37 73 or can get the source code. And you must show them these terms so they 74 38 75 know their rights. 39 76 77 78 40 79 Developers that use the GNU GPL protect your rights with two steps: 80 41 81 (1) assert copyright on the software, and (2) offer you this License 82 42 83 giving you legal permission to copy, distribute and/or modify it. 43 84 85 86 44 87 For the developers' and authors' protection, the GPL clearly explains 88 45 89 that there is no warranty for this free software. For both users' and 90 46 91 authors' sake, the GPL requires that modified versions be marked as 92 47 93 changed, so that their problems will not be attributed erroneously to 94 48 95 authors of previous versions. 49 96 97 98 50 99 Some devices are designed to deny users access to install or run 100 51 101 modified versions of the software inside them, although the manufacturer 102 52 103 can do so. This is fundamentally incompatible with the aim of 104 53 105 protecting users' freedom to change the software. The systematic 106 54 107 pattern of such abuse occurs in the area of products for individuals to 108 55 109 use, which is precisely where it is most unacceptable. Therefore, we 110 56 111 have designed this version of the GPL to prohibit the practice for those 112 57 113 products. If such problems arise substantially in other domains, we 114 58 115 stand ready to extend this provision to those domains in future versions 116 59 117 of the GPL, as needed to protect the freedom of users. 60 118 119 120 61 121 Finally, every program is threatened constantly by software patents. 122 62 123 States should not allow patents to restrict development and use of 124 63 125 software on general-purpose computers, but in those that do, we wish to 126 64 127 avoid the special danger that patents applied to a free program could 128 65 129 make it effectively proprietary. To prevent this, the GPL assures that 130 66 131 patents cannot be used to render the program non-free. 67 132 133 134 68 135 The precise terms and conditions for copying, distribution and 136 69 137 modification follow. 70 138 139 140 71 141 TERMS AND CONDITIONS 72 142 143 144 73 145 0. Definitions. 74 146 147 148 75 149 "This License" refers to version 3 of the GNU General Public License. 76 150 151 152 77 153 "Copyright" also means copyright-like laws that apply to other kinds of 154 78 155 works, such as semiconductor masks. 79 156 157 158 80 159 "The Program" refers to any copyrightable work licensed under this 160 81 161 License. Each licensee is addressed as "you". "Licensees" and 162 82 163 "recipients" may be individuals or organizations. 83 164 165 166 84 167 To "modify" a work means to copy from or adapt all or part of the work 168 85 169 in a fashion requiring copyright permission, other than the making of an 170 86 171 exact copy. The resulting work is called a "modified version" of the 172 87 173 earlier work or a work "based on" the earlier work. 88 174 175 176 89 177 A "covered work" means either the unmodified Program or a work based 178 90 179 on the Program. 91 180 181 182 92 183 To "propagate" a work means to do anything with it that, without 184 93 185 permission, would make you directly or secondarily liable for 186 94 187 infringement under applicable copyright law, except executing it on a 188 95 189 computer or modifying a private copy. Propagation includes copying, 190 96 191 distribution (with or without modification), making available to the 192 97 193 public, and in some countries other activities as well. 98 194 195 196 99 197 To "convey" a work means any kind of propagation that enables other 198 100 199 parties to make or receive copies. Mere interaction with a user through 200 101 201 a computer network, with no transfer of a copy, is not conveying. 102 202 203 204 103 205 An interactive user interface displays "Appropriate Legal Notices" 206 104 207 to the extent that it includes a convenient and prominently visible 208 105 209 feature that (1) displays an appropriate copyright notice, and (2) 210 106 211 tells the user that there is no warranty for the work (except to the 212 107 213 extent that warranties are provided), that licensees may convey the 214 108 215 work under this License, and how to view a copy of this License. If 216 109 217 the interface presents a list of user commands or options, such as a 218 110 219 menu, a prominent item in the list meets this criterion. 111 220 221 222 112 223 1. Source Code. 113 224 225 226 114 227 The "source code" for a work means the preferred form of the work 228 115 229 for making modifications to it. "Object code" means any non-source 230 116 231 form of a work. 117 232 233 234 118 235 A "Standard Interface" means an interface that either is an official 236 119 237 standard defined by a recognized standards body, or, in the case of 238 120 239 interfaces specified for a particular programming language, one that 240 121 241 is widely used among developers working in that language. 122 242 243 244 123 245 The "System Libraries" of an executable work include anything, other 246 124 247 than the work as a whole, that (a) is included in the normal form of 248 125 249 packaging a Major Component, but which is not part of that Major 250 126 251 Component, and (b) serves only to enable use of the work with that 252 127 253 Major Component, or to implement a Standard Interface for which an 254 128 255 implementation is available to the public in source code form. A 256 129 257 "Major Component", in this context, means a major essential component 258 130 259 (kernel, window system, and so on) of the specific operating system 260 131 261 (if any) on which the executable work runs, or a compiler used to 262 132 263 produce the work, or an object code interpreter used to run it. 133 264 265 266 134 267 The "Corresponding Source" for a work in object code form means all 268 135 269 the source code needed to generate, install, and (for an executable 270 136 271 work) run the object code and to modify the work, including scripts to 272 137 273 control those activities. However, it does not include the work's 274 138 275 System Libraries, or general-purpose tools or generally available free 276 139 277 programs which are used unmodified in performing those activities but 278 140 279 which are not part of the work. For example, Corresponding Source 280 141 281 includes interface definition files associated with source files for 282 142 283 the work, and the source code for shared libraries and dynamically 284 143 285 linked subprograms that the work is specifically designed to require, 286 144 287 such as by intimate data communication or control flow between those 288 145 289 subprograms and other parts of the work. 146 290 291 292 147 293 The Corresponding Source need not include anything that users 294 148 295 can regenerate automatically from other parts of the Corresponding 296 149 297 Source. 150 298 299 300 151 301 The Corresponding Source for a work in source code form is that 302 152 303 same work. 153 304 305 306 154 307 2. Basic Permissions. 155 308 309 310 156 311 All rights granted under this License are granted for the term of 312 157 313 copyright on the Program, and are irrevocable provided the stated 314 158 315 conditions are met. This License explicitly affirms your unlimited 316 159 317 permission to run the unmodified Program. The output from running a 318 160 319 covered work is covered by this License only if the output, given its 320 161 321 content, constitutes a covered work. This License acknowledges your 322 162 323 rights of fair use or other equivalent, as provided by copyright law. 163 324 325 326 164 327 You may make, run and propagate covered works that you do not 328 165 329 convey, without conditions so long as your license otherwise remains 330 166 331 in force. You may convey covered works to others for the sole purpose 332 167 333 of having them make modifications exclusively for you, or provide you 334 168 335 with facilities for running those works, provided that you comply with 336 169 337 the terms of this License in conveying all material for which you do 338 170 339 not control copyright. Those thus making or running the covered works 340 171 341 for you must do so exclusively on your behalf, under your direction 342 172 343 and control, on terms that prohibit them from making any copies of 344 173 345 your copyrighted material outside their relationship with you. 174 346 347 348 175 349 Conveying under any other circumstances is permitted solely under 350 176 351 the conditions stated below. Sublicensing is not allowed; section 10 352 177 353 makes it unnecessary. 178 354 355 356 179 357 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 358 359 360 181 361 No covered work shall be deemed part of an effective technological 362 182 363 measure under any applicable law fulfilling obligations under article 364 183 365 11 of the WIPO copyright treaty adopted on 20 December 1996, or 366 184 367 similar laws prohibiting or restricting circumvention of such 368 185 369 measures. 186 370 371 372 187 373 When you convey a covered work, you waive any legal power to forbid 374 188 375 circumvention of technological measures to the extent such circumvention 376 189 377 is effected by exercising rights under this License with respect to 378 190 379 the covered work, and you disclaim any intention to limit operation or 380 191 381 modification of the work as a means of enforcing, against the work's 382 192 383 users, your or third parties' legal rights to forbid circumvention of 384 193 385 technological measures. 194 386 387 388 195 389 4. Conveying Verbatim Copies. 196 390 391 392 197 393 You may convey verbatim copies of the Program's source code as you 394 198 395 receive it, in any medium, provided that you conspicuously and 396 199 397 appropriately publish on each copy an appropriate copyright notice; 398 200 399 keep intact all notices stating that this License and any 400 201 401 non-permissive terms added in accord with section 7 apply to the code; 402 202 403 keep intact all notices of the absence of any warranty; and give all 404 203 405 recipients a copy of this License along with the Program. 204 406 407 408 205 409 You may charge any price or no price for each copy that you convey, 410 206 411 and you may offer support or warranty protection for a fee. 207 412 413 414 208 415 5. Conveying Modified Source Versions. 209 416 417 418 210 419 You may convey a work based on the Program, or the modifications to 420 211 421 produce it from the Program, in the form of source code under the 422 212 423 terms of section 4, provided that you also meet all of these conditions: 213 424 425 426 214 427 a) The work must carry prominent notices stating that you modified 428 215 429 it, and giving a relevant date. 216 430 431 432 217 433 b) The work must carry prominent notices stating that it is 434 218 435 released under this License and any conditions added under section 436 219 437 7. This requirement modifies the requirement in section 4 to 438 220 439 "keep intact all notices". 221 440 441 442 222 443 c) You must license the entire work, as a whole, under this 444 223 445 License to anyone who comes into possession of a copy. This 446 224 447 License will therefore apply, along with any applicable section 7 448 225 449 additional terms, to the whole of the work, and all its parts, 450 226 451 regardless of how they are packaged. This License gives no 452 227 453 permission to license the work in any other way, but it does not 454 228 455 invalidate such permission if you have separately received it. 229 456 457 458 230 459 d) If the work has interactive user interfaces, each must display 460 231 461 Appropriate Legal Notices; however, if the Program has interactive 462 232 463 interfaces that do not display Appropriate Legal Notices, your 464 233 465 work need not make them do so. 234 466 467 468 235 469 A compilation of a covered work with other separate and independent 470 236 471 works, which are not by their nature extensions of the covered work, 472 237 473 and which are not combined with it such as to form a larger program, 474 238 475 in or on a volume of a storage or distribution medium, is called an 476 239 477 "aggregate" if the compilation and its resulting copyright are not 478 240 479 used to limit the access or legal rights of the compilation's users 480 241 481 beyond what the individual works permit. Inclusion of a covered work 482 242 483 in an aggregate does not cause this License to apply to the other 484 243 485 parts of the aggregate. 244 486 487 488 245 489 6. Conveying Non-Source Forms. 246 490 491 492 247 493 You may convey a covered work in object code form under the terms 494 248 495 of sections 4 and 5, provided that you also convey the 496 249 497 machine-readable Corresponding Source under the terms of this License, 498 250 499 in one of these ways: 251 500 501 502 252 503 a) Convey the object code in, or embodied in, a physical product 504 253 505 (including a physical distribution medium), accompanied by the 506 254 507 Corresponding Source fixed on a durable physical medium 508 255 509 customarily used for software interchange. 256 510 511 512 257 513 b) Convey the object code in, or embodied in, a physical product 514 258 515 (including a physical distribution medium), accompanied by a 516 259 517 written offer, valid for at least three years and valid for as 518 260 519 long as you offer spare parts or customer support for that product 520 261 521 model, to give anyone who possesses the object code either (1) a 522 262 523 copy of the Corresponding Source for all the software in the 524 263 525 product that is covered by this License, on a durable physical 526 264 527 medium customarily used for software interchange, for a price no 528 265 529 more than your reasonable cost of physically performing this 530 266 531 conveying of source, or (2) access to copy the 532 267 533 Corresponding Source from a network server at no charge. 268 534 535 536 269 537 c) Convey individual copies of the object code with a copy of the 538 270 539 written offer to provide the Corresponding Source. This 540 271 541 alternative is allowed only occasionally and noncommercially, and 542 272 543 only if you received the object code with such an offer, in accord 544 273 545 with subsection 6b. 274 546 547 548 275 549 d) Convey the object code by offering access from a designated 550 276 551 place (gratis or for a charge), and offer equivalent access to the 552 277 553 Corresponding Source in the same way through the same place at no 554 278 555 further charge. You need not require recipients to copy the 556 279 557 Corresponding Source along with the object code. If the place to 558 280 559 copy the object code is a network server, the Corresponding Source 560 281 561 may be on a different server (operated by you or a third party) 562 282 563 that supports equivalent copying facilities, provided you maintain 564 283 565 clear directions next to the object code saying where to find the 566 284 567 Corresponding Source. Regardless of what server hosts the 568 285 569 Corresponding Source, you remain obligated to ensure that it is 570 286 571 available for as long as needed to satisfy these requirements. 287 572 573 574 288 575 e) Convey the object code using peer-to-peer transmission, provided 576 289 577 you inform other peers where the object code and Corresponding 578 290 579 Source of the work are being offered to the general public at no 580 291 581 charge under subsection 6d. 292 582 583 584 293 585 A separable portion of the object code, whose source code is excluded 586 294 587 from the Corresponding Source as a System Library, need not be 588 295 589 included in conveying the object code work. 296 590 591 592 297 593 A "User Product" is either (1) a "consumer product", which means any 594 298 595 tangible personal property which is normally used for personal, family, 596 299 597 or household purposes, or (2) anything designed or sold for incorporation 598 300 599 into a dwelling. In determining whether a product is a consumer product, 600 301 601 doubtful cases shall be resolved in favor of coverage. For a particular 602 302 603 product received by a particular user, "normally used" refers to a 604 303 605 typical or common use of that class of product, regardless of the status 606 304 607 of the particular user or of the way in which the particular user 608 305 609 actually uses, or expects or is expected to use, the product. A product 610 306 611 is a consumer product regardless of whether the product has substantial 612 307 613 commercial, industrial or non-consumer uses, unless such uses represent 614 308 615 the only significant mode of use of the product. 309 616 617 618 310 619 "Installation Information" for a User Product means any methods, 620 311 621 procedures, authorization keys, or other information required to install 622 312 623 and execute modified versions of a covered work in that User Product from 624 313 625 a modified version of its Corresponding Source. The information must 626 314 627 suffice to ensure that the continued functioning of the modified object 628 315 629 code is in no case prevented or interfered with solely because 630 316 631 modification has been made. 317 632 633 634 318 635 If you convey an object code work under this section in, or with, or 636 319 637 specifically for use in, a User Product, and the conveying occurs as 638 320 639 part of a transaction in which the right of possession and use of the 640 321 641 User Product is transferred to the recipient in perpetuity or for a 642 322 643 fixed term (regardless of how the transaction is characterized), the 644 323 645 Corresponding Source conveyed under this section must be accompanied 646 324 647 by the Installation Information. But this requirement does not apply 648 325 649 if neither you nor any third party retains the ability to install 650 326 651 modified object code on the User Product (for example, the work has 652 327 653 been installed in ROM). 328 654 655 656 329 657 The requirement to provide Installation Information does not include a 658 330 659 requirement to continue to provide support service, warranty, or updates 660 331 661 for a work that has been modified or installed by the recipient, or for 662 332 663 the User Product in which it has been modified or installed. Access to a 664 333 665 network may be denied when the modification itself materially and 666 334 667 adversely affects the operation of the network or violates the rules and 668 335 669 protocols for communication across the network. 336 670 671 672 337 673 Corresponding Source conveyed, and Installation Information provided, 674 338 675 in accord with this section must be in a format that is publicly 676 339 677 documented (and with an implementation available to the public in 678 340 679 source code form), and must require no special password or key for 680 341 681 unpacking, reading or copying. 342 682 683 684 343 685 7. Additional Terms. 344 686 687 688 345 689 "Additional permissions" are terms that supplement the terms of this 690 346 691 License by making exceptions from one or more of its conditions. 692 347 693 Additional permissions that are applicable to the entire Program shall 694 348 695 be treated as though they were included in this License, to the extent 696 349 697 that they are valid under applicable law. If additional permissions 698 350 699 apply only to part of the Program, that part may be used separately 700 351 701 under those permissions, but the entire Program remains governed by 702 352 703 this License without regard to the additional permissions. 353 704 705 706 354 707 When you convey a copy of a covered work, you may at your option 708 355 709 remove any additional permissions from that copy, or from any part of 710 356 711 it. (Additional permissions may be written to require their own 712 357 713 removal in certain cases when you modify the work.) You may place 714 358 715 additional permissions on material, added by you to a covered work, 716 359 717 for which you have or can give appropriate copyright permission. 360 718 719 720 361 721 Notwithstanding any other provision of this License, for material you 722 362 723 add to a covered work, you may (if authorized by the copyright holders of 724 363 725 that material) supplement the terms of this License with terms: 364 726 727 728 365 729 a) Disclaiming warranty or limiting liability differently from the 730 366 731 terms of sections 15 and 16 of this License; or 367 732 733 734 368 735 b) Requiring preservation of specified reasonable legal notices or 736 369 737 author attributions in that material or in the Appropriate Legal 738 370 739 Notices displayed by works containing it; or 371 740 741 742 372 743 c) Prohibiting misrepresentation of the origin of that material, or 744 373 745 requiring that modified versions of such material be marked in 746 374 747 reasonable ways as different from the original version; or 375 748 749 750 376 751 d) Limiting the use for publicity purposes of names of licensors or 752 377 753 authors of the material; or 378 754 755 756 379 757 e) Declining to grant rights under trademark law for use of some 758 380 759 trade names, trademarks, or service marks; or 381 760 761 762 382 763 f) Requiring indemnification of licensors and authors of that 764 383 765 material by anyone who conveys the material (or modified versions of 766 384 767 it) with contractual assumptions of liability to the recipient, for 768 385 769 any liability that these contractual assumptions directly impose on 770 386 771 those licensors and authors. 387 772 773 774 388 775 All other non-permissive additional terms are considered "further 776 389 777 restrictions" within the meaning of section 10. If the Program as you 778 390 779 received it, or any part of it, contains a notice stating that it is 780 391 781 governed by this License along with a term that is a further 782 392 783 restriction, you may remove that term. If a license document contains 784 393 785 a further restriction but permits relicensing or conveying under this 786 394 787 License, you may add to a covered work material governed by the terms 788 395 789 of that license document, provided that the further restriction does 790 396 791 not survive such relicensing or conveying. 397 792 793 794 398 795 If you add terms to a covered work in accord with this section, you 796 399 797 must place, in the relevant source files, a statement of the 798 400 799 additional terms that apply to those files, or a notice indicating 800 401 801 where to find the applicable terms. 402 802 803 804 403 805 Additional terms, permissive or non-permissive, may be stated in the 806 404 807 form of a separately written license, or stated as exceptions; 808 405 809 the above requirements apply either way. 406 810 811 812 407 813 8. Termination. 408 814 815 816 409 817 You may not propagate or modify a covered work except as expressly 818 410 819 provided under this License. Any attempt otherwise to propagate or 820 411 821 modify it is void, and will automatically terminate your rights under 822 412 823 this License (including any patent licenses granted under the third 824 413 825 paragraph of section 11). 414 826 827 828 415 829 However, if you cease all violation of this License, then your 830 416 831 license from a particular copyright holder is reinstated (a) 832 417 833 provisionally, unless and until the copyright holder explicitly and 834 418 835 finally terminates your license, and (b) permanently, if the copyright 836 419 837 holder fails to notify you of the violation by some reasonable means 838 420 839 prior to 60 days after the cessation. 421 840 841 842 422 843 Moreover, your license from a particular copyright holder is 844 423 845 reinstated permanently if the copyright holder notifies you of the 846 424 847 violation by some reasonable means, this is the first time you have 848 425 849 received notice of violation of this License (for any work) from that 850 426 851 copyright holder, and you cure the violation prior to 30 days after 852 427 853 your receipt of the notice. 428 854 855 856 429 857 Termination of your rights under this section does not terminate the 858 430 859 licenses of parties who have received copies or rights from you under 860 431 861 this License. If your rights have been terminated and not permanently 862 432 863 reinstated, you do not qualify to receive new licenses for the same 864 433 865 material under section 10. 434 866 867 868 435 869 9. Acceptance Not Required for Having Copies. 436 870 871 872 437 873 You are not required to accept this License in order to receive or 874 438 875 run a copy of the Program. Ancillary propagation of a covered work 876 439 877 occurring solely as a consequence of using peer-to-peer transmission 878 440 879 to receive a copy likewise does not require acceptance. However, 880 441 881 nothing other than this License grants you permission to propagate or 882 442 883 modify any covered work. These actions infringe copyright if you do 884 443 885 not accept this License. Therefore, by modifying or propagating a 886 444 887 covered work, you indicate your acceptance of this License to do so. 445 888 889 890 446 891 10. Automatic Licensing of Downstream Recipients. 447 892 893 894 448 895 Each time you convey a covered work, the recipient automatically 896 449 897 receives a license from the original licensors, to run, modify and 898 450 899 propagate that work, subject to this License. You are not responsible 900 451 901 for enforcing compliance by third parties with this License. 452 902 903 904 453 905 An "entity transaction" is a transaction transferring control of an 906 454 907 organization, or substantially all assets of one, or subdividing an 908 455 909 organization, or merging organizations. If propagation of a covered 910 456 911 work results from an entity transaction, each party to that 912 457 913 transaction who receives a copy of the work also receives whatever 914 458 915 licenses to the work the party's predecessor in interest had or could 916 459 917 give under the previous paragraph, plus a right to possession of the 918 460 919 Corresponding Source of the work from the predecessor in interest, if 920 461 921 the predecessor has it or can get it with reasonable efforts. 462 922 923 924 463 925 You may not impose any further restrictions on the exercise of the 926 464 927 rights granted or affirmed under this License. For example, you may 928 465 929 not impose a license fee, royalty, or other charge for exercise of 930 466 931 rights granted under this License, and you may not initiate litigation 932 467 933 (including a cross-claim or counterclaim in a lawsuit) alleging that 934 468 935 any patent claim is infringed by making, using, selling, offering for 936 469 937 sale, or importing the Program or any portion of it. 470 938 939 940 471 941 11. Patents. 472 942 943 944 473 945 A "contributor" is a copyright holder who authorizes use under this 946 474 947 License of the Program or a work on which the Program is based. The 948 475 949 work thus licensed is called the contributor's "contributor version". 476 950 951 952 477 953 A contributor's "essential patent claims" are all patent claims 954 478 955 owned or controlled by the contributor, whether already acquired or 956 479 957 hereafter acquired, that would be infringed by some manner, permitted 958 480 959 by this License, of making, using, or selling its contributor version, 960 481 961 but do not include claims that would be infringed only as a 962 482 963 consequence of further modification of the contributor version. For 964 483 965 purposes of this definition, "control" includes the right to grant 966 484 967 patent sublicenses in a manner consistent with the requirements of 968 485 969 this License. 486 970 971 972 487 973 Each contributor grants you a non-exclusive, worldwide, royalty-free 974 488 975 patent license under the contributor's essential patent claims, to 976 489 977 make, use, sell, offer for sale, import and otherwise run, modify and 978 490 979 propagate the contents of its contributor version. 491 980 981 982 492 983 In the following three paragraphs, a "patent license" is any express 984 493 985 agreement or commitment, however denominated, not to enforce a patent 986 494 987 (such as an express permission to practice a patent or covenant not to 988 495 989 sue for patent infringement). To "grant" such a patent license to a 990 496 991 party means to make such an agreement or commitment not to enforce a 992 497 993 patent against the party. 498 994 995 996 499 997 If you convey a covered work, knowingly relying on a patent license, 998 500 999 and the Corresponding Source of the work is not available for anyone 1000 501 1001 to copy, free of charge and under the terms of this License, through a 1002 502 1003 publicly available network server or other readily accessible means, 1004 503 1005 then you must either (1) cause the Corresponding Source to be so 1006 504 1007 available, or (2) arrange to deprive yourself of the benefit of the 1008 505 1009 patent license for this particular work, or (3) arrange, in a manner 1010 506 1011 consistent with the requirements of this License, to extend the patent 1012 507 1013 license to downstream recipients. "Knowingly relying" means you have 1014 508 1015 actual knowledge that, but for the patent license, your conveying the 1016 509 1017 covered work in a country, or your recipient's use of the covered work 1018 510 1019 in a country, would infringe one or more identifiable patents in that 1020 511 1021 country that you have reason to believe are valid. 512 1022 1023 1024 513 1025 If, pursuant to or in connection with a single transaction or 1026 514 1027 arrangement, you convey, or propagate by procuring conveyance of, a 1028 515 1029 covered work, and grant a patent license to some of the parties 1030 516 1031 receiving the covered work authorizing them to use, propagate, modify 1032 517 1033 or convey a specific copy of the covered work, then the patent license 1034 518 1035 you grant is automatically extended to all recipients of the covered 1036 519 1037 work and works based on it. 520 1038 1039 1040 521 1041 A patent license is "discriminatory" if it does not include within 1042 522 1043 the scope of its coverage, prohibits the exercise of, or is 1044 523 1045 conditioned on the non-exercise of one or more of the rights that are 1046 524 1047 specifically granted under this License. You may not convey a covered 1048 525 1049 work if you are a party to an arrangement with a third party that is 1050 526 1051 in the business of distributing software, under which you make payment 1052 527 1053 to the third party based on the extent of your activity of conveying 1054 528 1055 the work, and under which the third party grants, to any of the 1056 529 1057 parties who would receive the covered work from you, a discriminatory 1058 530 1059 patent license (a) in connection with copies of the covered work 1060 531 1061 conveyed by you (or copies made from those copies), or (b) primarily 1062 532 1063 for and in connection with specific products or compilations that 1064 533 1065 contain the covered work, unless you entered into that arrangement, 1066 534 1067 or that patent license was granted, prior to 28 March 2007. 535 1068 1069 1070 536 1071 Nothing in this License shall be construed as excluding or limiting 1072 537 1073 any implied license or other defenses to infringement that may 1074 538 1075 otherwise be available to you under applicable patent law. 539 1076 1077 1078 540 1079 12. No Surrender of Others' Freedom. 541 1080 1081 1082 542 1083 If conditions are imposed on you (whether by court order, agreement or 1084 543 1085 otherwise) that contradict the conditions of this License, they do not 1086 544 1087 excuse you from the conditions of this License. If you cannot convey a 1088 545 1089 covered work so as to satisfy simultaneously your obligations under this 1090 546 1091 License and any other pertinent obligations, then as a consequence you may 1092 547 1093 not convey it at all. For example, if you agree to terms that obligate you 1094 548 1095 to collect a royalty for further conveying from those to whom you convey 1096 549 1097 the Program, the only way you could satisfy both those terms and this 1098 550 1099 License would be to refrain entirely from conveying the Program. 551 1100 1101 1102 552 1103 13. Use with the GNU Affero General Public License. 553 1104 1105 1106 554 1107 Notwithstanding any other provision of this License, you have 1108 555 1109 permission to link or combine any covered work with a work licensed 1110 556 1111 under version 3 of the GNU Affero General Public License into a single 1112 557 1113 combined work, and to convey the resulting work. The terms of this 1114 558 1115 License will continue to apply to the part which is the covered work, 1116 559 1117 but the special requirements of the GNU Affero General Public License, 1118 560 1119 section 13, concerning interaction through a network will apply to the 1120 561 1121 combination as such. 562 1122 1123 1124 563 1125 14. Revised Versions of this License. 564 1126 1127 1128 565 1129 The Free Software Foundation may publish revised and/or new versions of 1130 566 1131 the GNU General Public License from time to time. Such new versions will 1132 567 1133 be similar in spirit to the present version, but may differ in detail to 1134 568 1135 address new problems or concerns. 569 1136 1137 1138 570 1139 Each version is given a distinguishing version number. If the 1140 571 1141 Program specifies that a certain numbered version of the GNU General 1142 572 1143 Public License "or any later version" applies to it, you have the 1144 573 1145 option of following the terms and conditions either of that numbered 1146 574 1147 version or of any later version published by the Free Software 1148 575 1149 Foundation. If the Program does not specify a version number of the 1150 576 1151 GNU General Public License, you may choose any version ever published 1152 577 1153 by the Free Software Foundation. 578 1154 1155 1156 579 1157 If the Program specifies that a proxy can decide which future 1158 580 1159 versions of the GNU General Public License can be used, that proxy's 1160 581 1161 public statement of acceptance of a version permanently authorizes you 1162 582 1163 to choose that version for the Program. 583 1164 1165 1166 584 1167 Later license versions may give you additional or different 1168 585 1169 permissions. However, no additional obligations are imposed on any 1170 586 1171 author or copyright holder as a result of your choosing to follow a 1172 587 1173 later version. 588 1174 1175 1176 589 1177 15. Disclaimer of Warranty. 590 1178 1179 1180 591 1181 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 1182 592 1183 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 1184 593 1185 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 1186 594 1187 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 1188 595 1189 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1190 596 1191 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 1192 597 1193 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 1194 598 1195 ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 1196 1197 1198 600 1199 16. Limitation of Liability. 601 1200 1201 1202 602 1203 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 1204 603 1205 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 1206 604 1207 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 1208 605 1209 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 1210 606 1211 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 1212 607 1213 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 1214 608 1215 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 1216 609 1217 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 1218 610 1219 SUCH DAMAGES. 611 1220 1221 1222 612 1223 17. Interpretation of Sections 15 and 16. 613 1224 1225 1226 614 1227 If the disclaimer of warranty and limitation of liability provided 1228 615 1229 above cannot be given local legal effect according to their terms, 1230 616 1231 reviewing courts shall apply local law that most closely approximates 1232 617 1233 an absolute waiver of all civil liability in connection with the 1234 618 1235 Program, unless a warranty or assumption of liability accompanies a 1236 619 1237 copy of the Program in return for a fee. 620 1238 1239 1240 621 1241 END OF TERMS AND CONDITIONS 622 1242 1243 1244 623 1245 How to Apply These Terms to Your New Programs 624 1246 1247 1248 625 1249 If you develop a new program, and you want it to be of the greatest 1250 626 1251 possible use to the public, the best way to achieve this is to make it 1252 627 1253 free software which everyone can redistribute and change under these terms. 628 1254 1255 1256 629 1257 To do so, attach the following notices to the program. It is safest 1258 630 1259 to attach them to the start of each source file to most effectively 1260 631 1261 state the exclusion of warranty; and each file should have at least 1262 632 1263 the "copyright" line and a pointer to where the full notice is found. 633 1264 1265 1266 634 1267 <one line to give the program's name and a brief idea of what it does.> 1268 635 1269 Copyright (C) <year> <name of author> 636 1270 1271 1272 637 1273 This program is free software: you can redistribute it and/or modify 1274 638 1275 it under the terms of the GNU General Public License as published by 1276 639 1277 the Free Software Foundation, either version 3 of the License, or 1278 640 1279 (at your option) any later version. 641 1280 1281 1282 642 1283 This program is distributed in the hope that it will be useful, 1284 643 1285 but WITHOUT ANY WARRANTY; without even the implied warranty of 1286 644 1287 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1288 645 1289 GNU General Public License for more details. 646 1290 1291 1292 647 1293 You should have received a copy of the GNU General Public License 1294 648 1295 along with this program. If not, see <http://www.gnu.org/licenses/>. 649 1296 1297 1298 650 1299 Also add information on how to contact you by electronic and paper mail. 651 1300 1301 1302 652 1303 If the program does terminal interaction, make it output a short 1304 653 1305 notice like this when it starts in an interactive mode: 654 1306 1307 1308 655 1309 Subscription Options Copyright (C) 2009 Tom Saunter AKA freedimensional 1310 656 1311 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 1312 657 1313 This is free software, and you are welcome to redistribute it 1314 658 1315 under certain conditions; type `show c' for details. 659 1316 1317 1318 660 1319 The hypothetical commands `show w' and `show c' should show the appropriate 1320 661 1321 parts of the General Public License. Of course, your program's commands 1322 662 1323 might be different; for a GUI interface, you would use an "about box". 663 1324 1325 1326 664 1327 You should also get your employer (if you work as a programmer) or school, 1328 665 1329 if any, to sign a "copyright disclaimer" for the program, if necessary. 1330 666 1331 For more information on this, and how to apply and follow the GNU GPL, see 1332 667 1333 <http://www.gnu.org/licenses/>. 668 1334 1335 1336 669 1337 The GNU General Public License does not permit incorporating your program 1338 670 1339 into proprietary programs. If your program is a subroutine library, you 1340 671 1341 may consider it more useful to permit linking proprietary applications with 1342 672 1343 the library. If this is what you want to do, use the GNU Lesser General 1344 673 1345 Public License instead of this License. But first, please read 1346 674 1347 <http://www.gnu.org/philosophy/why-not-lgpl.html>. -
subscription-options/trunk/readme.txt
r296198 r417645 1 1 === Subscription Options === 2 2 3 Contributors: Tom Saunter 4 3 5 Donate link: http://bit.ly/donate_to_me 6 4 7 Tags: subscription, subscribe, option, options, color, colour, colors, colours, feedburner, rss, feed, mail, email, service, twitter, stream, follow, facebook, page, delivery, icon, icons, widget, sidebar, settings 8 5 9 Requires at least: 2.8 6 Tested up to: 3.0 7 Stable tag: 0.7.4 10 11 Tested up to: 3.2 12 13 Stable tag: 0.8 14 15 8 16 9 17 Adds subscription option icons for your RSS Feed; your FeedBurner Email Service; your Twitter Stream and your Facebook page. Totally user-defined. 10 18 19 20 11 21 == Description == 22 12 23 The most common ways for people to subscribe to a blog and its content are through RSS, Email and Twitter. Facebook pages are increasing in usage too. This plugin places related subscription icons in a widget area and lets users enter their own feed or page URLs and select the colour of their icons. Its really simple but theres lots of power under the hood. 13 24 25 26 14 27 = Features: = 28 15 29 * Offers an attractive range of subscription options for your readers using familiar-looking icons. 30 16 31 * Intuitive interface for editing options, including your feed or page URLs, widget title and icon sizes. 17 * Independent handling across multiple widget instances, using WordPress 2.8's new widget_class coolness. 18 * NEW in Version 0.6 - the ability to select between 12 colours. 19 * NEW in Version 0.7 - now XHTML valid 32 33 * Independent handling across multiple widget instances, using WordPress 2.8's widget_class coolness. 34 35 * NEW in Version 0.8 the ability to select any colour, via HEX code or [HTML Color Name](http://www.w3schools.com/html/html_colornames.asp). 36 37 * NEW in Version 0.8 integration with the brand new [Subscription Options Add-on Pack](http://digitalcortex.net/plugins/subscription-options/addon-pack). 38 39 20 40 21 41 == Installation == 42 22 43 1. Download the plugin by hitting that big red button to the right. 44 23 45 2. Extract the files and place the entire 'subscription-options' folder into your wp_content/plugins directory. 46 24 47 3. Go to your 'Installed Plugins' panel and activate 'Subscription Options'. 48 25 49 4. You are now ready to use the widget. 26 50 51 52 27 53 = Setup: = 54 28 55 * Go to your 'Appearance > Widgets' panel and select the widget area you wish for the plugin to appear in. 56 29 57 * Enter the following details: 58 30 59 1. Widget Title 31 2. RSS Feed URL & Colour ID 32 3. Email Service URL & Colour ID 33 4. Twitter Stream URL & Colour ID 34 5. Facebook Page URL & Colour ID 60 61 2. RSS Feed URL & Colour 62 63 3. Email Service URL & Colour 64 65 4. Twitter Stream URL & Colour 66 67 5. Facebook Page URL & Colour 68 35 69 6. Size of Feed Icons 36 70 37 * Hit 'Save' then test the result. Change the icons' size and colour if necessary. 71 38 72 * Please note that you don't need to use all the icons - just don't enter a URL if you don't want an icon to show up. 39 73 74 * Please also note that you can use any HTML colour code, be it HEX code or [HTML Color Name](http://www.w3schools.com/html/html_colornames.asp). 75 76 * Hit Done then Save Changes. Test the appearance and perhaps change the size of the icons as necessary. 77 78 * If you would like additional icons for LinkedIn, Flickr, Google+ or Podcasting, consider installing the [Subscription Options Add-on Pack](http://digitalcortex.net/plugins/subscription-options/addon-pack) and a new set of subscription options will automatically appear in the widget options panel. 79 40 80 == Screenshots == 81 41 82 1. This is how the plugin could look on your blog. 83 42 84 2. This is the widget options panel. 85 43 86 3. These are some example configurations. 44 87 88 89 45 90 == Changelog == 91 46 92 * 0.1.0 was the first iteration of what I promise will be a participatory experience 93 47 94 * 0.1.5 - added css classes for users to hook into and edit through their css sheets 95 48 96 * 0.2 - added user-defined header size and target of users' clicks 97 49 98 * 0.3 - updated icons to scale up to higher sizes without dithering 99 50 100 * 0.4 - switched to WP 2.8's widget_class functionality to really crank it up 101 51 102 * 0.5 - inclusion of a new subscription icon for Facebook, by popular demand 103 52 104 * 0.6 - implemented an icon colour changer with twelve options 105 53 106 * 0.7 - upgraded to pass XHTML 1.0 Transitional validation 107 108 * 0.8 - full colour options & additional subscription icons based on user feedback 109 54 110 = Future Versions: = 55 * 0.8 - more subscription icons based on user feedback 111 112 * 0.9 farbtastic or other java-based colour picker integration 113 114 56 115 57 116 == Upgrade Notice == 58 117 59 = 0.6 = 60 This new version will give you 12 colour options for each of your icons! 118 119 120 = 0.8 = 121 122 This new version give you thousands of new colour options, using transparent icons and CSS3 rounded corners. As such, the widget looks best in modern CSS3-compatible web browsers, so please upgrade only if you are entirely comfortable with this. 123 124 61 125 62 126 == Frequently Asked Questions == 127 63 128 = Where do I put the widget? = 129 64 130 You can place the widget wherever you like as long as it is within a pre-defined widget area. I haven't worked out how to let people place the widget wherever they like. Let me know if you can help on my [contact page](http://digitalcortex.net/contact) though. 65 131 132 133 66 134 = Can I style the widget in my own way? = 67 Yes of course, it's WordPress! You can use your stylesheet.css to override your theme's default widget settings by using the following CSS classes:68 135 69 * the RSS feed icon > img.rss_icon 70 * the email service icon > img.mail_icon 71 * the twitter icon > img.twitter_icon 72 * the facebook icon > img.facebook_icon 136 Yes of course, its WordPress! You can use your stylesheet.css or this widgets internal stylesheet to override your themes default widget settings by using the following CSS classes: 137 138 * img.suboptions-icon all icons (useful for setting alignment or spacing) 139 140 * img.rss-icon the RSS feed icon 141 142 * img.email-icon the email service icon 143 144 * img.twitter-icon the Twitter icon 145 146 * img.facebook-icon the Facebook icon 147 148 73 149 74 150 Please note that the icons' sizes will still need to be set from within the widget admin panel. CSS doesn't let you override that. 75 151 152 153 154 = Why don't my icons have nice rounded corners any more? = 155 156 The latest version of this plugin gives you thousands of new colour options, using transparent icons and CSS3 rounded corners. As such, the widget looks best in modern CSS3-compatible web browsers such as Firefox, Google Chrome or IE9. If you are not entirely comfortable with this, you can always roll back to an [older version](http://wordpress.org/extend/plugins/subscription-options/download). 157 158 159 160 = How do I find my Feedburner Email Service URL? = 161 162 The clickstream from within Feedburner looks like this: Publicize > Email Subscriptions > Activate. Then right click and copy the text that says 'Preview Subscription Link 163 ' That's your Feedburner Email Service URL... BOOM! 164 165 166 76 167 = Where can I find more help and support? = 168 77 169 Just email me from the contact page on [my blog](http://digitalcortex.net/contact) or leave a comment [right here](http://digitalcortex.net/plugins/subscription-options). I'll be happy to help where possible. 78 170 171 172 79 173 = I'm a fan of this plugin. What are my options? = 174 80 175 [Digital Cortex](http://digitalcortex.net) ([rss](http://feeds.feedburner.com/digitalcortex)) is actively seeking new fans & followers on [Facebook](http://facebook.com/digitalcortex) and [Twitter](http://twitter.com/freedimensional) if you fancy it? 81 176 177 178 82 179 = How can I support the development of this plugin? = 83 Thank you so much for asking. Here is a link to where you can contribute to the development fund: [Donate](http://bit.ly/donate_to_me) 180 181 Thank you so much for asking. There are a couple of options. You can purchase the [Subscription Options Add-on Pack](http://digitalcortex.net/plugins/subscription-options/addon-pack) for $1.50, or you can [donate here](http://bit.ly/donate_to_me) without upgrading. -
subscription-options/trunk/suboptions.php
r296198 r417645 1 1 <?php 2 3 4 2 5 /** 6 3 7 * Plugin Name: Subscription Options 8 4 9 * Plugin URI: http://digitalcortex.net/plugins/subscription-options 5 * Description: Adds subscription option icons for your RSS Feed; your FeedBurner Email Service; your Twitter Stream and even your Facebook page. 12 colour options. Totally user-defined. 6 * Version: 0.7.4 10 11 * Description: Adds subscription option icons for your RSS Feed; your FeedBurner Email Service; your Twitter Stream and even your Facebook page. Thousands of colour options. Totally user-defined. Also available: <a title="Upgrade for only $1.50" target="_blank" href="http://digitalcortex.net/plugins/subscription-options/addon-pack">The Subscription Options Add-on Pack</a>! 12 13 * Version: 0.8 14 7 15 * Author: Tom Saunter 16 8 17 * Author URI: http://digitalcortex.net 18 9 19 * 20 10 21 * This program is free software: you can redistribute it and/or modify 22 11 23 * it under the terms of the GNU General Public License as published by 24 12 25 * the Free Software Foundation, either version 3 of the License, or 26 13 27 * (at your option) any later version. 28 14 29 * 30 15 31 * This program is distributed in the hope that it will be useful, 32 16 33 * but WITHOUT ANY WARRANTY; without even the implied warranty of 34 17 35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36 18 37 * GNU General Public License for more details. 38 19 39 * 40 20 41 * You should have received a copy of the GNU General Public License 42 21 43 * along with this program. If not, see <http://www.gnu.org/licenses/>. 44 22 45 */ 23 46 47 48 24 49 /** 25 * Add function to widgets_init that will load the widget. 50 51 * Add functions that will load the widget. 52 26 53 */ 54 27 55 add_action( 'widgets_init', 'suboptions_load_widgets' ); 28 56 57 58 29 59 /** 60 30 61 * Register the widget. 62 31 63 * 'suboptions_widget' is the widget class used below. 64 32 65 */ 66 33 67 function suboptions_load_widgets() { 68 34 69 register_widget( 'suboptions_widget' ); 70 35 71 } 36 72 73 74 37 75 /** 76 38 77 * Extends the widget class. 78 39 79 * This class handles everything that needs to be handled with the widget: 80 40 81 * the settings, form, display, and update. Nice! 82 41 83 */ 84 42 85 class suboptions_widget extends WP_Widget { 43 86 87 88 44 89 /** 90 45 91 * Widget setup. 92 46 93 */ 94 47 95 function suboptions_widget() { 96 48 97 /* Widget settings. */ 98 49 99 $widget_ops = array( 'classname' => 'suboptions', 'description' => __('Add subscription options for your readers with related feed icons', 'suboptions') ); 50 100 101 102 51 103 /* Widget control settings. */ 52 $control_ops = array( 'width' => 260, 'height' => 350, 'id_base' => 'suboptions-widget' ); 104 105 $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'suboptions-widget' ); 106 107 53 108 54 109 /* Create the widget. */ 110 55 111 $this->WP_Widget( 'suboptions-widget', __('Subscription Options', 'suboptions'), $widget_ops, $control_ops ); 112 56 113 } 57 114 115 116 58 117 /** 118 59 119 * Display the widget on the screen. 120 60 121 */ 122 61 123 function widget( $args, $instance ) { 124 62 125 extract( $args ); 63 126 64 /* Variables from the widget settings. */ 127 128 129 /* Variables for the standard widget. */ 130 65 131 $title = apply_filters('widget_title', $instance['title'] ); 132 133 $size = $instance['size']; 134 66 135 $rss_url = $instance['rss_url']; 67 $mail_url = $instance['mail_url']; 136 137 $rss_col = $instance['rss_col']; 138 139 $email_url = $instance['email_url']; 140 141 $email_col = $instance['email_col']; 142 68 143 $twitter_url = $instance['twitter_url']; 144 145 $twitter_col = $instance['twitter_col']; 146 69 147 $facebook_url = $instance['facebook_url']; 70 $size = $instance['size']; 71 $rss_col = $instance['rss_col']; 72 $mail_col = $instance['mail_col']; 73 $twitter_col = $instance['twitter_col']; 148 74 149 $facebook_col = $instance['facebook_col']; 75 150 151 152 153 /* Variables for the add-on pack. */ 154 155 $linkedin_url = $instance['linkedin_url']; 156 157 $linkedin_col = $instance['linkedin_col']; 158 159 $flickr_url = $instance['flickr_url']; 160 161 $flickr_col = $instance['flickr_col']; 162 163 $google_url = $instance['google_url']; 164 165 $google_col = $instance['google_col']; 166 167 $podcast_url = $instance['podcast_url']; 168 169 $podcast_col = $instance['podcast_col']; 170 171 172 76 173 /* Before widget (defined by themes). */ 174 77 175 echo $before_widget; 78 176 177 178 79 179 /* Display the widget title if one was input (before and after defined by themes). */ 180 80 181 if ( $title ) 182 81 183 echo $before_title . $title . $after_title; 82 184 185 186 83 187 /* If an RSS Feed URL was entered, display the RSS icon. */ 188 84 189 if ( $rss_url ) 85 echo '<a target="_blank" title="Subscribe via RSS" href="'.$rss_url.'"><img class="rss_icon" alt="Subscribe via RSS" style="border: 0px none; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/feed_icon_'.$rss_col.'.png"/> </a>'; 190 191 echo '<a target="_blank" title="Subscribe via RSS" href="'.$rss_url.'"><img class="suboptions-icon rounded-corners rss-icon" alt="Subscribe via RSS" style="background: '.$rss_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/rss_transparent.png"/> </a>'; 192 86 193 194 87 195 /* If a FeedBurner Email Service URL was entered, display the email icon. */ 88 if ( $mail_url ) 89 echo '<a target="_blank" title="Subscribe via Email" href="'.$mail_url.'"><img alt="Subscribe via Email" class="mail_icon" style="border: 0px none; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/mail_icon_'.$mail_col.'.png"/> </a>'; 196 197 if ( $email_url ) 198 199 echo '<a target="_blank" title="Subscribe via Email" href="'.$email_url.'"><img class="suboptions-icon rounded-corners email-icon" alt="Subscribe via Email" style="background: '.$email_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/email_transparent.png"/> </a>'; 200 90 201 202 91 203 /* If a Twitter Stream URL was entered, display the Twitter icon. */ 204 92 205 if ( $twitter_url ) 93 echo '<a target="_blank" title="Subscribe via Twitter" href="'.$twitter_url.'"><img alt="Subscribe via Twitter" class="twitter_icon" style="border: 0px none; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/twitter_icon_'.$twitter_col.'.png"/> </a>'; 206 207 echo '<a target="_blank" title="Subscribe via Twitter" href="'.$twitter_url.'"><img class="suboptions-icon rounded-corners twitter-icon" alt="Subscribe via Twitter" style="background: '.$twitter_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/twitter_transparent.png"/> </a>'; 208 209 94 210 95 211 /* If a Facebook Page URL was entered, display the Facebook icon. */ 212 96 213 if ( $facebook_url ) 97 echo '<a target="_blank" title="Subscribe via Facebook" href="'.$facebook_url.'"><img alt="Subscribe via Facebook" class="facebook_icon" style="border: 0px none; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/facebook_icon_'.$facebook_col.'.png"/> </a>'; 214 215 echo '<a target="_blank" title="Subscribe via Facebook" href="'.$facebook_url.'"><img class="suboptions-icon rounded-corners facebook-icon" alt="Subscribe via Facebook" style="background: '.$facebook_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options/images/facebook_transparent.png"/> </a>'; 216 217 218 219 /* If a LinkedIn Profile URL was entered, display the LinkedIn icon. */ 220 221 if ( $linkedin_url ) 222 223 echo '<a target="_blank" title="Subscribe via LinkedIn" href="'.$linkedin_url.'"><img class="suboptions-icon rounded-corners linkedin_icon" alt="Subscribe via LinkedIn" style="background: '.$linkedin_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options-addon/linkedin_transparent.png"/> </a>'; 224 225 226 227 /* If a Flickr Page URL was entered, display the Flickr icon. */ 228 229 if ( $flickr_url ) 230 231 echo '<a target="_blank" title="Subscribe via Flickr" href="'.$flickr_url.'"><img class="suboptions-icon rounded-corners flickr_icon" alt="Subscribe via Flickr" style="background: '.$flickr_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options-addon/flickr_transparent.png"/> </a>'; 232 233 234 235 /* If a Google+ URL was entered, display the Google+ icon. */ 236 237 if ( $google_url ) 238 239 echo '<a target="_blank" title="Subscribe via Google+" href="'.$google_url.'"><img class="suboptions-icon rounded-corners google_icon" alt="Subscribe via Google+" style="background: '.$google_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options-addon/google_transparent.png"/> </a>'; 240 241 242 243 /* If a Podcasting Service URL was entered, display the Podcast icon. */ 244 245 if ( $podcast_url ) 246 247 echo '<a target="_blank" title="Subscribe via Podcast" href="'.$podcast_url.'"><img class="suboptions-icon rounded-corners podcast_icon" alt="Subscribe via Podcast" style="background: '.$podcast_col.'; width: '.$size.'px; height: '.$size.'px; " src="'.get_bloginfo('wpurl').'/'.PLUGINDIR.'/subscription-options-addon/podcast_transparent.png"/> </a>'; 248 249 98 250 99 251 /* After widget (defined by themes). */ 252 100 253 echo $after_widget; 254 101 255 } 102 256 257 258 103 259 /** 260 104 261 * Update the widget settings. 262 105 263 */ 264 106 265 function update( $new_instance, $old_instance ) { 266 107 267 $instance = $old_instance; 108 268 109 /* Strip HTML tags for the following: */ 269 270 271 /* Strip HTML tags for the standard widget: */ 272 110 273 $instance['title'] = strip_tags( $new_instance['title'] ); 274 275 $instance['size'] = strip_tags( $new_instance['size'] ); 276 111 277 $instance['rss_url'] = strip_tags( $new_instance['rss_url'] ); 112 $instance['mail_url'] = strip_tags( $new_instance['mail_url'] ); 278 279 $instance['rss_col'] = strip_tags( $new_instance['rss_col'] ); 280 281 $instance['email_url'] = strip_tags( $new_instance['email_url'] ); 282 283 $instance['email_col'] = strip_tags( $new_instance['email_col'] ); 284 113 285 $instance['twitter_url'] = strip_tags( $new_instance['twitter_url'] ); 286 287 $instance['twitter_col'] = strip_tags( $new_instance['twitter_col'] ); 288 114 289 $instance['facebook_url'] = strip_tags( $new_instance['facebook_url'] ); 115 $instance['size'] = strip_tags( $new_instance['size'] ); 116 $instance['rss_col'] = strip_tags( $new_instance['rss_col'] ); 117 $instance['mail_col'] = strip_tags( $new_instance['mail_col'] ); 118 $instance['twitter_col'] = strip_tags( $new_instance['twitter_col'] ); 290 119 291 $instance['facebook_col'] = strip_tags( $new_instance['facebook_col'] ); 120 292 293 294 295 /* Strip HTML tags for the add-on pack: */ 296 297 $instance['linkedin_url'] = strip_tags( $new_instance['linkedin_url'] ); 298 299 $instance['linkedin_col'] = strip_tags( $new_instance['linkedin_col'] ); 300 301 $instance['flickr_url'] = strip_tags( $new_instance['flickr_url'] ); 302 303 $instance['flickr_col'] = strip_tags( $new_instance['flickr_col'] ); 304 305 $instance['google_url'] = strip_tags( $new_instance['google_url'] ); 306 307 $instance['google_col'] = strip_tags( $new_instance['google_col'] ); 308 309 $instance['podcast_url'] = strip_tags( $new_instance['podcast_url'] ); 310 311 $instance['podcast_col'] = strip_tags( $new_instance['podcast_col'] ); 312 313 314 121 315 return $instance; 316 122 317 } 123 318 319 320 124 321 /** 322 125 323 * Displays the widget settings controls on the widget panel. 324 126 325 * Makes use of the get_field_id() and get_field_name() function 326 127 327 * when creating your form elements. This handles the confusing stuff. 328 128 329 */ 330 129 331 function form( $instance ) { 130 332 131 /* Set up some default widget settings. */132 333 $defaults = array( 334 335 336 337 /* Set up some default standard widget settings. */ 338 133 339 'title' => 'Subscription Options:', 340 341 'size' => '70', 342 134 343 'rss_url' => '', 135 'mail_url' => '', 344 345 'rss_col' => '#FF9831', 346 347 'email_url' => '', 348 349 'email_col' => '#7AFD32', 350 136 351 'twitter_url' => '', 352 353 'twitter_col' => '#309AFE', 354 137 355 'facebook_url' => '', 138 'size' => '70', 139 'rss_col' => '9', 140 'mail_col' => '1', 141 'twitter_col' => '4', 142 'facebook_col' => '7', 356 357 'facebook_col' => '#FF005D', 358 359 360 361 /* Set up some default add-on pack settings. */ 362 363 'linkedin_url' => '', 364 365 'linkedin_col' => '#2680AA', 366 367 'flickr_url' => '', 368 369 'flickr_col' => '#FF0084', 370 371 'google_url' => '', 372 373 'google_col' => '#555555', 374 375 'podcast_url' => '', 376 377 'podcast_col' => '#B474E6', 378 379 380 143 381 ); 382 144 383 $instance = wp_parse_args( (array) $instance, $defaults ); ?> 145 384 385 386 146 387 <!-- Widget Title: Text Input --> 147 <p> 148 <label for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label> 149 <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:218px;" /> 150 </p> 151 152 <!-- RSS Feed URL & Colour ID: Text Input --> 153 <p> 154 <label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS Feed URL & Colour:', 'suboptions'); ?></label> 155 <input id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="<?php echo $instance['rss_url']; ?>" style="width:218px;" /><input id="<?php echo $this->get_field_id( 'rss_col' ); ?>" name="<?php echo $this->get_field_name( 'rss_col' ); ?>" value="<?php echo $instance['rss_col']; ?>" style="width:23px;" /> 156 </p> 157 158 <!-- FeedBurner Email Service URL & Colour ID: Text Input --> 159 <p> 160 <label for="<?php echo $this->get_field_id( 'mail_url' ); ?>"><?php _e('FeedBurner Email Service URL & Colour:', 'suboptions'); ?></label> 161 <input id="<?php echo $this->get_field_id( 'mail_url' ); ?>" name="<?php echo $this->get_field_name( 'mail_url' ); ?>" value="<?php echo $instance['mail_url']; ?>" style="width:218px;" /><input id="<?php echo $this->get_field_id( 'mail_col' ); ?>" name="<?php echo $this->get_field_name( 'mail_col' ); ?>" value="<?php echo $instance['mail_col']; ?>" style="width:23px;" /> 162 </p> 163 164 <!-- Twitter Stream URL & Colour ID: Text Input --> 165 <p> 166 <label for="<?php echo $this->get_field_id( 'twitter_url' ); ?>"><?php _e('Twitter Stream URL & Colour:', 'suboptions'); ?></label> 167 <input id="<?php echo $this->get_field_id( 'twitter_url' ); ?>" name="<?php echo $this->get_field_name( 'twitter_url' ); ?>" value="<?php echo $instance['twitter_url']; ?>" style="width:218px;" /><input id="<?php echo $this->get_field_id( 'twitter_col' ); ?>" name="<?php echo $this->get_field_name( 'twitter_col' ); ?>" value="<?php echo $instance['twitter_col']; ?>" style="width:23px;" /> 168 </p> 169 170 <!-- Facebook Page URL & Colour ID: Text Input --> 171 <p> 172 <label for="<?php echo $this->get_field_id( 'facebook_url' ); ?>"><?php _e('Facebook Page URL & Colour:', 'suboptions'); ?></label> 173 <input id="<?php echo $this->get_field_id( 'facebook_url' ); ?>" name="<?php echo $this->get_field_name( 'facebook_url' ); ?>" value="<?php echo $instance['facebook_url']; ?>" style="width:218px;" /><input id="<?php echo $this->get_field_id( 'facebook_col' ); ?>" name="<?php echo $this->get_field_name( 'facebook_col' ); ?>" value="<?php echo $instance['facebook_col']; ?>" style="width:23px;" /> 174 </p> 175 176 <!-- Colour Reference: Image --> 177 <p> 178 <label><?php _e('IDs:', 'suboptions'); ?></label> 179 <img style="margin: 0pt 0pt -6px 5px;" alt="if you can't see colours go to http://digitalcortex.net/plugins" src="../wp-content/plugins/subscription-options/images/colour-options.png"/> 180 </p> 388 389 <p class="suboptions-item"> 390 391 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label> 392 393 <input class="suboptions-title" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 394 395 </p> 396 397 398 399 <!-- RSS Feed URL & Colour: Text Input --> 400 401 <p class="suboptions-item"> 402 403 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS Feed URL & Colour:', 'suboptions'); ?></label> 404 405 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="<?php echo $instance['rss_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'rss_col' ); ?>" name="<?php echo $this->get_field_name( 'rss_col' ); ?>" value="<?php echo $instance['rss_col']; ?>" /> 406 407 </p> 408 409 410 411 <!-- FeedBurner Email Service URL & Colour Text Input --> 412 413 <p class="suboptions-item"> 414 415 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'email_url' ); ?>"><?php _e('FeedBurner Email Service URL & Colour:', 'suboptions'); ?></label> 416 417 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'email_url' ); ?>" name="<?php echo $this->get_field_name( 'email_url' ); ?>" value="<?php echo $instance['email_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'email_col' ); ?>" name="<?php echo $this->get_field_name( 'email_col' ); ?>" value="<?php echo $instance['email_col']; ?>" /> 418 419 </p> 420 421 422 423 <!-- Twitter Stream URL & Colour: Text Input --> 424 425 <p class="suboptions-item"> 426 427 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'twitter_url' ); ?>"><?php _e('Twitter Stream URL & Colour:', 'suboptions'); ?></label> 428 429 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'twitter_url' ); ?>" name="<?php echo $this->get_field_name( 'twitter_url' ); ?>" value="<?php echo $instance['twitter_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'twitter_col' ); ?>" name="<?php echo $this->get_field_name( 'twitter_col' ); ?>" value="<?php echo $instance['twitter_col']; ?>" /> 430 431 </p> 432 433 434 435 <!-- Facebook Page URL & Colour: Text Input --> 436 437 <p class="suboptions-item"> 438 439 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'facebook_url' ); ?>"><?php _e('Facebook Page URL & Colour:', 'suboptions'); ?></label> 440 441 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'facebook_url' ); ?>" name="<?php echo $this->get_field_name( 'facebook_url' ); ?>" value="<?php echo $instance['facebook_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'facebook_col' ); ?>" name="<?php echo $this->get_field_name( 'facebook_col' ); ?>" value="<?php echo $instance['facebook_col']; ?>" /> 442 443 </p> 444 445 446 447 <!-- Decides to render Add-on Pack settings, if Add-on Pack is installed --> 448 449 <?php 450 451 if (function_exists('suboptions_addon')) { 452 453 echo '<div id="suboptions-addon" class="suboptions-installed">'; 454 455 } else { 456 457 echo '<p>Need more icons? Install the <a title="Install the Subscription Options Add-on Pack for $1.50" target="_blank" href="http://digitalcortex.net/plugins/subscription-options/addon-pack">Add-on Pack</a>!</p>'; 458 459 echo '<div id="suboptions-addon" class="suboptions-not-installed">'; 460 461 } 462 463 ?> 464 465 466 467 <!-- Add-on Pack: LinkedIn Profile URL & Colour: Text Input --> 468 469 <p class="suboptions-item"> 470 471 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'linkedin_url' ); ?>"><?php _e('LinkedIn Profile URL & Colour:', 'suboptions'); ?></label> 472 473 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'linkedin_url' ); ?>" name="<?php echo $this->get_field_name( 'linkedin_url' ); ?>" value="<?php echo $instance['linkedin_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'linkedin_col' ); ?>" name="<?php echo $this->get_field_name( 'linkedin_col' ); ?>" value="<?php echo $instance['linkedin_col']; ?>" /> 474 475 </p> 476 477 478 479 <!-- Add-on Pack: Flickr Page URL & Colour Text Input --> 480 481 <p class="suboptions-item"> 482 483 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'flickr_url' ); ?>"><?php _e('Flickr Page URL & Colour:', 'suboptions'); ?></label> 484 485 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'flickr_url' ); ?>" name="<?php echo $this->get_field_name( 'flickr_url' ); ?>" value="<?php echo $instance['flickr_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'flickr_col' ); ?>" name="<?php echo $this->get_field_name( 'flickr_col' ); ?>" value="<?php echo $instance['flickr_col']; ?>" /> 486 487 </p> 488 489 490 491 <!-- Add-on Pack: Google+ URL & Colour: Text Input --> 492 493 <p class="suboptions-item"> 494 495 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'google_url' ); ?>"><?php _e('Google Plus URL & Colour:', 'suboptions'); ?></label> 496 497 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'google_url' ); ?>" name="<?php echo $this->get_field_name( 'google_url' ); ?>" value="<?php echo $instance['google_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'google_col' ); ?>" name="<?php echo $this->get_field_name( 'google_col' ); ?>" value="<?php echo $instance['google_col']; ?>" /> 498 499 </p> 500 501 502 503 <!-- Add-on Pack: Podcasting Service URL & Colour: Text Input --> 504 505 <p class="suboptions-item"> 506 507 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'podcast_url' ); ?>"><?php _e('Podcasting Service URL & Colour:', 'suboptions'); ?></label> 508 509 <input class="suboptions-url" id="<?php echo $this->get_field_id( 'podcast_url' ); ?>" name="<?php echo $this->get_field_name( 'podcast_url' ); ?>" value="<?php echo $instance['podcast_url']; ?>" /><input class="suboptions-colour" id="<?php echo $this->get_field_id( 'podcast_col' ); ?>" name="<?php echo $this->get_field_name( 'podcast_col' ); ?>" value="<?php echo $instance['podcast_col']; ?>" /> 510 511 </p> 512 513 </div> 514 515 181 516 182 517 <!-- Icon Size: Text Input --> 183 <p> 184 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Icon Size:', 'suboptions'); ?></label><input id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" value="<?php echo $instance['size']; ?>" style="width:30px; " /><?php _e(' pixels', 'suboptions'); ?> 185 </p> 518 519 <p class="suboptions-item"> 520 521 <label class="suboptions-label" for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Icon Size:', 'suboptions'); ?></label><input class="suboptions-size" id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" value="<?php echo $instance['size']; ?>" style="width:30px; " /><?php _e(' pixels', 'suboptions'); ?> 522 523 </p> 524 525 186 526 187 527 <?php 528 529 530 188 531 } 532 189 533 } 190 534 535 536 537 /* 538 539 * Add a bit of style. 540 541 */ 542 543 function suboptions_style() { 544 545 $siteurl = get_option('wpurl'); 546 547 $url = $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/suboptions.css'; 548 549 echo "<link rel='stylesheet' type='text/css' href='$url' />\n"; 550 551 } 552 553 add_action( 'wp_head', 'suboptions_style' ); 554 555 add_action( 'admin_head', 'suboptions_style' ); 556 557 558 191 559 ?>
Note: See TracChangeset
for help on using the changeset viewer.