diff --git a/wp-content/themes/vigilance/404.php b/wp-content/themes/vigilance/404.php new file mode 100755 index 0000000000000000000000000000000000000000..df3eee174edf33c115473b98d249d31aca4d747e --- /dev/null +++ b/wp-content/themes/vigilance/404.php @@ -0,0 +1,9 @@ +<?php get_header(); ?> + <h1 class="pagetitle"><?php _e( '404: Page Not Found', 'vigilance' ); ?></h1> + <div class="entry page"> + <p><?php _e( 'We are terribly sorry, but the URL you typed no longer exists. It might have been moved or deleted, or perhaps you mistyped it. We suggest searching the site:', 'vigilance' ); ?></p> + <?php get_search_form(); ?> + </div><!--end entry--> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/INSTALL b/wp-content/themes/vigilance/INSTALL new file mode 100755 index 0000000000000000000000000000000000000000..78be342d12d95d33d0b59233658ae39da2339059 --- /dev/null +++ b/wp-content/themes/vigilance/INSTALL @@ -0,0 +1,7 @@ +Installation instructions: + +1. Unpack or unzip Vigilance. +2. Upload the Vigilance folder to your wp-content/themes directory. +3. Login to your WordPress admin and click the Design tab. +4. Click on the Vigilance theme to activate. +5. Click on the Vigilance Options menu tab, scroll to the bottom and click "Save". \ No newline at end of file diff --git a/wp-content/themes/vigilance/LANGUAGE b/wp-content/themes/vigilance/LANGUAGE new file mode 100755 index 0000000000000000000000000000000000000000..d1f72a80e759e33ee8b901715090e1ce67944687 --- /dev/null +++ b/wp-content/themes/vigilance/LANGUAGE @@ -0,0 +1,10 @@ +Vigilance is ready to be translated to your language. Please follow these simple instructions: + +1. Download the latest language pack from http://github.com/jestro/vigilance_languages (click the download button at the top). +2. Unzip the package and find the .po and .mo files for your language. +3. Create a /languages directory within your Vigilance theme directory or your Vigilance child theme directory and copy the .po and .mo files into that directory. +4. Define your language in your wp-config.php file. + +Please help with translating Vigilance! + +We have provided the vigilance.po and vigilance.mo files as a starting point for translating Vigilance into your language. If you have a completed translation and would like us to include it in the language pack please send your .po and .mo files to themes {at} jestro.com. \ No newline at end of file diff --git a/wp-content/themes/vigilance/LICENSE b/wp-content/themes/vigilance/LICENSE new file mode 100755 index 0000000000000000000000000000000000000000..94a9ed024d3859793618152ea559a168bbcbb5e2 --- /dev/null +++ b/wp-content/themes/vigilance/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<http://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<http://www.gnu.org/philosophy/why-not-lgpl.html>. diff --git a/wp-content/themes/vigilance/archive.php b/wp-content/themes/vigilance/archive.php new file mode 100755 index 0000000000000000000000000000000000000000..1f37b1c36999bca129e28c36150ae6dbcd97d05b --- /dev/null +++ b/wp-content/themes/vigilance/archive.php @@ -0,0 +1,34 @@ +<?php get_header(); ?> + <?php if (have_posts()) : ?> + <?php /* If this is a category archive */ if (is_category()) { ?> + <h1 class="pagetitle"><?php printf( __( 'Posts from the ‘%s’ Category', 'vigilance' ), single_cat_title('', false)); ?></h1> + <?php /* If this is a tag archive */ } elseif ( is_tag() ) { ?> + <h1 class="pagetitle"><?php printf( __( 'Posts tagged ‘%s’', 'vigilance' ), single_tag_title('', false)); ?></h1> + <?php /* If this is a daily archive */ } elseif (is_day()) { ?> + <h1 class="pagetitle"><?php _e( 'Archive for', 'vigilance' ); ?> <?php the_time( __( 'F jS, Y', 'vigilance' )); ?></h1> + <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> + <h1 class="pagetitle"><?php _e( 'Archive for', 'vigilance' ); ?> <?php the_time( __( 'F, Y', 'vigilance' )); ?></h1> + <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> + <h1 class="pagetitle"><?php _e( 'Archive for', 'vigilance' ); ?> <?php the_time( __( 'Y', 'vigilance' )); ?></h1> + <?php /* If this is an author archive */ } elseif (is_author()) { if (isset($_GET['author_name'])) $current_author = get_userdatabylogin($author_name); else $current_author = get_userdata(intval($author));?> + <h1 class="pagetitle"><?php printf( __( 'Posts by %s', 'vigilance' ), $current_author->nickname); ?></h1> + <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> + <h1 class="pagetitle"><?php _e( 'Blog Archives', 'vigilance' ); ?></h1> + <?php } ?> + <img class="archive-comment" src="<?php bloginfo( 'template_url' ); ?>/images/comments-bubble-archive.gif" width="17" height="14" alt="<?php _e( 'comment', 'vigilance' ); ?>"/> + <?php while (have_posts()) : the_post(); ?> + <div class="entries"> + <ul> + <li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><span class="comments_number"><?php comments_number( '0', '1', '%', '' ); ?></span><span class="archdate"><?php the_time( __( 'n.j.y', 'vigilance' )); ?></span><?php the_title(); ?></a></li> + </ul> + </div><!--end entries--> + <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> + <div class="navigation"> + <div class="alignleft"><?php next_posts_link( __( '« Older Entries', 'vigilance' )); ?></div> + <div class="alignright"><?php previous_posts_link( __( 'Newer Entries »', 'vigilance' )); ?></div> + </div><!--end navigation--> + <?php else : ?> + <?php endif; ?> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> diff --git a/wp-content/themes/vigilance/comments.php b/wp-content/themes/vigilance/comments.php new file mode 100755 index 0000000000000000000000000000000000000000..8ca1a2b61b81f943918a167829b759caf6ab10cb --- /dev/null +++ b/wp-content/themes/vigilance/comments.php @@ -0,0 +1,90 @@ +<?php +// Do not delete these lines + if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) + die ( 'Please do not load this page directly. Thanks!' ); + + if ( post_password_required() ) { ?> + <p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'vigilance' ); ?></p> + <?php + return; + } +?> +<!-- You can start editing here. --> +<div id="comments"> + <?php if ( have_comments() ) : ?> + <div class="comment-number"> + <span><?php comments_number( __( 'No Responses', 'vigilance' ), __( 'One Response', 'vigilance' ), __( '% Responses', 'vigilance' )); ?></span> + <?php if ( 'open' == $post->comment_status) : ?> + <a id="leavecomment" href="#respond" title="<?php _e( 'Leave One', 'vigilance' ); ?>"><?php _e( 'leave one →', 'vigilance' ); ?></a> + <?php endif; ?> + </div><!--end comment-number--> + <?php if ( ! empty($comments_by_type['comment']) ) : ?> + <ol class="commentlist"> + <?php wp_list_comments( 'type=comment&callback=custom_comment' ); ?> + </ol> + <?php endif; ?> + <div class="navigation"> + <div class="alignleft"><?php next_comments_link( __( '« Older Comments', 'vigilance' )); ?></div> + <div class="alignright"><?php previous_comments_link( __( 'Newer Comments »', 'vigilance' )); ?></div> + </div> + <?php if ( ! empty($comments_by_type['pings']) ) : ?> + <h3 class="pinghead"><?php _e( 'Trackbacks and Pingbacks', 'vigilance' ); ?></h3> + <ol class="pinglist"> + <?php wp_list_comments( 'type=pings&callback=list_pings' ); ?> + </ol> + <?php endif; ?> + <?php if ( 'closed' == $post->comment_status ) : ?> + <p class="note"><?php _e( 'Comments are closed.', 'vigilance' ); ?></p> + <?php endif; ?> + <?php else : // this is displayed if there are no comments so far ?> + <?php if ( 'open' == $post->comment_status) : ?> + <!-- If comments are open, but there are no comments. --> + <div class="comment-number"> + <span><?php _e( 'No comments yet', 'vigilance' ); ?></span> + </div> + <?php else : // comments are closed ?> + <!-- If comments are closed. --> + <?php if (!is_page()) : ?> + <p class="note"><?php _e( 'Comments are closed.', 'vigilance' ); ?></p> + <?php endif; ?> + <?php endif; ?> + <?php endif; ?> +</div><!--end comments--> + +<?php if ( 'open' == $post->comment_status) : ?> + <div id="respond"> + <div class="cancel-comment-reply"> + <small><?php cancel_comment_reply_link(); ?></small> + </div> + <h4 id="postcomment"><?php comment_form_title( __( 'Leave a Reply', 'vigilance' ), __( 'Leave a Reply', 'Leave a Reply to %s', 'vigilance' )); ?></h4> + <?php if ( get_option( 'comment_registration' ) && !$user_ID ) : ?> + <p><?php _e( 'You must be', 'vigilance' ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e( 'logged in', 'vigilance' ); ?></a> <?php _e( 'to post a comment.', 'vigilance' ); ?></p> + </div><!--end respond--> + <?php else : ?> + <form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform"> + <?php if ( $user_ID ) : ?> + <p><?php _e( 'Logged in as', 'vigilance' ); ?> <a href="<?php echo get_option( 'siteurl' ); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e( 'Log out »', 'vigilance' ); ?></a></p> + <?php else : ?> + <p><label for="author" class="comment-field"><small><?php _e( 'Name:', 'vigilance' ); ?> <?php if ($req) _e( '(required)' ); ?>:</small></label><input class="text-input" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p> + <p><label for="email" class="comment-field"><small><?php _e( 'Email:', 'vigilance' ); ?> <?php if ($req) _e( '(required)' ); ?>:</small></label><input class="text-input" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /></p> + <p><label for="url" class="comment-field"><small><?php _e( 'Website:', 'vigilance' ); ?></small></label><input class="text-input" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /></p> + <?php endif; ?> + <p><label for="comment" class="comment-field"><small><?php _e( 'Comment:', 'vigilance' ); ?></small></label><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p> + <p class="guidelines"><?php _e( '<strong>Note:</strong> You can use basic XHTML in your comments. Your email address will <strong>never</strong> be published.', 'vigilance' ); ?></p> + <p class="comments-rss"><?php comments_rss_link(__( 'Subscribe to this comment feed via RSS', 'vigilance' )); ?></p> + <div> + <?php do_action( 'comment_form', $post->ID); ?> + </div> + <p> + <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e( 'Submit Comment', 'vigilance' ); ?>" /> + <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> + </p> + <div> + <?php comment_id_fields(); ?> + </div> + </form><!--end commentform--> + </div><!--end respond--> + +<?php endif; // If registration required and not logged in ?> + +<?php endif; // if you delete this the sky will fall on your head ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/footer.php b/wp-content/themes/vigilance/footer.php new file mode 100755 index 0000000000000000000000000000000000000000..e3c4bac4480b35460baaaad675d11fff5885d94d --- /dev/null +++ b/wp-content/themes/vigilance/footer.php @@ -0,0 +1,14 @@ +<?php global $vigilance; ?> + <div id="footer"> + <p class="right"><?php _e( 'Copyright', 'vigilance' ); ?> <?php echo date( 'Y' ); ?> <?php echo $vigilance->copyrightName(); ?></p> + <p><a href="<?php echo $vigilance->themeurl; ?>">Vigilance Theme</a> by <a href="http://thethemefoundry.com">The Theme Foundry</a></p> + </div><!--end footer--> +</div><!--end wrapper--> +<?php wp_footer(); ?> +<?php + if ($vigilance->statsCode() != '' ) { + echo $vigilance->statsCode(); + } +?> +</body> +</html> diff --git a/wp-content/themes/vigilance/functions.php b/wp-content/themes/vigilance/functions.php new file mode 100755 index 0000000000000000000000000000000000000000..395e525976eac9fb13ecb368086697d8d66b0cf6 --- /dev/null +++ b/wp-content/themes/vigilance/functions.php @@ -0,0 +1,32 @@ +<?php +//Set language folder and load textdomain +if (file_exists(STYLESHEETPATH . '/languages' )) + $language_folder = (STYLESHEETPATH . '/languages' ); +else + $language_folder = (TEMPLATEPATH . '/languages' ); +load_theme_textdomain( 'vigilance', $language_folder); + +//Add support for post thumbnails +if ( function_exists( 'add_theme_support' ) ) + add_theme_support( 'post-thumbnails' ); + +//Redirect to theme options page on activation +if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) + wp_redirect( 'themes.php?page=vigilance-admin.php' ); + +// Required functions +if (is_file(STYLESHEETPATH . '/functions/sidebars.php' )) + require_once(STYLESHEETPATH . '/functions/sidebars.php' ); +else + require_once(TEMPLATEPATH . '/functions/sidebars.php' ); + +if (is_file(STYLESHEETPATH . '/functions/comments.php' )) + require_once(STYLESHEETPATH . '/functions/comments.php' ); +else + require_once(TEMPLATEPATH . '/functions/comments.php' ); + +if (is_file(STYLESHEETPATH . '/functions/vigilance-extend.php' )) + require_once(STYLESHEETPATH . '/functions/vigilance-extend.php' ); +else + require_once(TEMPLATEPATH . '/functions/vigilance-extend.php' ); +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/functions/comments.php b/wp-content/themes/vigilance/functions/comments.php new file mode 100755 index 0000000000000000000000000000000000000000..1cd53c5e9205481ee2486982a1c8d15058076731 --- /dev/null +++ b/wp-content/themes/vigilance/functions/comments.php @@ -0,0 +1,48 @@ +<?php + function custom_comment ( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + + // Get admin users + $users = ( get_users_of_blog() ); + + foreach ($users as $user) : + $admin_comment = false; + $raw = unserialize( $user->meta_value ); + + if ( isset( $raw['administrator'] ) ) : + if ( $comment->comment_author_email == $user->user_email) : + $admin_comment = true; + + break; + endif; + endif; + endforeach; +?> + +<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>" > + <div class="c-grav"><?php echo get_avatar( get_comment_author_email(), '60' ); ?></div> + <div class="c-body"> + <div class="c-head"> + <?php comment_author_link(); ?> <span class="c-permalink"><a href="<?php echo get_permalink(); ?>#comment-<?php comment_ID(); ?>"><?php _e( 'permalink', 'vigilance' ); ?></a></span><?php if ($admin_comment) echo '<span class="asterisk">*</span>'; ?> + </div> + <div class="c-date"> + <?php comment_date( 'F j, Y' ); ?> + </div> + <?php if ($comment->comment_approved == '0' ) : ?> + <p><?php _e( '<em><strong>Please Note:</strong> Your comment is awaiting moderation.</em>', 'vigilance' ); ?></p> + <?php endif; ?> + <?php comment_text(); ?> + <?php comment_type(( '' ),( 'Trackback' ),( 'Pingback' )); ?> + <div class="reply"> + <?php echo comment_reply_link(array( 'depth' => $depth, 'max_depth' => $args['max_depth'])); ?> + </div> + <?php edit_comment_link( 'edit','<p>','</p>' ); ?> + </div><!--end c-body--> +<?php } ?> +<?php +// Template for pingbacks/trackbacks + function list_pings($comment, $args, $depth) { + $GLOBALS['comment'] = $comment; +?> + <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> +<?php } ?> diff --git a/wp-content/themes/vigilance/functions/images/foundry.png b/wp-content/themes/vigilance/functions/images/foundry.png new file mode 100755 index 0000000000000000000000000000000000000000..1e8c53ff74a321b6c8ecb59c3859d4b21dc6da80 Binary files /dev/null and b/wp-content/themes/vigilance/functions/images/foundry.png differ diff --git a/wp-content/themes/vigilance/functions/images/pro.png b/wp-content/themes/vigilance/functions/images/pro.png new file mode 100755 index 0000000000000000000000000000000000000000..5edec89d5452c0a43c41fade2ea967f70ee5f3fe Binary files /dev/null and b/wp-content/themes/vigilance/functions/images/pro.png differ diff --git a/wp-content/themes/vigilance/functions/images/toggle.gif b/wp-content/themes/vigilance/functions/images/toggle.gif new file mode 100755 index 0000000000000000000000000000000000000000..62df5ef28884858081d0ddc964a7ec7b3ac7539b Binary files /dev/null and b/wp-content/themes/vigilance/functions/images/toggle.gif differ diff --git a/wp-content/themes/vigilance/functions/javascripts/admin.js b/wp-content/themes/vigilance/functions/javascripts/admin.js new file mode 100755 index 0000000000000000000000000000000000000000..4074524e9241e88ed19998711d4cf4c163012b4f --- /dev/null +++ b/wp-content/themes/vigilance/functions/javascripts/admin.js @@ -0,0 +1,77 @@ +jQuery(document).ready(function($) { + // hides as soon as the DOM is ready + $( 'div.v-option-body' ).hide(); + // shows on clicking the noted link + $( 'h3' ).click(function() { + $(this).toggleClass("open"); + $(this).next("div").slideToggle( '1000' ); + return false; + }); + // logo init + if($('#logo_upload_button').length > 0) { + Logo.init(); + } +}); + +function toggleColorpicker (link, id, toggledir, opentext, closetext) { + jQuery( '.colorpicker_container' ).hide(); + if (toggledir == "open") { + jQuery( '#'+id+'_colorpicker' ).show(); + jQuery(link).replaceWith( '<a href="javascript:return false;" onclick="toggleColorpicker (this, \''+id+'\', \'close\', \''+opentext+'\', \''+closetext+'\' )">'+closetext+'</a>' ); + } else { + jQuery(link).replaceWith( '<a href="javascript:return false;" onclick="toggleColorpicker (this, \''+id+'\', \'open\', \''+opentext+'\', \''+closetext+'\' )">'+opentext+'</a>' ); + } +} + +var Logo = { + init: function (){ + new AjaxUpload( 'logo_upload_button', { + action: '/wp-admin/admin-ajax.php', + data: { action: 'uploadLogo' }, + autoSubmit: true, + responseType: 'text/html', + onChange: function ( file, extension ){}, + onSubmit: function ( file, extension ) { + if ( !( extension && /^(jpg|png|jpeg|gif)$/i.test( extension ) ) ){ + Logo.display_error('<div class="logo-error">Error: invalid file extension</div>'); + return false; + } + }, + onComplete: function ( file, response ) { + if ( response.match(/class="logo-error"/) ){ + Logo.display_error(response); + } else { + jQuery( '.logo-preview-link a.thickbox' ).attr( 'href', response ).show().next( 'div' ).hide(); + jQuery( '.logo-file-name' ).html( file ); + jQuery( '.logo-image-input' ).val( file ).parent( '.v-field-c') .hide().next( '.v-field-logo' ).show(); + } + } + }); + }, + remove: function (){ + jQuery.ajax({ + type: 'POST', + url: '/wp-admin/admin-ajax.php', + data: { action: 'deleteLogo' }, + success: function ( html ){ + jQuery( '.logo-error' ).remove(); + jQuery( '.logo-image-input' ).val( '' ).parent( '.v-field-c' ).show().next( '.v-field-logo' ).hide(); + }, + error: function ( html ){ + alert( html ); + } + }); + return false; + }, + view: function ( el ){ + window.open( jQuery( el ).attr( 'href' )+jQuery( '.logo-image-input' ).val() ); + return false; + }, + display_error: function ( msg ){ + jQuery( '.logo-error' ).remove(); + jQuery( '#logo_upload_button' ).after(msg); + }, + preview: function () { + alert( 'test' ); + } +} \ No newline at end of file diff --git a/wp-content/themes/vigilance/functions/javascripts/ajaxupload.js b/wp-content/themes/vigilance/functions/javascripts/ajaxupload.js new file mode 100755 index 0000000000000000000000000000000000000000..e7161add7d29dea3bbd4f17072cf2fbe47bcda9b --- /dev/null +++ b/wp-content/themes/vigilance/functions/javascripts/ajaxupload.js @@ -0,0 +1,674 @@ +/** + * AJAX Upload ( http://valums.com/ajax-upload/ ) + * Copyright (c) Andris Valums + * Licensed under the MIT license ( http://valums.com/mit-license/ ) + * Thanks to Gary Haran, David Mark, Corey Burns and others for contributions + */ +(function () { + /* global window */ + /* jslint browser: true, devel: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true */ + + /** + * Wrapper for FireBug's console.log + */ + function log(){ + if (typeof(console) != 'undefined' && typeof(console.log) == 'function'){ + Array.prototype.unshift.call(arguments, '[Ajax Upload]'); + console.log( Array.prototype.join.call(arguments, ' ')); + } + } + + /** + * Attaches event to a dom element. + * @param {Element} el + * @param type event name + * @param fn callback This refers to the passed element + */ + function addEvent(el, type, fn){ + if (el.addEventListener) { + el.addEventListener(type, fn, false); + } else if (el.attachEvent) { + el.attachEvent('on' + type, function(){ + fn.call(el); + }); + } else { + throw new Error('not supported or DOM not loaded'); + } + } + + /** + * Attaches resize event to a window, limiting + * number of event fired. Fires only when encounteres + * delay of 100 after series of events. + * + * Some browsers fire event multiple times when resizing + * http://www.quirksmode.org/dom/events/resize.html + * + * @param fn callback This refers to the passed element + */ + function addResizeEvent(fn){ + var timeout; + + addEvent(window, 'resize', function(){ + if (timeout){ + clearTimeout(timeout); + } + timeout = setTimeout(fn, 100); + }); + } + + // Needs more testing, will be rewriten for next version + // getOffset function copied from jQuery lib (http://jquery.com/) + if (document.documentElement.getBoundingClientRect){ + // Get Offset using getBoundingClientRect + // http://ejohn.org/blog/getboundingclientrect-is-awesome/ + var getOffset = function(el){ + var box = el.getBoundingClientRect(); + var doc = el.ownerDocument; + var body = doc.body; + var docElem = doc.documentElement; // for ie + var clientTop = docElem.clientTop || body.clientTop || 0; + var clientLeft = docElem.clientLeft || body.clientLeft || 0; + + // In Internet Explorer 7 getBoundingClientRect property is treated as physical, + // while others are logical. Make all logical, like in IE8. + var zoom = 1; + if (body.getBoundingClientRect) { + var bound = body.getBoundingClientRect(); + zoom = (bound.right - bound.left) / body.clientWidth; + } + + if (zoom > 1) { + clientTop = 0; + clientLeft = 0; + } + + var top = box.top / zoom + (window.pageYOffset || docElem && docElem.scrollTop / zoom || body.scrollTop / zoom) - clientTop, left = box.left / zoom + (window.pageXOffset || docElem && docElem.scrollLeft / zoom || body.scrollLeft / zoom) - clientLeft; + + return { + top: top, + left: left + }; + }; + } else { + // Get offset adding all offsets + var getOffset = function(el){ + var top = 0, left = 0; + do { + top += el.offsetTop || 0; + left += el.offsetLeft || 0; + el = el.offsetParent; + } while (el); + + return { + left: left, + top: top + }; + }; + } + + /** + * Returns left, top, right and bottom properties describing the border-box, + * in pixels, with the top-left relative to the body + * @param {Element} el + * @return {Object} Contains left, top, right,bottom + */ + function getBox(el){ + var left, right, top, bottom; + var offset = getOffset(el); + left = offset.left; + top = offset.top; + + right = left + el.offsetWidth; + bottom = top + el.offsetHeight; + + return { + left: left, + right: right, + top: top, + bottom: bottom + }; + } + + /** + * Helper that takes object literal + * and add all properties to element.style + * @param {Element} el + * @param {Object} styles + */ + function addStyles(el, styles){ + for (var name in styles) { + if (styles.hasOwnProperty(name)) { + el.style[name] = styles[name]; + } + } + } + + /** + * Function places an absolutely positioned + * element on top of the specified element + * copying position and dimentions. + * @param {Element} from + * @param {Element} to + */ + function copyLayout(from, to){ + var box = getBox(from); + + addStyles(to, { + position: 'absolute', + left : box.left + 'px', + top : box.top + 'px', + width : from.offsetWidth + 'px', + height : from.offsetHeight + 'px' + }); + } + + /** + * Creates and returns element from html chunk + * Uses innerHTML to create an element + */ + var toElement = (function(){ + var div = document.createElement('div'); + return function(html){ + div.innerHTML = html; + var el = div.firstChild; + return div.removeChild(el); + }; + })(); + + /** + * Function generates unique id + * @return unique id + */ + var getUID = (function(){ + var id = 0; + return function(){ + return 'ValumsAjaxUpload' + id++; + }; + })(); + + /** + * Get file name from path + * @param {String} file path to file + * @return filename + */ + function fileFromPath(file){ + return file.replace(/.*(\/|\\)/, ""); + } + + /** + * Get file extension lowercase + * @param {String} file name + * @return file extenstion + */ + function getExt(file){ + return (-1 !== file.indexOf('.')) ? file.replace(/.*[.]/, '') : ''; + } + + function hasClass(el, name){ + var re = new RegExp('\\b' + name + '\\b'); + return re.test(el.className); + } + function addClass(el, name){ + if ( ! hasClass(el, name)){ + el.className += ' ' + name; + } + } + function removeClass(el, name){ + var re = new RegExp('\\b' + name + '\\b'); + el.className = el.className.replace(re, ''); + } + + function removeNode(el){ + el.parentNode.removeChild(el); + } + + /** + * Easy styling and uploading + * @constructor + * @param button An element you want convert to + * upload button. Tested dimentions up to 500x500px + * @param {Object} options See defaults below. + */ + window.AjaxUpload = function(button, options){ + this._settings = { + // Location of the server-side upload script + action: 'upload.php', + // File upload name + name: 'userfile', + // Additional data to send + data: {}, + // Submit file as soon as it's selected + autoSubmit: true, + // The type of data that you're expecting back from the server. + // html and xml are detected automatically. + // Only useful when you are using json data as a response. + // Set to "json" in that case. + responseType: false, + // Class applied to button when mouse is hovered + hoverClass: 'hover', + // Class applied to button when AU is disabled + disabledClass: 'disabled', + // When user selects a file, useful with autoSubmit disabled + // You can return false to cancel upload + onChange: function(file, extension){ + }, + // Callback to fire before file is uploaded + // You can return false to cancel upload + onSubmit: function(file, extension){ + }, + // Fired when file upload is completed + // WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE! + onComplete: function(file, response){ + } + }; + + // Merge the users options with our defaults + for (var i in options) { + if (options.hasOwnProperty(i)){ + this._settings[i] = options[i]; + } + } + + // button isn't necessary a dom element + if (button.jquery){ + // jQuery object was passed + button = button[0]; + } else if (typeof button == "string") { + if (/^#.*/.test(button)){ + // If jQuery user passes #elementId don't break it + button = button.slice(1); + } + + button = document.getElementById(button); + } + + if ( ! button || button.nodeType !== 1){ + throw new Error("Please make sure that you're passing a valid element"); + } + + if ( button.nodeName.toUpperCase() == 'A'){ + // disable link + addEvent(button, 'click', function(e){ + if (e && e.preventDefault){ + e.preventDefault(); + } else if (window.event){ + window.event.returnValue = false; + } + }); + } + + // DOM element + this._button = button; + // DOM element + this._input = null; + // If disabled clicking on button won't do anything + this._disabled = false; + + // if the button was disabled before refresh if will remain + // disabled in FireFox, let's fix it + this.enable(); + + this._rerouteClicks(); + }; + + // assigning methods to our class + AjaxUpload.prototype = { + setData: function(data){ + this._settings.data = data; + }, + disable: function(){ + addClass(this._button, this._settings.disabledClass); + this._disabled = true; + + var nodeName = this._button.nodeName.toUpperCase(); + if (nodeName == 'INPUT' || nodeName == 'BUTTON'){ + this._button.setAttribute('disabled', 'disabled'); + } + + // hide input + if (this._input){ + // We use visibility instead of display to fix problem with Safari 4 + // The problem is that the value of input doesn't change if it + // has display none when user selects a file + this._input.parentNode.style.visibility = 'hidden'; + } + }, + enable: function(){ + removeClass(this._button, this._settings.disabledClass); + this._button.removeAttribute('disabled'); + this._disabled = false; + + }, + /** + * Creates invisible file input + * that will hover above the button + * <div><input type='file' /></div> + */ + _createInput: function(){ + var self = this; + + var input = document.createElement("input"); + input.setAttribute('type', 'file'); + input.setAttribute('name', this._settings.name); + + addStyles(input, { + 'position' : 'absolute', + // in Opera only 'browse' button + // is clickable and it is located at + // the right side of the input + 'right' : 0, + 'margin' : 0, + 'padding' : 0, + 'fontSize' : '480px', + 'cursor' : 'pointer' + }); + + var div = document.createElement("div"); + addStyles(div, { + 'display' : 'block', + 'position' : 'absolute', + 'overflow' : 'hidden', + 'margin' : 0, + 'padding' : 0, + 'opacity' : 0, + // Make sure browse button is in the right side + // in Internet Explorer + 'direction' : 'ltr', + //Max zIndex supported by Opera 9.0-9.2 + 'zIndex': 2147483583 + }); + + // Make sure that element opacity exists. + // Otherwise use IE filter + if ( div.style.opacity !== "0") { + if (typeof(div.filters) == 'undefined'){ + throw new Error('Opacity not supported by the browser'); + } + div.style.filter = "alpha(opacity=0)"; + } + + addEvent(input, 'change', function(){ + + if ( ! input || input.value === ''){ + return; + } + + // Get filename from input, required + // as some browsers have path instead of it + var file = fileFromPath(input.value); + + if (false === self._settings.onChange.call(self, file, getExt(file))){ + self._clearInput(); + return; + } + + // Submit form when value is changed + if (self._settings.autoSubmit) { + self.submit(); + } + }); + + addEvent(input, 'mouseover', function(){ + addClass(self._button, self._settings.hoverClass); + }); + + addEvent(input, 'mouseout', function(){ + removeClass(self._button, self._settings.hoverClass); + + // We use visibility instead of display to fix problem with Safari 4 + // The problem is that the value of input doesn't change if it + // has display none when user selects a file + input.parentNode.style.visibility = 'hidden'; + + }); + + div.appendChild(input); + document.body.appendChild(div); + + this._input = input; + }, + _clearInput : function(){ + if (!this._input){ + return; + } + + // this._input.value = ''; Doesn't work in IE6 + removeNode(this._input.parentNode); + this._input = null; + this._createInput(); + + removeClass(this._button, this._settings.hoverClass); + }, + /** + * Function makes sure that when user clicks upload button, + * the this._input is clicked instead + */ + _rerouteClicks: function(){ + var self = this; + + // IE will later display 'access denied' error + // if you use using self._input.click() + // other browsers just ignore click() + + addEvent(self._button, 'mouseover', function(){ + if (self._disabled){ + return; + } + + if ( ! self._input){ + self._createInput(); + } + + var div = self._input.parentNode; + copyLayout(self._button, div); + div.style.visibility = 'visible'; + + }); + + + // commented because we now hide input on mouseleave + /** + * When the window is resized the elements + * can be misaligned if button position depends + * on window size + */ + //addResizeEvent(function(){ + // if (self._input){ + // copyLayout(self._button, self._input.parentNode); + // } + //}); + + }, + /** + * Creates iframe with unique name + * @return {Element} iframe + */ + _createIframe: function(){ + // We can't use getTime, because it sometimes return + // same value in safari :( + var id = getUID(); + + // We can't use following code as the name attribute + // won't be properly registered in IE6, and new window + // on form submit will open + // var iframe = document.createElement('iframe'); + // iframe.setAttribute('name', id); + + var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />'); + // src="javascript:false; was added + // because it possibly removes ie6 prompt + // "This page contains both secure and nonsecure items" + // Anyway, it doesn't do any harm. + iframe.setAttribute('id', id); + + iframe.style.display = 'none'; + document.body.appendChild(iframe); + + return iframe; + }, + /** + * Creates form, that will be submitted to iframe + * @param {Element} iframe Where to submit + * @return {Element} form + */ + _createForm: function(iframe){ + var settings = this._settings; + + // We can't use the following code in IE6 + // var form = document.createElement('form'); + // form.setAttribute('method', 'post'); + // form.setAttribute('enctype', 'multipart/form-data'); + // Because in this case file won't be attached to request + var form = toElement('<form method="post" enctype="multipart/form-data"></form>'); + + form.setAttribute('action', settings.action); + form.setAttribute('target', iframe.name); + form.style.display = 'none'; + document.body.appendChild(form); + + // Create hidden input element for each data key + for (var prop in settings.data) { + if (settings.data.hasOwnProperty(prop)){ + var el = document.createElement("input"); + el.setAttribute('type', 'hidden'); + el.setAttribute('name', prop); + el.setAttribute('value', settings.data[prop]); + form.appendChild(el); + } + } + return form; + }, + /** + * Gets response from iframe and fires onComplete event when ready + * @param iframe + * @param file Filename to use in onComplete callback + */ + _getResponse : function(iframe, file){ + // getting response + var toDeleteFlag = false, self = this, settings = this._settings; + + addEvent(iframe, 'load', function(){ + + if (// For Safari + iframe.src == "javascript:'%3Chtml%3E%3C/html%3E';" || + // For FF, IE + iframe.src == "javascript:'<html></html>';"){ + // First time around, do not delete. + // We reload to blank page, so that reloading main page + // does not re-submit the post. + + if (toDeleteFlag) { + // Fix busy state in FF3 + setTimeout(function(){ + removeNode(iframe); + }, 0); + } + + return; + } + + var doc = iframe.contentDocument ? iframe.contentDocument : window.frames[iframe.id].document; + + // fixing Opera 9.26,10.00 + if (doc.readyState && doc.readyState != 'complete') { + // Opera fires load event multiple times + // Even when the DOM is not ready yet + // this fix should not affect other browsers + return; + } + + // fixing Opera 9.64 + if (doc.body && doc.body.innerHTML == "false") { + // In Opera 9.64 event was fired second time + // when body.innerHTML changed from false + // to server response approx. after 1 sec + return; + } + + var response; + + if (doc.XMLDocument) { + // response is a xml document Internet Explorer property + response = doc.XMLDocument; + } else if (doc.body){ + // response is html document or plain text + response = doc.body.innerHTML; + + if (settings.responseType && settings.responseType.toLowerCase() == 'json') { + // If the document was sent as 'application/javascript' or + // 'text/javascript', then the browser wraps the text in a <pre> + // tag and performs html encoding on the contents. In this case, + // we need to pull the original text content from the text node's + // nodeValue property to retrieve the unmangled content. + // Note that IE6 only understands text/html + if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE') { + doc.normalize(); + response = doc.body.firstChild.firstChild.nodeValue; + } + + if (response) { + response = eval("(" + response + ")"); + } else { + response = {}; + } + } + } else { + // response is a xml document + response = doc; + } + + settings.onComplete.call(self, file, response); + + // Reload blank page, so that reloading main page + // does not re-submit the post. Also, remember to + // delete the frame + toDeleteFlag = true; + + // Fix IE mixed content issue + iframe.src = "javascript:'<html></html>';"; + }); + }, + /** + * Upload file contained in this._input + */ + submit: function(){ + var self = this, settings = this._settings; + + if ( ! this._input || this._input.value === ''){ + return; + } + + var file = fileFromPath(this._input.value); + + // user returned false to cancel upload + if (false === settings.onSubmit.call(this, file, getExt(file))){ + this._clearInput(); + return; + } + + // sending request + var iframe = this._createIframe(); + var form = this._createForm(iframe); + + // assuming following structure + // div -> input type='file' + removeNode(this._input.parentNode); + removeClass(self._button, self._settings.hoverClass); + + form.appendChild(this._input); + + form.submit(); + + // request set, clean up + removeNode(form); form = null; + removeNode(this._input); this._input = null; + + // Get response from iframe and fire onComplete event when ready + this._getResponse(iframe, file); + + // get ready for next request + this._createInput(); + } + }; +})(); diff --git a/wp-content/themes/vigilance/functions/sidebars.php b/wp-content/themes/vigilance/functions/sidebars.php new file mode 100755 index 0000000000000000000000000000000000000000..4573e20730b826b6daa463c1383fafa40f5567ec --- /dev/null +++ b/wp-content/themes/vigilance/functions/sidebars.php @@ -0,0 +1,28 @@ +<?php +if ( function_exists( 'register_sidebar' ) ) { + register_sidebar( array( + 'name'=> __( 'Wide Sidebar', 'vigilance' ), + 'id' => 'wide_sidebar', + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + ) ); + register_sidebar( array( + 'name'=> __( 'Left Sidebar', 'vigilance' ), + 'id' => 'left_sidebar', + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + ) ); + register_sidebar( array( + 'name'=> __( 'Right Sidebar', 'vigilance' ), + 'id' => 'right_sidebar', + 'before_widget' => '<li id="%1$s" class="widget %2$s">', + 'after_widget' => '</li>', + 'before_title' => '<h2 class="widgettitle">', + 'after_title' => '</h2>', + ) ); +} +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/functions/stylesheets/admin.css b/wp-content/themes/vigilance/functions/stylesheets/admin.css new file mode 100755 index 0000000000000000000000000000000000000000..88e4b60d991e79744a3ddff9378733a3ce69e2dd --- /dev/null +++ b/wp-content/themes/vigilance/functions/stylesheets/admin.css @@ -0,0 +1,162 @@ +.clear:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.clear { zoom: 1; } +div#v-options { + width: 760px; + padding-bottom: 40px; +} +#v-options h1 { + font-family: Georgia, "Times New Roman", Times, Serif; + font-weight: normal; + font-size: 2.2em; +} +#v-options h1.v-trial { + float: left; + margin: 5px 0 0 0; +} +#v-options div.v-top { margin: 20px 0 30px 0; } +#v-options div.v-logo { float: right; } +#v-options div.v-logo a:link, #v-options div.v-logo a:visited { + float: left; + text-indent: -9999em; + margin: 0 0; + display: block; + width: 151px; + height: 30px; + background: url(../images/foundry.png) no-repeat 0 0; + border-style: none; +} +#v-options div.v-logo a:hover { background-position: 0 -50px; } +div#vop-header p { + padding: 15px; + background: #dcf3db; + font-size: 1.1em; + font-style: normal; + border: 1px solid #c9e6C8; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} +div#vop-header p strong { color: #20441e;} +div.v-option h3 { + margin: 15px 0 0 0; + padding: 15px 15px 15px 40px; + font-size: 1.2em; + color: #4e4c41; + background: #f1f1f1 url(../images/toggle.gif) no-repeat 10px 13px; + border: 1px solid #e6e6e6; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + cursor: pointer; +} +div.v-option h3.open { + -moz-border-radius: 6px 6px 0 0; + -webkit-border-top-left-radius: 6px; + -webkit-border-top-right-radius: 6px; + background-position: 10px -27px; +} +div.v-option h3 span { + font-size: .9em; + font-weight: normal; + float: right; + color: #aaa; +} +div.v-option-body { + margin: 0; + padding: 15px; + background: #fbfbfa; + border: 1px solid #e6e6e6; + border-top: none; + -moz-border-radius: 0 0 6px 6px; + -webkit-border-bottom-left-radius: 6px; + -webkit-border-bottom-right-radius: 6px; +} +div.v-notice { + padding: 20px; + background: #fffbcc; + border: 1px solid #f8f4c7; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; +} +div.v-notice h3 { + padding: 0; + margin: 0; + font-size: 1.4em; +} +div.v-notice p { + font-size: 1.1em; + margin: 15px 0 0 0; +} +div#vop-header div.notice h3 { + margin: 0; + font-size: 1.4em; +} +div.v-field { + margin: 30px 0; +} +div.v-field-d { + float: right; + width: 380px; + padding: 15px; + background: #f1f1f1; + color: #777; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; +} +div.v-field.pro div.v-field-d span { + display: block; + padding-right: 40px; + background: url(../images/pro.png) no-repeat 100% 2px; +} +div.v-field.text label, div.v-field.select label, div.v-field.textarea label, div.v-field.colorpicker label { + display: block; + padding-bottom: 5px; +} +div.v-field.colorpicker label a { + font-size: .8em; + text-decoration: none; + border-bottom: 1px dotted; +} +div.v-field.text input, div.v-field.logo-upload input { + width: 250px; + padding: 5px; +} +div.v-field.textarea textarea { + width: 250px; + padding: 5px; + height: 100px; +} +div.v-option div.submit { padding: 0; } +div#vop-body div.v-reset-button { float: right; } +div#vop-body div.v-saveall-button { float: left; } +div#vop-body div.submit input { font-size: 1.1em !important; } +div#vop-body div.submit input.v-reset { font-size: .9em !important; } +div.farbtastic { margin: 10px 0; } +.updated, .error { margin: 5px 15px 2px 0; } +div.v-field-logo div { padding-bottom: 10px; } +.v-field-logo span.logo-file-name { + margin-right: 5px; + padding: 5px 7px; + background-color: #f1f1f1; +} +.v-field-logo a.delete-logo:link, .v-field-logo a.delete-logo:visited { color: red; } +.v-field-logo a.delete-logo { font-size: .8em; } +.v-field-logo a.preview-logo { font-size: .9em ;} +div.v-field.logo-upload label { + display: block; + margin: 10px 0 3px 0; + font-size: .9em; + color: #777; +} +div.v-field.logo-upload input { + width: 200px; + padding: 3px; +} +div.logo-error { + width: 236px; + margin-top: 10px; + padding: 8px 12px; + font-size: .9em; + background: #f7dfe0; + color: #6b1e1f; +} +div.logo-error code { background: #fbeeef; } +div#TB_secondLine { display: none; } \ No newline at end of file diff --git a/wp-content/themes/vigilance/functions/vigilance-admin.php b/wp-content/themes/vigilance/functions/vigilance-admin.php new file mode 100755 index 0000000000000000000000000000000000000000..dcd7d5482f406408a3f1718dbf214b12cae5e9ab --- /dev/null +++ b/wp-content/themes/vigilance/functions/vigilance-admin.php @@ -0,0 +1,233 @@ +<?php + /* + Class Definition + */ + if (!class_exists( 'JestroCore' )) { + class JestroCore { + + var $themename = "Jestro"; + var $themeurl = "http://thethemefoundry.com/"; + var $shortname = "jestro_themes"; + var $options = array(); + + /* PHP4 Compatible Constructor */ + function JestroCore () { + add_action( 'init', array(&$this, 'printAdminScripts' )); + add_action( 'admin_menu', array(&$this, 'addAdminPage' )); + } + + /* Add Custom CSS & JS */ + function printAdminScripts () { + if ( $_GET['page'] == basename(__FILE__) ) { + wp_enqueue_style( 'jestro', get_bloginfo( 'template_directory' ).'/functions/stylesheets/admin.css' ); + wp_enqueue_script( 'jestro', get_bloginfo( 'template_directory' ).'/functions/javascripts/admin.js', array( 'jquery' ) ); + wp_enqueue_script( 'farbtastic' ); + wp_enqueue_style( 'farbtastic' ); + } + } + + /* Process Input and Add Options Page*/ + function addAdminPage() { + // global $themename, $shortname, $options; + if ( $_GET['page'] == basename(__FILE__) ) { + if ( 'save' == $_REQUEST['action'] ) { + foreach ($this->options as $value) { + update_option( $value['id'], $_REQUEST[ $value['id'] ] ); + } + foreach ($this->options as $value) { + if ( isset( $_REQUEST[ $value['id'] ] ) ) { + update_option( $value['id'], $_REQUEST[ $value['id'] ] ); + } else { + delete_option( $value['id'] ); + } + } + header("Location: themes.php?page=".basename(__FILE__)."&saved=true"); + die; + } else if ( 'reset' == $_REQUEST['action'] ) { + foreach ($this->options as $value) { + delete_option( $value['id'] ); + } + header("Location: themes.php?page=".basename(__FILE__)."&reset=true"); + die; + } + } + add_theme_page($this->themename." Options", $this->themename." Options", 'edit_themes', basename(__FILE__), array(&$this, 'adminPage' )); + } + + /* Output of the Admin Page */ + function adminPage () { + // global $themename, $shortname, $options; + if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>' . $this->themename . __( ' settings saved!', 'vigilance' ) . '</strong></p></div>'; + if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>' . $this->themename . __( ' settings reset.', 'vigilance' ) . '</strong></p></div>'; ?> + +<div id="v-options"> + <div class="v-top clear"> + <h1 class="v-trial"><?php echo $this->themename; ?> <?php _e( 'Options', 'vigilance' ); ?></h1> + <div class="v-logo"><a href="http://thethemefoundry.com/">The Theme Foundry</a></div> + </div> + <div id="vop-header"><p><strong><?php _e( 'Need help?', 'vigilance' ); ?></strong> <a href="http://thethemefoundry.com/tutorials/vigilance/"><?php _e( 'Read the tutorials' , 'vigilance' ); ?></a> <?php _e( 'or visit the <a href="http://thethemefoundry.com/forums/">support forums.</a>', 'vigilance' ); ?></p></div> + <div class="v-notice"> + <h3><?php _e( 'Go PRO!', 'vigilance' ); ?></h3> + <p><?php _e( 'You are using the free version of Vigilance. Upgrade to Vigilance PRO for extra features, access to dedicated support, priority theme updates, and comprehensive theme tutorials.', 'vigilance' ); ?></p> + <p><a href="http://thethemefoundry.com/vigilance/"><?php _e( 'Learn more about Vigilance PRO →', 'vigilance' ); ?></a></p> + </div> + <div id="vop-body"> + <form method="post"> +<?php + for ($i = 0; $i < count($this->options); $i++) : + switch ($this->options[$i]["type"]) : + + case "subhead": + if ($i != 0) { ?> + <div class="v-save-button submit"> + <input type="hidden" name="action" value="save" /> + <input class="button-primary" type="submit" value="<?php _e( 'Save changes', 'vigilance' ); ?>" name="save"/> + </div><!--end v-save-button--> + </div> +</div><!--end v-option--><?php } ?> +<div class="v-option"> + <h3><?php echo $this->options[$i]["name"]; ?></h3> + <div class="v-option-body clear"> + <?php $notice = $this->options[$i]["notice"] ?> + <?php if ($notice != '' ) { ?> + <p class="notice"><?php echo $notice; ?></p> + <?php } ?> + <?php + break; + + case "checkbox": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field check clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]; ?></span></div> + <input id="<?php echo $this->options[$i]["id"]; ?>" type="checkbox" name="<?php echo $this->options[$i]["id"]; ?>" value="true"<?php echo (get_settings($this->options[$i]['id'])) ? ' checked="checked"' : ''; ?> /> + <label for="<?php echo $this->options[$i]["id"]; ?>"><?php echo $this->options[$i]["name"]; ?></label> + </div><!--end v-field check--> + <?php + break; + + case "radio": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field radio clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]; ?></span></div> + <?php $pro = $this->options[$i]["pro"] ?> + <?php + $radio_setting = get_settings($this->options[$i]['id']); + $checked = ''; + foreach ($this->options[$i]['options'] as $key => $val) : + if ($radio_setting != '' && $key == get_settings($this->options[$i]['id']) ) { + $checked = ' checked="checked"'; + } else { + if ($key == $this->options[$i]['std']){ + $checked = 'checked="checked"'; + } + } + ?> + <input type="radio" name="<?php echo $this->options[$i]['id']; ?>" value="<?php echo $key; ?>"<?php echo $checked; ?> /><?php echo $val; ?><br /> + <?php endforeach; ?> + <label for="<?php echo $this->options[$i]["id"]; ?>"><?php echo $this->options[$i]["name"]; ?></label> + </div><!--end v-field radio--> + <?php + break; + + case "text": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field text clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]; ?></span></div> + <label for="<?php echo $this->options[$i]["id"]; ?>"><?php echo $this->options[$i]["name"]; ?></label> + <input id="<?php echo $this->options[$i]["id"]; ?>" type="text" name="<?php echo $this->options[$i]["id"]; ?>" value="<?php echo stripslashes((get_settings($this->options[$i]["id"]) != '') ? get_settings($this->options[$i]["id"]) : $this->options[$i]["std"]); ?>" /> + </div><!--end v-field text--> + <?php + break; + + case "colorpicker": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field colorpicker clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]; ?></span></div> + <label for="<?php echo $this->options[$i]["id"]; ?>"><?php echo $this->options[$i]["name"]; ?><?php if ($pro != 'true' ) { ?> <a href="javascript:return false;" onclick="toggleColorpicker (this, '<?php echo $this->options[$i]["id"]; ?>', 'open', '<?php _e( 'show color picker', 'vigilance' ); ?>', '<?php _e( 'hide color picker', 'vigilance' ); ?>' )"><?php _e( 'show color picker', 'vigilance' ); ?><?php } ?></a></label> + <div id="<?php echo $this->options[$i]["id"]; ?>_colorpicker" class="colorpicker_container"></div> + <input id="<?php echo $this->options[$i]["id"]; ?>" type="text" name="<?php echo $this->options[$i]["id"]; ?>" value="<?php echo (get_settings($this->options[$i]["id"]) != '') ? get_settings($this->options[$i]["id"]) : $this->options[$i]["std"]; ?>" /> + </div><!--end v-field colorpicker--> + <?php + break; + + case "select": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field select clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]?></span></div> + <label for="<?php echo $this->options[$i]["id"]; ?>"><?php echo $this->options[$i]["name"]; ?></label> + <select id="<?php echo $this->options[$i]["id"]; ?>" name="<?php echo $this->options[$i]["id"]; ?>"> + <?php + foreach ($this->options[$i]["options"] as $key => $val) : + if (get_settings($this->options[$i]["id"]) == '' || is_null(get_settings($this->options[$i]["id"]))) : ?> + <option value="<?php echo $key; ?>"<?php echo ($key == $this->options[$i]['std']) ? ' selected="selected"' : ''; ?>><?php echo $val; ?></option> + <?php else : ?> + <option value="<?php echo $key; ?>"<?php echo get_settings($this->options[$i]["id"]) == $key ? ' selected="selected"' : ''; ?>><?php echo $val; ?></option> + <?php + endif; + endforeach; + ?> + </select> + </div><!--end v-field select--> + <?php + break; + + case "textarea": + ?> + <?php $pro = $this->options[$i]["pro"] ?> + <div class="v-field textarea clear <?php if ($pro == 'true' ) echo 'pro' ?>"> + <div class="v-field-d"><span><?php echo $this->options[$i]["desc"]?></span></div> + <label for="<?php echo $this->options[$i]["id"]?>"><?php echo $this->options[$i]["name"]?></label> + <textarea id="<?php echo $this->options[$i]["id"]?>" name="<?php echo $this->options[$i]["id"]?>"<?php echo ($this->options[$i]["options"] ? ' rows="'.$this->options[$i]["options"]["rows"].'" cols="'.$this->options[$i]["options"]["cols"].'"' : ''); ?>><?php + echo ( get_settings($this->options[$i]['id']) != '') ? stripslashes(get_settings($this->options[$i]['id'])) : stripslashes($this->options[$i]['std']); + ?></textarea> + </div><!--end vop-v-field textarea--> + <?php + break; + + endswitch; + endfor; + ?> + <div class="v-save-button submit"> + <input type="submit" value="<?php _e( 'Save changes', 'vigilance' ); ?>" name="save"/> + </div><!--end v-save-button--> + </div> + </div> + <div class="v-saveall-button submit"> + <input class="button-primary" type="submit" value="<?php _e( 'Save all changes', 'vigilance' ); ?>" name="save"/> + </div> + </form> + <div class="v-reset-button submit"> + <form method="post"> + <input type="hidden" name="action" value="reset" /> + <input class="v-reset" type="submit" value="<?php _e( 'Reset all options', 'vigilance' ); ?>" name="reset"/> + </form> + </div> + + <script type="text/javascript"> + <?php + for ($i = 0; $i < count($this->options); $i++) : + if ( ($this->options[$i]['type'] == 'colorpicker' ) && ($this->options[$i]['pro'] != 'true' ) ) : + ?> + jQuery("#<?php echo $this->options[$i]["id"]; ?>_colorpicker").farbtastic("#<?php echo $this->options[$i]["id"]; ?>"); + <?php + endif; + endfor; + ?> + jQuery( '.colorpicker_container' ).hide(); + jQuery("div.v-field.pro input, div.v-field.pro select, div.v-field.pro textarea").attr("disabled", "disabled"); + </script> + </div><!--end vop-body--> +</div><!--end v-options--> + + <?php + } + } + } + +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/functions/vigilance-extend.php b/wp-content/themes/vigilance/functions/vigilance-extend.php new file mode 100755 index 0000000000000000000000000000000000000000..5fcd149c58d806ba647b6bab0f5b0457c0ed42c1 --- /dev/null +++ b/wp-content/themes/vigilance/functions/vigilance-extend.php @@ -0,0 +1,472 @@ +<?php + /* REQUIRE THE CORE CLASS */ + require_once ( 'vigilance-admin.php' ); + /* + Class Definition + */ + if (!class_exists( 'Vigilance' )) { + class Vigilance extends JestroCore { + + /* PHP4 Constructor */ + function Vigilance () { + + /* SET UP THEME SPECIFIC VARIABLES */ + $this->themename = "Vigilance"; + $this->themeurl = "http://thethemefoundry.com/vigilance/"; + $this->shortname = "V"; + /* + OPTION TYPES: + - checkbox: name, id, desc, std, type + - radio: name, id, desc, std, type, options + - text: name, id, desc, std, type + - colorpicker: name, id, desc, std, type + - select: name, id, desc, std, type, options + - textarea: name, id, desc, std, type, options + */ + $this->options = array( + + array( + "name" => __( 'Navigation <span>control your top navigation menu</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Hide all pages', 'vigilance' ), + "id" => $this->shortname."_hide_pages", + "desc" => __( 'Check this box to hide all pages.', 'vigilance' ), + "std" => '', + "type" => "checkbox"), + + array( + "name" => __( 'Hide all categories', 'vigilance' ), + "id" => $this->shortname."_hide_cats", + "desc" => __( 'Check this box to hide all categories.', 'vigilance' ), + "std" => '', + "type" => "checkbox"), + + array( + "name" => __( 'Color Scheme <span>customize your color scheme</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Customize colors', 'vigilance' ), + "id" => $this->shortname."_background_css", + "desc" => __( 'If enabled your theme will use the layouts and colors you choose below.', 'vigilance' ), + "std" => "disabled", + "type" => "select", + "options" => array( + "disabled" => __( 'Disabled', 'vigilance' ), + "enabled" => __( 'Enabled', 'vigilance' ) ) ), + + array( + "name" => __( 'Border color', 'vigilance' ), + "id" => $this->shortname."_border_color", + "desc" => __( 'Use hex values and be sure to include the leading #.', 'vigilance' ), + "std" => "#9a927f", + "type" => "colorpicker"), + + array( + "name" => __( 'Link color', 'vigilance' ), + "id" => $this->shortname."_link_color", + "desc" => __( 'Use hex values and be sure to include the leading #.', 'vigilance' ), + "std" => "#772124", + "type" => "colorpicker"), + + array( + "name" => __( 'Link hover color', 'vigilance' ), + "id" => $this->shortname."_hover_color", + "desc" => __( 'Use hex values and be sure to include the leading #.', 'vigilance' ), + "std" => "#58181b", + "type" => "colorpicker"), + + array( + "name" => __( 'Disable hover background images', 'vigilance' ), + "id" => $this->shortname."_image_hover", + "desc" => __( 'Check this box if you use custom link colors and do not want the default red showing when a user hovers over the comments bubble or the sidebar menu items.', 'vigilance' ), + "std" => "false", + "type" => "checkbox"), + + array( + "name" => __( 'Top Banner Image <span>control your top banner image state</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Banner state', 'vigilance' ), + "id" => $this->shortname."_banner_state", + "desc" => __( sprintf( __( 'Add your images to the top banner rotation by uploading them to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/top-banner/</code>' ), 'vigilance' ), + "std" => "hide", + "type" => "select", + "options" => array( + "rotate" => __( 'Rotating images', 'vigilance' ), + "static" => __( 'Static image', 'vigilance' ), + "specific" => __( 'Page or post specific', 'vigilance' ), + "custom" => __( 'Custom code', 'vigilance' ), + "hide" => __( 'Do not show an image', 'vigilance' ) ) ), + + array( + "name" => __( 'Banner height', 'vigilance' ), + "id" => $this->shortname."_banner_height", + "desc" => __( 'The height of your image. The width is fixed at 596px.', 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Banner <code><alt></code> tag', 'vigilance' ), + "id" => $this->shortname."_banner_alt", + "desc" => __( 'Specify the <code><alt></code> tag for your banner image(s). Will default to your blog title if left blank.', 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Static image name', 'vigilance' ), + "id" => $this->shortname."_banner_url", + "desc" => __( sprintf( __( 'Set the <em>Banner State</em> to "Static Image" and upload your image to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/top-banner/</code>' ), 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Home image name', 'vigilance' ), + "id" => $this->shortname."_banner_home", + "desc" => __( sprintf( __( 'To replace your home top banner with a specific image upload it to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/top-banner/</code>' ), 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Custom code', 'vigilance' ), + "id" => $this->shortname."_banner_custom", + "desc" => __( 'Replace your top banner with custom code. The <em>Banner State</em> must be set to "Custom code" for this to work.', 'vigilance' ), + "std" => '', + "type" => "textarea", + "options" => array( + "rows" => "5", + "cols" => "40") ), + + array( + "name" => __( 'Sidebar Image <span>control your sidebar image state</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Image state', 'vigilance' ), + "desc" => __( sprintf( __( 'Add your images to the sidebar rotation by uploading them to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/sidebar/</code>' ), 'vigilance' ), + "id" => $this->shortname."_sideimg_state", + "std" => "hide", + "type" => "select", + "options" => array( + "rotate" => __( 'Rotating images', 'vigilance' ), + "static" => __( 'Static image', 'vigilance' ), + "custom" => __( 'Custom code', 'vigilance' ), + "specific" => __( 'Page or post specific', 'vigilance' ), + "hide" => __( 'Do not show an image', 'vigilance' ) ) ), + + array( + "name" => __( 'Image height', 'vigilance' ), + "id" => $this->shortname."_sideimg_height", + "desc" => __( 'The height of your image. The width is fixed at 300px.', 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Image <code><alt></code> tag', 'vigilance' ), + "id" => $this->shortname."_sideimg_alt", + "desc" => __( sprintf( __( 'The %s tag for your sidebar image(s). Will default to your blog title if left blank.' ), '<code><alt></code>' ), 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Static image', 'vigilance' ), + "id" => $this->shortname."_sideimg_url", + "desc" => __( sprintf( __( 'Set the <em>Image State</em> to "Static Image" and upload your image to the %s directory.' ), '<code>' . STYLESHEETPATH . '/images/sidebar/</code>'), 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Image link', 'vigilance' ), + "id" => $this->shortname."_sideimg_link", + "desc" => __( 'Define a hyperlink for your sidebar image. If left empty the anchor tags will not be included.', 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Custom code', 'vigilance' ), + "id" => $this->shortname."_sideimg_custom", + "desc" => __( 'Replace your sidebar image with custom code. The <em>Image State</em> must be set to "Custom code" for this to work.', 'vigilance' ), + "std" => '', + "type" => "textarea", + "options" => array( + "rows" => "5", + "cols" => "40") ), + + array( + "name" => __( 'Sidebar Feed Box <span>share feeds and updates with your readers</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Feed box state', 'vigilance' ), + "desc" => __( 'Enable or disable the feed box located in the sidebar.', 'vigilance' ), + "id" => $this->shortname."_feed_state", + "std" => "enabled", + "type" => "select", + "options" => array( + "disabled" => __( 'Disabled', 'vigilance' ), + "enabled" => __( 'Enabled', 'vigilance' ))), + + array( + "name" => __( 'Feed box title text', 'vigilance' ), + "id" => $this->shortname."_feed_title", + "desc" => __( 'Header for your feed box.', 'vigilance' ), + "std" => __( 'Get Free Updates', 'vigilance' ), + "type" => "text"), + + array( + "name" => __( 'Feed box intro text', 'vigilance' ), + "id" => $this->shortname."_feed_intro", + "desc" => __( 'Enter your feed intro text here.', 'vigilance' ), + "std" => __( 'Get the latest and the greatest news delivered for free to your reader or your inbox:', 'vigilance' ), + "type" => "textarea", + "options" => array( + "rows" => "5", + "cols" => "40") ), + + array( + "name" => __( '<a href="http://feedburner.google.com/">Feedburner</a> email updates link', 'vigilance' ), + "id" => $this->shortname."_feed_email", + "desc" => __( 'Enter your feed email link here. Do not paste the provided link code, extract and paste the URL only.', 'vigilance' ), + "std" => "http://feedburner.google.com/fb/a/mailverify?uri=YOURFEEDID&loc=en_US", + "type" => "textarea", + "options" => array( + "rows" => "2", + "cols" => "80") ), + + array( + "name" => __( 'Footer <span>add a copyright notice and tracking codes</span>', 'vigilance' ), + "type" => "subhead"), + + array( + "name" => __( 'Copyright notice', 'vigilance' ), + "id" => $this->shortname."_copyright_name", + "desc" => __( 'Your name or the name of your business.', 'vigilance' ), + "std" => '', + "type" => "text"), + + array( + "name" => __( 'Stats code', 'vigilance' ), + "id" => $this->shortname."_stats_code", + "desc" => __( sprintf( __( 'If you would like to use Google Analytics or any other tracking script in your footer just paste it here. The script will be inserted before the closing %s tag.' ), '<code></body></code>' ), 'vigilance' ), + "std" => '', + "type" => "textarea", + "options" => array( + "rows" => "5", + "cols" => "40") ), + ); + parent::JestroCore(); + + add_filter( 'wp_head', array( &$this, 'addCssStyles' ) ); + } + + /* + ALL OF THE FUNCTIONS BELOW + ARE BASED ON THE OPTIONS ABOVE + EVERY OPTION SHOULD HAVE A FUNCTION + + THESE FUNCTIONS CURRENTLY JUST + RETURN THE OPTION, BUT COULD BE + REWRITTEN TO RETURN DIFFERENT DATA + */ + + /* LOGO FUNCTIONS */ + function logoState () { + return get_option($this->shortname.'_logo' ); + } + function logoName () { + return get_option($this->shortname.'_logo_img' ); + } + function logoAlt () { + return get_option($this->shortname.'_logo_img_alt' ); + } + function logoTagline () { + return get_option($this->shortname.'_tagline' ); + } + + /* NAVIGATION FUNCTIONS */ + function excludedPages () { + return get_option($this->shortname.'_pages_to_exclude' ); + } + function excludedCategories () { + return get_option($this->shortname.'_categories_to_exclude' ); + } + function hidePages () { + return get_option($this->shortname.'_hide_pages' ); + } + function hideCategories () { + return get_option($this->shortname.'_hide_cats' ); + } + function hideHome () { + return get_option($this->shortname.'_hide_home' ); + } + + /* FOOTER FUNCTIONS */ + function copyrightName() { + return wp_filter_post_kses(get_option($this->shortname.'_copyright_name' )); + } + function statsCode() { + return stripslashes(get_option($this->shortname.'_stats_code' )); + } + + /* ALERTBOX FUNCTIONS */ + function alertboxState() { + return get_option($this->shortname.'_alertbox_state' ); + } + function alertboxTitle() { + return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_alertbox_title' ))); + } + function alertboxContent() { + return stripslashes(wp_filter_post_kses(wpautop(get_option($this->shortname.'_alertbox_content' )))); + } + + /* BANNER FUNCTIONS */ + function bannerState() { + return get_option($this->shortname.'_banner_state' ); + } + function BannerHeight() { + return wp_filter_post_kses(get_option($this->shortname.'_banner_height' )); + } + function bannerAlt() { + return get_option($this->shortname.'_banner_alt' ); + } + function bannerUrl() { + return wp_filter_post_kses(get_option($this->shortname.'_banner_url' )); + } + function bannerHome() { + return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_banner_home' ))); + } + function bannerCustom() { + return stripslashes(get_option($this->shortname.'_banner_custom' )); + } + + /* FEED FUNCTIONS */ + function feedState() { + return get_option($this->shortname.'_feed_state' ); + } + function feedTitle() { + return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_feed_title' ))); + } + function feedIntro() { + return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_feed_intro' ))); + } + function feedEmail() { + return htmlspecialchars(wp_filter_post_kses(get_option($this->shortname.'_feed_email')), UTF-8); + } + + /* TWITTER FUNCTIONS */ + function twitter() { + return htmlspecialchars(wp_filter_post_kses(get_option($this->shortname.'_twitter')), UTF-8); + } + function twitterToggle() { + return get_option($this->shortname.'_twitter_toggle' ); + } + + /* SIDE IMAGE FUNCTIONS */ + function sideimgState() { + return get_option($this->shortname.'_sideimg_state' ); + } + function sideimgHeight() { + return wp_filter_post_kses(get_option($this->shortname.'_sideimg_height' )); + } + function sideimgAlt() { + return stripslashes(wp_filter_post_kses(get_option($this->shortname.'_sideimg_alt' ))); + } + function sideimgUrl() { + return wp_filter_post_kses(get_option($this->shortname.'_sideimg_url' )); + } + function sideimgLink() { + return wp_filter_post_kses(get_option($this->shortname.'_sideimg_link' )); + } + function sideimgCustom() { + return stripslashes(get_option($this->shortname.'_sideimg_custom' )); + } + + /* CSS FUNCTIONS */ + function backgroundCss() { + return get_option($this->shortname.'_background_css' ); + } + function backgroundColor() { + return "#a39c8a"; + } + function borderColor() { + return get_option($this->shortname.'_border_color' ); + } + function linkColor() { + return get_option($this->shortname.'_link_color' ); + } + function hoverColor() { + return get_option($this->shortname.'_hover_color' ); + } + function imageHover() { + return get_option($this->shortname.'_image_hover' ); + } + function addCssStyles() { + if ( $this->backgroundCss() == 'enabled' || $this->imageHover() == 'true' ) : + ?> + <style type="text/css"> + <?php if ($this->backgroundCss() == 'enabled' ) : ?> + /*Background + ------------------------------------------------------------ */ + body { background-color: <?php echo $this->backgroundColor(); ?>; } + #wrapper { + background: #fff; + padding: 0 20px 10px 20px; + border-left: 4px solid <?php echo $this->borderColor(); ?>; + border-right: 4px solid <?php echo $this->borderColor(); ?>; + } + /*Links + ------------------------------------------------------------ */ + #content a:link, #content a:visited { color: <?php echo $this->linkColor(); ?>; } + #sidebar a:link, #sidebar a:visited { color: <?php echo $this->linkColor(); ?>; } + h1#title a:hover, div#title a:hover { color: <?php echo $this->linkColor(); ?>; } + #nav li.current_page_item a, #nav li.current_page_parent a, #nav li.current_page_ancestor a, #nav li.current-cat a, #nav li a:hover { + color: <?php echo $this->linkColor(); ?>; + border-top: 4px solid <?php echo $this->linkColor(); ?>; + } + .post-header h1 a:hover, .post-header h2 a:hover { color: <?php echo $this->linkColor(); ?>; } + .comments a:hover { color: <?php echo $this->linkColor(); ?>; } + .meta a:hover { color: <?php echo $this->linkColor(); ?>; } + .highlight-box { background: <?php echo $this->linkColor(); ?>; } + .post-footer a:hover { color: <?php echo $this->linkColor(); ?>; } + #footer a:hover { color: <?php echo $this->linkColor(); ?>; } + /*Hover + ------------------------------------------------------------ */ + #content .entry a:hover { color: <?php echo $this->hoverColor(); ?>; } + #wrapper #sidebar a:hover { color: <?php echo $this->hoverColor(); ?>; } + /*Reset Specific Link Colors + ------------------------------------------------------------ */ + #content .post-header h1 a:link, #content .post-header h1 a:visited, #content .post-header h2 a:link, #content .post-header h2 a:visited { color: #444; } + #content .post-header h1 a:hover, #content .post-header h2 a:hover { color: <?php echo $this->linkColor(); ?>; } + #content .comments a { color: #757575; } + #content .comments a:hover { color: <?php echo $this->linkColor(); ?>; } + #content .meta a:link, #content .meta a:visited { color: #666; } + #content .meta a:hover { color: <?php echo $this->linkColor(); ?>; } + #content .post-footer a:link, #content .post-footer a:visited { color: #333; } + #content .c-permalink a:link, #content .c-permalink a:visited { color: #ccc; } + #content .reply a:link, #reply .c-permalink a:visited { color: #aaa; } + #content .reply a:hover { color: <?php echo $this->linkColor(); ?>; } + #footer a:link, #footer a:visited { color: #666; } + #footer a:hover { color: <?php echo $this->linkColor(); ?>; } + <?php endif; ?> + <?php if ($this->imageHover() == 'true' ) : ?> + /*Hide hover colors on comment images and sidebar menu images + ------------------------------------------------------------ */ + .comments a:hover { background-position: 0 4px; } + ul li.widget ul li a:hover { background-position: 0 6px; } + <?php endif; ?> + + </style> + <?php + endif; + } + } + } + /* SETTING EVERYTHING IN MOTION */ + if (class_exists( 'Vigilance' )) { + $vigilance = new Vigilance(); + } + +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/header-alertbox.php b/wp-content/themes/vigilance/header-alertbox.php new file mode 100755 index 0000000000000000000000000000000000000000..fa3a0377da861447d24d40d5f278a2d4c895b7d2 --- /dev/null +++ b/wp-content/themes/vigilance/header-alertbox.php @@ -0,0 +1,7 @@ +<?php global $vigilance; ?> +<?php if ($vigilance->alertboxState() == 'on' ) { ?> + <div class="alert-box entry"> + <h2><?php echo $vigilance->alertboxTitle(); ?></h2> + <?php echo $vigilance->alertboxContent(); ?> + </div><!--end alert-box--> +<?php } ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/header-banner.php b/wp-content/themes/vigilance/header-banner.php new file mode 100755 index 0000000000000000000000000000000000000000..b633c7cbdc033fbca3754525e2dd5a5ddc7cba36 --- /dev/null +++ b/wp-content/themes/vigilance/header-banner.php @@ -0,0 +1,40 @@ +<?php global $vigilance; + $custom_field_url = get_post_meta($post->ID, 'img-url', $single = true); + $custom_field_alt = stripslashes(wp_filter_post_kses(get_post_meta($post->ID, 'img-alt', $single = true))); + $custom_field_height = wp_filter_post_kses(get_post_meta($post->ID, 'img-height', $single = true)); + $custom_field_status = get_post_meta($post->ID, 'img-status', $single = true); +?> + +<?php //-----Page and Post Specific---------------------------------------------------------------------------------// +if ((is_single() || is_page()) && ($custom_field_url !== '' && !is_home() && $custom_field_status !== 'hidden' ) || ($vigilance->bannerState() == 'specific' && !is_home())) : ?> + <?php if ((is_single() || is_page()) && ($custom_field_url !== '' && $custom_field_status !== 'hidden' )) { ?> + <div id="menu"> + <img src="<?php echo $custom_field_url; ?>" width="596" height="<?php if ($custom_field_height !== '' ) echo $custom_field_height; else echo $vigilance->bannerHeight(); ?>" alt="<?php if ($custom_field_alt !== '' ) echo $custom_field_alt; else echo the_title(); ?>"/> + </div><!--end menu--> + <?php } ?> +<?php //-----Home Page---------------------------------------------------------------------------------// +elseif ($vigilance->bannerHome() != '' && is_home()) : ?> + <div id="menu"> + <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/top-banner/<?php echo $vigilance->bannerHome(); ?>" width="596" <?php if ($vigilance->bannerHeight() != '' ) { ?> height="<?php echo $vigilance->bannerHeight(); ?>" <?php }; ?> alt="<?php if ($vigilance->bannerAlt() !== '' ) echo $vigilance->bannerAlt(); else echo bloginfo( 'name' ); ?>"/> + </div><!--end menu--> + +<?php //-----Static Image---------------------------------------------------------------------------------// +elseif ($vigilance->bannerState() == 'static' && $vigilance->bannerUrl() !== '' ) : ?> + <div id="menu"> + <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/top-banner/<?php echo $vigilance->bannerUrl(); ?>" width="596" <?php if ($vigilance->bannerHeight() != '' ) { ?> height="<?php echo $vigilance->bannerHeight(); ?>" <?php }; ?> alt="<?php if ($vigilance->bannerAlt() !== '' ) echo $vigilance->bannerAlt(); else echo bloginfo( 'name' ); ?>"/> + </div><!--end menu--> + +<?php //------Custom Code---------------------------------------------------------------------------------// +elseif ($vigilance->bannerState() == 'custom' ) : ?> + <div id="menu"> + <?php echo $vigilance->bannerCustom(); ?> + </div><!--end menu--> + +<?php //-----Rotating Image---------------------------------------------------------------------------------// +else : ?> + <?php if ($vigilance->bannerState() == 'rotate' ) : ?> + <div id="menu"> + <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/top-banner/rotate.php" width="596" <?php if ($vigilance->bannerHeight() != '' ) { ?> height="<?php echo $vigilance->bannerHeight(); ?>" <?php }; ?> alt="<?php if ($vigilance->bannerAlt() !== '' ) echo $vigilance->bannerAlt(); else echo bloginfo( 'name' ); ?>"/> + </div><!--end menu--> + <?php endif; ?> +<?php endif; ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/header.php b/wp-content/themes/vigilance/header.php new file mode 100755 index 0000000000000000000000000000000000000000..5c852171a08146a755eef1ff7bd204ada89bf9f7 --- /dev/null +++ b/wp-content/themes/vigilance/header.php @@ -0,0 +1,61 @@ +<?php global $vigilance; ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> +<head> + <?php if ( is_front_page() ) : ?> + <title><?php bloginfo( 'name' ); ?></title> + <?php elseif ( is_404() ) : ?> + <title><?php _e( 'Page Not Found |', 'vigilance' ); ?> <?php bloginfo( 'name' ); ?></title> + <?php elseif ( is_search() ) : ?> + <title><?php printf( __("Search results for '%s'", "vigilance"), get_search_query()); ?> | <?php bloginfo( 'name' ); ?></title> + <?php else : ?> + <title><?php wp_title($sep = '' ); ?> | <?php bloginfo( 'name' );?></title> + <?php endif; ?> + + <!-- Basic Meta Data --> + <meta name="copyright" content="Design is copyright 2008 - <?php echo date('Y'); ?> The Theme Foundry" /> + <meta http-equiv="imagetoolbar" content="no" /> + <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> + <?php if ((is_single() || is_category() || is_page() || is_home()) && (!is_paged())) {} else { ?> + <meta name="robots" content="noindex,follow" /> + <?php } ?> + + <!-- Favicon --> + <link rel="shortcut icon" href="<?php bloginfo( 'stylesheet_directory' ); ?>/images/favicon.ico" /> + + <!--Stylesheets--> + <link href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" rel="stylesheet" /> + <!--[if lt IE 8]><link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'template_url' ); ?>/stylesheets/ie.css" /><![endif]--> + <!--[if lte IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo( 'template_url' ); ?>/stylesheets/ie6.css" /><![endif]--> + + <!--WordPress--> + <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?> RSS Feed" href="<?php bloginfo( 'rss2_url' ); ?>" /> + <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> + + <!--WP Hook--> + <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> + <?php wp_head(); ?> +</head> +<body <?php body_class(); ?>> + <div class="skip-content"><a href="#content"><?php _e( 'Skip to content', 'vigilance' ); ?></a></div> + <div id="wrapper"> + <div id="header" class="clear"> + <?php if (is_home()) echo( '<h1 id="title">' ); else echo( '<div id="title">' );?><a href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a><?php if (is_home()) echo( '</h1>' ); else echo( '</div>' );?> + <div id="description"> + <h2><?php bloginfo( 'description' ); ?></h2> + </div><!--end description--> + <div id="nav"> + <ul> + <li class="page_item <?php if (is_front_page()) echo( 'current_page_item' );?>"><a href="<?php bloginfo( 'url' ); ?>"><?php _e( 'Home', 'vigilance' ); ?></a></li> + <?php if ($vigilance->hidePages() !== 'true' ) : ?> + <?php wp_list_pages( 'title_li=&depth=1' ); ?> + <?php endif; ?> + <?php if ($vigilance->hideCategories() != 'true' ) : ?> + <?php wp_list_categories( 'title_li=&depth=1' ); ?> + <?php endif; ?> + </ul> + </div><!--end nav--> + </div><!--end header--> + <div id="content" class="pad"> + <?php if (is_file(STYLESHEETPATH . '/header-banner.php' )) include(STYLESHEETPATH . '/header-banner.php' ); else include(TEMPLATEPATH . '/header-banner.php' ); ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/images/archives-dotted-line.gif b/wp-content/themes/vigilance/images/archives-dotted-line.gif new file mode 100755 index 0000000000000000000000000000000000000000..be81d27ba2ee13d753f758e0f4f164eca31ed1a2 Binary files /dev/null and b/wp-content/themes/vigilance/images/archives-dotted-line.gif differ diff --git a/wp-content/themes/vigilance/images/blockquote.gif b/wp-content/themes/vigilance/images/blockquote.gif new file mode 100755 index 0000000000000000000000000000000000000000..d073b834ce7594b7a015c074c99633bcc8f76e6a Binary files /dev/null and b/wp-content/themes/vigilance/images/blockquote.gif differ diff --git a/wp-content/themes/vigilance/images/comments-bubble-archive.gif b/wp-content/themes/vigilance/images/comments-bubble-archive.gif new file mode 100755 index 0000000000000000000000000000000000000000..33b6e61360e5f7041e97d9e276f99ab3382d04b9 Binary files /dev/null and b/wp-content/themes/vigilance/images/comments-bubble-archive.gif differ diff --git a/wp-content/themes/vigilance/images/comments-bubble-big.gif b/wp-content/themes/vigilance/images/comments-bubble-big.gif new file mode 100755 index 0000000000000000000000000000000000000000..74e9ad6210b508444b63d7c9d04e2a306cbd87d3 Binary files /dev/null and b/wp-content/themes/vigilance/images/comments-bubble-big.gif differ diff --git a/wp-content/themes/vigilance/images/comments-bubble.gif b/wp-content/themes/vigilance/images/comments-bubble.gif new file mode 100755 index 0000000000000000000000000000000000000000..6ed4f4719953837fa566a15e43babb0c4fd37a96 Binary files /dev/null and b/wp-content/themes/vigilance/images/comments-bubble.gif differ diff --git a/wp-content/themes/vigilance/images/feed-icon.png b/wp-content/themes/vigilance/images/feed-icon.png new file mode 100755 index 0000000000000000000000000000000000000000..b3c949d2244f2c0c81d65e74719af2a1b56d06a3 Binary files /dev/null and b/wp-content/themes/vigilance/images/feed-icon.png differ diff --git a/wp-content/themes/vigilance/images/float-quote.gif b/wp-content/themes/vigilance/images/float-quote.gif new file mode 100755 index 0000000000000000000000000000000000000000..5a99bda3dc41e4aa9be42d186026f1fa4d459bcb Binary files /dev/null and b/wp-content/themes/vigilance/images/float-quote.gif differ diff --git a/wp-content/themes/vigilance/images/list-item.gif b/wp-content/themes/vigilance/images/list-item.gif new file mode 100755 index 0000000000000000000000000000000000000000..39ed3dcd4e8c70e87ec950cb6be82e56bcd9fdfa Binary files /dev/null and b/wp-content/themes/vigilance/images/list-item.gif differ diff --git a/wp-content/themes/vigilance/images/list-square.gif b/wp-content/themes/vigilance/images/list-square.gif new file mode 100755 index 0000000000000000000000000000000000000000..dd17f8b45ca416e6392abc2df60eb514b8285626 Binary files /dev/null and b/wp-content/themes/vigilance/images/list-square.gif differ diff --git a/wp-content/themes/vigilance/images/list-star.gif b/wp-content/themes/vigilance/images/list-star.gif new file mode 100755 index 0000000000000000000000000000000000000000..e09335c070c6a55aa85fa94fd4149f27102007be Binary files /dev/null and b/wp-content/themes/vigilance/images/list-star.gif differ diff --git a/wp-content/themes/vigilance/images/mail-icon.png b/wp-content/themes/vigilance/images/mail-icon.png new file mode 100755 index 0000000000000000000000000000000000000000..5c43126d64dab90e52162a76fcccb9ef9fe9925f Binary files /dev/null and b/wp-content/themes/vigilance/images/mail-icon.png differ diff --git a/wp-content/themes/vigilance/images/sidebar/rotate.php b/wp-content/themes/vigilance/images/sidebar/rotate.php new file mode 100755 index 0000000000000000000000000000000000000000..40282bcf4301aa611ca6ff15314b94ec643b8312 --- /dev/null +++ b/wp-content/themes/vigilance/images/sidebar/rotate.php @@ -0,0 +1,206 @@ +<?php + +/* + + AUTOMATIC IMAGE ROTATOR + Version 2.2 - December 4, 2003 + Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd. + All Rights Reserved. + + http://www.hiveware.com/imagerotator.php + + http://www.automaticlabs.com/ + + + DISCLAIMER + Automatic, Ltd. makes no representations or warranties about + the suitability of the software, either express or + implied, including but not limited to the implied + warranties of merchantability, fitness for a particular + purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd. + shall not be liable for any damages suffered by licensee + as a result of using, modifying or distributing this + software or its derivatives. + + + ABOUT + This PHP script will randomly select an image file from a + folder of images on your webserver. You can then link to it + as you would any standard image file and you'll see a random + image each time you reload. + + When you want to add or remove images from the rotation-pool, + just add or remove them from the image rotation folder. + + + VERSION CHANGES + Version 1.0 + - Release version + + Version 1.5 + - Tweaked a few boring bugs + + Version 2.0 + - Complete rewrite from the ground-up + - Made it clearer where to make modifications + - Made it easier to specify/change the rotation-folder + - Made it easier to specify/change supported image types + - Wrote better instructions and info (you're them reading now) + - Significant speed improvements + - More error checking + - Cleaner code (albeit more PHP-specific) + - Better/faster random number generation and file-type parsing + - Added a feature where the image to display can be specified + - Added a cool feature where, if an error occurs (such as no + images being found in the specified folder) *and* you're + lucky enough to have the GD libraries compiled into PHP on + your webserver, we generate a replacement "error image" on + the fly. + + Version 2.1 + - Updated a potential security flaw when value-matching + filenames + + Version 2.2 + - Updated a few more potential security issues + - Optimized the code a bit. + - Expanded the doc for adding new mime/image types. + + Thanks to faithful ALA reader Justin Greer for + lots of good tips and solid code contribution! + + + INSTRUCTIONS + 1. Modify the $folder setting in the configuration section below. + 2. Add image types if needed (most users can ignore that part). + 3. Upload this file (rotate.php) to your webserver. I recommend + uploading it to the same folder as your images. + 4. Link to the file as you would any normal image file, like this: + + <img src="http://example.com/rotate.php"> + + 5. You can also specify the image to display like this: + + <img src="http://example.com/rotate.php?img=gorilla.jpg"> + + This would specify that an image named "gorilla.jpg" located + in the image-rotation folder should be displayed. + + That's it, you're done. + +*/ + + + + +/* ------------------------- CONFIGURATION ----------------------- + + + Set $folder to the full path to the location of your images. + For example: $folder = '/user/me/example.com/images/'; + If the rotate.php file will be in the same folder as your + images then you should leave it set to $folder = '.'; + +*/ + + + $folder = '.'; + + +/* + + Most users can safely ignore this part. If you're a programmer, + keep reading, if not, you're done. Go get some coffee. + + If you'd like to enable additional image types other than + gif, jpg, and png, add a duplicate line to the section below + for the new image type. + + Add the new file-type, single-quoted, inside brackets. + + Add the mime-type to be sent to the browser, also single-quoted, + after the equal sign. + + For example: + + PDF Files: + + $extList['pdf'] = 'application/pdf'; + + CSS Files: + + $extList['css'] = 'text/css'; + + You can even serve up random HTML files: + + $extList['html'] = 'text/html'; + $extList['htm'] = 'text/html'; + + Just be sure your mime-type definition is correct! + +*/ + + $extList = array(); + $extList['gif'] = 'image/gif'; + $extList['jpg'] = 'image/jpeg'; + $extList['jpeg'] = 'image/jpeg'; + $extList['png'] = 'image/png'; + + +// You don't need to edit anything after this point. + + +// --------------------- END CONFIGURATION ----------------------- + +$img = null; + +if (substr($folder,-1) != '/' ) { + $folder = $folder.'/'; +} + +if (isset($_GET['img'])) { + $imageInfo = pathinfo($_GET['img']); + if ( + isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) && + file_exists( $folder.$imageInfo['basename'] ) + ) { + $img = $folder.$imageInfo['basename']; + } +} else { + $fileList = array(); + $handle = opendir($folder); + while ( false !== ( $file = readdir($handle) ) ) { + $file_info = pathinfo($file); + if ( + isset( $extList[ strtolower( $file_info['extension'] ) ] ) + ) { + $fileList[] = $file; + } + } + closedir($handle); + + if (count($fileList) > 0) { + $imageNumber = time() % count($fileList); + $img = $folder.$fileList[$imageNumber]; + } +} + +if ($img!=null) { + $imageInfo = pathinfo($img); + $contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ]; + header ($contentType); + readfile($img); +} else { + if ( function_exists( 'imagecreate' ) ) { + header ("Content-type: image/png"); + $im = @imagecreate (100, 100) + or die ("Cannot initialize new GD image stream"); + $background_color = imagecolorallocate ($im, 255, 255, 255); + $text_color = imagecolorallocate ($im, 0,0,0); + imagestring ($im, 2, 5, 5, "IMAGE ERROR", $text_color); + imagepng ($im); + imagedestroy($im); + } +} + +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/images/sidebar/vigilance.png b/wp-content/themes/vigilance/images/sidebar/vigilance.png new file mode 100755 index 0000000000000000000000000000000000000000..8083e4a80e25ff1f1653b27fe081d90c898c2cf1 Binary files /dev/null and b/wp-content/themes/vigilance/images/sidebar/vigilance.png differ diff --git a/wp-content/themes/vigilance/images/top-banner/rotate.php b/wp-content/themes/vigilance/images/top-banner/rotate.php new file mode 100755 index 0000000000000000000000000000000000000000..40282bcf4301aa611ca6ff15314b94ec643b8312 --- /dev/null +++ b/wp-content/themes/vigilance/images/top-banner/rotate.php @@ -0,0 +1,206 @@ +<?php + +/* + + AUTOMATIC IMAGE ROTATOR + Version 2.2 - December 4, 2003 + Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd. + All Rights Reserved. + + http://www.hiveware.com/imagerotator.php + + http://www.automaticlabs.com/ + + + DISCLAIMER + Automatic, Ltd. makes no representations or warranties about + the suitability of the software, either express or + implied, including but not limited to the implied + warranties of merchantability, fitness for a particular + purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd. + shall not be liable for any damages suffered by licensee + as a result of using, modifying or distributing this + software or its derivatives. + + + ABOUT + This PHP script will randomly select an image file from a + folder of images on your webserver. You can then link to it + as you would any standard image file and you'll see a random + image each time you reload. + + When you want to add or remove images from the rotation-pool, + just add or remove them from the image rotation folder. + + + VERSION CHANGES + Version 1.0 + - Release version + + Version 1.5 + - Tweaked a few boring bugs + + Version 2.0 + - Complete rewrite from the ground-up + - Made it clearer where to make modifications + - Made it easier to specify/change the rotation-folder + - Made it easier to specify/change supported image types + - Wrote better instructions and info (you're them reading now) + - Significant speed improvements + - More error checking + - Cleaner code (albeit more PHP-specific) + - Better/faster random number generation and file-type parsing + - Added a feature where the image to display can be specified + - Added a cool feature where, if an error occurs (such as no + images being found in the specified folder) *and* you're + lucky enough to have the GD libraries compiled into PHP on + your webserver, we generate a replacement "error image" on + the fly. + + Version 2.1 + - Updated a potential security flaw when value-matching + filenames + + Version 2.2 + - Updated a few more potential security issues + - Optimized the code a bit. + - Expanded the doc for adding new mime/image types. + + Thanks to faithful ALA reader Justin Greer for + lots of good tips and solid code contribution! + + + INSTRUCTIONS + 1. Modify the $folder setting in the configuration section below. + 2. Add image types if needed (most users can ignore that part). + 3. Upload this file (rotate.php) to your webserver. I recommend + uploading it to the same folder as your images. + 4. Link to the file as you would any normal image file, like this: + + <img src="http://example.com/rotate.php"> + + 5. You can also specify the image to display like this: + + <img src="http://example.com/rotate.php?img=gorilla.jpg"> + + This would specify that an image named "gorilla.jpg" located + in the image-rotation folder should be displayed. + + That's it, you're done. + +*/ + + + + +/* ------------------------- CONFIGURATION ----------------------- + + + Set $folder to the full path to the location of your images. + For example: $folder = '/user/me/example.com/images/'; + If the rotate.php file will be in the same folder as your + images then you should leave it set to $folder = '.'; + +*/ + + + $folder = '.'; + + +/* + + Most users can safely ignore this part. If you're a programmer, + keep reading, if not, you're done. Go get some coffee. + + If you'd like to enable additional image types other than + gif, jpg, and png, add a duplicate line to the section below + for the new image type. + + Add the new file-type, single-quoted, inside brackets. + + Add the mime-type to be sent to the browser, also single-quoted, + after the equal sign. + + For example: + + PDF Files: + + $extList['pdf'] = 'application/pdf'; + + CSS Files: + + $extList['css'] = 'text/css'; + + You can even serve up random HTML files: + + $extList['html'] = 'text/html'; + $extList['htm'] = 'text/html'; + + Just be sure your mime-type definition is correct! + +*/ + + $extList = array(); + $extList['gif'] = 'image/gif'; + $extList['jpg'] = 'image/jpeg'; + $extList['jpeg'] = 'image/jpeg'; + $extList['png'] = 'image/png'; + + +// You don't need to edit anything after this point. + + +// --------------------- END CONFIGURATION ----------------------- + +$img = null; + +if (substr($folder,-1) != '/' ) { + $folder = $folder.'/'; +} + +if (isset($_GET['img'])) { + $imageInfo = pathinfo($_GET['img']); + if ( + isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) && + file_exists( $folder.$imageInfo['basename'] ) + ) { + $img = $folder.$imageInfo['basename']; + } +} else { + $fileList = array(); + $handle = opendir($folder); + while ( false !== ( $file = readdir($handle) ) ) { + $file_info = pathinfo($file); + if ( + isset( $extList[ strtolower( $file_info['extension'] ) ] ) + ) { + $fileList[] = $file; + } + } + closedir($handle); + + if (count($fileList) > 0) { + $imageNumber = time() % count($fileList); + $img = $folder.$fileList[$imageNumber]; + } +} + +if ($img!=null) { + $imageInfo = pathinfo($img); + $contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ]; + header ($contentType); + readfile($img); +} else { + if ( function_exists( 'imagecreate' ) ) { + header ("Content-type: image/png"); + $im = @imagecreate (100, 100) + or die ("Cannot initialize new GD image stream"); + $background_color = imagecolorallocate ($im, 255, 255, 255); + $text_color = imagecolorallocate ($im, 0,0,0); + imagestring ($im, 2, 5, 5, "IMAGE ERROR", $text_color); + imagepng ($im); + imagedestroy($im); + } +} + +?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/images/top-banner/sample-image-1.jpg b/wp-content/themes/vigilance/images/top-banner/sample-image-1.jpg new file mode 100755 index 0000000000000000000000000000000000000000..97a14912b8ad5fafdad5cf9872500ecd3aaf7492 Binary files /dev/null and b/wp-content/themes/vigilance/images/top-banner/sample-image-1.jpg differ diff --git a/wp-content/themes/vigilance/images/top-banner/sample-image-2.jpg b/wp-content/themes/vigilance/images/top-banner/sample-image-2.jpg new file mode 100755 index 0000000000000000000000000000000000000000..8c01ebec89df5e9bd81ccd21eb39e6144783d445 Binary files /dev/null and b/wp-content/themes/vigilance/images/top-banner/sample-image-2.jpg differ diff --git a/wp-content/themes/vigilance/images/twitter-icon.png b/wp-content/themes/vigilance/images/twitter-icon.png new file mode 100755 index 0000000000000000000000000000000000000000..c6bebbc3d9ff2981e5c14d34eab9647c405f5307 Binary files /dev/null and b/wp-content/themes/vigilance/images/twitter-icon.png differ diff --git a/wp-content/themes/vigilance/index.php b/wp-content/themes/vigilance/index.php new file mode 100755 index 0000000000000000000000000000000000000000..8e1eb0318b4364a5f58c6902b8cab9a3a626aa65 --- /dev/null +++ b/wp-content/themes/vigilance/index.php @@ -0,0 +1,33 @@ +<?php get_header(); ?> + <?php if (have_posts()) : ?> + <?php while (have_posts()) : the_post(); ?> + <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + <div class="post-header"> + <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> + <div class="date"><span><?php the_time( 'Y' ); ?></span> <?php the_time( __( 'F j', 'vigilance' )); ?></div> + <div class="comments"><?php comments_popup_link( __( 'Leave a comment', 'vigilance' ), __( '1 Comment', 'vigilance' ), __ngettext ( '% Comment', '% Comments', get_comments_number (),'vigilance' )); ?></div> + </div><!--end post header--> + <div class="meta clear"> + <div class="tags"><?php the_tags(__( 'tags: ', ', ', '', 'vigilance' )); ?></div> + <div class="author"><?php printf( __( 'by %s', 'vigilance' ), get_the_author()); ?></div> + </div><!--end meta--> + <div class="entry clear"> + <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( array(250,9999), array( 'class' => 'alignleft' ) ); ?> + <?php the_content(__( 'read more...', 'vigilance' )); ?> + <?php edit_post_link( __( 'Edit this', 'vigilance' ), '<p>', '</p>' ); ?> + <?php wp_link_pages(); ?> + </div><!--end entry--> + <div class="post-footer"> + <p><?php _e( 'from →', 'vigilance' ); ?> <?php the_category( ', ' ); ?></p> + </div><!--end post footer--> + </div><!--end post--> + <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> + <div class="navigation index"> + <div class="alignleft"><?php next_posts_link( __( '« Older Entries', 'vigilance' )); ?></div> + <div class="alignright"><?php previous_posts_link( __( 'Newer Entries »', 'vigilance' )); ?></div> + </div><!--end navigation--> + <?php else : ?> + <?php endif; ?> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/page.php b/wp-content/themes/vigilance/page.php new file mode 100755 index 0000000000000000000000000000000000000000..b278e0352a9b76f676b24a6abb260d713cc0f5f7 --- /dev/null +++ b/wp-content/themes/vigilance/page.php @@ -0,0 +1,16 @@ +<?php get_header(); ?> + <?php if (have_posts()) : ?> + <?php while (have_posts()) : the_post(); ?> + <h1 class="pagetitle"><?php the_title(); ?></h1> + <div class="entry page clear"> + <?php the_content(); ?> + <?php edit_post_link( __( 'Edit this', 'vigilance' ), '<p>', '</p>' ); ?> + <?php wp_link_pages(); ?> + </div><!--end entry--> + <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> + <?php comments_template( '', true); ?> + <?php else : ?> + <?php endif; ?> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/screenshot.png b/wp-content/themes/vigilance/screenshot.png new file mode 100755 index 0000000000000000000000000000000000000000..b1e94c7a2e4b16d63bad54a296431f7e5b2ad523 Binary files /dev/null and b/wp-content/themes/vigilance/screenshot.png differ diff --git a/wp-content/themes/vigilance/search.php b/wp-content/themes/vigilance/search.php new file mode 100755 index 0000000000000000000000000000000000000000..5236b2c1e1e1d2c47bd5b77c9ba70b7e1e45c711 --- /dev/null +++ b/wp-content/themes/vigilance/search.php @@ -0,0 +1,25 @@ +<?php get_header(); ?> + <?php if (have_posts()) : ?> + <h1 class="pagetitle"><?php printf( __("Search results for '%s'", "vigilance"), get_search_query()); ?></h1> + <img class="archive-comment"src="<?php bloginfo( 'template_url' ); ?>/images/comments-bubble-archive.gif" width="17" height="14" alt="Comments"/> + <?php while (have_posts()) : the_post(); ?> + <div class="entries"> + <ul> + <li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><span class="comments_number"><?php comments_number( '0', '1', '%', '' ); ?></span><span class="archdate"><?php the_time( __( 'n.j.y', 'vigilance' )); ?></span><?php the_title(); ?></a></li> + </ul> + </div><!--end entries--> + <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> + <div class="navigation"> + <div class="alignleft"><?php next_posts_link( __( '« Older Entries', 'vigilance' )); ?></div> + <div class="alignright"><?php previous_posts_link( __( 'Newer Entries »', 'vigilance' )); ?></div> + </div><!--end navigation--> + <?php else : ?> + <h1 class="pagetitle"><?php printf( __("Search results for '%s'", "vigilance"), get_search_query()); ?></h1> + <div class="entry"> + <p><?php printf( __( 'Sorry your search for "%s" did not turn up any results. Please try again.', 'vigilance' ), get_search_query());?></p> + <?php get_search_form(); ?> + </div><!--end entry--> + <?php endif; ?> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> diff --git a/wp-content/themes/vigilance/searchform.php b/wp-content/themes/vigilance/searchform.php new file mode 100755 index 0000000000000000000000000000000000000000..65a80b5b07dee883d9d1abc391466651105e2be5 --- /dev/null +++ b/wp-content/themes/vigilance/searchform.php @@ -0,0 +1,7 @@ +<h2 class="widgettitle"><?php _e( 'Search', 'vigilance' ); ?></h2> +<form method="get" id="search_form" action="<?php bloginfo( 'url' ); ?>/"> + <div> + <input type="text" value="<?php _e( 'type and press enter', 'vigilance' ); ?>" name="s" id="s" onfocus="if (this.value == '<?php _e( 'type and press enter', 'vigilance' ); ?>' ) {this.value = '';}" onblur="if (this.value == '' ) {this.value = '<?php _e( 'type and press enter', 'vigilance' ); ?>';}" /> + <input type="hidden" value="<?php _e( 'Search', 'vigilance' ); ?>" /> + </div> +</form> diff --git a/wp-content/themes/vigilance/sidebar-feedbox.php b/wp-content/themes/vigilance/sidebar-feedbox.php new file mode 100755 index 0000000000000000000000000000000000000000..351f9e6abf749d1b002f4bf6f339958af24136e7 --- /dev/null +++ b/wp-content/themes/vigilance/sidebar-feedbox.php @@ -0,0 +1,10 @@ +<?php global $vigilance; ?> +<h2 class="widgettitle"><?php if ($vigilance->feedTitle() != '' ) echo $vigilance->feedTitle(); else echo _e( 'Get Free Updates', 'vigilance' ); ?></h2> +<div id="rss-feed" class="clear"> + <p><?php if ($vigilance->feedIntro() != '' ) echo $vigilance->feedIntro(); else _e( 'Get the latest and the greatest news delivered for free to your reader or your inbox:', 'vigilance' ); ?></p> + <a class ="rss" href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'RSS Feed', 'vigilance' ); ?></a> + <a class="email" href="<?php echo $vigilance->feedEmail(); ?>"><?php _e( 'Email Updates', 'vigilance' ); ?></a> + <?php if ($vigilance->twitterToggle() == 'true' ) : ?> + <a class="twitter" href="<?php if ($vigilance->twitter() !== '' ) echo $vigilance->twitter(); else echo "#"; ?>"><?php _e( 'Twitter', 'vigilance' ); ?></a> + <?php endif; ?> +</div> diff --git a/wp-content/themes/vigilance/sidebar-imagebox.php b/wp-content/themes/vigilance/sidebar-imagebox.php new file mode 100755 index 0000000000000000000000000000000000000000..777f281ad0550cdd28f7137ba62d1804fae0f971 --- /dev/null +++ b/wp-content/themes/vigilance/sidebar-imagebox.php @@ -0,0 +1,52 @@ +<?php global $vigilance; + $custom_field_url = wp_filter_post_kses(get_post_meta($post->ID, 'sideimg-url', $single = true)); + $custom_field_alt = stripslashes(wp_filter_post_kses(get_post_meta($post->ID, 'sideimg-alt', $single = true))); + $custom_field_link = wp_filter_post_kses(get_post_meta($post->ID, 'sideimg-link', $single = true)); + $custom_field_height = wp_filter_post_kses(get_post_meta($post->ID, 'sideimg-height', $single = true)); + $custom_field_status = get_post_meta($post->ID, 'sideimg-status', $single = true); +?> +<?php //------Page and Post Specific---------------------------------------------------------------------------------// +if (($custom_field_status !== 'hidden' && $custom_field_url !== '' ) || ($vigilance->sideimgState() == 'specific' )) : ?> + <?php if ($custom_field_status !== 'hidden' && $custom_field_url !== '' ) { ?> + <div id="sidebar-image"> + <?php if ($custom_field_link !== '' ) {?> + <a href="<?php echo $custom_field_link; ?>"> + <?php } ?> + <?php if (is_single() || is_page() && $custom_field_url !== '' ) { ?> + <img src="<?php echo $custom_field_url; ?>" width="300" height="<?php if ($custom_field_height !== '' ) echo $custom_field_height; else echo $vigilance->sideimgHeight(); ?>" alt="<?php if ($custom_field_alt !== '' ) echo $custom_field_alt; else echo the_title(); ?>"/> + <?php } ?> + <?php if ($custom_field_link !== '' ) {?> + </a> + <?php } ?> + </div><!--end sidebar-image--> + <?php } ?> +<?php //------Static Image---------------------------------------------------------------------------------// +elseif ($vigilance->sideimgState() == 'static' && $vigilance->sideimgUrl() !== '' ) : ?> + <div id="sidebar-image"> + <?php if ($vigilance->sideimgLink() !== '' ) {?> + <a href="<?php echo $vigilance->sideimgLink(); ?>"> + <?php } ?> + <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/sidebar/<?php echo $vigilance->sideimgUrl(); ?>" width="300" <?php if ($vigilance->sideimgHeight() != '' ) { ?> height="<?php echo $vigilance->sideimgHeight(); ?>" <?php }; ?> alt="<?php if ($vigilance->sideimgAlt() !== '' ) echo $vigilance->sideimgAlt(); else echo bloginfo( 'name' ); ?>"/> + <?php if ($vigilance->sideimgLink() !== '' ) {?> + </a> + <?php } ?> + </div><!--end sidebar-image--> + +<?php //------Custom Code---------------------------------------------------------------------------------// +elseif ($vigilance->sideimgState() == 'custom' ) : ?> + <div id="sidebar-image"> + <?php echo $vigilance->sideimgCustom(); ?> + </div><!--end sidebar-image--> + +<?php //------Rotating Images---------------------------------------------------------------------------------// +else : ?> + <div id="sidebar-image"> + <?php if ($vigilance->sideimgLink() !== '' ) {?> + <a href="<?php echo $vigilance->sideimgLink(); ?>"> + <?php } ?> + <img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/sidebar/rotate.php" width="300" <?php if ($vigilance->sideimgHeight() != '' ) { ?> height="<?php echo $vigilance->sideimgHeight(); ?>" <?php }; ?> alt="<?php if ($vigilance->sideimgAlt() !== '' ) echo $vigilance->sideimgAlt(); else echo bloginfo( 'name' ); ?>"/> + <?php if ($vigilance->sideimgLink() !== '' ) {?> + </a> + <?php } ?> + </div><!--end sidebar-image--> +<?php endif; ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/sidebar.php b/wp-content/themes/vigilance/sidebar.php new file mode 100755 index 0000000000000000000000000000000000000000..9c39d04e6400785c736ad0c7ca758f9494869935 --- /dev/null +++ b/wp-content/themes/vigilance/sidebar.php @@ -0,0 +1,30 @@ +<?php global $vigilance; ?> +<div id="sidebar"> + <?php if ($vigilance->sideimgState() != '' ) { + if ($vigilance->sideimgState() != 'hide' ) { + if (is_file(STYLESHEETPATH . '/sidebar-imagebox.php' )) include(STYLESHEETPATH . '/sidebar-imagebox.php' ); + else include(TEMPLATEPATH . '/sidebar-imagebox.php' ); + } + } ?> + <?php if ($vigilance->feedState() == 'disabled' ) : else : ?> + <?php if (is_file(STYLESHEETPATH . '/sidebar-feedbox.php' )) include(STYLESHEETPATH . '/sidebar-feedbox.php' ); else include(TEMPLATEPATH . '/sidebar-feedbox.php' ); ?> + <?php endif; ?> + <ul> + <?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'wide_sidebar' ) ) : ?> + <li class="widget widget_recent_entries"> + <h2 class="widgettitle"><?php _e( 'Recent Articles', 'vigilance' ); ?></h2> + <ul> + <?php $side_posts = get_posts( 'numberposts=10' ); foreach($side_posts as $post) : ?> + <li><a href= "<?php the_permalink(); ?>"><?php the_title(); ?></a></li> + <?php endforeach; ?> + </ul> + </li> + <?php endif; ?> + </ul> + <?php if (is_active_sidebar( 'left_sidebar' )) echo '<ul class="thin-sidebar spad">';?> + <?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'left_sidebar' ) ) : endif; ?> + <?php if (is_active_sidebar( 'left_sidebar' )) echo '</ul>'; ?> + <?php if (is_active_sidebar( 'right_sidebar' )) echo '<ul class="thin-sidebar">'; ?> + <?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'right_sidebar' ) ) : endif; ?> + <?php if (is_active_sidebar( 'right_sidebar' )) echo '</ul>' ;?> +</div><!--end sidebar--> \ No newline at end of file diff --git a/wp-content/themes/vigilance/single.php b/wp-content/themes/vigilance/single.php new file mode 100755 index 0000000000000000000000000000000000000000..45de69d4cf499955fa3e60405949ad8860dee7c7 --- /dev/null +++ b/wp-content/themes/vigilance/single.php @@ -0,0 +1,29 @@ +<?php get_header(); ?> + <?php if (have_posts()) : ?> + <?php while (have_posts()) : the_post(); ?> + <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> + <div class="post-header"> + <h1><?php the_title(); ?></h1> + <div id="single-date" class="date"><span><?php the_time( 'Y' ); ?></span> <?php the_time( __( 'F j', 'vigilance' )); ?></div> + </div><!--end post header--> + <div class="meta clear"> + <div class="tags"><?php the_tags( 'tags: ', ', ', '' ); ?></div> + <div class="author"><?php printf( __( 'by %s', 'vigilance' ), get_the_author()); ?></div> + </div><!--end meta--> + <div class="entry clear"> + <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail( array(250,9999), array( 'class' => 'alignleft' ) ); ?> + <?php the_content(); ?> + <?php edit_post_link( __( 'Edit this', 'vigilance' ), '<p>', '</p>' ); ?> + <?php wp_link_pages(); ?> + </div><!--end entry--> + <div class="post-footer"> + <p><?php _e( 'from →', 'vigilance' ); ?> <?php the_category( ', ' ); ?></p> + </div><!--end post footer--> + </div><!--end post--> + <?php endwhile; /* rewind or continue if all posts have been fetched */ ?> + <?php comments_template( '', true); ?> + <?php else : ?> + <?php endif; ?> +</div><!--end content--> +<?php get_sidebar(); ?> +<?php get_footer(); ?> \ No newline at end of file diff --git a/wp-content/themes/vigilance/style.css b/wp-content/themes/vigilance/style.css new file mode 100755 index 0000000000000000000000000000000000000000..5bf8473df6a1e1b7f13c21758a9d7aa3e08e232e --- /dev/null +++ b/wp-content/themes/vigilance/style.css @@ -0,0 +1,46 @@ +/* +Theme Name: Vigilance +Theme URI: http://thethemefoundry.com/vigilance/ +Description: A lean and clean WordPress theme featuring standards and search friendly code. A built in Theme Options menu allows for serious customization. +Version: 1.50 +Author: The Theme Foundry +Author URI: http://thethemefoundry.com/ +Tags: fixed-width, two-columns, white, red, right-sidebar, threaded-comments, custom-colors, theme-options, translation-ready +*/ + +/* + Copyright (C) 2008 - 2010 The Theme Foundry + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + +/* Import Stylesheets +-----------------------------------------------------------*/ +@import url("stylesheets/master.css"); +/*@import url("functions/stylesheets/style-options.php");*/ + +/* Required WordPress Classes, don't remove these. +-----------------------------------------------------------*/ +.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} +.alignleft { float: left; } +.alignright { float: right; } + +/* Make all custom CSS changes in a Child Theme. Any custom +changes you make here will be overidden when you upgrade the theme. +-----------------------------------------------------------*/ \ No newline at end of file diff --git a/wp-content/themes/vigilance/stylesheets/ie.css b/wp-content/themes/vigilance/stylesheets/ie.css new file mode 100755 index 0000000000000000000000000000000000000000..fb1c4af661920200e906ee7e25572f738c1a659c --- /dev/null +++ b/wp-content/themes/vigilance/stylesheets/ie.css @@ -0,0 +1,5 @@ +/* clear the floats for all our IE friends*/ +.clear, li.comment { zoom: 1; } +/*IE doesn't like the top border on our navigation list items */ +#nav ul li a { zoom: 1; padding-top: .25em; } +#nav li.current_page_item a, #nav li.current_page_parent a, #nav li.current_page_ancestor a, #nav li.current-cat a, #nav li a:hover { padding-top: 0; } \ No newline at end of file diff --git a/wp-content/themes/vigilance/stylesheets/ie6.css b/wp-content/themes/vigilance/stylesheets/ie6.css new file mode 100755 index 0000000000000000000000000000000000000000..3e127acf58f2d966b6436ade14d43a6c0eb39c80 --- /dev/null +++ b/wp-content/themes/vigilance/stylesheets/ie6.css @@ -0,0 +1,5 @@ +/*Prevent IE6 from breaking 2 column sidebar with a search*/ +#search_form input.search_input { width: 127px; } +pre { zoom: 1; } +/* Keep sidebar on the side when blockquote is inside a list */ +.entry ul blockquote, .entry ol blockquote { width: 85%; } \ No newline at end of file diff --git a/wp-content/themes/vigilance/stylesheets/master.css b/wp-content/themes/vigilance/stylesheets/master.css new file mode 100755 index 0000000000000000000000000000000000000000..1bf64436f5a99f5579865ef826b20cfaa55e1842 --- /dev/null +++ b/wp-content/themes/vigilance/stylesheets/master.css @@ -0,0 +1,614 @@ +/* + READ THIS PLEASE!! + You DO NOT want to make edits to this file. + If you make edits to this file your layout will break + when you upgrade the theme. Instead add your custom CSS to + the style.css file in a child theme. Any new styles you add + to the style.css in your Child Theme will automatically override + this imported stylesheet. This will also make your life a whole + lot easier when it comes time to upgrade the theme. +*/ + +/*Undo browser defaults +------------------------------------------------------------ */ +:link, :visited { text-decoration: none; } +ul, ol { list-style: none; } +h1, h2, h3, h4, h5, h6, pre, code, p { font-size: 1em; } +ul, ol, dl, li, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input { margin: 0; padding: 0; } +a img, :link img, :visited img { border: none; } +address { font-style: normal; } + +/*Body & Links +------------------------------------------------------------ */ +body { + font-size: 62.5%; + font-family: Georgia, "Times New Roman", Times, Serif; + line-height: 2.2em; + color: #333; + background-color: #fff; +} +a:link, a:visited { color: #772124; } +a:hover { + text-decoration: underline; + color: #58181b; +} +/*Basic Structure +------------------------------------------------------------ */ +#wrapper { + width: 930px; + margin: 0 auto; + text-align: left; +} +#content { + float: left; + width: 600px; + padding: 20px 30px 20px 0; +} +#sidebar { + float: right; + width: 300px; + padding-bottom: 20px; +} +.thin-sidebar { + float: left; + width: 140px; +} +.spad { padding-right: 20px; } +#footer { + clear: both; + padding-top: 5px; + border-top: 1px solid #eee; +} +.clear:after, li.comment:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +div.skip-content { display: none; } +/*Header +------------------------------------------------------------ */ +#header { + padding: 20px 0 10px 0; + border-bottom: 5px solid #333; +} +h1#title, div#title { + font-size: 4.6em; + font-weight: bold; + line-height: 1.3em; +} +div#title-logo { padding-bottom: 10px; } +h1#title a:link, h1#title a:visited, div#title a:link, div#title a:visited { color: #444; } +h1#title a:hover, div#title a:hover { color: #772124; text-decoration: none; } +/*Description +---------------------------------------*/ +#description { float: left; } +#description h2 { + font-size: 1.2em; + font-weight: normal; + color: #666; +} +/*Nav +---------------------------------------*/ +#nav { + float: right; + font-size: 1.5em; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; +} +#nav ul { position: relative; } +#nav ul li { + float: left; + margin: 0 0 0 15px; +} +#nav ul li:first-child { margin: 0; } +#nav li a { + padding-top: .1em; + color: #333; + text-decoration: none; +} +#nav li.current_page_item a, #nav li.current_page_parent a, #nav li.current_page_ancestor a, #nav li.current-cat a, #nav li a:hover { + color: #772124; + text-decoration: none; + border-top: 4px solid #772124; +} +/*Menu +------------------------------------------------------------ */ +#menu { padding-bottom: 10px; } +#menu img { border: 2px solid #eee; } +.alert-box { + margin: 0 0 20px 0; + padding: 20px; + background: #f3f3f2; + border: 1px solid #e3e1db; +} +/*Post Styling +------------------------------------------------------------ */ +/*Post Header +---------------------------------------*/ +.post-header { + border-bottom: 4px double #eee; + padding-bottom: 7px; +} +.post-header h1, .post-header h2 { + font-size: 2.6em; + line-height: 1.1em; + font-weight: normal; +} +.post-header h1 a:link, .post-header h1 a:visited,.post-header h2 a:link, .post-header h2 a:visited { color: #444; } +.post-header h1 a:hover, .post-header h2 a:hover { color: #772124; } +.comments { + padding-top: 10px; + font-size: 1.3em; + color: #757575; + text-transform: uppercase; +} +.comments a { + display: block; + color: #757575; + padding: 0 0 0 25px; + background: url(../images/comments-bubble.gif) no-repeat 0 4px; +} +.comments a:hover { + color: #772124; + background-position: 0 -24px; +} +.post .date { + float: right; + padding-top: 10px; + color: #757575; + font-size: 1.6em; + font-weight: normal; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + text-transform: uppercase; +} +.post .date span { + color: #ddd; + font-weight: bold; +} +#single-date { float: none; } +/*Post Meta +---------------------------------------*/ +.meta { + margin: 10px 0 20px 0; + font-size: 1.2em; + color: #666; +} +.meta a:link, .meta a:visited { + color: #666; + font-style: normal; +} +.meta a:hover { color: #772124; } +.tags { + float: right; + width: 400px; + text-align: right; + font-style: italic; +} +/*Post Body +---------------------------------------*/ +.entry a:link, .entry a:visited, .alert-box a:link, .alert-box a:visited { text-decoration: underline; } +.entry a:hover, .alert-box a:hover { text-decoration: none; } +.entry { font-size: 1.3em; } +.entry p { margin-bottom: 10px; } +.entry p.notice { + padding: 15px; + background-color: #fffbcc; + border: 1px solid #f8f4c7; +} +.alert-box p { margin: 10px 0 0 0; } +.entry h2, .entry h3, .entry h4 { + font-size: 1.3em; + padding: 15px 0 5px 0; +} +.entry h3 { + padding-top: 10px; + font-size: 1em; +} +.entry h4 { + padding-top: 10px; + font-size: .9em; +} +.alert-box h2, .alert-box h3, .alert-box h4 { margin: 0; padding: 0; } +pre { + margin: 10px 0; + padding: 1em 10px; + overflow: auto; + background-color: #f3f3f3; + color: #000; +} +code { + padding: 2px 3px; + font: 1.1em Consolas, Courier New, sans-serif; + background-color: #f3f3f3; + color: #000; +} +pre code { font-size: 1.3em; } +blockquote { + clear: both; + display: block; + padding: 20px 20px 10px 45px; + margin: 20px 0; + font-style: italic; + font-size: 1.2em; + color: #141310; + background: #e7e6e2 url(../images/blockquote.gif) no-repeat top left; +} +.entry ul, .c-body ul { margin: 0 0 10px 10px; } +.entry ul li, .c-body ul li { + display: block; + margin: 5px 0 0 0; + padding: 0 0 0 17px; + background: url(../images/list-star.gif) no-repeat 0 .3em; +} +.entry ol, .c-body ol { margin: 0 0 15px 30px; } +.entry ol li ol li, .c-body ol li ol li { + font-size: .9em; + list-style-type: lower-roman; +} +.entry ol li, .c-body ol li { + margin: 10px 0 0 0; + list-style-type: decimal; + list-style-position: outside; +} +.navigation { + padding: 10px 0; + font-size: 1.3em; +} +.index { padding: 0; } +.float-quote { + float: left; + width: 300px; + padding: 15px; + margin: 10px 10px 0 0; + background: #eaeaea; + border-top: 4px solid #333; + border-bottom: 4px solid #333; +} +.entry .float-quote p { + margin: 0; + padding: 0 0 0 40px; + font-size: 1.2em; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + line-height: 1.3em; + background: url(../images/float-quote.gif) no-repeat top left; +} +.highlight-box { + float: right; + margin: 0 0 10px 10px; + width: 200px; + padding: 10px; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + border-top: 8px solid #000; + background: #772124; + color: #fff; +} +.highlight-box a:link, .highlight-box a:visited { + color: #fff; + text-decoration: underline; +} +.highlight-box a:hover { text-decoration: none; } +.entry .highlight-box p { + margin: 10px 0; + line-height: 1.4em; + font-size: 1.1em; +} +.entry .highlight-box ul li { + font-size: 1.1em; + background: url(../images/list-square.gif) no-repeat 0 .4em; +} +.entry .highlight-box h2, .entry .highlight-box h3, .entry .highlight-box h4 { + margin: 0; + padding: 0; + color: #fff; +} +.highlight-box h2 { text-transform: uppercase; } +/*Post Footer +---------------------------------------*/ +.post-footer { + padding-bottom: 2px; + margin: 0 0 30px 0; + font-size: 1.1em; + font-style: italic; + text-align: right; + color: #666; + border-bottom: 1px solid #eee; +} +.post-footer a:link, .post-footer a:visited { + color: #333; + font-style: normal; +} +.post-footer a:hover { color: #772124; } +/*Pages +---------------------------------------*/ +h1.pagetitle, h2.pagetitle { + margin-bottom: 20px; + padding-bottom: 7px; + font-size: 2.6em; + line-height: 1.1em; + border-bottom: 4px double #eee; +} +/*Archives List +---------------------------------------*/ +img.archive-comment { + float: right; + margin: 0 .5em .5em 0; +} +.entries { + font-size: 1.3em; + clear: both; +} +.entries ul { + margin: 0; + padding: 0 0 1px 0; + background: transparent url(../images/archives-dotted-line.gif) repeat-x bottom left; +} +.entries ul li { + padding-top: 1px; + background: transparent url(../images/archives-dotted-line.gif) repeat-x top left; +} +.entries ul li a { + display: block; + margin: 0; + padding: 7px 0; +} +.entries ul li a:hover { + background-color: #F8F8F7; + text-decoration: none; +} +.entries span { + display: block; + text-align: right; +} +.entries span.archdate, .entries a:hover span.archdate { + float: left; + margin-right: 3em; + padding-left: .5em; + width: 3em; + color: #666; +} +.entries span.comments_number{ + float: right; + margin-right: .5em; + width: 3em; + color: #666; +} +/*Sidebar +------------------------------------------------------------ */ +#sidebar-image { padding-top: 20px; } +#sidebar-image { font-size: 1.3em; } +#sidebar-image p { + margin-bottom: 15px; + line-height: 1.6em; +} +h2.widgettitle { + padding: 25px 0 3px 0; + font-size: 1.4em; + font-weight: normal; + text-transform: uppercase; + letter-spacing: 1.05pt; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + border-bottom: 1px solid #eee; +} +ul li.widget ul { + margin: 0; + font-size: 1.4em; +} +ul li.widget ul li ul { + margin-left: 5px; + font-size: 1em; +} +ul li.widget ul li { + padding: 8px 0; + border-bottom: 1px solid #eee; +} +ul li.widget ul li ul li { border-bottom: none; } +ul li.widget ul li a { + display: block; + padding: 0 0 0 15px; + background: url(../images/list-item.gif) no-repeat 0 6px; +} +ul li.widget ul li a:hover { background-position: 0 -136px; } +ul li.widget ul#recentcomments li a { + padding: 0; + background: none; +} +div.textwidget p { + font-size: 1.3em; + margin: 10px 0 0 0; +} +li.widget select { margin-top: 10px; } +/*RSS Box +---------------------------------------*/ +#rss-feed { padding-top: 10px; } +#rss-feed p { + font-size: 1.3em; + line-height: 1.6em; +} +#rss-feed a.rss, #rss-feed a.email, #rss-feed a.twitter { + float: left; + font-size: 1.3em; + margin: 10px 10px 0 0; + display: block; + padding: 0 0 0 19px; + background: url(../images/feed-icon.png) no-repeat 0 .25em; +} +#rss-feed a.email { + padding: 0 0 0 25px; + background: url(../images/mail-icon.png) no-repeat 0 .4em; +} +#rss-feed a.twitter { + margin-right: 0; + padding-left: 19px; + background: url(../images/twitter-icon.png) no-repeat 0 .15em; +} +/*Search Box +---------------------------------------*/ +#search_form input { margin: 10px 0 0 0; } +#search_form input { + padding: 4px 2px; + width: 132px; + border: 2px solid #acacac; + border-bottom: 1px solid #ccc; + border-right: 1px solid #ccc; + background: #f4f4f4; + color: #888; +} +#search_form input:focus { background: #fff; } +#search_form input#searchsubmit { padding: 2px 10px; } + +/*Comments +------------------------------------------------------------ */ +/*Top +---------------------------------------*/ +.comment-number { + display: block; + font-size: 1.3em; + padding: 0 0 10px 30px; + background: url(../images/comments-bubble-big.gif) no-repeat 0 .1em; +} +.comment-number span { + font-size: 1.3em; + color: #777; +} +a#leavecomment { padding-left: 10px; } +/*Body +---------------------------------------*/ +li.comment { padding: 20px 0 0 0; } +#comments ul.children { + margin: 10px 0 0 96px; + clear: both; +} +div.c-grav { + float: left; + width: 60px; + margin: 0; + text-align: right; +} +div.c-grav img { + border: 4px solid #e3e3e3; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} +div.c-body { + float: right; + width: 474px; + font-size: 1.3em; + background: #f3f3f3; + padding: 20px 20px 0 20px; + -moz-border-radius: 12px; + -webkit-border-radius: 12px; +} +ul.children div.c-body { width: 378px; } +div.c-body p { margin: 10px 0 0 0; } +div.c-head { font-weight: bold; } +span.asterisk { + float: right; + color: #772124; + font-size: 2.2em; +} +div.c-date { + color: #bbb; + font-size: .9em; + line-height: 0; + padding: 10px 0 5px 0; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + font-weight: bold; +} +.c-permalink a:link, .c-permalink a:visited { + margin-left: 5px; + color: #ccc; + font-size: .7em; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + text-transform: uppercase; +} +div.reply, div.cancel-comment-reply { float: right; } +div.reply { padding: 10px 0; } +div.reply a:link, div.reply a:visited { + color: #aaa; + font-size: .9em; + font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Arial, sans-serif; + text-transform: uppercase; + border-bottom: 1px dotted; +} +div.reply a:hover { + border-bottom: 1px solid; + text-decoration: none; +} +/*Form +---------------------------------------*/ +form#commentform { margin-bottom: 20px; } +#respond { font-size: 1.5em; } +h4#postcomment { + margin: 20px 0; + padding: 0 0 5px 0; + font-size: 1.2em; + color: #555; + border-bottom: 1px solid #eee; +} +form#commentform label.comment-field { + display: block; + margin: 10px 0 5px 0; +} +input.text-input, form#commentform textarea { + padding: 7px; + background: #f8f8f8; + font-family: inherit; + font-size: .9em; + border: 1px solid #e6e6e6; + width: 591px; +} +input#author, input#email, input#url { width: 350px; } +form#commentform input:focus, form#commentform textarea:focus { background: #fff; } +form#commentform input#submit { + padding: 5px; + width: 150px; +} +form#commentform p.guidelines { + margin: 10px 0; + font-size: .8em; + color: #777; +} +p.subscribe-to-comments, p.comments-rss { + margin: 0 0 10px 0; + font-size: .9em; +} +p.comments-rss a { + padding: 0 0 0 19px; + background: url(../images/feed-icon.png) no-repeat 0 .15em; +} +/*Note +---------------------------------------*/ +p.note { + font-style: italic; + font-size: 1.3em; +} +/*Pingbacks/Trackbacks +---------------------------------------*/ +h3.pinghead { + font-size: 1.3em; + color: #444444; +} +ol.pinglist { + list-style-type: decimal; + list-style-position: inside; + margin: 0 0 10px 10px; + font-size: 1.3em; +} + +/*Default Alignment and Images +------------------------------------------------------------ */ +.entry img.alignleft, .entry img.alignright, .entry img.aligncenter { border: 2px solid #eee; } +.noborder { border: none; } +.entry .alignright, .entry .alignright .float-quote { margin: 0 0 10px 15px; } +.entry .alignleft, .entry .alignleft .highlight-box { margin: 0 15px 10px 0; } +.wp-caption p { + font-style: italic; + color: #888; +} +/*Footer +------------------------------------------------------------ */ +#footer { + color: #666; + font-size: 1.1em; +} +#footer p.right { float: right; } +#footer a:link, #footer a:visited { + color: #666; + text-decoration: underline; +} +#footer a:hover { color: #772124; } \ No newline at end of file diff --git a/wp-content/themes/vigilance/vigilance.mo b/wp-content/themes/vigilance/vigilance.mo new file mode 100755 index 0000000000000000000000000000000000000000..24937740ffc57334713c15dcce99459564bf77a9 Binary files /dev/null and b/wp-content/themes/vigilance/vigilance.mo differ diff --git a/wp-content/themes/vigilance/vigilance.po b/wp-content/themes/vigilance/vigilance.po new file mode 100755 index 0000000000000000000000000000000000000000..6805b9e9642f701b39667a365635ed4e65878535 --- /dev/null +++ b/wp-content/themes/vigilance/vigilance.po @@ -0,0 +1,765 @@ +msgid "" +msgstr "" +"Project-Id-Version: Vigilance WordPress Theme\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-06-17 11:41-0700\n" +"PO-Revision-Date: \n" +"Last-Translator: Drew Strojny <info@thethemefoundry.com>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: English\n" +"X-Poedit-Country: UNITED STATES\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: __;_e;__ngettext:1,2\n" +"X-Poedit-Basepath: .\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Poedit-SearchPath-0: .\n" + +#: 404.php:2 +msgid "404: Page Not Found" +msgstr "" + +#: 404.php:4 +msgid "We are terribly sorry, but the URL you typed no longer exists. It might have been moved or deleted, or perhaps you mistyped it. We suggest searching the site:" +msgstr "" + +#: archive.php:4 +#, php-format +msgid "Posts from the\t‘%s’ Category" +msgstr "" + +#: archive.php:6 +#, php-format +msgid "Posts tagged ‘%s’" +msgstr "" + +#: archive.php:8 +#: archive.php:10 +#: archive.php:12 +msgid "Archive for" +msgstr "" + +#: archive.php:8 +msgid "F jS, Y" +msgstr "" + +#: archive.php:10 +msgid "F, Y" +msgstr "" + +#: archive.php:12 +msgid "Y" +msgstr "" + +#: archive.php:14 +#, php-format +msgid "Posts by %s" +msgstr "" + +#: archive.php:16 +msgid "Blog Archives" +msgstr "" + +#: archive.php:18 +msgid "comment" +msgstr "" + +#: archive.php:22 +#: search.php:8 +msgid "n.j.y" +msgstr "" + +#: archive.php:27 +#: index.php:26 +#: search.php:13 +msgid "« Older Entries" +msgstr "" + +#: archive.php:28 +#: index.php:27 +#: search.php:14 +msgid "Newer Entries »" +msgstr "" + +#: comments.php:7 +msgid "This post is password protected. Enter the password to view comments." +msgstr "" + +#: comments.php:16 +msgid "No Responses" +msgstr "" + +#: comments.php:16 +msgid "One Response" +msgstr "" + +#: comments.php:16 +msgid "% Responses" +msgstr "" + +#: comments.php:18 +msgid "Leave One" +msgstr "" + +#: comments.php:18 +msgid "leave one →" +msgstr "" + +#: comments.php:27 +msgid "« Older Comments" +msgstr "" + +#: comments.php:28 +msgid "Newer Comments »" +msgstr "" + +#: comments.php:31 +msgid "Trackbacks and Pingbacks" +msgstr "" + +#: comments.php:37 +#: comments.php:48 +msgid "Comments are closed." +msgstr "" + +#: comments.php:43 +msgid "No comments yet" +msgstr "" + +#: comments.php:59 +msgid "Leave a Reply" +msgstr "" + +#: comments.php:61 +msgid "You must be" +msgstr "" + +#: comments.php:61 +msgid "logged in" +msgstr "" + +#: comments.php:61 +msgid "to post a comment." +msgstr "" + +#: comments.php:66 +msgid "Logged in as" +msgstr "" + +#: comments.php:66 +msgid "Log out »" +msgstr "" + +#: comments.php:68 +msgid "Name:" +msgstr "" + +#: comments.php:68 +#: comments.php:69 +msgid "(required)" +msgstr "" + +#: comments.php:69 +msgid "Email:" +msgstr "" + +#: comments.php:70 +msgid "Website:" +msgstr "" + +#: comments.php:72 +msgid "Comment:" +msgstr "" + +#: comments.php:73 +msgid "<strong>Note:</strong> You can use basic XHTML in your comments. Your email address will <strong>never</strong> be published." +msgstr "" + +#: comments.php:74 +msgid "Subscribe to this comment feed via RSS" +msgstr "" + +#: comments.php:79 +msgid "Submit Comment" +msgstr "" + +#: footer.php:3 +msgid "Copyright" +msgstr "" + +#: header.php:9 +msgid "Page Not Found |" +msgstr "" + +#: header.php:11 +#: search.php:3 +#: search.php:17 +#, php-format +msgid "Search results for '%s'" +msgstr "" + +#: header.php:41 +msgid "Skip to content" +msgstr "" + +#: header.php:50 +msgid "Home" +msgstr "" + +#: index.php:7 +#: single.php:7 +msgid "F j" +msgstr "" + +#: index.php:8 +msgid "Leave a comment" +msgstr "" + +#: index.php:8 +msgid "1 Comment" +msgstr "" + +#: index.php:8 +msgid "% Comment" +msgid_plural "% Comments" +msgstr[0] "" +msgstr[1] "" + +#: index.php:11 +msgid "tags: " +msgstr "" + +#: index.php:12 +#: single.php:11 +#, php-format +msgid "by %s" +msgstr "" + +#: index.php:16 +msgid "read more..." +msgstr "" + +#: index.php:17 +#: page.php:7 +#: single.php:16 +msgid "Edit this" +msgstr "" + +#: index.php:21 +#: single.php:20 +msgid "from →" +msgstr "" + +#: search.php:19 +#, php-format +msgid "Sorry your search for \"%s\" did not turn up any results. Please try again." +msgstr "" + +#: searchform.php:1 +#: searchform.php:5 +msgid "Search" +msgstr "" + +#: searchform.php:4 +msgid "type and press enter" +msgstr "" + +#: sidebar-feedbox.php:2 +msgid "Get Free Updates" +msgstr "" + +#: sidebar-feedbox.php:4 +msgid "Get the latest and the greatest news delivered for free to your reader or your inbox:" +msgstr "" + +#: sidebar-feedbox.php:5 +msgid "RSS Feed" +msgstr "" + +#: sidebar-feedbox.php:6 +msgid "Email Updates" +msgstr "" + +#: sidebar-feedbox.php:8 +msgid "Twitter" +msgstr "" + +#: sidebar.php:15 +msgid "Recent Articles" +msgstr "" + +#: functions/comments.php:26 +msgid "permalink" +msgstr "" + +#: functions/comments.php:32 +msgid "<em><strong>Please Note:</strong> Your comment is awaiting moderation.</em>" +msgstr "" + +#: functions/sidebars.php:4 +msgid "Wide Sidebar" +msgstr "" + +#: functions/sidebars.php:12 +msgid "Left Sidebar" +msgstr "" + +#: functions/sidebars.php:20 +msgid "Right Sidebar" +msgstr "" + +#: functions/vigilance-admin.php:37 +msgid "The <code>/wp-content/uploads</code> folder is not writable. Try changing the permissions. <a href=\"http://codex.wordpress.org/Changing_File_Permissions\">Learn how to change permissions →</a>" +msgstr "" + +#: functions/vigilance-admin.php:51 +msgid "There was an error uploading the file. Please try again." +msgstr "" + +#: functions/vigilance-admin.php:71 +msgid "There was an error, please remove the logo and try again." +msgstr "" + +#: functions/vigilance-admin.php:108 +msgid " settings saved!" +msgstr "" + +#: functions/vigilance-admin.php:109 +msgid " settings reset." +msgstr "" + +#: functions/vigilance-admin.php:113 +msgid "Options" +msgstr "" + +#: functions/vigilance-admin.php:114 +msgid "Need help with these options?" +msgstr "" + +#: functions/vigilance-admin.php:114 +msgid "Read the tutorials" +msgstr "" + +#: functions/vigilance-admin.php:114 +msgid "or visit the <a href=\"http://thethemefoundry.com/forums/\">support forums.</a>" +msgstr "" + +#: functions/vigilance-admin.php:126 +#: functions/vigilance-admin.php:252 +msgid "Save changes" +msgstr "" + +#: functions/vigilance-admin.php:178 +msgid "Choose your image" +msgstr "" + +#: functions/vigilance-admin.php:183 +msgid "Remove" +msgstr "" + +#: functions/vigilance-admin.php:186 +msgid "Preview logo" +msgstr "" + +#: functions/vigilance-admin.php:187 +msgid "Cannot locate your logo image, it may have been moved or renamed. Please remove and try uploading again." +msgstr "" + +#: functions/vigilance-admin.php:208 +msgid "show color picker" +msgstr "" + +#: functions/vigilance-admin.php:208 +msgid "hide color picker" +msgstr "" + +#: functions/vigilance-admin.php:257 +msgid "Save all changes" +msgstr "" + +#: functions/vigilance-admin.php:263 +msgid "Reset all options" +msgstr "" + +#: functions/vigilance-extend.php:29 +msgid "Custom Logo Image <span>insert your custom logo image in the header</span>" +msgstr "" + +#: functions/vigilance-extend.php:33 +msgid "Enable custom logo image" +msgstr "" + +#: functions/vigilance-extend.php:35 +msgid "Check to use a custom logo in the header." +msgstr "" + +#: functions/vigilance-extend.php:40 +msgid "Prefer FTP? Specify a file name." +msgstr "" + +#: functions/vigilance-extend.php:42 +#, php-format +msgid "Choose an image from your computer or specify any image file name you have uploaded to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:48 +msgid "Logo image <code><alt></code> tag" +msgstr "" + +#: functions/vigilance-extend.php:50 +msgid "Specify the <code><alt></code> tag for your logo image." +msgstr "" + +#: functions/vigilance-extend.php:55 +msgid "Display tagline" +msgstr "" + +#: functions/vigilance-extend.php:58 +msgid "Check to show your tagline below your logo." +msgstr "" + +#: functions/vigilance-extend.php:63 +msgid "Navigation <span>control your top navigation menu</span>" +msgstr "" + +#: functions/vigilance-extend.php:67 +msgid "Use WordPress menus" +msgstr "" + +#: functions/vigilance-extend.php:69 +msgid "Check this box to use the built in WordPress menus (overrides all other navigation options). This option <strong>requires WordPress 3.0 or higher</strong>." +msgstr "" + +#: functions/vigilance-extend.php:74 +msgid "Hide all pages" +msgstr "" + +#: functions/vigilance-extend.php:76 +msgid "Check this box to hide all pages." +msgstr "" + +#: functions/vigilance-extend.php:81 +msgid "Exclude specific pages" +msgstr "" + +#: functions/vigilance-extend.php:83 +msgid "The page ID of pages you do not want displayed in your navigation menu. Use a comma-delimited list, eg. 1,2,3." +msgstr "" + +#: functions/vigilance-extend.php:88 +msgid "Hide all categories" +msgstr "" + +#: functions/vigilance-extend.php:90 +msgid "Check this box to hide all categories." +msgstr "" + +#: functions/vigilance-extend.php:95 +msgid "Exclude specific categories" +msgstr "" + +#: functions/vigilance-extend.php:97 +msgid "The category ID of pages you do not want displayed in your navigation menu. Use a comma-delimited list, eg. 1,2,3." +msgstr "" + +#: functions/vigilance-extend.php:102 +msgid "Hide home navigation menu item" +msgstr "" + +#: functions/vigilance-extend.php:104 +msgid "Check this box if you are using a static page as your homepage instead of your blog (the default). The extra <em>Home</em> menu item will be removed." +msgstr "" + +#: functions/vigilance-extend.php:109 +msgid "Color Scheme <span>customize your color scheme</span>" +msgstr "" + +#: functions/vigilance-extend.php:113 +msgid "Customize colors" +msgstr "" + +#: functions/vigilance-extend.php:115 +msgid "If enabled your theme will use the layouts and colors you choose below." +msgstr "" + +#: functions/vigilance-extend.php:119 +#: functions/vigilance-extend.php:309 +msgid "Disabled" +msgstr "" + +#: functions/vigilance-extend.php:120 +#: functions/vigilance-extend.php:310 +msgid "Enabled" +msgstr "" + +#: functions/vigilance-extend.php:123 +msgid "Background color" +msgstr "" + +#: functions/vigilance-extend.php:125 +#: functions/vigilance-extend.php:132 +#: functions/vigilance-extend.php:139 +#: functions/vigilance-extend.php:146 +msgid "Use hex values and be sure to include the leading #." +msgstr "" + +#: functions/vigilance-extend.php:130 +msgid "Border color" +msgstr "" + +#: functions/vigilance-extend.php:137 +msgid "Link color" +msgstr "" + +#: functions/vigilance-extend.php:144 +msgid "Link hover color" +msgstr "" + +#: functions/vigilance-extend.php:151 +msgid "Disable hover background images" +msgstr "" + +#: functions/vigilance-extend.php:153 +msgid "Check this box if you use custom link colors and do not want the default red showing when a user hovers over the comments bubble or the sidebar menu items." +msgstr "" + +#: functions/vigilance-extend.php:158 +msgid "Top Banner Image <span>control your top banner image state</span>" +msgstr "" + +#: functions/vigilance-extend.php:162 +msgid "Banner state" +msgstr "" + +#: functions/vigilance-extend.php:164 +#, php-format +msgid "Add your images to the top banner rotation by uploading them to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:168 +#: functions/vigilance-extend.php:254 +msgid "Rotating images" +msgstr "" + +#: functions/vigilance-extend.php:169 +#: functions/vigilance-extend.php:255 +#: functions/vigilance-extend.php:275 +msgid "Static image" +msgstr "" + +#: functions/vigilance-extend.php:170 +#: functions/vigilance-extend.php:257 +msgid "Page or post specific" +msgstr "" + +#: functions/vigilance-extend.php:171 +#: functions/vigilance-extend.php:203 +#: functions/vigilance-extend.php:256 +#: functions/vigilance-extend.php:289 +msgid "Custom code" +msgstr "" + +#: functions/vigilance-extend.php:172 +#: functions/vigilance-extend.php:258 +msgid "Do not show an image" +msgstr "" + +#: functions/vigilance-extend.php:175 +msgid "Banner height" +msgstr "" + +#: functions/vigilance-extend.php:177 +msgid "The height of your image. The width is fixed at 596px." +msgstr "" + +#: functions/vigilance-extend.php:182 +msgid "Banner <code><alt></code> tag" +msgstr "" + +#: functions/vigilance-extend.php:184 +msgid "Specify the <code><alt></code> tag for your banner image(s). Will default to your blog title if left blank." +msgstr "" + +#: functions/vigilance-extend.php:189 +msgid "Static image name" +msgstr "" + +#: functions/vigilance-extend.php:191 +#, php-format +msgid "Set the <em>Banner State</em> to \"Static Image\" and upload your image to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:196 +msgid "Home image name" +msgstr "" + +#: functions/vigilance-extend.php:198 +#, php-format +msgid "To replace your home top banner with a specific image upload it to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:205 +msgid "Replace your top banner with custom code. The <em>Banner State</em> must be set to \"Custom code\" for this to work." +msgstr "" + +#: functions/vigilance-extend.php:213 +msgid "Alert Box <span>toggle your custom alert box</span>" +msgstr "" + +#: functions/vigilance-extend.php:217 +msgid "Alert Box on/off switch" +msgstr "" + +#: functions/vigilance-extend.php:219 +msgid "Toggle the alert box on or off." +msgstr "" + +#: functions/vigilance-extend.php:223 +msgid "Off" +msgstr "" + +#: functions/vigilance-extend.php:224 +msgid "On" +msgstr "" + +#: functions/vigilance-extend.php:227 +msgid "Alert Title" +msgstr "" + +#: functions/vigilance-extend.php:229 +msgid "The heading for your alert." +msgstr "" + +#: functions/vigilance-extend.php:234 +msgid "Alert Message" +msgstr "" + +#: functions/vigilance-extend.php:236 +msgid "A special alert message that is shown on the homepage of your blog." +msgstr "" + +#: functions/vigilance-extend.php:244 +msgid "Sidebar Image <span>control your sidebar image state</span>" +msgstr "" + +#: functions/vigilance-extend.php:248 +msgid "Image state" +msgstr "" + +#: functions/vigilance-extend.php:249 +#, php-format +msgid "Add your images to the sidebar rotation by uploading them to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:261 +msgid "Image height" +msgstr "" + +#: functions/vigilance-extend.php:263 +msgid "The height of your image. The width is fixed at 300px." +msgstr "" + +#: functions/vigilance-extend.php:268 +msgid "Image <code><alt></code> tag" +msgstr "" + +#: functions/vigilance-extend.php:270 +msgid "The <code><alt></code> tag for your sidebar image(s). Will default to your blog title if left blank." +msgstr "" + +#: functions/vigilance-extend.php:277 +#, php-format +msgid "Set the <em>Image State</em> to \"Static Image\" and upload your image to the %s directory." +msgstr "" + +#: functions/vigilance-extend.php:282 +msgid "Image link" +msgstr "" + +#: functions/vigilance-extend.php:284 +msgid "Define a hyperlink for your sidebar image. If left empty the anchor tags will not be included." +msgstr "" + +#: functions/vigilance-extend.php:291 +msgid "Replace your sidebar image with custom code. The <em>Image State</em> must be set to \"Custom code\" for this to work." +msgstr "" + +#: functions/vigilance-extend.php:299 +msgid "Sidebar Feed Box <span>share feeds and updates with your readers</span>" +msgstr "" + +#: functions/vigilance-extend.php:303 +msgid "Feed box state" +msgstr "" + +#: functions/vigilance-extend.php:304 +msgid "Enable or disable the feed box located in the sidebar." +msgstr "" + +#: functions/vigilance-extend.php:313 +msgid "Feed box title text" +msgstr "" + +#: functions/vigilance-extend.php:315 +msgid "Header for your feed box." +msgstr "" + +#: functions/vigilance-extend.php:320 +msgid "Feed box intro text" +msgstr "" + +#: functions/vigilance-extend.php:322 +msgid "Enter your feed intro text here." +msgstr "" + +#: functions/vigilance-extend.php:330 +msgid "<a href=\"http://feedburner.google.com\">Feedburner</a> email updates link" +msgstr "" + +#: functions/vigilance-extend.php:332 +msgid "Enter your feed email link here. Do not paste the provided link code, extract and paste the URL only." +msgstr "" + +#: functions/vigilance-extend.php:340 +msgid "Enable Twitter" +msgstr "" + +#: functions/vigilance-extend.php:342 +msgid "Hip to Twitter? Check this box." +msgstr "" + +#: functions/vigilance-extend.php:347 +msgid "Twitter updates link" +msgstr "" + +#: functions/vigilance-extend.php:349 +msgid "Enter your twitter link here." +msgstr "" + +#: functions/vigilance-extend.php:353 +msgid "Footer <span>add a copyright notice and tracking codes</span>" +msgstr "" + +#: functions/vigilance-extend.php:357 +msgid "Copyright notice" +msgstr "" + +#: functions/vigilance-extend.php:359 +msgid "Your name or the name of your business." +msgstr "" + +#: functions/vigilance-extend.php:364 +msgid "Stats code" +msgstr "" + +#: functions/vigilance-extend.php:366 +#, php-format +msgid "If you would like to use Google Analytics or any other tracking script in your footer just paste it here. The script will be inserted before the closing %s tag." +msgstr "" + +#: functions/vigilance-extend.php:435 +msgid "Top Navigation" +msgstr "" +