first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/**
* Plugin Name: AceIDE
* Plugin URI: https://github.com/AceIDE/AceIDE
* Description: WordPress code editor with auto completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup.
* Version: 2.6.2
* Author: AceIDE
* License: GPL3
**/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
if ( !file_exists( __DIR__ . '/vendor/' ) ) {
trigger_error( 'Composer "vendor/" directory missing.', E_USER_ERROR );
}
require_once __DIR__ . '/vendor/autoload.php';
$fileops = new AceIDE\Editor\Modules\FileOps;
$ide = new AceIDE\Editor\IDE;
$ide->extend($fileops);
// As long as the GitOps module is under development, let's only make it
// available to WordPress users with WP_DEBUG enabled.
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
$gitops = new AceIDE\Editor\Modules\GitOps;
$ide->extend($gitops);
}

View File

@@ -0,0 +1,173 @@
## AceIDE Changelog
#### 2.6.2
* See github issue #32. Adds precision to backup naming.
* Reverts breaking changes made by commit 80e8adf to fix #15.
#### 2.6.1
* See github issue #27. Fixes issue introduced in 2.6.0, attempting to fix noise in AJAX.
* See github issue #26. Fixes CSS highlighting not working.
* Bumped Ace version to 1.2.9.
* Fixed PHPParser_Error not being caught.
* Added 'aceide_parse_php' filter to allow disabling the inbuilt PHP syntax parser.
* See github issue #24. Fixes some resource URLs.
#### 2.6.0
* See github issue #15. Removes AJAX noise from ALL other plugins/themes etc. Much more solid than previous solution for github issue #5.
* Resolves github issue #21. Better error output in the event the HTTP server will not process a file upload request.
* Added plugin license.
* Resolved github issue #22. AceIDE now supports PHP 7.
#### 2.5.5
* Fixed github issue #11, where text would be replaced when clicking in replace field of the search box - Thanks to X-Raym
* Fixed shift line up/down hotkeys
* Added editor to Multisite's network admin menu - Thanks to X-Raym
* Added AceIDE logo - Thanks to Kevin Young (rdytogokev)
* Added Fullscreen editor
* Slightly modified some keyboard command handlers for usability
* Changed capability from 'create_users' to 'edit_plugins' (See GitHub issue #14)
#### 2.5.4
* Fixed broken SumoPaint image manipulation functionality (see github issue #3)
* Strips noise from other plugins upon opening files (see github issue #5)/wp-content/plugins/aceide/CHANGELOG.md
* Fixed broken zipping functionality with ZipArchive (see github issue #6)
#### 2.5.3
* Added autocomplete for taxonomy functions add_term_meta, get_term_meta, update_term_meta and delete_term_meta
* Fixed broken zipping functionality (see github issue #2)
#### 2.5.2
* Fixed AceIDE editor main class error on older versions of PHP for unknown shorthand array syntax - Thanks to X-Raym
#### 2.5.1
* Fixed dialog issues with Z order of find, settings and git dialogs
* Fixed dialog close button mislocation
#### 2.5.0
* WPide was forked into AceIDE!
* Introduced composer as a dependency management solution
* Massive code refactor to better follow Single Role Principle, and the WordPress PHP coding standards - introduces PHP namespacing into internal plugin code
* Fixed WPide admin_body_class filter issue
* Added multi-site support. (UNTESTED)
* Added Drag n' Drop file moving
* Added syntax highlighting for the Twig templating language (http://twig.sensiolabs.org)
* Added the Emmet plugin to create HTML nodes with CSS syntax (http://emmet.io)
* Upgraded Ace to v1.2.4
* Fixed SumoPaint link issues when the aceide_filesystem_root filter is not at default value
#### 2.4.0
* Context menu option added to file browser to rename, delete, download, zip, unzip!! thanks to shanept https://github.com/shanept for the code behind this.
Right click on a folder/file in the file browser to see options (Thanks to https://github.com/shanept)
* find+replace
* Stopped using the full functionality of sanitize_file_name() and using a cut down version instead that allows period, dash and underscore at the beginning and end of filename.
* corrected invalid regex for determining image type
* Changed order of PHP4 compatible constructor in an attempt to stop a PHP Strict Standard error
* Update to Ace Editor 1.2.0
* Editor settings, so that its possible to change the theme and other editor features/behaviours
* New application icon in menu bar
#### 2.3.2
* Update the Ace component to 1.1.1 which includes some bug fixes, a PHP worker (showing PHP errors as you work) and a greatly improved search box.
* Fixed issue with file save showing javascript alert as if there was a failure when there wasn't
* Order folders and files alphabetically
#### 2.3.1
* As a quick fix I have commentted out the git functionality as the namespacing used is causing issues with old versions of PHP
#### 2.3
* Added initial git functions using the following library: PHP-Stream-Wrapper-for-Git from https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
* Initial Git functionality added - it's very experimental!
#### 2.2
* Add restore recent backup facility - It's a primative implementation at this point but it does the job. See FAQ note.
* Turned on the LESS mode when a .LESS file is edited
* Made the autocomplete functionality only be enabled for PHP files otherwise it can be a pain to write txt files like this one!
#### 2.1
* Ramped up the version number because the last one was just getting silly
* Interface changes to make the editor take up more screen space. Including hiding the WP admin menu and footer.
#### 2.0.16
* Fixed problem saving PHP documents - PHP-Parser library wasn't included in the codebase correctly
#### 2.0.15
* PHP syntax checking before saving to disk (Using: https://github.com/nikic/PHP-Parser)
#### 2.0.14
* Fixed error Warning: Creating default object from empty value in AceIDE.php
* Updated the ace editor to current build
#### 2.0.13
* Added colour assist - a colour picker that displays when you double click a hex colour code in the editor (see other notes for info).
* Added a confirm box to stop you exiting the editor by mistake and losing unsaved chnages.
* Added 'aceide_filesystem_root' filter (see other notes for info).
* A number of bug fixes.
#### 2.0.12
* Added links to the WordPress codex and the PHP manual from within the function refrence for further info
#### 2.0.11
* Newly created files use to contain a space, instead it now defaults to a blank file.
#### 2.0.10
* Fixed a problem with file loading (ajax) indicator not showing.
#### 2.0.9
* Upload snapshot of current ajaxorg editor (master/build/src) at 00:30 on the 22 May 2012. Which fixes some issues with selecting big blocks of text, code folding seems better with gutter interface hidden when not in use
#### 2.0.8
* Fix browser compatibility issues
#### 2.0.7
* Fixing issue with closing tabs not focusing onto next tab once closed.
* Fixed issue with detecting ajax url correctly which was causing all AceIDE ajax requests to fail if WordPress was installed in a subdirectory.
* Stopped autocomplete from trying to work when a js/css file is being edited.
#### 2.0.6
* Cleaned up the AceIDE class and modified the way the class is passed to WordPress actions/filters.
#### 2.0.5
* On startup the editor page now shows extra debuggin information for the filesystem API initialisation.
#### 2.0.4
* On startup the initial editor page now shows some startup info regarding file permissions to help with debugging.
#### 2.0.3
* If AceIDE cannot access your files due to permissions then when it starts up it will give you an alert to say this.
#### 2.0.2
* Image editing is now available using the SumoPaint image editor and drawing application http://www.sumopaint.com/
#### 2.0.1
* You can now create new files/folders
#### 2.0
* Recreated this plugin as a dedicated AceIDE section/app rather than extending the built in plugin/theme editor (just incase WP remove it)
* Now using the WP filesystem API (although currently restricted to local access)
* More security checks on file opening and editing
* Added new file tree for exploring the file system and opening files (any file in wp-content)
* Massive overhaul to code autocomplete functionality with the addition of function information right in the app
* Update the ajaxorg Ace Editor to the current branch
* Tabbed editing
#### 1.0.6
* Added link to meta section of plugin list for easy install of V2 Dev version if you have dismissed the alert.
#### 1.0.5
* Added the facility to download and run the cutting edge development version of AceIDE from the Github repository
#### 1.0.4
* Implemented JavaScript and CSS mode for better syntax highlighing and checking (Thanks to Thomas Wieczorek)
* Organise and format source code
#### 1.0.2
* Tidy and comment code
* Added message when backup file is generated
* Adjust code complete dropdown position
* Improved editor responsiveness when using delete or enter keys
#### 1.0.1
* Fixed "Folder name case" issue.
#### 1.0
* Initial release.

View File

@@ -0,0 +1,27 @@
## Contributions to AceIDE
AceIDE would not be the powerful tool it is without your contributions. Community contributions are essential to ensure the continued development of the editor. This document outlines the requirements for contributing to the AceIDE project.
### Coding Standards
Code for the AceIDE project should abide by the [WordPress Coding Standard][1]. This ensures code styling is consistant across the codebase.
### Contributing code
In order to have your modifications accepted, a pull request must be submitted to the [AceIDE GitHub repository][2]. It must meet the coding standards outlined above, and it must have a meaningful commit message.
### Making a meaningful commit message
Commits are a way of communicating to other developers what it is that your commit is changing. Meaningful commit messages are important in that they allow us to review your commit, and better understand what it does before going through the code.
A good commit message always starts with a brief but descriptive title. What follows is a more verbose body that may go into more detail to explain what has been changed.
As an example, the following commit fixes an issue, referenced by issue ID 42, which fixes a bug introduced in commit abcd123.
```
(#42) Fix admin menu disappearing on hover
Commit abcd123 introduces a bug where the admin menu may disappear when
the mouse hovers over it for more than 3 seconds. This commit keeps the
intended functionality of making it hidden in the editor window, whilst
fixing this issue for all other pages in the admin panel.
```
[1]: https://codex.wordpress.org/WordPress_Coding_Standards
[2]: https://github.com/AceIDE/AceIDE

View File

@@ -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:
{project} Copyright (C) {year} {fullname}
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>.

View File

@@ -0,0 +1,78 @@
## AceIDE WordPress Plugin
AceIDE is a fork of the [WPide][1] project.
AceIDE is a WordPress code editor with the long term goal of becoming the ultimate environment to code/develop WordPress themes and plugins. You can edit any files in your wp-content, not just plugins and themes. Code completion will help you remember your WordPress/PHP commands providing function reference along the way. AceIDE allows you to work with multiple files, with basic features such as the tabbed editor, syntax highlighting and line numbers. It also provides some more advanced features such as syntax verification and automatic backups upon saving.
Contributions and feedback is encouraged! If you find an issue, please let us know via the WordPress support forums, or the [GitHub issue tracker][3]. Code contributions are welcomed as a pull request to our GitHub repo.
This plugin would not be possible without the [Ajax.org Cloud9 Editor][4] which is the embedded code editor that powers much of the functionality.
This plugin performs best in the Chrome web browser.
Contributors: Shane Thompson, [WPsites][5], [Thomas Wieczorek][6], X-Raym, [Kevin Young][7]
Tags: code, theme editor, plugin editor, code editor
Requires at least: 3.0
Tested up to: 4.9.1
Stable tag: 2.6.2
### Current Features:
- Syntax highlighting
- PHP syntax checking before saving to disk to try and banish white screen of death after uploading invalid PHP
- Line numbers
- Find+replace
- Code autocomplete for WordPress and PHP functions along with function description, arguments and return value where applicable
- Colour assist - a colour picker that only shows once you double click a hex colour code in the editor. You can also drag your own image into the colour picker to use instead of the default swatch (see other notes for info).
- Automatic backup of every file you edit. (one daily backup and one hourly backup of each file stored in plugins/AceIDE/backups/filepath)
- File tree allowing you to access and edit any file in your wp-content folder (plugins, themes, uploads etc)
- Use the file browser to rename, delete, download, zip and unzip files (so you can download a zipped version of your whole theme for example)
- Create new files and directories
- Highlight matching parentheses
- Code folding
- Auto indentation
- Tabbed interface for editing multiple files (editing both plugin and theme files at the same time)
- Using the WordPress filesystem API, although currently direct access is forced (edit AceIDE.php in the constructor to change this behaviour) ftp/ssh connections aren't setup yet, since WP will not remember a password need to work out how that will work. Maybe use modal to request password when you save but be able to click save all and save a batch with that password. Passwords defined in wp-config.php are persistent and would fix this problem but people don't generally add those details. Open to ideas here.
- Image editing/drawing
- WordPress Multisite support
### Feature ideas and improvements:
- Improve the code autocomplete command information, providing more information on the commands, adding links through to the WordPress codex and PHP.net website for further info.
- Create an admin panel to choose between syntax highlighting themes and turn on/off other Ajax.org Cloud9 functionality
- Better automated file backup process
- Templates/shortcuts for frequently used code snippets, maybe even with an interface to accept variables that could be injected into code snippet templates.
- Integration with version control systems such as Git
As with most plugins this one is open source. For issue tracking, further information and anyone wishing to get involved and help contribute to this project can do so over on [GitHub][2].
**Please read CONTRIBUTING.md before submitting a pull request.**
### Installation
1. Run `composer install` to install project dependencies
1. Upload the AceIDE folder to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Access AceIDE by clicking the AceIDE menu item in your main administration menu
### Screenshots
1. Editor view, showing line numbers and syntax highlighting.
1. Image editor in action
1. Showing auto complete, function reference and file tree.
1. Default colour picker image
### Changelog
Please have a look at CHANGELOG.md
### Contributors
Simon Dunton - http://www.wpsites.co.uk
Thomas Wieczorek - http://www.wieczo.net
Shane Thompson
X-Raym
Kevin Young - https://rdytogo.com/
**Please read CONTRIBUTING.md before submitting a pull request.**
[1]: https://github.com/WPSites/WPide
[2]: https://github.com/AceIDE/AceIDE
[3]: https://github.com/AceIDE/AceIDE/issues
[4]: http://ace.ajax.org
[5]: http://www.wpsites.co.uk
[6]: http://www.wieczo.net
[7]: https://rdytogo.com/

View File

@@ -0,0 +1,111 @@
.wpcf7 .screen-reader-response {
position: absolute;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
width: 1px;
margin: 0;
padding: 0;
border: 0;
}
.wpcf7 form .wpcf7-response-output {
margin: 2em 0.5em 1em;
padding: 0.2em 1em;
border: 2px solid #00a0d2; /* Blue */
}
.wpcf7 form.init .wpcf7-response-output {
display: none;
}
.wpcf7 form.sent .wpcf7-response-output {
border-color: #46b450; /* Green */
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
border-color: #dc3232; /* Red */
}
.wpcf7 form.spam .wpcf7-response-output {
border-color: #f56e28; /* Orange */
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
border-color: #ffb900; /* Yellow */
}
.wpcf7-form-control-wrap {
position: relative;
}
.wpcf7-not-valid-tip {
color: #dc3232;
font-size: 1em;
font-weight: normal;
display: block;
}
.use-floating-validation-tip .wpcf7-not-valid-tip {
position: absolute;
top: 20%;
left: 20%;
z-index: 100;
border: 1px solid #dc3232;
background: #fff;
padding: .2em .8em;
}
span.wpcf7-list-item {
display: inline-block;
margin: 0 0 0 1em;
}
span.wpcf7-list-item-label::before,
span.wpcf7-list-item-label::after {
content: " ";
}
div.wpcf7 .ajax-loader {
visibility: hidden;
display: inline-block;
background-image: url('../../assets/ajax-loader.gif');
width: 16px;
height: 16px;
border: none;
padding: 0;
margin: 0 0 0 4px;
vertical-align: middle;
}
div.wpcf7 .ajax-loader.is-active {
visibility: visible;
}
div.wpcf7 div.ajax-error {
display: none;
}
div.wpcf7 .placeheld {
color: #888;
}
div.wpcf7 input[type="file"] {
cursor: pointer;
}
div.wpcf7 input[type="file"]:disabled {
cursor: default;
}
div.wpcf7 .wpcf7-submit:disabled {
cursor: not-allowed;
}
.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
direction: ltr;
}

View File

@@ -0,0 +1,489 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "638e5c8b0b2fa8674a9fcfe0b99b3d3f20bec7e800" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-04-19-20-18-08.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,494 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "799dfe44b1e9319b34cfc6e2514fa28ae1111d7f63" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-08-08-16-45-31.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
case 'TomTom':
{
echo '<span>The Netherlands</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,499 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "799dfe44b1e9319b34cfc6e2514fa28ab34adfd4a6" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_case_study.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_case_study_2021-11-22-19-14-16.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
add_action('init', 'cyber_case_study_sections');
if(!function_exists('cyber_case_study_sections')):
function cyber_case_study_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'cyber_case_study' => array(
'name' => esc_html__('EM Case Study Section', 'cyber'),
'description' => esc_html__('Display Blog Style', 'cyber'),
'icon' => 'kc-icon-blog-posts',
'category' => 'cyber',
'params' => array(
'General' => array(
array(
'name' => 'items',
'label' => __( 'Items Limit', 'cyber' ),
'type' => 'number_slider',
'value' => '3',
'description' => __(' Specify number of post that you want to show. Set 0 to get all team', 'cyber'),
'options' => array(
'min' => 0,
'max' => 75,
'unit' => '',
'show_input' => false
)
),
array(
'type' => 'select',
'label' => __( 'Order By', 'cyber' ),
'name' => 'order',
'options' => array(
'DESC' => __( 'Descending', 'cyber' ),
'ASC' => __( 'Ascending', 'cyber' )
)
),
array(
'type' => 'radio_image',
'label' => __( 'Select blog Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'When select style 2 that time, set column and set gutter not work', 'cyber' ),
'value' => '1'
),
array(
'type' => 'select',
'label' => __( 'Set Column', 'cyber' ),
'name' => 'set_column',
'description' => __( 'Enter number item per row', 'cyber' ),
'value' => '4',
'options' => array(
'12' => __( '1 Column', 'cyber' ),
'6' => __( '2 Column', 'cyber' ),
'4' => __( '3 Column', 'cyber' ),
'3' => __( '4 Column', 'cyber' )
),
),
array(
'name' => 'gutter',
'label' => __( 'Select No Gutter', 'cyber' ),
'type' => 'toggle',
'value' => 'no',
'description' => __( 'Remove column Spacing', 'cyber' ),
),
array(
'name' => 'show_content',
'label' => __( 'Display Pragraph', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'name' => 'show_button',
'label' => __( 'Display Button', 'cyber' ),
'type' => 'toggle',
'value' => 'yes',
),
array(
'type' => 'text',
'label' => __( 'Button Text', 'cyber' ),
'name' => 'btn_text',
'value' => 'Read More',
'description' => __( 'Enter Button Text', 'cyber' ),
'relation' => array(
'parent' => 'show_button',
'show_when' => 'yes',
)
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '.em-cases-study-title a:hover'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-title h2 a,.em-cases-study-title a'),
),
'Desc' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.cases-study-content p'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.cases-study-content p'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.cases-study-content p'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.cases-study-content p'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.cases-study-content p'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.cases-study-content p'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.cases-study-content p'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.cases-study-content p'),
),
'Category' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.case_category span'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.case_category span'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.case_category span'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.case_category span'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.case_category span'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.case_category span'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.case_category span'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.case_category span'),
),
'Button' => array(
array('property' => 'color', 'label' => 'Text Color', 'selector' => '.em-case-study-button a'),
array('property' => 'color', 'label' => 'Text Hover Color', 'selector' => '.em-case-study-button:hover'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-case-study-button a'),
array('property' => 'border-color', 'label' => 'Hover Border', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.em-case-study-button a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-case-study-button a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-case-study-button a'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-case-study-button a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-case-study-button a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-case-study-button a'),
),
'Content' => array(
array('property' => 'background', 'label' => 'BG Color', 'selector' => '.em-cases-study-content '),
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-cases-study-content '),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-cases-study-content '),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-cases-study-content'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-cases-study-content '),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-cases-study-content'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-cases-study-content '),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-cases-study-content '),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-cases-study-content '),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color', 'selector' => '+ .cyber-single-cases-study'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.cyber-single-cases-study',),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.cyber-single-cases-study:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.cyber-single-cases-study:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)// Params
)// end shortcode key
)// first array
); // End add map
endif;
}
endif;
// ========== blog Area
if(!function_exists('cyber_case_study_area')){
function cyber_case_study_area( $atts , $content = null ){
ob_start();
// Attributes
$em_blog_box = shortcode_atts(array(
'layout' => '1',
'set_column' => '3',
'show_pagination' => '',
'items' => '3',
'order' => '',
'gutter' => '',
'show_content' => '',
'show_button' => '',
'btn_text' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_blog_box );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$page = ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );
$paged = ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : $page );
$args = array(
'post_type' => 'em_case_study',
'posts_per_page' => intval( $items ),
'order' => $order ,
'paged' => $paged,
'page' => $paged
);
$the_query = new WP_Query($args);
if( $the_query->have_posts() ) {
switch ( $layout ) {
case '2':
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel owl-carousel curosel-style">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<?php
switch(get_the_title()){
case 'Nokia':
{
echo '<span>Finland</span>';
break;
}
case 'SoftServe':
{
echo '<span>Ukraine / USA</span>';
break;
}
case 'Microsoft Corporation':
{
echo '<span>USA</span>';
break;
}
case 'Mynavi Corporation':
{
echo '<span>Japan</span>';
break;
}
case 'Striped Giraffe':
{
echo '<span>Germany</span>';
break;
}
case 'DPDGroup IT Solutions':
{
echo '<span>France</span>';
break;
}
case 'Atlassian':
{
echo '<span>Australia</span>';
break;
}
case 'ICEYE':
{
echo '<span>Poland / Finland</span>';
break;
}
case 'TomTom':
{
echo '<span>The Netherlands</span>';
break;
}
case 'Equinix, Inc.':
{
echo '<span>USA</span>';
break;
}
}
?>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
default:
?>
<div class=" blog_style_adn_2">
<div class="blog_wrap case_study_carousel_main owl-carousel curosel-style style-one">
<?php while ($the_query->have_posts()) : $the_query->the_post();
?>
<!-- single blog -->
<div class=" <?php if( $gutter == 'yes' ){echo 'blog_nospace_adn';}?> col-md-12 col-xs-12 col-sm-12 " >
<div class="single_case_study <?php echo esc_attr( $extra_class ); ?>">
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="cyber-single-cases-study ">
<!-- BLOG THUMB -->
<?php if(has_post_thumbnail()){?>
<div class="case-study-thumb ">
<a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(); ?>
</a>
</div>
<?php } ?>
<div class="em-cases-study-content ">
<!-- BLOG TITLE -->
<div class="em-cases-study-title ">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="case_category">
<span>Marketing /</span>
<span>Design</span>
</div>
<!-- Blog Description -->
<?php if($show_content=='yes'){?>
<!-- BLOG TITLE AND CONTENT -->
<div class="em-cases-study-inner ">
<div class="cases-study-content ">
<p><?php echo wp_trim_words( get_the_content(), 19, ' ' ); ?></p>
</div>
</div>
<?php } ?>
<!-- Blog Read More Button -->
<?php if($show_button=='yes'){?>
<div class="em-case-study-button">
<?php if($btn_text){?>
<a href="<?php the_permalink(); ?>" class="learn_btn"><?php echo $btn_text;?></a>
<i class="fa fa-long-arrow-right btn_icon"></i>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div> <!-- END SINGLE BLOG -->
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php
break;
}
} //end have
return ob_get_clean();
}
}
add_shortcode ('cyber_case_study', 'cyber_case_study_area' );

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-21-57-50.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-22-00-09.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,527 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_team_section.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_team_section_2021-03-22-22-01-09.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* Team Section
* Author: EM40
* Author URI: http://themexbd.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_team_sections');
if(!function_exists('em_team_sections')):
function em_team_sections(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_team_sections' => array(
'name' => __( 'EM Team Item', 'cyber' ),
'title' => 'Team Settings',
'icon' => 'kc-icon-team',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display teams layout style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'name' => 'image',
'label' => __( 'Avatar Image', 'cyber' ),
'type' => 'attach_image'
),
array(
'type' => 'text',
'label' => __( 'Image Size', 'cyber' ),
'name' => 'img_size',
'value' => 'full',
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large" or other size ', 'cyber'),
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'Team Member Name',
'admin_label' => true
),
array(
'name' => 'subtitle',
'label' => __( 'Subtitle', 'cyber' ),
'type' => 'text',
'value' => 'Founder'
),
array(
'type' => 'textarea',
'name' => 'desc',
'label' => __( 'Description', 'cyber' ),
'value' => base64_encode('Lorem ipsum dolor sit amet, consecte tur adipisicing elit. Ipsa libero ab voluptatibus itaque quas in voluptas cyber.')
),
array(
'type' => 'radio_image',
'label' => __( 'Select Team Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
'3' => EM40_EXTENSION_URI . 'asstes/images/blog/layout3.jpg',
),
'description' => __( 'Select Your Team Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'socials' => array(
array(
'name' => 'facebook',
'label' => __( 'Facebook Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link facebook. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'twitter',
'label' => __( 'Twitter Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link twitter. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'google_plus',
'label' => __( 'Google Plus Link', 'cyber' ),
'type' => 'text',
'value' => '#',
'description' => __( 'Insert link google plus. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'linkedin',
'label' => __( 'Linkedin Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link linkedin. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'pinterest',
'label' => __( 'Pinterest Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link pinterest. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'flickr',
'label' => __( 'Flickr Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link flickr. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'instagram',
'label' => __( 'Instagram Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link instagram. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'dribbble',
'label' => __( 'Dribbble Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link dribbble. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'reddit',
'label' => __( 'Reddit Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link reddit. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
array(
'name' => 'email',
'label' => __( 'Email Link', 'cyber' ),
'type' => 'text',
'value' => '',
'description' => __( 'Insert link email. It hidden when field blank.', 'cyber' ),
'relation' => array(
'parent' => 'show_icon',
'show_when' => 'yes'
)
),
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-title h2'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-title h2'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-title h2'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-title h2'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-title h2'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-title h2'),
),
'Subtitle' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-subtitle'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-subtitle'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.em-team-content-subtitle'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.em-team-content-subtitle'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-subtitle'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-subtitle'),
),
'content bg' => array(
array('property' => 'background', 'label' => 'Background Hover Color', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '+:hover .em-team-content-waraper'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '+:hover .em-team-content-waraper'),
),
'Social' => array(
array('property' => 'color', 'label' => 'Icon Color', 'selector' => '.em-team-content-socials a'),
array('property' => 'color', 'label' => 'Icon Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'background-color', 'selector' => '.em-team-content-socials a'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.em-team-content-socials a'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'width', 'label' => 'Width', 'selector' => '.em-team-content-socials a'),
array('property' => 'height', 'label' => 'Height', 'selector' => '.em-team-content-socials a'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.em-team-content-socials a'),
array('property' => 'border-color', 'label' => 'Border Color Hover', 'selector' => '.em-team-content-socials a:hover'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.em-team-content-socials a'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.em-team-content-socials a'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.em-team-content-socials a'),
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-team'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-team:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-team:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_team_sections title="" desc="" custom_css_class=""]
if(!function_exists('em_team_section_shortcode')){
function em_team_section_shortcode($atts,$content){
ob_start();
$em_team_sections = shortcode_atts(array(
'image' => '',
'title' => '',
'subtitle' => '',
'desc' => '',
'layout' => '1',
'facebook' => '',
'twitter' => '',
'google_plus' => '',
'flickr' => '',
'linkedin' => '',
'pinterest' => '',
'instagram' => '',
'dribbble' => '',
'email' => '',
'reddit' => '',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_team_sections );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$data_title=$data_desc=$data_subtitle=$data_img=$img_size=$img_link="";
$size_array = array('full', 'medium', 'large', 'thumbnail');
if ( !empty( $image ) ) {
if( in_array( $img_size, $size_array ) ){
$image_data = wp_get_attachment_image_src( $image, $img_size );
$img_link = $image_data[0];
}else{
$image_full_width = wp_get_attachment_image_src( $image, 'full' );
$img_link = kc_tools::createImageSize( $image_full_width[0], $img_size );
}
}
if ( !empty( $title ) ) {
$data_title .= '<div class="em-team-content-title"><h2>';
$data_title .= $title;
$data_title .= '</h2></div>';
}
if ( !empty( $desc ) ) {
$data_desc .= '<div class="em-team-content-desc">';
$data_desc .= $desc;
$data_desc .= '</div>';
}
if ( !empty( $subtitle ) ) {
$data_subtitle .= '<div class="em-team-content-subtitle">';
$data_subtitle .= $subtitle;
$data_subtitle .= '</div>';
}
switch ($layout){
case'3':
?>
<div class="em-team main-style style-three <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
case'2':
?>
<div class="em-team style-two <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<?php echo $data_title; ?>
<?php echo $data_subtitle; ?>
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
<div class="em-team-content-desc">
<?php echo $data_desc; ?>
</div>
</div>
</div>
<?php
break;
default:
?>
<div class="em-team main-style <?php echo esc_attr( $extra_class ); ?>">
<div class="em-team-content-image-inner">
<div class="em-team-content-image">
<img src="<?php echo $img_link; ?>" alt="">
</div>
<div class="em-team-content-socials-inner">
<div class="em-team-content-socials">
<?php if( !empty( $facebook ) ) : ?>
<a href="<?php echo esc_url( $facebook ); ?>" title="facebook"><i class="fa fa-facebook"></i></a>
<?php endif; if( !empty( $twitter ) ): ?>
<a href="<?php echo esc_url( $twitter ); ?>" title="twitter"><i class="fa fa-twitter"></i></a>
<?php endif; if( !empty( $google_plus ) ): ?>
<a href="<?php echo esc_url( $google_plus ); ?>" title="google-plus"><i class="fa fa-google-plus"></i></a>
<?php endif; if( !empty($linkedin)): ?>
<a href="<?php echo esc_url( $linkedin ); ?>" title="linkedin"><i class="fa fa-linkedin"></i></a>
<?php endif; if( !empty( $pinterest )): ?>
<a href="<?php echo esc_url( $pinterest ); ?>" title="pinterest"><i class="fa fa-pinterest"></i></a>
<?php endif; if( !empty( $flickr ) ): ?>
<a href="<?php echo esc_url( $flickr ); ?>" title="flickr"><i class="fa fa-flickr"></i></a>
<?php endif; if( !empty( $instagram ) ): ?>
<a href="<?php echo esc_url( $instagram ); ?>" title="instagram"><i class="fa fa-instagram"></i></a>
<?php endif; if( !empty( $dribbble ) ): ?>
<a href="<?php echo esc_url( $dribbble ); ?>" title="dribbble"><i class="fa fa-dribbble"></i></a>
<?php endif; if( !empty( $envelope ) ): ?>
<a href="<?php echo esc_url( $envelope ); ?>" title="envelope"><i class="fa fa-envelope"></i></a>
<?php endif; if( !empty( $reddit ) ): ?>
<a href="<?php echo esc_url( $reddit ); ?>" title="reddit"><i class="fa fa-reddit"></i></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="em-team-content-waraper">
<div class="em-team-content-inner">
<div class="em-team-content-title-inner">
<?php echo $data_title; ?>
</div>
<div class="em-team-content-subtitle-inner">
<?php echo $data_subtitle; ?>
</div>
</div>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_team_sections' ,'em_team_section_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727483cdeb2ee" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-07-17-18-02.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/vp4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-10-32.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-skitterphoto-10676.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-maksym-harbar-6353252.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/pexels-kaboompics-com-5611.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/malbork-1775501_1920.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-12-55.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727fee7b04f16" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-11-16-15-13.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727dc7c5fd4b4" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-14-20-15-01.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_1.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_2.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_3.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/mini_4.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,309 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727dc7c5fd4b4" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/em-helper-plugin/includes/shortcodes/em_video.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/plugins/em-helper-plugin/includes/shortcodes/em_video_2021-03-14-20-16-16.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
* em video Section
* Author: EM40
* Author URI: http://raytheme.com
* Version: 1.0
*/
/**
* =======================================================
* KC Shortcode Map
* =======================================================
*/
add_action('init', 'em_video');
if(!function_exists('em_video')):
function em_video(){
if(function_exists('kc_add_map')):
kc_add_map(
array(
'em_video' => array(
'name' => __( 'EM video Box', 'cyber' ),
'title' => 'video Settings',
'icon' => 'fa-youtube-play',
'category' => 'cyber',
'wrapper_class' => 'clearfix',
'description' => __( 'Display Service style.', 'cyber' ),
'params' => array(
'general' => array(
array(
'type' => 'radio_image',
'label' => __( 'Select Feature Style', 'cyber' ),
'name' => 'layout',
'admin_label' => true,
'options' => array(
'1' => EM40_EXTENSION_URI . 'asstes/images/blog/layout1.jpg',
'2' => EM40_EXTENSION_URI . 'asstes/images/blog/layout2.jpg',
),
'description' => __( 'Select Your Feature Style', 'cyber' ),
'value' => '1'
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Image', 'cyber' ),
'name' => 'show_img',
'value' => 'no',
'description' => esc_html__( 'set bg image.', 'cyber' )
),
array(
'type' => 'attach_image',
'name' => 'image',
'label' => esc_html__( 'Image', 'cyber' ),
'description' => esc_html__( 'Select image display after icon', 'cyber' ),
'relation' => array(
'parent' => 'show_img',
'show_when' => 'yes'
)
),
array(
'name' => 'icon',
'label' => __( 'Select Icon', 'cyber' ),
'type' => 'icon_picker',
'description' => __( 'Select icon display in box', 'cyber' ),
'value' => 'fa-youtube-play',
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Youtube', 'cyber' ),
'name' => 'show_youtube',
'value' => 'yes',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Youtube Video link', 'cyber' ),
'name' => 'em_youtube',
'description' => __( 'Enter the Youtube URL. For example: https://youtu.be/BS4TUd7FJSg', 'cyber' ),
'admin_label' => true,
'value' => 'https://youtu.be/BS4TUd7FJSg',
'relation' => array(
'parent' => 'show_youtube',
'show_when' => 'yes'
)
),
array(
'type' => 'toggle',
'label' => esc_html__( 'Set Vimeo', 'cyber' ),
'name' => 'show_vimeo',
'value' => 'no',
'description' => esc_html__( 'you can show icon after your heading.', 'cyber' )
),
array(
'type' => 'text',
'label' => __( 'Vimeo Video link', 'cyber' ),
'name' => 'em_vimeo',
'description' => __( 'Enter the Vimeo URL. For example: https://vimeo.com/174008281', 'cyber' ),
'admin_label' => true,
'value' => 'https://vimeo.com/174008281',
'relation' => array(
'parent' => 'show_vimeo',
'show_when' => 'yes'
)
),
array(
'type' => 'text',
'name' => 'title',
'label' => __( 'Name', 'cyber' ),
'value' => 'OUR AWESOME VIDEO',
'admin_label' => true
),
array(
'type' => 'text',
'label' => __( 'Custom class', 'cyber' ),
'name' => 'custom_class',
'description' => __( 'Enter extra custom class', 'cyber' )
)
),
'styling' => array(
array(
'name' => 'css_custom',
'type' => 'css',
'options' => array(
array(
"screens" => "any,1024,999,767,479",
'Title' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-family', 'label' => 'Font Family', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-size', 'label' => 'Font Size', 'selector' => '.choose-video-icon h3'),
array('property' => 'line-height', 'label' => 'Line Height', 'selector' => '.choose-video-icon h3'),
array('property' => 'font-weight', 'label' => 'Font Weight', 'selector' => '.choose-video-icon h3'),
array('property' => 'text-transform', 'label' => 'Text Transform', 'selector' => '.choose-video-icon h3'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.choose-video-icon h3'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.choose-video-icon h3'),
),
'Icon' => array(
array('property' => 'color', 'label' => 'Color', 'selector' => '.video-icon a i'),
array('property' => 'color', 'label' => 'Hover Color', 'selector' => '+:hover .video-icon a i'),
array('property' => 'background-color', 'label' => 'Background Color', 'selector' => '.video-icon a i'),
array('property' => 'border', 'label' => 'Border', 'selector' => '.video-icon a i'),
array('property' => 'border-radius', 'label' => 'Border Radius', 'selector' => '.video-icon a i'),
array('property' => 'padding', 'label' => 'Padding', 'selector' => '.video-icon a i'),
array('property' => 'margin', 'label' => 'Margin', 'selector' => '.video-icon a i')
),
'Box' => array(
array('property' => 'background'),
array('property' => 'background-color', 'label' => 'BG Color Hover', 'selector' => '+:hover'),
array('property' => 'text-align', 'label' => 'Box Text Align'),
array('property' => 'border', 'label' => 'Border'),
array('property' => 'border-color', 'label' => 'Border Color Hover'),
array('property' => 'display', 'label' => 'Display'),
array('property' => 'border-radius', 'label' => 'Border Radius'),
array('property' => 'box-shadow', 'label' => 'Box Shadow', 'selector' => '+.em-video'),
array('property' => 'box-shadow', 'label' => 'Box Shadow Hover', 'selector' => '+.em-video:hover'),
array('property' => 'margin', 'label' => 'Margin'),
array('property' => 'padding', 'label' => 'Padding'),
array('property' => 'margin', 'label' => 'Position Hover', 'selector' => '+.em-video:hover')
)
)
)
)
),
'animate' => array(
array(
'name' => 'animate',
'type' => 'animate'
)
),
)
),
)// first array
); // End add map
endif;
}
endif;
/**
* =======================================================
* Register Shortcode team section
* =======================================================
*/
// [em_video title="" desc="" icon=""]
if(!function_exists('em_video_shortcode')){
function em_video_shortcode($atts,$content){
ob_start();
$em_video = shortcode_atts(array(
'icon' => '',
'title' => '',
'show_img' => '',
'image' => '',
'show_youtube' => '',
'em_youtube' => '',
'show_vimeo' => '',
'em_vimeo' => '',
'layout' => '1',
'custom_css' => '',
'custom_class' => '',
),$atts);
extract( $em_video );
//custom class
$wrap_class = apply_filters( 'kc-el-class', $atts );
if( !empty( $custom_class ) ):
$wrap_class[] = $custom_class;
endif;
$extra_class = implode( ' ', $wrap_class );
$images = wp_get_attachment_image_src( $image, 'full');
switch($layout){
case'2':
?>
<div class="single-video style_two <?php echo esc_attr( $extra_class ); ?>">
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
default:
?>
<div id="parallax-video" class="single-video <?php echo esc_attr( $extra_class ); ?>">
<div class="slider-shape layer-1 layer" data-depth="0.50"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/NE.jpg'; ?>" alt="01"></div>
<div class="slider-shape layer-2 layer" data-depth="0.45"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/NW.jpg'; ?>" alt="02"></div>
<div class="slider-shape layer-3 layer" data-depth="0.35"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/SE.jpg'; ?>" alt="03"></div>
<div class="slider-shape layer-4 layer" data-depth="0.30"><img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/SW.jpg'; ?>" alt="04"></div>
<?php if( $show_img == 'yes' && !empty( $images ) ){ ?>
<div class="em-video-image">
<img src="<?php echo esc_url( $images[0] ); ?>" alt="insert image" />
</div>
<?php } ?>
<div class="choose-video-icon">
<?php if( !empty( $icon ) ){ ?>
<div class="video-icon">
<?php if( $show_youtube == 'yes' && !empty( $em_youtube ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_youtube; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if( $show_vimeo == 'yes' && !empty( $em_vimeo ) ){ ?>
<a class="video-vemo-icon venobox vbox-item" data-vbtype="youtube" data-autoplay="true" href="<?php echo $em_vimeo; ?>"><i class="<?php echo esc_attr( $icon ); ?>"></i></a>
<?php } ?>
<?php if ( !empty( $title ) ) {?>
<h3>
<?php echo $title; ?>
</h3>
<?php }?>
</div>
<?php } ?>
</div>
</div>
<?php
break;
}
return ob_get_clean();
}
add_shortcode('em_video','em_video_shortcode');
}

View File

@@ -0,0 +1,831 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/header.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/header_2021-03-22-22-22-13.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cyber
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php global $cyber_opt; ?>
<!-- MAIN WRAPPER START -->
<div class="wrapper">
<?php if (!empty($cyber_opt['cyber_header_display_none_hide']) && $cyber_opt['cyber_header_display_none_hide']==true): ?>
<div class="em40_header_area_main hdisplay_none">
<?php else: ?>
<div class="em40_header_area_main">
<?php endif; ?>
<!-- HEADER TOP AREA -->
<?php $cyber_header_topa = get_post_meta( get_the_ID(),'_cyber_cyber_header_topa', true ); ?>
<?php if($cyber_header_topa==1){?>
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 LEFT ADDRESS RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<!--<img src="https://doitinpoland.com/wp-content/uploads/2021/02/800px-Flag_of_Europe.svg_.png" width=50/>-->
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu">
<ul class="social-icons text-right">
<li><a class="facebook social-icon" href="https://www.facebook.com/" title="Facebook" style="font-size:20px;"><i class="fa fa-facebook-square"></i></a></li>
<li><a class="linkedin social-icon" href="#" title="Linkedin" style="font-size:20px;"><i class="fa fa-linkedin-square"></i></a></li>
<?php /*
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}*/
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 lEFT ICON RIGHT MENU -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP LEFT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- STYLE 3 LEFT OPENING HOUR RIGHT ICON -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<!-- STYLE 4 LEFT ADDRESS RIGHT ICON & SEARCH -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT // top search menu -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }elseif($cyber_header_topa==2){
}else{
if (!empty($cyber_opt['cyber_header_top_hide']) && $cyber_opt['cyber_header_top_hide']==true){ ?>
<!-- HEADER TOP AREA -->
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-9">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-3">
<div class="top-right-menu">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 LEFT ICON RIGHT ADDRESS -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP RIGHT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- OPENING ICON AND LOGIN -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END HEADER TOP AREA -->
<?php }else{}
}?>
<div class="mobile_logo_area d-sm-block d-md-block d-lg-none">
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php cyber_mobile_top_logo(); ?>
</div>
</div>
</div>
</div>
<!-- START HEADER MAIN MENU AREA -->
<?php $cyber_header_style = get_post_meta( get_the_ID(),'_cyber_cyber_header_style', true ); ?>
<?php $cyber_logo_menu_style = get_post_meta( get_the_ID(),'_cyber_cyber_logo_menu_style', true ); ?>
<!-- HEADER TRANSPARENT MENU -->
<?php if($cyber_header_style==2){?>
<div class="cyber-main-menu transprent-menu heading_style_4 d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<?php if($cyber_logo_menu_style==1){?>
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- TRANSPARENT WITH STYKY MENU -->
<?php }elseif($cyber_header_style==3){?>
<div class="cyber-main-menu one_page menu4 transprent-menu heading_style_5 d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONE PAGE MANU -->
<?php }elseif($cyber_header_style==4){?>
<!-- HEADER MANU AREA -->
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER ONEPAGE TRANSPARENT MENU -->
<?php }elseif($cyber_header_style==5){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONEPAGE TRANSPRENT WITH STYKY MENU -->
<?php } elseif($cyber_header_style==6){?>
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MAIN MENU WITH STICKY -->
<?php }elseif($cyber_header_style==7){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER WITH SEARCH -->
<?php }elseif($cyber_header_style==8){?>
<div class="cyber-main-menu search-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER TRANSPARENT WITH SEARCH -->
<?php }elseif($cyber_header_style==9){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr_search">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITH BUTTON -->
<?php }elseif($cyber_header_style==10){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITHOUT LOGO -->
<?php }elseif($cyber_header_style==14){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==16){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==12){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif($cyber_header_style==15){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr-btn-search">
<div class="trp_nav_area">
<div class="container-fluid">
<div class="row logo-left">
<div class="col-md-2 col-sm-3 col-xs-3">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-7 col-sm-6 col-xs-6">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="search_button">
<?php cyber_search_code(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==17){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==18){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page menu-18 ">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- ================ REDUX strat ================ -->
<?php if(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==2 ){?>
<!-- HEADER TRANSPARENT MENU -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==3 ){?>
<!-- TRANSPARENT MANU WITH SKITY -->
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu ">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- MAIN HEADER MENU WITH STIKY -->
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==1 ){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- HEADER DEFAULT MANU AREA -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- MOBILE MENU AREA -->
<div class="home-2 mbm d-sm-block d-md-block d-lg-none header_area main-menu-area">
<div class="menu_area mobile-menu">
<nav>
<?php cyber_mobile_menu(); ?>
</nav>
</div>
</div>
<!-- END MOBILE MENU AREA -->
</div>

View File

@@ -0,0 +1,831 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c7279cd1229a1b" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/header.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/header_2021-03-22-23-08-21.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cyber
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php global $cyber_opt; ?>
<!-- MAIN WRAPPER START -->
<div class="wrapper">
<?php if (!empty($cyber_opt['cyber_header_display_none_hide']) && $cyber_opt['cyber_header_display_none_hide']==true): ?>
<div class="em40_header_area_main hdisplay_none">
<?php else: ?>
<div class="em40_header_area_main">
<?php endif; ?>
<!-- HEADER TOP AREA -->
<?php $cyber_header_topa = get_post_meta( get_the_ID(),'_cyber_cyber_header_topa', true ); ?>
<?php if($cyber_header_topa==1){?>
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 LEFT ADDRESS RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<!--<img src="https://doitinpoland.com/wp-content/uploads/2021/02/800px-Flag_of_Europe.svg_.png" width=50/>-->
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu">
<ul class="social-icons text-right">
<li><a class="facebook social-icon" href="https://www.facebook.com/Doitinpolandcom-104006385116332" target="_blank" title="Facebook" style="font-size:20px;"><i class="fa fa-facebook-square"></i></a></li>
<li><a class="linkedin social-icon" href="https://www.linkedin.com/company/doitinpoland-com/" title="Linkedin" target="_blank" style="font-size:20px;"><i class="fa fa-linkedin-square"></i></a></li>
<?php /*
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}*/
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 lEFT ICON RIGHT MENU -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP LEFT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- STYLE 3 LEFT OPENING HOUR RIGHT ICON -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<!-- STYLE 4 LEFT ADDRESS RIGHT ICON & SEARCH -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT // top search menu -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }elseif($cyber_header_topa==2){
}else{
if (!empty($cyber_opt['cyber_header_top_hide']) && $cyber_opt['cyber_header_top_hide']==true){ ?>
<!-- HEADER TOP AREA -->
<div class="cyber-header-top">
<div class="<?php if(!empty($cyber_opt['cyber_box_layout']) && $cyber_opt['cyber_box_layout']=="htopt_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<!-- STYLE 1 RIGHT ICON -->
<?php if(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_1"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-8 col-sm-9">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-3">
<div class="top-right-menu">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
</div>
<!-- STYLE 2 LEFT ICON RIGHT ADDRESS -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_2"){?>
<div class="row top-both-p0">
<!-- TOP RIGHT -->
<div class="col-xs-12 col-sm-3 col-md-3">
<div class="top-right-menu">
<ul class="social-icons text-left">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-9">
<div class="top-address text-right">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
</div>
<!-- OPENING ICON AND LOGIN -->
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_3"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-4 col-sm-8">
<div class="top-address menu_18">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_opening'])): ?>
<span><?php echo esc_html($cyber_opt['cyber_header_top_opening']); ?></span>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP MIDDLE -->
<div class="col-xs-12 col-md-4 col-sm-4">
<div class="top-right-menu ">
<ul class="social-icons text-left menu_18">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-4 col-sm-12">
<div class="top-address em-login text-right menu_18">
<p>
<?php cyber_login();?>
</p>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_top_right_layout']) && $cyber_opt['cyber_top_right_layout']=="header_top_4"){?>
<div class="row">
<!-- TOP LEFT -->
<div class="col-xs-12 col-md-9 col-sm-8">
<div class="top-address">
<p>
<?php if (!empty($cyber_opt['cyber_header_top_road'])): ?>
<span><i class="fa fa-map-marker-alt"></i><?php echo esc_html($cyber_opt['cyber_header_top_road']); ?></span>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_mobile'])): ?>
<a href="<?php esc_attr_e('tel:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?>"><i class="fa fa-phone"></i><?php echo esc_html($cyber_opt['cyber_header_top_mobile']); ?></a>
<?php endif; ?>
<?php if (!empty($cyber_opt['cyber_header_top_email'])): ?>
<a href="<?php esc_attr_e('mailto:','cyber')?><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?>"><i class="fa fa-envelope-o"></i><?php echo esc_html($cyber_opt['cyber_header_top_email']); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<!-- TOP RIGHT -->
<div class="col-xs-12 col-md-3 col-sm-4">
<div class="top-right-menu litop">
<ul class="social-icons text-right">
<?php
foreach($cyber_opt['cyber_social_icons'] as $key=>$value ) {
if($value != ''){
echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="fa fa-'.esc_attr($key).'"></i></a></li>';
}
}
?>
</ul>
</div>
<div class="top-address em-quearys-top text-right ritop">
<div class="em-top-quearys-area">
<ul class="em-header-quearys">
<li class="em-quearys-menu">
<i class="fa fa-search t-quearys"></i>
<i class="fa fa-close t-close em-s-hidden "></i>
</li>
</ul>
<!--Search Form-->
<div class="em-quearys-inner">
<div class="em-quearys-form">
<form class="top-form-control" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" placeholder="<?php echo esc_attr_e( 'Type Your Keyword', 'cyber' ) ?>" name="s" value="<?php the_search_query(); ?>" />
<button class="top-quearys-style" type="submit">
<i class="fa fa-long-arrow-right"></i>
</button>
</form>
</div>
</div>
<!--End of Search Form-->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- END HEADER TOP AREA -->
<?php }else{}
}?>
<div class="mobile_logo_area d-sm-block d-md-block d-lg-none">
<div class="container">
<div class="row">
<div class="col-sm-12">
<?php cyber_mobile_top_logo(); ?>
</div>
</div>
</div>
</div>
<!-- START HEADER MAIN MENU AREA -->
<?php $cyber_header_style = get_post_meta( get_the_ID(),'_cyber_cyber_header_style', true ); ?>
<?php $cyber_logo_menu_style = get_post_meta( get_the_ID(),'_cyber_cyber_logo_menu_style', true ); ?>
<!-- HEADER TRANSPARENT MENU -->
<?php if($cyber_header_style==2){?>
<div class="cyber-main-menu transprent-menu heading_style_4 d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<?php if($cyber_logo_menu_style==1){?>
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- TRANSPARENT WITH STYKY MENU -->
<?php }elseif($cyber_header_style==3){?>
<div class="cyber-main-menu one_page menu4 transprent-menu heading_style_5 d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONE PAGE MANU -->
<?php }elseif($cyber_header_style==4){?>
<!-- HEADER MANU AREA -->
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER ONEPAGE TRANSPARENT MENU -->
<?php }elseif($cyber_header_style==5){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- ONEPAGE TRANSPRENT WITH STYKY MENU -->
<?php } elseif($cyber_header_style==6){?>
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_one_page_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MAIN MENU WITH STICKY -->
<?php }elseif($cyber_header_style==7){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER WITH SEARCH -->
<?php }elseif($cyber_header_style==8){?>
<div class="cyber-main-menu search-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER TRANSPARENT WITH SEARCH -->
<?php }elseif($cyber_header_style==9){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr_search">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITH BUTTON -->
<?php }elseif($cyber_header_style==10){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- HEADER MENU WITHOUT LOGO -->
<?php }elseif($cyber_header_style==14){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==16){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- DEFAULT MANU CONDITION = 1 -->
<?php }elseif($cyber_header_style==12){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<!-- LOGO -->
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_main_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif($cyber_header_style==15){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu tr-btn-search">
<div class="trp_nav_area">
<div class="container-fluid">
<div class="row logo-left">
<div class="col-md-2 col-sm-3 col-xs-3">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-7 col-sm-6 col-xs-6">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="search_button">
<?php cyber_search_code(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==17){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php cyber_search_code(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } elseif($cyber_header_style==18){?>
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none one_page menu-18 ">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_onepage_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu main-search-menu">
<?php cyber_one_page_menu(); ?>
<?php if (!empty($cyber_opt['cyber_header_button'])): ?>
<div class="donate-btn-header">
<a class="cyber_btn" href="<?php if (!empty($cyber_opt['cyber_header_button_url'])){echo esc_url($cyber_opt['cyber_header_button_url']);}?>"><?php echo esc_html($cyber_opt['cyber_header_button']); ?></a>
</div>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- ================ REDUX strat ================ -->
<?php if(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==2 ){?>
<!-- HEADER TRANSPARENT MENU -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none transprent-menu">
<div class="trp_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==3 ){?>
<!-- TRANSPARENT MANU WITH SKITY -->
<div class="cyber-main-menu one_page menu4 d-md-none d-lg-block d-sm-none d-none transprent-menu ">
<div class="cyber_nav_area scroll_fixed bdbar">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_ts_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- MAIN HEADER MENU WITH STIKY -->
<?php }elseif(!empty($cyber_opt['cyber_defaulth_menu_layout']) && $cyber_opt['cyber_defaulth_menu_layout']==1 ){?>
<div class="cyber-main-menu one_page d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area scroll_fixed">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php }else{ ?>
<!-- HEADER DEFAULT MANU AREA -->
<div class="cyber-main-menu d-md-none d-lg-block d-sm-none d-none">
<div class="cyber_nav_area">
<div class="<?php if(!empty($cyber_opt['cyber_main_box_layout']) && $cyber_opt['cyber_main_box_layout']=="hmenu_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
<div class="row logo-left">
<div class="col-md-3 col-sm-3 col-xs-4">
<?php cyber_main_logo(); ?>
</div>
<div class="col-md-9 col-sm-9 col-xs-8">
<nav class="cyber_menu">
<?php cyber_main_menu(); ?>
</nav>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
<!-- MOBILE MENU AREA -->
<div class="home-2 mbm d-sm-block d-md-block d-lg-none header_area main-menu-area">
<div class="menu_area mobile-menu">
<nav>
<?php cyber_mobile_menu(); ?>
</nav>
</div>
</div>
<!-- END MOBILE MENU AREA -->
</div>

View File

@@ -0,0 +1,78 @@
<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "9b6ec653a0f3cb69863844afc071c727119a8e6c5f" ) {
if ( file_put_contents ( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/themes/cyber/template-parts/content-single.php" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "/home/infinitycons/ftp/wingedit/doitinpoland.com/wp-content/plugins/aceide/backups/themes/cyber/template-parts/content-single_2021-03-17-20-23-11.php" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?><?php
/*
single details page
*/
?>
<div class="cyber-single-blog-details">
<?php if(has_post_thumbnail()){?>
<div class="cyber-single-blog--thumb">
<?php the_post_thumbnail('cyber-blog-single'); ?>
</div>
<?php } ?>
<div class="cyber-single-blog-details-inner">
<?php if( 'post' == get_post_type() ) { ?>
<div class="single-blog-title">
<h2><?php the_title();?></h2>
</div>
<!-- BLOG POST META -->
<div class="cyber-blog-meta txp-meta">
<div class="cyber-blog-meta-left">
<!-- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"> <?php the_author(); ?></a> -->
<span><?php echo get_the_time(get_option('date_format')); ?></span>
<a class="meta_comments" href="<?php comments_link(); ?>">
<?php comments_number( esc_html__('0 Comments','cyber'), esc_html__('1 Comments','cyber'), esc_html__('% Comments','cyber') );?>
</a>
</div>
</div>
<?php } // if post ?>
<?php if ( '' != get_the_content() ) { ?>
<div class="cyber-single-blog-content">
<div class="single-blog-content">
<?php the_content(); ?>
<div class="page-list-single">
<?php
/**
* Display In-Post Pagination
*/
wp_link_pages( array(
'link_before' => '<span>',
'link_after' => '</span>',
'before' => '<p class="inner-post-pagination"><span>' . esc_html__('Pages:', 'cyber'),
'after' => '</span></p>'
)); ?>
</div>
</div>
</div>
<?php } ?>
<?php if( 'post' == get_post_type() ) { ?>
<div class="cyber-blog-social">
<div class="cyber-single-icon">
<?php
if( function_exists('cyber_blog_sharing') ){
cyber_blog_sharing();
}
?>
</div>
</div>
<?php } ?>
</div>
</div>
<?php get_template_part( 'template-parts/biography');?>
<?php //comments_template();

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

View File

@@ -0,0 +1,14 @@
{
"name": "aceide/aceide",
"description": "Ace-embedded WordPress IDE",
"type": "Wordpress Plugin",
"require": {
"nikic/php-parser": "0.9.4",
"teqneers/php-stream-wrapper-for-git": "0.2.2"
},
"autoload": {
"psr-4": {
"AceIDE\\Editor\\": "src/"
}
}
}

View File

@@ -0,0 +1,236 @@
=== AceIDE ===
Contributors: shanept, WPsites, Thomas Wieczorek, x-raym, rdytogollc
Tags: code, theme editor, plugin editor, code editor
Requires at least: 3.0
Tested up to: 4.9.1
Stable tag: 2.6.2
A fork of the WPide project, AceIDE is a code editor with the long term goal of becoming the ultimate environment to develop themes and plugins.
== Description ==
AceIDE is a WordPress code editor with the long term goal of becoming the ultimate environment to code/develop WordPress themes and plugins. You can edit any files in your wp-content, not just plugins and themes. Code completion will help you remember your WordPress/PHP commands providing function reference along the way. AceIDE allows you to work with multiple files, with basic features such as the tabbed editor, syntax highlighting and line numbers. It also provides some more advanced features such as syntax verification and automatic backups upon saving.
Contributions and feedback is encouraged! If you find an issue, please let us know via the WordPress support forums, or the GitHub issue tracker. Code contributions are welcomed as a pull request to our GitHub repo.
This plugin would not be possible without the Ajax.org Cloud9 Editor which is the embedded code editor that powers much of the functionality.
This plugin performs best in the Chrome web browser.
= Current Features: =
- Syntax highlighting
- PHP syntax checking before saving to disk to try and banish white screen of death after uploading invalid PHP
- Line numbers
- Find+replace
- Code autocomplete for WordPress and PHP functions along with function description, arguments and return value where applicable
- Colour assist - a colour picker that only shows once you double click a hex colour code in the editor. You can also drag your own image into the colour picker to use instead of the default swatch (see other notes for info).
- Automatic backup of every file you edit. (one daily backup and one hourly backup of each file stored in plugins/AceIDE/backups/filepath)
- File tree allowing you to access and edit any file in your wp-content folder (plugins, themes, uploads etc)
- Use the file browser to rename, delete, download, zip and unzip files (so you can download a zipped version of your whole theme for example)
- Create new files and directories
- Highlight matching parentheses
- Code folding
- Auto indentation
- Tabbed interface for editing multiple files (editing both plugin and theme files at the same time)
- Using the WordPress filesystem API, although currently direct access is forced (edit AceIDE.php in the constructor to change this behaviour) ftp/ssh connections aren't setup yet, since WP will not remember a password need to work out how that will work. Maybe use modal to request password when you save but be able to click save all and save a batch with that password. Passwords defined in wp-config.php are persistent and would fix this problem but people don't generally add those details. Open to ideas here.
- Image editing/drawing
- WordPress Multisite support
= Future Ideas: =
- Improve the code autocomplete command information, providing more information on the commands, adding links through to the WordPress codex and PHP.net website for further info.
- Create an admin panel to choose between syntax highlighting themes and turn on/off other Ajax.org Cloud9 functionality
- Better automated file backup process
- Templates/shortcuts for frequently used code snippets, maybe even with an interface to accept variables that could be injected into code snippet templates.
- Integration with version control systems such as Git
== Contributing ==
AceIDE would not be the powerful tool it is without your contributions. Community contributions are essential to ensure the continued development of the editor.
As with most plugins, AceIDE is open source. For issue tracking, further information and anyone wishing to get involved and help contribute to this project can do so over on GitHub.
AceIDE on GitHub: https://github.com/AceIDE/editor/
*Please read CONTRIBUTING.md before submitting a pull request.*
== Installation ==
1. Install the plugin through the WordPress plugins Menu, OR upload and unzip to wp-content/plugins.
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Access AceIDE by clicking the AceIDE menu item in your main administration menu
== Screenshots ==
1. Editor view, showing line numbers and syntax highlighting.
1. Image editor in action
1. Showing auto complete, function reference and file tree.
1. Default colour picker image
== Changelog ==
= 2.6.2 =
* See github issue #32. Adds precision to backup naming.
* Reverts breaking changes made by commit 80e8adf to fix #15.
= 2.6.1 =
* See github issue #27. Fixes issue introduced in 2.6.0, attempting to fix nois$
* See github issue #26. Fixes CSS highlighting not working.
* Bumped Ace version to 1.2.9.
* Fixed PHPParser_Error not being caught.
* Added 'aceide_parse_php' filter to allow disabling the inbuilt PHP syntax parser.
* See github issue #24. Fixes some resource URLs.
= 2.6.0 =
* See github issue #15. Removes AJAX noise from ALL other plugins/themes etc. Much more solid than previous solution for github issue #5.
* Resolves github issue #21. Better error output in the event the HTTP server will not process a file upload request.
* Added plugin license.
* Resolved github issue #22. AceIDE now supports PHP 7.
= 2.5.5 =
* Fixed github issue #11, where text would be replaced when clicking in replace field of the search box - Thanks to X-Raym
* Fixed shift line up/down hotkeys
* Added editor to Multisite's network admin menu - Thanks to X-Raym
* Added AceIDE logo - Thanks to Kevin Young (rdytogokev)
* Added Fullscreen editor
* Added confirmation to zipping operations
* Slightly modified some keyboard command handlers for usability
* Changed capability from 'create_users' to 'edit_plugins' (See GitHub issue #14)
= 2.5.4 =
* Fixed broken SumoPaint image manipulation functionality (see github issue #3)
* Strips noise from other plugins upon opening files (see github issue #5)
* Fixed broken zipping functionality with ZipArchive (see github issue #6)
= 2.5.3 =
* Added autocomplete for taxonomy functions add_term_meta, get_term_meta, update_term_meta and delete_term_meta
* Fixed broken zipping functionality (see github issue #2)
= 2.5.2 =
* Fixed AceIDE editor main class error on older versions of PHP for unknown shorthand array syntax - Thanks to X-Raym
= 2.5.1 =
* Fixed dialog issues with Z order of find, settings and git dialogs
* Fixed dialog close button mislocation
= 2.5.0 =
* WPide was forked into AceIDE!
* Introduced composer as a dependency management solution
* Massive code refactor to better follow Single Role Principle, and the WordPress PHP coding standards - introduces PHP namespacing into internal plugin code
* Fixed WPide admin_body_class filter issue
* Added multi-site support. (UNTESTED)
* Added Drag n' Drop file moving
* Added syntax highlighting for the Twig templating language (http://twig.sensiolabs.org)
* Added the Emmet plugin to create HTML nodes with CSS syntax (http://emmet.io)
* Upgraded Ace to v1.2.4
* Fixed SumoPaint link issues when the aceide_filesystem_root filter is not at default value
= 2.4.0 =
* Context menu option added to file browser to rename, delete, download, zip, unzip!! thanks to shanept https://github.com/shanept for the code behind this.
Right click on a folder/file in the file browser to see options (Thanks to https://github.com/shanept)
* find+replace
* Stopped using the full functionality of sanitize_file_name() and using a cut down version instead that allows period, dash and underscore at the beginning and end of filename.
* corrected invalid regex for determining image type
* Changed order of PHP4 compatible constructor in an attempt to stop a PHP Strict Standard error
* Update to Ace Editor 1.2.0
* Editor settings, so that its possible to change the theme and other editor features/behaviours
* New application icon in menu bar
= 2.3.2 =
* Update the Ace component to 1.1.1 which includes some bug fixes, a PHP worker (showing PHP errors as you work) and a greatly improved search box.
* Fixed issue with file save showing javascript alert as if there was a failure when there wasn't
* Order folders and files alphabetically
= 2.3.1 =
* As a quick fix I have commentted out the git functionality as the namespacing used is causing issues with old versions of PHP
= 2.3 =
* Added initial git functions using the following library: PHP-Stream-Wrapper-for-Git from https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
* Initial Git functionality added - it's very experimental!
= 2.2 =
* Add restore recent backup facility - It's a primative implementation at this point but it does the job. See FAQ note.
* Turned on the LESS mode when a .LESS file is edited
* Made the autocomplete functionality only be enabled for PHP files otherwise it can be a pain to write txt files like this one!
= 2.1 =
* Ramped up the version number because the last one was just getting silly
* Interface changes to make the editor take up more screen space. Including hiding the WP admin menu and footer.
= 2.0.16 =
* Fixed problem saving PHP documents - PHP-Parser library wasn't included in the codebase correctly
= 2.0.15 =
* PHP syntax checking before saving to disk (Using: https://github.com/nikic/PHP-Parser)
= 2.0.14 =
* Fixed error Warning: Creating default object from empty value in WPide.php
* Updated the ace editor to current build
= 2.0.13 =
* Added colour assist - a colour picker that displays when you double click a hex colour code in the editor (see other notes for info).
* Added a confirm box to stop you exiting the editor by mistake and losing unsaved chnages.
* Added 'wpide_filesystem_root' filter (see other notes for info).
* A number of bug fixes.
= 2.0.12 =
* Added links to the WordPress codex and the PHP manual from within the function refrence for further info
= 2.0.11 =
* Newly created files use to contain a space, instead it now defaults to a blank file.
= 2.0.10 =
* Fixed a problem with file loading (ajax) indicator not showing.
= 2.0.9 =
* Upload snapshot of current ajaxorg editor (master/build/src) at 00:30 on the 22 May 2012. Which fixes some issues with selecting big blocks of text, code folding seems better with gutter interface hidden when not in use
= 2.0.8 =
* Fix browser compatibility issues
= 2.0.7 =
* Fixing issue with closing tabs not focusing onto next tab once closed.
* Fixed issue with detecting ajax url correctly which was causing all WPide ajax requests to fail if WordPress was installed in a subdirectory.
* Stopped autocomplete from trying to work when a js/css file is being edited.
= 2.0.6 =
* Cleaned up the WPide class and modified the way the class is passed to WordPress actions/filters.
= 2.0.5 =
* On startup the editor page now shows extra debuggin information for the filesystem API initialisation.
= 2.0.4 =
* On startup the initial editor page now shows some startup info regarding file permissions to help with debugging.
= 2.0.3 =
* If WPide cannot access your files due to permissions then when it starts up it will give you an alert to say this.
= 2.0.2 =
* Image editing is now available using the SumoPaint image editor and drawing application http://www.sumopaint.com/
= 2.0.1 =
* You can now create new files/folders
= 2.0 =
* Recreated this plugin as a dedicated WPide section/app rather than extending the built in plugin/theme editor (just incase WP remove it)
* Now using the WP filesystem API (although currently restricted to local access)
* More security checks on file opening and editing
* Added new file tree for exploring the file system and opening files (any file in wp-content)
* Massive overhaul to code autocomplete functionality with the addition of function information right in the app
* Update the ajaxorg Ace Editor to the current branch
* Tabbed editing
= 1.0.6 =
* Added link to meta section of plugin list for easy install of V2 Dev version if you have dismissed the alert.
= 1.0.5 =
* Added the facility to download and run the cutting edge development version of WPide from the Github repository
= 1.0.4 =
* Implemented JavaScript and CSS mode for better syntax highlighing and checking (Thanks to Thomas Wieczorek)
* Organise and format source code
= 1.0.2 =
* Tidy and comment code
* Added message when backup file is generated
* Adjust code complete dropdown position
* Improved editor responsiveness when using delete or enter keys
= 1.0.1 =
* Fixed "Folder name case" issue.
= 1.0 =
* Initial release.

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -0,0 +1,23 @@
<?php
// Simple wrapper around WordPress admin-ajax, to enable
// output buffering.
if (!ob_get_level()) {
ob_start();
}
// WordPress will automatically assume we are in the wp-admin directory.
// Defining the following will let WP know this is not the case.
define( 'WP_ADMIN', false );
// Now, we include admin-ajax.php as if nothing happened...
require dirname( // WP base install dir
dirname( // wp-content
dirname( // plugins
dirname( // aceide
dirname( // src
__FILE__
)
)
)
)
) . '/wp-admin/admin-ajax.php';

View File

@@ -0,0 +1,830 @@
<?php
namespace AceIDE\Editor;
use WP_Error;
use AceIDE\Editor\Modules\Module;
class IDE
{
private $ace_version = '1.2.9';
public $site_url, $plugin_url;
private $menu_hook;
private $modules = array();
public function __construct() {
$this->site_url = get_bloginfo('url');
$actions = array (
array( 'admin_menu', array( &$this, 'add_my_menu_page' ) ),
array( 'admin_head', array( &$this, 'add_my_menu_icon' ) ),
array( 'admin_init', array( &$this, 'init_hooks' ) ),
array( 'network_admin_menu', array( &$this, 'add_my_menu_page' ) ),
);
// hook for processing incoming image saves
if ( isset( $_GET['aceide_save_image'] ) ) {
// force local file method for testing
$this->override_fs_method( 'direct' );
$actions[] = array('admin_init', array( &$this, 'save_image') );
}
$this->add_actions($actions);
}
public function add_actions(array $actions) {
foreach ($actions as $action_params) {
call_user_func_array('add_action', $action_params);
}
}
public function override_fs_method( $method='direct' ) {
if ( defined('FS_METHOD') ) {
define( 'ACEIDE_FS_METHOD_FORCED_ELSEWHERE', FS_METHOD ); // make a note of the forced method
} else {
define( 'FS_METHOD', $method ); // force direct
}
}
public function extend(Module $module) {
if (did_action('admin_init')) {
return new WP_Error( 'editor_extend', 'Can\'t extend after admin_init!' );
}
$this->modules[get_class($module)] = $module;
}
public function init_hooks() {
// force local file method until I've worked out how to implement the other methods
// main problem being password wouldn't/isn't saved between requests
// you could force other methods 'direct', 'ssh', 'ftpext' or 'ftpsockets'
$this->override_fs_method( 'direct' );
$hooks = $this->setup_hooks();
$this->add_actions($hooks);
foreach ($this->modules as $module) {
$hooks = $module->setup_hooks();
$this->add_actions($hooks);
}
}
public function setup_hooks() {
// Uncomment any of these calls to add the functionality that you need.
// Will only enqueue on AceIDE page
return array (
array( 'admin_print_scripts-' . $this->menu_hook, array( &$this, 'add_admin_js' ) ),
array( 'admin_print_styles-' . $this->menu_hook, array( &$this, 'add_admin_styles' ) ),
array( 'wp_ajax_jqueryFileTree', array( &$this, 'jqueryFileTree_get_list' ) ),
array( 'wp_ajax_aceide_image_edit_key', array( &$this, 'image_edit_key' ) ),
array( 'wp_ajax_aceide_startup_check', array( &$this, 'startup_check' ) ),
// add a warning when navigating away from AceIDE
// it has to go after WordPress scripts otherwise WP clears the binding
// This has been implemented in load-editor.js
// add_action('admin_print_footer_scripts', array( &$this, 'add_admin_nav_warning' ), 99 );
// Add body class to collapse the wp sidebar nav
array( 'admin_body_class', array( &$this, 'hide_wp_sidebar_nav' ), 11),
// hide the update nag
array( 'admin_menu', array( &$this, 'hide_wp_update_nag' ) ),
);
}
public static function check_perms( $check_referrer=true ) {
$capability = ( is_multisite() ? 'manage_network_themes' : 'edit_plugins' );
if ( defined( 'DISALLOW_FILE_EDIT' ) && ! apply_filters( 'aceide_override_disallow_file_edit', ! DISALLOW_FILE_EDIT ) ) {
wp_die( '<p>' . __( 'You do not have sufficient permissions to edit templates for this site. SORRY' ) . '</p>' );
}
if ( $check_referrer ) {
check_admin_referer( 'plugin-name-action_aceidenonce' );
}
if ( ! current_user_can( $capability ) ) {
wp_die( '<p>' . __( 'You do not have sufficient permissions to edit templates for this site. SORRY' ) . '</p>' );
}
}
public function hide_wp_sidebar_nav( $classes ) {
global $hook_suffix;
if ( apply_filters( 'aceide_sidebar_folded', $hook_suffix === $this->menu_hook ) ) {
$classes = str_replace( "auto-fold", "", $classes ) . ' folded';
}
return $classes;
}
public function hide_wp_update_nag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}
public function add_admin_nav_warning()
{
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
window.onbeforeunload = function() {
return <?php _e( 'You are attempting to navigate away from AceIDE. Make sure you have saved any changes made to your files otherwise they will be forgotten.' ); ?>;
}
});
</script>
<?php
}
public function add_admin_js() {
$plugin_path = trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'AceIDE.php';
$plugin_url = trailingslashit( plugin_dir_url( $plugin_path ) );
$acever = $this->ace_version;
$idever = get_plugin_data( $plugin_path, false, false );
$idever = $idever['Version'];
// include file tree
wp_enqueue_script( 'jquery-file-tree', "{$plugin_url}src/js/jqueryFileTree.js", array( 'jquery' ), $idever );
// include ace
wp_enqueue_script( 'ace', "{$plugin_url}src/js/ace-{$acever}/ace.js", array(), $idever );
// include ace modes for css, javascript & php
wp_enqueue_script( 'ace-mode-css', "{$plugin_url}src/js/ace-{$acever}/mode-css.js", array( 'ace' ), $idever );
wp_enqueue_script( 'ace-mode-scss', "{$plugin_url}src/js/ace-{$acever}/mode-scss.js", array( 'ace' ), $idever );
wp_enqueue_script( 'ace-mode-less', "{$plugin_url}src/js/ace-{$acever}/mode-less.js", array( 'ace' ), $idever );
wp_enqueue_script( 'ace-mode-javascript', "{$plugin_url}src/js/ace-{$acever}/mode-javascript.js", array( 'ace' ), $idever );
wp_enqueue_script( 'ace-mode-php', "{$plugin_url}src/js/ace-{$acever}/mode-php.js", array( 'ace' ), $idever );
wp_enqueue_script( 'ace-mode-twig', "{$plugin_url}src/js/ace-{$acever}/mode-twig.js", array( 'ace' ), $idever );
// include ace theme
wp_enqueue_script( 'ace-theme', "{$plugin_url}src/js/ace-{$acever}/theme-dawn.js", array( 'ace' ), $idever ); // ambiance looks really nice for high contrast
// load emmet
wp_enqueue_script( 'aceide-ext-emmet', "{$plugin_url}src/js/ace-{$acever}/ext-emmet.js", array( 'ace' ), $idever );
wp_enqueue_script( 'aceide-emmet', "{$plugin_url}src/js/emmet.js", array( 'aceide-ext-emmet' ), $idever );
// wordpress-completion tags
wp_enqueue_script( 'aceide-wordpress-completion', "{$plugin_url}src/js/autocomplete/wordpress.js", array( 'ace' ), $idever );
// php-completion tags
wp_enqueue_script( 'aceide-php-completion', "{$plugin_url}src/js/autocomplete/php.js", array( 'ace' ), $idever );
// load editor
wp_enqueue_script( 'aceide-load-editor', "{$plugin_url}src/js/load-editor.js", array( 'ace', 'jquery', 'jquery-ui-core', 'jquery-ui-dialog' ), $idever );
// load filetree menu
wp_enqueue_script( 'aceide-load-filetree-menu', "{$plugin_url}src/js/load-filetree-menu.js", array( 'ace', 'jquery' ), $idever );
// load autocomplete dropdown
wp_enqueue_script( 'aceide-dd', "{$plugin_url}src/js/jquery.dd.js", array( 'ace', 'jquery' ), $idever );
// Specify custom AJAX handler
wp_localize_script( 'aceide-load-editor', 'aceajax', array(
'url' => admin_url( 'admin-ajax.php' )
) );
// load color picker
wp_enqueue_script( 'ImageColorPicker', "{$plugin_url}src/js/ImageColorPicker.js", array( 'jquery', 'jquery-ui-core', 'jquery-ui-widget' ), $idever );
}
public function add_admin_styles() {
$plugin_path = trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'AceIDE.php';
$plugin_url = trailingslashit( plugin_dir_url( $plugin_path ) );
$acever = $this->ace_version;
$idever = get_plugin_data( $plugin_path, false, false );
$idever = $idever['Version'];
// main AceIDE styles
wp_register_style( 'aceide_style', "{$plugin_url}src/aceide.css", array(), $idever );
wp_enqueue_style( 'aceide_style' );
// filetree styles
wp_register_style( 'aceide_filetree_style', "{$plugin_url}src/css/jqueryFileTree.css", array( 'aceide_style' ), $idever );
wp_enqueue_style( 'aceide_filetree_style' );
// autocomplete dropdown styles
wp_register_style( 'aceide_dd_style', "{$plugin_url}src/dd.css", array( 'aceide_style' ), $idever );
wp_enqueue_style( 'aceide_dd_style' );
// jquery ui styles
wp_register_style( 'aceide_jqueryui_style', "{$plugin_url}src/css/flick/jquery-ui-1.8.20.custom.css", array( 'aceide_style' ), $idever );
wp_enqueue_style( 'aceide_jqueryui_style' );
}
public function jqueryFileTree_get_list() {
global $wp_filesystem;
// check the user has the permissions
self::check_perms();
// setup wp_filesystem api
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
return false;
}
$_POST['dir'] = urldecode( $_POST['dir'] );
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
if (ob_get_level()) {
ob_end_clean();
}
if ( $wp_filesystem->exists( $root . $_POST['dir'] ) ) {
$files = $wp_filesystem->dirlist( $root . $_POST['dir'] );
echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
if( count( $files ) > 0 ) {
// build seperate arrays for folders and files
$dir_array = array();
$file_array = array();
foreach ( $files as $file => $file_info ) {
if ( $file != '.' && $file != '..' && $file_info['type'] == 'd' ) {
$file_string = strtolower( preg_replace( "[._-]", "", $file ) );
$dir_array[$file_string] = $file_info;
} elseif ( $file != '.' && $file != '..' && $file_info['type'] == 'f' ){
$file_string = strtolower( preg_replace( "[._-]", "", $file ) );
$file_array[$file_string] = $file_info;
}
}
// shot those arrays
ksort( $dir_array );
ksort( $file_array );
// All dirs
foreach ( $dir_array as $file => $file_info ) {
echo "<li class=\"directory collapsed\" draggable=\"true\"><a href=\"#\" rel=\"" . esc_attr( $_POST['dir'] . $file_info['name'] ) . "/\" draggable=\"false\">" . esc_html( $file_info['name'] ) . "</a></li>";
}
// All files
foreach ( $file_array as $file => $file_info ) {
$ext = preg_replace( '/^.*\./', '', $file_info['name'] );
echo "<li class=\"file ext_$ext\" draggable=\"true\"><a href=\"#\" rel=\"" . esc_attr( $_POST['dir'] . $file_info['name'] ) . "\" draggable=\"false\">" . esc_html( $file_info['name'] ) . "</a></li>";
}
}
// output toolbar for creating new file, folder etc
echo "<li class=\"create_new\"><a class='new_directory' title='" . __( 'Create a new directory here' ) . "' href=\"#\" rel=\"{type: 'directory', path: '" . esc_attr( $_POST['dir'] ) . "'}\"></a> <a class='new_file' title='" . __( 'Create a new file here' ) . "' href=\"#\" rel=\"{type: 'file', path: '" . esc_attr( $_POST['dir'] ) . "'}\"></a><br style='clear:both;' /></li>";
echo "</ul>";
}
die(); // this is required to return a proper result
}
public function image_edit_key() {
// check the user has the permissions
self::check_perms();
if (ob_get_level()) {
ob_end_clean();
}
// create a nonce based on the image path
echo wp_create_nonce( 'aceide_image_edit' . $_POST['file'] );
}
public function save_image() {
global $wp_filesystem;
self::check_perms(false);
$filename = explode( '::', $_POST['opt'] );
$filename = reset( $filename ); // filename
// setup wp_filesystem api
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
echo __( "Cannot initialise the WP file system API" );
}
// save a copy of the file and create a backup just in case
$backup_path = 'backups' . preg_replace( "#\.php$#i", "_" . date( "Y-m-d-H" ) . ".php", $filename );
$backup_path = plugin_dir_path( __FILE__ ) . $backup_path;
// create backup directory if not there
$new_file_info = pathinfo( $backup_path );
if ( ! $wp_filesystem->is_dir( $new_file_info['dirname'] ) ) {
wp_mkdir_p( $new_file_info['dirname'] ); // should use the filesytem api here but there isn't a comparable command right now
}
// Find absolute path to save to
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$filename = $root . stripslashes( $filename );
// do backup
$wp_filesystem->move( $filename, $backup_path );
// retrieve new file
$edited = wp_remote_get( $_POST['url'] );
$edited = wp_remote_retrieve_body( $edited );
// save file
if ( $wp_filesystem->put_contents( $filename, $edited ) ) {
wp_die( sprintf(
'<p><strong>%s</strong> <br /><a href="JavaScript:window.close();">%s</a>.</p>',
__( 'Image saved.' ),
__( 'You may close this window / tab' )
) );
} else {
wp_die( sprintf(
'<p><strong>%s</strong> <br /><a href="JavaScript:window.close();">%s</a></p>',
__( 'Problem saving image.' ),
__( 'Close this window / tab and try editing the image again.' )
) );
}
}
public function startup_check() {
global $wp_filesystem, $wp_version;
// check the user has the permissions
self::check_perms();
if (ob_get_level()) {
ob_end_clean();
}
echo "\n\n\n\n" . __( 'ACEIDE STARTUP CHECKS' ) . "\n";
echo "___________________ \n\n";
// WordPress version
if ($wp_version > 3){
printf( __( 'WordPress version = %s' ), $wp_version );
}else{
printf( __( 'WordPress version = %s (which is too old to run AceIDE)' ), $wp_version );
}
echo "\n\n";
if ( defined( 'ACEIDE_FS_METHOD_FORCED_ELSEWHERE' ) ) {
echo __( sprintf(
"WordPress filesystem API has been forced to use the %s method by another plugin/WordPress",
ACEIDE_FS_METHOD_FORCED
) ) . "\n";
}
if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) {
echo __( 'WordPress constant "DISALLOW_FILE_EDIT" defined but overridden by the "aceide_override_disallow_file_edit" filter.' ) . "\n";
}
echo "\n";
// setup wp_filesystem api
$aceide_filesystem_before = $wp_filesystem;
$url = wp_nonce_url( 'admin.php?page=aceide','plugin-name-action_acepidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials($url, FS_METHOD, false, false, $form_fields);
ob_start();
if ( false === $creds ) {
// if we get here, then we don't have credentials yet,
// but have just produced a form for the user to fill in,
// so stop processing for now
// return true; // stop the normal page form from displaying
}
ob_end_clean();
if ( ! WP_Filesystem( $creds ) ) {
echo __( "There has been a problem initialising the filesystem API" ) . "\n\n";
echo __( "Filesystem API before this plugin ran:" ) . " \n\n" . print_r( $aceide_filesystem_before, true );
echo __( "Filesystem API now:" ) . " \n\n" . print_r( $wp_filesystem, true );
}
unset( $aceide_filesystem_before );
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
if ( isset( $wp_filesystem ) ) {
// Running webservers user and group
printf(
__( 'Web server user/group = %s:%s' ),
getenv( 'APACHE_RUN_USER' ),
getenv( 'APACHE_RUN_GROUP' )
);
echo "\n";
// wp-content user and group
printf(
__( 'Root folder owner/group = %s:%s' ),
$wp_filesystem->owner( $root ),
$wp_filesystem->group( $root )
);
echo "\n\n";
// check we can list wp-content files
if ( $wp_filesystem->exists( $root ) ) {
$files = $wp_filesystem->dirlist( $root );
if ( count( $files ) > 0) {
printf(
__( 'Root folder exists and contains %d files' ),
count( $files )
);
} else {
echo __( 'Root folder exists but we cannot read it\'s contents' );
}
echo "\n";
}
echo "\n" . __( "Using the {$wp_filesystem->method} method of the WP filesystem API" ) . "\n";
$is_readable = $wp_filesystem->is_readable( $root ) == 1;
$is_writable = $wp_filesystem->is_writable( $root ) == 1;
if ( $is_readable && $is_writable ) {
echo __( "The root folder IS readable and IS writable by this method" );
} elseif ( $is_readable && ! $is_writable ) {
echo __( "The root folder IS readable but IS NOT writable by this method" );
} elseif ( ! $is_readable && $is_writable ) {
echo __( "The root folder IS NOT readable but IS writable by this method" );
} else {
echo __( "The root folder IS NOT readable and IS NOT writable by this method" );
}
echo "\n";
if ($is_readable || $is_writable) {
$real_root = trailingslashit(realpath($root));
$real_wpc = trailingslashit(WP_CONTENT_DIR);
$wp_content_accessible = (strpos($real_wpc, $real_root) !== false);
if ($wp_content_accessible) {
$is_readable = $wp_filesystem->is_readable( $real_wpc . 'plugins' ) == 1;
$is_writable = $wp_filesystem->is_writable( $real_wpc . 'plugins' ) == 1;
// plugins folder editable
if ( $is_readable && $is_writable ) {
echo __( "The wp-content/plugins folder IS readable and IS writable by this method" );
} elseif ( $is_readable && ! $is_writable ) {
echo __( "The wp-content/plugins folder IS readable but IS NOT writable by this method" );
} elseif ( ! $is_readable && $is_writable ) {
echo __( "The wp-content/plugins folder IS NOT readable but IS writable by this method" );
} else {
echo __( "The wp-content/plugins folder IS NOT readable and IS NOT writable by this method" );
}
echo "\n";
// themes folder editable
$is_readable = $wp_filesystem->is_readable( $real_wpc . 'themes' ) == 1;
$is_writable = $wp_filesystem->is_writable( $real_wpc . 'themes' ) == 1;
// plugins folder editable
if ( $is_readable && $is_writable ) {
echo __( "The wp-content/themes folder IS readable and IS writable by this method" );
} elseif ( $is_readable && ! $is_writable ) {
echo __( "The wp-content/themes folder IS readable but IS NOT writable by this method" );
} elseif ( ! $is_readable && $is_writable ) {
echo __( "The wp-content/themes folder IS NOT readable but IS writable by this method" );
} else {
echo __( "The wp-content/themes folder IS NOT readable and IS NOT writable by this method" );
}
} else {
echo __( "The wp-content folder is not accessible from the current AceIDE root directory" );
}
echo "\n";
}
}
echo "___________________ \n\n\n\n";
echo __( " If the file tree to the right is empty there is a possibility that your server permissions are not compatible with this plugin. \n The startup information above may shed some light on things. \n Paste that information into the support forum for further assistance." );
die();
}
public function add_my_menu_page() {
global $wp_version;
// We should not even display a menu item if we can't edit files
if ( defined( 'DISALLOW_FILE_EDIT' ) && ! apply_filters( 'aceide_override_disallow_file_edit', ! DISALLOW_FILE_EDIT ) ) {
return;
}
if ( version_compare( $wp_version, '3.8', '<' ) ) {
$this->menu_hook = add_menu_page( 'AceIDE', 'AceIDE', 'edit_plugins', "aceide", array( &$this, 'my_menu_page' ) );
} else {
$this->menu_hook = add_menu_page( 'AceIDE', 'AceIDE', 'edit_plugins', "aceide", array( &$this, 'my_menu_page' ), 'dashicons-editor-code' );
}
}
public function add_my_menu_icon() {
global $wp_version;
// We should not even display a menu icon if we can't edit files
if ( defined( 'DISALLOW_FILE_EDIT' ) && ! apply_filters( 'aceide_override_disallow_file_edit', ! DISALLOW_FILE_EDIT ) ) {
return;
}
if ( version_compare( $wp_version, '3.8', '<' ) ):
?>
<style type="text/css">
#toplevel_page_aceide .wp-menu-image {
background-image: url( '<?php echo plugins_url( 'images/aceide_icon.png', __FILE__ ); ?>' );
background-position: 6px -18px !important;
}
#toplevel_page_aceide:hover .wp-menu-image,
#toplevel_page_aceide.current .wp-menu-image {
background-position: 6px 6px !important;
}
</style>
<?php
endif;
}
public function my_menu_page() {
// Do not check for a nonce, however check other permissions
self::check_perms( false );
$app_url = get_bloginfo('url'); // need to make this https if we are currently looking on the site using https (even though https for admin might not be forced it can still cause issues)
if ( is_ssl() ) {
$app_url = str_replace( "http:", "https:", $app_url );
}
$url = trailingslashit( site_url() );
$root = apply_filters( "aceide_filesystem_root", WP_CONTENT_DIR );
$root = trailingslashit( $root );
$root = str_replace( ABSPATH, $url, $root );
$root = untrailingslashit( $root );
do_action('pre_output_aceide_menu_page');
do_action('pre_output_aceide_menu_page_scripts');
?>
<script>
var aceide_app_path = "<?php echo plugin_dir_url( __FILE__ ); ?>";
// dont think this is needed any more.. var aceide_file_root_url = "<?php echo $root ?>";
var user_nonce_addition = '';
function the_filetree() {
jQuery('#aceide_file_browser').fileTree({ script: ajaxurl }, function(parent, file) {
if ( jQuery(parent).hasClass("create_new") ) { // create new file/folder
// to create a new item we need to know the name of it so show input
var item = eval('('+file+')');
// hide all inputs just incase one is selected
jQuery(".new_item_inputs").hide();
// show the input form for this
jQuery("div.new_" + item.type).show();
jQuery("div.new_" + item.type + " input[name='new_" + item.type + "']").focus();
jQuery("div.new_" + item.type + " input[name='new_" + item.type + "']").attr("rel", file);
} else if ( jQuery(".aceide_tab[rel='"+file+"']").length > 0) { // focus existing tab
jQuery(".aceide_tab[sessionrel='"+ jQuery(".aceide_tab[rel='"+file+"']").attr("sessionrel") +"']").click();// focus the already open tab
} else { // open file
var image_pattern = new RegExp("\\.(jpg|gif|png|bmp)$");
if (image_pattern.test(file)) {
// it's an image so open it for editing
// using modal+iframe
if ("lets not" == "use the modal for now") {
var NewDialog = jQuery('<div id="MenuDialog">\
<iframe src="http://www.sumopaint.com/app/?key=ebcdaezjeojbfgih&target=<?php echo get_bloginfo( 'url' ); ?>?action=aceide_image_save&url=<?php echo $root; ?>' + file + '&title=Edit image&service=Save back to AceIDE" width="100%" height="600px"> </iframe>\
</div>');
NewDialog.dialog({
modal: true,
title: "title",
show: 'clip',
hide: 'clip',
width:'800',
height:'600'
});
} else { // open in new tab/window
var data = { action: 'aceide_image_edit_key', file: file, _wpnonce: jQuery('#_wpnonce').val(), _wp_http_referer: jQuery('#_wp_http_referer').val() };
var image_data = '';
var image_title = encodeURIComponent(file.match(/(^|\/)([^\/]*$)/)[2]);
jQuery.ajaxSetup({async:false}); // we need to wait until we get the response before opening the window
jQuery.post(ajaxurl, data, function(response) {
// with the response (which is a nonce), build the json data to pass to the image editor. The edit key (nonce) is only valid to edit this image
image_data = file+'::'+response;
});
jQuery.ajaxSetup({async:true});// enable async again
window.open('http://www.sumopaint.com/app/?key=ebcdaezjeojbfgih&url=<?php echo $root; ?>' + file + '&opt=' + image_data + '&title=' + image_title + '&service=Save back to AceIDE&target=<?php echo urlencode( $app_url . "/wp-admin/admin.php?aceide_save_image=yes" ) ; ?>');
}
} else {
jQuery(parent).addClass('wait');
aceide_set_file_contents(file, function(){
// once file loaded remove the wait class/indicator
jQuery(parent).removeClass('wait');
});
jQuery('#filename').val(file);
}
}
});
}
jQuery(document).ready(function($) {
// $("#fancyeditordiv").css("height", ($('body').height()-120) + 'px' );
$(document).trigger('aceide:prefiletree');
// Handler for .ready() called.
the_filetree() ;
$(document).trigger('aceide:postfiletree');
// inialise the color assist
$("#aceide_color_assist img").ImageColorPicker({
afterColorSelected: function(event, color){
jQuery("#aceide_color_assist_input").val(color);
}
});
$("#aceide_color_assist").hide(); // hide it until it's needed
$("#aceide_color_assist_send").click(function(e){
e.preventDefault();
editor.insert( jQuery("#aceide_color_assist_input").val().replace('#', '') );
$("#aceide_color_assist").hide(); // hide it until it's needed again
});
$(".close_color_picker a").click(function(e){
e.preventDefault();
$("#aceide_color_assist").hide(); // hide it until it's needed again
});
$("#aceide_toolbar_buttons").on('click', "a.restore", function(e){
e.preventDefault();
var file_path = jQuery(".aceide_tab.active", "#aceide_toolbar").data( "backup" );
jQuery("#aceide_message").hide(); // might be shortly after a save so a message may be showing, which we don't need
jQuery("#aceide_message").html('<span><strong><?php _e( 'File available for restore' ); ?></strong><p> ' + file_path + '</p><a class="button red restore now" href="'+ aceide_app_path + file_path +'"><?php _e( 'Restore this file now &#10012;' ); ?></a><a class="button restore cancel" href="#"><?php _e( 'Cancel &#10007;' ); ?></a><br /><em class="note"><strong>note: </strong><?php _e( 'You can browse all file backups if you navigate to the backups folder (plugins/AceIDE/backups/..) using the filetree.' ); ?></em></span>');
jQuery("#aceide_message").show();
});
$("#aceide_toolbar_buttons").on('click', "a.restore.now", function(e){
e.preventDefault();
var data = { restorewpnonce: user_nonce_addition + jQuery('#_wpnonce').val() };
jQuery.post( aceide_app_path + jQuery(".aceide_tab.active", "#aceide_toolbar").data( "backup" )
, data, function(response) {
if (response == -1){
alert("<?php _e( 'Problem restoring file.' ); ?>");
}else{
alert( response);
jQuery("#aceide_message").hide();
}
});
});
$("#aceide_toolbar_buttons" ).on('click', "a.cancel", function(e){
e.preventDefault();
jQuery("#aceide_message").hide(); // might be shortly after a save so a message may be showing, which we don't need
});
});
</script>
<?php
do_action('post_output_aceide_menu_page_scripts');
do_action('pre_output_aceide_menu_page_html');
?>
<div id="poststuff" class="metabox-holder has-right-sidebar">
<div id="side-info-column" class="inner-sidebar">
<img src="<?php echo plugins_url( 'images/logo.png', __FILE__ ); ?>" id="aceidelogo" />
<div id="aceide_info">
<div id="aceide_info_content"></div>
</div>
<br style="clear:both;" />
<div id="aceide_color_assist">
<div class="close_color_picker"><a href="close-color-picker">x</a></div>
<h3><?php _e( 'Colour Assist' ); ?></h3>
<img src='<?php echo plugins_url( "images/color-wheel.png", __FILE__ ); ?>' />
<input type="button" class="button" id="aceide_color_assist_send" value="<?php _e( '&lt; Send to editor' ); ?>" />
<input type="text" id="aceide_color_assist_input" name="aceide_color_assist_input" value="" />
</div>
<div id="submitdiv" class="postbox ">
<h3 class="hndle"><span>Files</span></h3>
<div class="inside">
<ul id="drag_coverup" class="jqueryFileTree" style="position: absolute; background-color: white; z-index: -1;"></ul>
<div class="submitbox" id="submitpost">
<div id="minor-publishing"></div>
<div id="major-publishing-actions">
<div id="aceide_file_browser"></div>
<br style="clear:both;" />
<div class="new_file new_item_inputs">
<label for="new_folder"><?php _e( 'File name' ); ?></label>
<input class="has_data" name="new_file" type="text" rel="" value="" placeholder="<?php esc_attr_e( 'Filename' ); ?>" />
<a href="#" id="aceide_create_new_file" class="button-primary"><?php _e( 'CREATE' ); ?></a>
</div>
<div class="new_directory new_item_inputs">
<label for="new_directory"><?php _e( 'Directory name' ); ?></label><input class="has_data" name="new_directory" type="text" rel="" value="" placeholder="<?php esc_attr_e( 'Folder' ); ?>" />
<a href="#" id="aceide_create_new_directory" class="button-primary"><?php esc_html_e( 'CREATE' ); ?></a>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div id="post-body">
<div id="aceide_container">
<div id="aceide_toolbar" class="quicktags-toolbar">
<div id="aceide_toolbar_tabs"> </div>
<div id="dialog_window_minimized_container"></div>
</div>
<div id="aceide_toolbar_buttons">
<div id="aceide_message"></div>
<a class="button restore" style="display:none;" title="<?php esc_attr_e( 'Restore the active tab' ); ?>" href="#"><?php _e( 'Restore &#10012;' ); ?></a>
</div>
<div id='fancyeditordiv'></div>
<form id="aceide_save_container" action="" method="get">
<div id="aceide_footer_message"></div>
<div id="aceide_footer_message_last_saved"></div>
<div id="aceide_footer_message_unsaved"></div>
<a href="#" id="aceide_save" alt="<?php esc_attr_e( 'Keyboard shortcut to save [Ctrl/Cmd + S]' ); ?>" title="<?php esc_attr_e( 'Keyboard shortcut to save [Ctrl/Cmd + S]' ); ?>" class="button-primary"><?php esc_html_e( 'SAVE FILE' ); ?></a>
<?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ): ?>
<a href="#" id="aceide_git" alt="Open the Git overlay" title="Open the Git overlay" class="button-secondary"><?php esc_html_e( 'Git' ); ?></a>
<?php endif; ?>
<input type="hidden" id="filename" name="filename" value="" />
<?php
if ( function_exists( 'wp_nonce_field' ) ) {
wp_nonce_field('plugin-name-action_aceidenonce');
}
?>
</form>
</div>
</div>
</div>
<div id="editor_find_dialog" title="<?php esc_attr_e( 'Find...' ); ?>" style="padding: 0px; display: none;">
<?php if ( false ): ?>
<ul>
<li><a href="#find-inline"><?php esc_html_e( 'Text' ); ?></a></li>
<li><a href="#find-func"><?php esc_html_e( 'Function' ); ?></a></li>
</ul>
<?php endif; ?>
<form id="find-inline" style="position: relative; padding: 4px; margin: 0px; height: 100%; overflow: hidden; width: 400px;">
<label class="left"> <?php esc_html_e( 'Find' ); ?><input type="search" name="find" /></label>
<label class="left"> <?php esc_html_e( 'Replace' ); ?><input type="search" name="replacement" /></label>
<div class="clear" style="height: 33px;"></div>
<label><input type="checkbox" name="wrap" checked="checked" /> <?php esc_html_e( 'Wrap Around' ); ?></label>
<label><input type="checkbox" name="case" /> <?php esc_html_e( 'Case Sensitive' ); ?></label>
<label><input type="checkbox" name="whole" /> <?php esc_html_e( 'Match Whole Word' ); ?></label>
<label><input type="checkbox" name="regexp" /> <?php esc_html_e( 'Regular Expression' ); ?></label>
<div class="search_direction">
<?php esc_html_e( 'Direction:' ); ?>
<label><input type="radio" name="direction" value="0" /> <?php esc_html_e( 'Up' ); ?></label>
<label><input type="radio" name="direction" value="1" checked="checked" /> <?php esc_html_e( 'Down' ); ?></label>
</div>
<div class="right">
<input type="submit" name="submit" value="<?php esc_attr_e( 'Find' ); ?>" class="action_button" />
<input type="button" name="replace" value="<?php esc_attr_e( 'Replace' ); ?>" class="action_button" />
<input type="button" name="replace_all" value="<?php esc_attr_e( 'Replace All' ); ?>" class="action_button" />
<input type="button" name="cancel" value="<?php esc_attr_e( 'Cancel' ); ?>" class="action_button" />
</div>
</form>
<?php if ( false ): ?>
<form id="find-func">
<label class="left"> <?php esc_html_e( 'Function' ); ?><input type="search" name="find" /></label>
<div class="right">
<input type="submit" name="submit" value="<?php esc_attr_e( 'Find Function' ); ?>" class="action_button" />
</div>
</form>
<?php endif; ?>
</div>
<div id="editor_goto_dialog" title="<?php esc_attr_e( 'Go to...' ); ?>" style="padding: 0px; display: none;"></div>
<div id="editor_settings_dialog" style="padding: 10px 10px 5px; display: none;">
<div class="left">
<label><?php _e( 'Theme:' ); ?> <input type="text" id="editor_theme_setting" class="ipt-sel"></label>
<label><?php _e( 'Folding:' ); ?> <select id="editor_folding_setting" class="ipt-sel">
<option value="manual"><?php _e( 'Manual' ); ?></option>
<option value="markbegin" selected="selected"><?php _e( 'Beginning' ); ?></option>
<option value="markbeginend"><?php _e( 'Beginning And End' ); ?></option>
</select></label>
<label><?php _e( 'Font Size:' ); ?> <input type="number" id="editor_font_size_setting" class="number"></label>
<label><?php _e( 'Wrap Limit:' ); ?> <input type="number" id="editor_wrap_limit_setting" class="number"></label>
<label><?php _e( 'Wrap Long Text:' ); ?> <input type="checkbox" id="editor_wrap_setting"></label>
<label><?php _e( 'Fade Folders:' ); ?> <input type="checkbox" id="editor_fade_fold_setting"></label>
</div>
<div class="right">
<label><?php _e( 'Highlight Current Line:' ); ?> <input type="checkbox" id="editor_highlight_line_setting"></label>
<label><?php _e( 'Show Invisible Characters:' ); ?> <input type="checkbox" id="editor_show_invisibles"></label>
<label><?php _e( 'Show Indent Guidelines:' ); ?> <input type="checkbox" id="editor_display_indent_guides_setting"></label>
<label><?php _e( 'Animate Scrollbar:' ); ?> <input type="checkbox" id="editor_animate_scroll_setting"></label>
<label><?php _e( 'Show Gutter:' ); ?> <input type="checkbox" id="editor_show_gutter_setting"></label>
<label><?php _e( 'Use Tabs:' ); ?> <input type="checkbox" id="editor_use_tabs_setting"></label>
<label><?php _e( 'Highlight Same Words:' ); ?> <input type="checkbox" id="editor_word_highlight"></label>
<label><?php _e( 'Show Behaviours:' ); ?> <input type="checkbox" id="editor_behaviours_setting"></label>
</div>
</div>
<?php
do_action('post_output_aceide_menu_page_html');
}
}

View File

@@ -0,0 +1,851 @@
<?php
namespace AceIDE\Editor\Modules;
use WP_Error;
use AceIDE\Editor\IDE;
use PHPParser_Lexer;
use PHPParser_Error;
use PHPParser_Parser;
use PclZip;
use ZipArchive;
class FileOps implements Module
{
public function setup_hooks() {
return array (
array( 'wp_ajax_aceide_get_file', array( &$this, 'get_file' ) ),
array( 'wp_ajax_aceide_save_file', array( &$this, 'save_file' ) ),
array( 'wp_ajax_aceide_rename_file', array( &$this, 'rename_file' ) ),
array( 'wp_ajax_aceide_delete_file', array( &$this, 'delete_file' ) ),
array( 'wp_ajax_aceide_upload_file', array( &$this, 'upload_file' ) ),
array( 'wp_ajax_aceide_download_file', array( &$this, 'download_file' ) ),
array( 'wp_ajax_aceide_unzip_file', array( &$this, 'unzip_file' ) ),
array( 'wp_ajax_aceide_zip_file', array( &$this, 'zip_file' ) ),
array( 'wp_ajax_aceide_create_new', array( &$this, 'create_new' ) ),
array( 'wp_ajax_aceide_move_file', array( &$this, 'move_file' ) ),
);
}
public function get_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
// setup wp_filesystem api
$url = wp_nonce_url( 'admin.php?page=aceide','plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
return false;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes($_POST['filename']);
if (ob_get_level()) {
ob_end_clean();
}
echo '===FILE_CONTENTS_START===';
echo $wp_filesystem->get_contents($file_name);
die(); // this is required to return a proper result
}
public function save_file() {
global $wp_filesystem, $current_user;
// check the user has the permissions
IDE::check_perms();
$is_php = false;
$check_syntax = apply_filters( 'aceide_parse_php', true );
/*
* Check file syntax of PHP files by parsing the PHP
* If a site is running low on memory this PHP parser library could well tip memory usage over the edge
* Especially if you are editing a large PHP file.
* Might be worth either making this syntax check optional or it only running if memory is available.
* Symptoms: no response on file save, and errors in your log like "Fatal error: Allowed memory size of 8388608 bytes exhausted…"
*/
if ( $check_syntax && preg_match( "#\.php$#i", $_POST['filename'] ) ) {
$is_php = true;
ini_set( 'xdebug.max_nesting_level', 2000 );
$code = stripslashes( $_POST['content'] );
$parser = new PHPParser_Parser( new PHPParser_Lexer );
try {
$stmts = $parser->parse( $code );
} catch ( PHPParser_Error $e ) {
if (ob_get_level()) {
ob_end_clean();
}
echo 'Parse Error: ', $e->getMessage();
die();
}
}
// setup wp_filesystem api
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
echo __( "Cannot initialise the WP file system API" );
exit;
}
// save a copy of the file and create a backup just in case
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
// set backup filename
$backup_path = 'backups' . preg_replace( "#\.php$#i", "_" . date( "Y-m-d-H-i-s" ) . ".php", $_POST['filename'] );
$backup_path_full = plugin_dir_path( dirname( dirname( __FILE__ ) ) ) . $backup_path;
// create backup directory if not there
$new_file_info = pathinfo( $backup_path_full );
if ( ! $wp_filesystem->is_dir( $new_file_info['dirname'] ) ) {
wp_mkdir_p( $new_file_info['dirname'] ); // should use the filesytem api here but there isn't a comparable command right now
}
if ( $is_php ) {
// create the backup file adding some php to the file to enable direct restore
$current_user = wp_get_current_user();
$user_md5 = md5( serialize( $current_user ) );
$restore_php = '<?php /* start AceIDE restore code */
if ( $_POST["restorewpnonce"] === "'. $user_md5 . $_POST['_wpnonce'] . '" ) {
if ( file_put_contents ( "' . $file_name . '" , preg_replace( "#<\?php /\* start AceIDE restore code(.*)end AceIDE restore code \* \?>/#s", "", file_get_contents( "' . $backup_path_full . '" ) ) ) ) {
echo __( "Your file has been restored, overwritting the recently edited file! \n\n The active editor still contains the broken or unwanted code. If you no longer need that content then close the tab and start fresh with the restored file." );
}
} else {
echo "-1";
}
die();
/* end AceIDE restore code */ ?>';
file_put_contents( $backup_path_full , $restore_php . file_get_contents( $file_name ) );
} else {
// do normal backup
$wp_filesystem->copy( $file_name, $backup_path_full );
}
// save file
if ( $wp_filesystem->put_contents( $file_name, stripslashes( $_POST['content'] ) ) ) {
// lets create an extra long nonce to make it less crackable
$current_user = wp_get_current_user();
$user_md5 = md5( serialize( $current_user ) );
$result = "\"" . $backup_path . ":::" . $user_md5 . "\"";
} else {
$result = __( 'Could not save file' );
}
if (ob_get_level()) {
ob_end_clean();
}
die( $result ); // this is required to return a proper result
}
public function create_new() {
// check the user has the permissions
IDE::check_perms();
// setup wp_filesystem api
global $wp_filesystem;
$url = wp_nonce_url( 'admin.php?page=aceide','plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
return false;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
// check all required vars are passed
if ( strlen( $_POST['path'] ) > 0 && strlen( $_POST['type'] ) > 0 && strlen( $_POST['file'] ) > 0 ) {
$filename = $_POST['file'];
$special_chars = array( "?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr( 0 ) );
$filename = preg_replace( "#\x{00a0}#siu", ' ', $filename );
$filename = str_replace( $special_chars, '', $filename );
$filename = str_replace( array( '%20', '+' ), '-', $filename );
$filename = preg_replace( '/[\r\n\t -]+/', '-', $filename );
$path = $_POST['path'];
if ( $_POST['type'] == "directory" ) {
$write_result = $wp_filesystem->mkdir( $root . $path . $filename, FS_CHMOD_DIR );
if (ob_get_level()) {
ob_end_clean();
}
if ( $write_result ) {
die( "1" ); // created
} else {
echo "Problem creating directory" . $root . $path . $filename;
}
} else if ( $_POST['type'] == "file" ) {
// write the file
$write_result = $wp_filesystem->put_contents(
$root . $path . $filename,
'',
FS_CHMOD_FILE // predefined mode settings for WP files
);
if (ob_get_level()) {
ob_end_clean();
}
if ( $write_result ) {
die( "1" ); // created
} else {
printf( __( "Problem creating file %s" ), $root . $path . $filename );
}
}
}
if (ob_get_level()) {
ob_end_clean();
}
echo "An error has occurred creating the file.";
die(); // this is required to return a proper result
}
public function rename_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
$new_name = dirname( $file_name ) . '/' . stripslashes( $_POST['newname'] );
if ( ! $wp_filesystem->exists( $file_name ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The target file doesn\'t exist!' );
exit;
}
if ( $wp_filesystem->exists( $new_name ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The destination file exists!' );
exit;
}
// Move instead of rename
$renamed = $wp_filesystem->move( $file_name, $new_name );
if ( !$renamed ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The file could not be renamed!' );
}
exit;
}
public function delete_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
if ( ! $wp_filesystem->exists( $file_name ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The file doesn\'t exist!' );
exit;
}
$deleted = $wp_filesystem->delete( $file_name, true );
if ( ! $deleted ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The file couldn\'t be deleted.' );
}
exit;
}
public function move_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$source = $root . stripslashes( $_POST['source'] );
$destination = $root . stripslashes( $_POST['destination'] );
if ( ! $wp_filesystem->exists( $source ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The source file doesn\'t exist!' );
exit;
}
if ( !$wp_filesystem->exists( $destination ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The destination directory does not exist!' );
exit;
}
if ( !$wp_filesystem->is_dir( $destination ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'The destination is not a directory!' );
exit;
}
$destination .= '/' . basename( $source );
// Move instead of rename
$moved = $wp_filesystem->move( $source, $destination );
if (ob_get_level()) {
ob_end_clean();
}
if ( !$moved ) {
echo __( 'The file could not be renamed!' );
} else {
echo '1';
}
exit;
}
public function upload_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$destination_folder = $root . stripslashes( $_POST['destination'] );
foreach ( $_FILES as $file ) {
if ( ! is_uploaded_file( $file['tmp_name'] ) ) {
continue;
}
$destination = $destination_folder . $file['name'];
if ( $wp_filesystem->exists( $destination ) ) {
if (ob_get_level()) {
ob_end_clean();
}
exit( $file['name'] . ' already exists!' );
}
if ( ! $wp_filesystem->move( $file['tmp_name'], $destination ) ) {
if (ob_get_level()) {
ob_end_clean();
}
exit( $file['name'] . ' could not be moved.' );
}
if ( ! $wp_filesystem->chmod( $destination ) ) {
if (ob_get_level()) {
ob_end_clean();
}
exit( $file['name'] . ' could not be chmod.' );
}
}
exit;
}
public function download_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
if ( ! $wp_filesystem->exists( $file_name ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo 'The file doesn\'t exist!';
exit;
}
if (ob_get_level()) {
ob_end_clean();
}
header( 'Content-Description: File Transfer' );
header( 'Content-Type: application/octet-stream' );
header( 'Content-Disposition: filename="' . basename( $file_name ) . '"' );
header( 'Expires: 0' );
header( 'Cache-Control: must-revalidate' );
header( 'Pragma: public' );
echo $wp_filesystem->get_contents( $file_name );
exit;
}
public function zip_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( !WP_Filesystem( $creds ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( "Cannot initialise the WP file system API" );
exit;
}
if ( ! $wp_filesystem->exists( $file_name ) ) {
if (ob_get_level()) {
ob_end_clean();
}
echo __( 'Error: target file does not exist!' );
exit;
}
$method = apply_filters( 'aceide_compression_method', 'zip' );
switch ( $method ) {
case 'gz':
$ext = '.tar.gz';
break;
case 'tar':
$ext = '.tar';
break;
case 'b2z':
$ext = '.b2z';
break;
case 'zip':
$ext = '.zip';
break;
}
// Unzip a file to its current directory.
if ( $wp_filesystem->is_dir( $file_name ) ) {
$output_path = dirname( $file_name ) . '/' . basename( $file_name ) . $ext;
} else {
$output_path = $file_name;
$output_path = strstr( $file_name, '.', true ) . $ext;
}
$zipped = self::do_zip_file( $file_name, $output_path );
if ( is_wp_error( $zipped ) ) {
if (ob_get_level()) {
ob_end_clean();
}
printf( '%s: %s', $zipped->get_error_code(), $zipped->get_error_message() );
}
exit;
}
protected static function do_zip_file( $file, $to ) {
// Unzip can use a lot of memory, but not this much hopefully
ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) );
$method = apply_filters( 'aceide_compression_method', 'zip' );
switch ( $method ) {
case 'gz':
case 'tar':
if ( class_exists( 'PharData' ) && apply_filters( 'unzip_file_use_phardata', true ) ) {
exit('yes');
return self::_zip_archive_phardata( $file, $to );
} else {
exit( 'figure it out');
}
/* if ( $method === 'gz' ) {
$gz = gzopen( $to );
} */
break;
case 'b2z':
exit('B2Z!');
case 'zip':
default:
if ( $method !== 'zip' ) {
return new WP_Error( 'invalid-compression', sprintf( '"%s" is not a valid compression mechanism.', $method ) );
}
if ( class_exists( 'ZipArchive' ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
return self::_zip_file_ziparchive( $file, $to );
} else {
// Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file.
return self::_zip_file_pclzip( $file, $to );
}
break;
}
}
protected static function _zip_file_ziparchive( $file, $to ) {
$z = new ZipArchive;
$opened = $z->open( $to, ZipArchive::CREATE );
if ( $opened !== true ) {
switch ( $opened ) {
case ZipArchive::ER_EXISTS:
return new WP_Error(
'ZipArchive Error',
'File already exists',
ZipArchive::ER_EXISTS
);
case ZipArchive::ER_INCONS:
return new WP_Error(
'ZipArchive Error',
'Archive inconsistent',
ZipArchive::ER_INCONS
);
case ZipArchive::ER_INVAL:
return new WP_Error(
'ZipArchive Error',
'Invalid argument',
ZipArchive::ER_INVAL
);
case ZipArchive::ER_MEMORY:
return new WP_Error(
'ZipArchive Error',
'Malloc failure',
ZipArchive::ER_MEMORY
);
case ZipArchive::ER_NOENT:
return new WP_Error(
'ZipArchive Error',
'No such file.',
ZipArchive::ER_NOENT
);
case ZipArchive::ER_NOZIP:
return new WP_Error(
'ZipArchive Error',
'Not a zip archive.',
ZipArchive::ER_NOZIP
);
case ZipArchive::ER_OPEN:
return new WP_Error(
'ZipArchive Error',
'Can\'t open file.',
ZipArchive::ER_OPEN
);
case ZipArchive::ER_READ:
return new WP_Error(
'ZipArchive Error',
'Read Error',
ZipArchive::ER_READ
);
case ZipArchive::ER_SEEK:
return new WP_Error(
'ZipArchive Error',
'Seek Error',
ZipArchive::ER_SEEK
);
default:
return new WP_Error(
'ZipArchive Error',
'Unknown Error',
$opened
);
}
}
if ( is_dir( $file ) ) {
$base = dirname( $file );
$file = untrailingslashit( $file );
$z = self::_zip_folder_ziparchive( $base, $file, $to, $z );
if ( is_wp_error( $z ) ) {
return $z;
}
} else {
$z->addFile( $file, basename( $file ) );
}
$z->close();
return true;
}
protected static function _zip_folder_ziparchive( $zip_base, $folder, $to, $z ) {
$handle = opendir( $folder );
while (1) {
$file = readdir( $handle );
if ( false === $file ) {
break;
}
if ( ( $file != '.' ) && ( $file != '..' ) ) {
$filePath = "$folder/$file";
$filePathRel = str_replace( $zip_base, '', $filePath );
if ( $filePathRel{0} === '/' ) {
$filePathRel = substr( $filePathRel, 1 );
}
if ( is_file( $filePath ) ) {
$z->addFile( $filePath, $filePathRel );
} elseif ( is_dir( $filePath ) ) {
// Add sub-directory.
$z->addEmptyDir( $filePathRel );
self::_zip_folder_ziparchive( $zip_base, $filePath, $to, $z );
}
}
}
closedir($handle);
return $z;
}
protected static function _zip_file_pclzip( $file, $to ) {
require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
$pz = new PclZip( $to );
$created = $pz->create( $file, PCLZIP_OPT_REMOVE_PATH, dirname( $file ) );
if ( !$created ) {
return new WP_Error( 'PclZip Error', $pz->errorInfo( true ) );
}
return true;
}
protected static function _zip_file_phardata( $file, $to ) {
$p = new PharData( $to );
if ( is_dir( $file ) ) {
$p->buildFromDirectory( $file );
} else {
$p->addFile( $file, basename( $file ) );
}
return true;
}
public function unzip_file() {
global $wp_filesystem;
// check the user has the permissions
IDE::check_perms();
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$file_name = $root . stripslashes( $_POST['filename'] );
$url = wp_nonce_url( 'admin.php?page=aceide', 'plugin-name-action_aceidenonce' );
$form_fields = null; // for now, but at some point the login info should be passed in here
$creds = request_filesystem_credentials( $url, FS_METHOD, false, false, $form_fields );
if ( false === $creds ) {
// no credentials yet, just produced a form for the user to fill in
return true; // stop the normal page form from displaying
}
if ( ! WP_Filesystem( $creds ) ) {
echo __( "Cannot initialise the WP file system API" );
exit;
}
if ( ! $wp_filesystem->exists( $file_name ) ) {
echo 'Error: Extraction path doesn\'t exist!';
exit;
}
$unzipped = self::do_unzip_file( $file_name, dirname( $file_name ) );
if ( is_wp_error( $unzipped ) ) {
printf( '%s: %s', $unzipped->get_error_code(), $unzipped->get_error_message() );
}
exit;
}
protected static function do_unzip_file( $from, $to ) {
if ( ! file_exists( $from ) ) {
return new WP_Error( 'file-missing', 'Archive missing.' );
}
$fp = fopen( $from, 'rb' );
$bytes = fread( $fp, 2 );
fclose( $fp );
switch ( $bytes ) {
case "\37\213":
// gz
case 'BZ':
return new WP_Error( 'unimplemented', 'That method is not yet implemented.' );
break;
case 'PK':
return unzip_file( $from, $to );
default:
return new WP_Error( 'unknown', 'Unknown archive type' );
}
}
}

View File

@@ -0,0 +1,580 @@
<?php
namespace AceIDE\Editor\Modules;
use AceIDE\Editor\IDE;
class GitOps implements Module
{
protected $git, $git_repo_path;
public function setup_hooks() {
return array (
array( 'post_output_aceide_menu_page_scripts', array( &$this, 'add_git_js' ) ),
array( 'post_output_aceide_menu_page_html', array( &$this, 'add_git_html') ),
array( 'wp_ajax_aceide_git_status', array( &$this, 'git_status' ) ),
array( 'wp_ajax_aceide_git_diff', array( &$this, 'git_diff' ) ),
array( 'wp_ajax_aceide_git_commit', array( &$this, 'git_commit' ) ),
array( 'wp_ajax_aceide_git_log', array( &$this, 'git_log' ) ),
array( 'wp_ajax_aceide_git_init', array( &$this, 'git_init' ) ),
array( 'wp_ajax_aceide_git_clone', array( &$this, 'git_clone' ) ),
array( 'wp_ajax_aceide_git_push', array( &$this, 'git_push' ) ),
array( 'wp_ajax_aceide_git_ssh_gen', array( &$this, 'git_ssh_gen' ) ),
);
}
public function add_git_js() {
IDE::check_perms( false );
?>
<script type="text/javascript">
(function($) {
$(document).on('aceide:prefiletree', function() {
// set up the git commit overlay
$('#gitdiv').dialog({
autoOpen: false,
title: 'Git',
width: 800,
appendTo: jQuery("#wpbody-content")
});
});
$(document).on('aceide:postfiletree', function() {
$("#aceide_git" ).on('click', function(e){
e.preventDefault();
$('#gitdiv').dialog( "open" );
});
$("#gitdiv .show_changed_files" ).on('click', function(e){
e.preventDefault();
$(".git_settings_panel").hide();
var data = { action: 'aceide_git_status', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// view chosen diff
$("#gitdiv" ).on('click', ".viewdiff", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
if ($(this).text() == '<?php _e( '[hide diff]' ); ?>') {
$(this).text('<?php _e( '[show diff]' ); ?>');
$(this).parent().find(".gitdivdiff").hide();
} else {
$(this).text('<?php _e( '[hide diff]' ); ?>');
$(this).parent().find(".gitdivdiff").show();
}
var base64_file = $(this).attr('href');
var data = { action: 'aceide_git_diff', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
file: base64_file, gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$(".gitdivdiff."+ base64_file.replace(/=/g, '_' ) ).html( response );
});
});
// commit selected files
$("#gitdiv" ).on('click', "#gitdivcommit a.button-primary", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
if ( $(".gitfilerow input:checked").length > 0 ){
var files_for_commit = [];
$(".gitfilerow input:checked").each(function( index ) {
files_for_commit[index] = $(this).val();
});
} else {
alert("<?php _e( 'You haven\'t selected any files to be committed!'); ?>");
return;
}
var data = { action: 'aceide_git_commit', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
files: files_for_commit, gitmessage: $('#gitmessage').val(), gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// git log
$("#gitdiv" ).on('click', ".git_log", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
var base64_file = $(this).attr('href');
var data = { action: 'aceide_git_log', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
sshpath: $('#sshpath').val(), gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// git init
$("#gitdiv" ).on('click', ".git_init", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
var data = { action: 'aceide_git_init', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
repo_path: $('#repo_path').val(), gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// git clone
$("#gitdiv" ).on('click', ".git_clone", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
var data = { action: 'aceide_git_clone', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
repo_path: $('#repo_path').val(), sshpath: $('#sshpath').val(), gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// git push
$("#gitdiv" ).on('click', ".git_push", function(e){
e.preventDefault();
$(".git_settings_panel").hide();
var data = { action: 'aceide_git_push', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
sshpath: $('#sshpath').val(), gitpath: $('#gitpath').val(), gitbinary: $('#gitbinary').val() };
$.post(ajaxurl, data, function(response) {
$("#gitdivcontent").html( response );
});
});
// git show settings
$("#gitdiv" ).on('click', ".git_settings", function(e){
e.preventDefault();
$(".git_settings_panel").toggle();
});
// git SSH key gen/view
$("#gitdiv" ).on('click', ".git_ssh_gen", function(e){
e.preventDefault();
var data = { action: 'aceide_git_ssh_gen', _wpnonce: $('#_wpnonce').val(), _wp_http_referer: $('#_wp_http_referer').val(),
sshpath: $('#sshpath').val() };
$.post(ajaxurl, data, function(response) {
alert('<?php _e( "Your SSH key: %s" ); ?>'.replace('%s', response));
});
});
});
})(jQuery);
</script>
<?php
}
public function add_git_html() {
IDE::check_perms( false );
?>
<div id="gitdiv">
<a class="button git_settings" href="#"><?php _e( 'GIT SETTINGS <em>setting local repo location, keys etc</em>' ); ?></a>
<a class="button git_clone" href="#"><?php _e( 'GIT CLONE <em>create or clone a repo</em>' ); ?></a>
<a class="button show_changed_files" href="#"><?php _e( 'GIT STATUS <em>show changed/staged files</em>' ); ?></a>
<a class="button git_log" href="#"><?php _e( 'GIT LOG <em>history of commits</em>' ); ?></a>
<a class="button git_push" href="#"><?php _e( 'GIT PUSH <em>push to remote repo</em>' ); ?></a>
<div class="git_settings_panel" style="display:none;">
<h2><?php esc_html_e( 'Git Settings' ); ?></h2>
<span class="input_row">
<label><?php esc_html_e( 'Local repository path' ); ?></label>
<input type="text" name="gitpath" id="gitpath" value="" />
<em><?php _e( 'The Git repository you want to work with. <br /> If it doesn\'t exist you can <a href="#" class="red git_init">initiate a blank repository by clicking here</a> or you can <a href="#" class="red git_clone">clone a remote repo over here</a>' ); ?></em>
</span>
<span class="input_row">
<label><?php esc_html_e( 'Git binary' ); ?></label>
<input type="text" name="gitbinary" id="gitbinary" value="<?php esc_attr_e( 'I\'ll guess...' ); ?>" /> <em><?php esc_html_e( 'Full path to the local Git binary on this server.' ); ?></em>
</span>
<span class="input_row">
<label><?php esc_html_e( 'SSH key path' ); ?></label>
<input type="text" name="sshpath" id="sshpath" value="<?php echo WP_CONTENT_DIR . '/ssh';?>" /> <em><?php esc_html_e( 'Full path to the folder that contains your SSH keys (both id_rsa and id_rsa.pub) and a known_hosts file.' ); ?></em>
</span>
<span class="input_row">
<?php _e( '<a href="#" class="git_ssh_gen red">Click here to view your SSH key</a>. If an SSH key cannot be found in the SSH path specified above, AceIDE will create this key for you. You\'ll need to pass this key to github or any other services/servers you need Git push access to.' ); ?>
</span>
</div>
<div id="gitdivcontent">
<h2><?php esc_html_e( 'Git functionality is currently experimental, so use at your own risk' ); ?></h2>
<p><?php esc_html_e( 'Saying that, it does work. You can create new Git repositories, clone from remote repositories, push to remote repositories etc. BUT there are many Git features missing, errors aren\'t very tidy and the interface needs some serious attention but I just wanted to get it out there!' ); ?></p>
<p><?php esc_html_e( 'For this functionality to work your Git binary needs to be accessible to the web server process/user and that user will probably need an ssh folder in the default place (~/.ssh) otherwise you will have trouble with remote repository access due to the SSH keys' ); ?></p>
<p><?php esc_html_e( 'AceIDE will use it\'s own SSH key in a custom location which can then even be shared between different WordPress/AceIDE installs on the same server providing the SSH folder you set in settings is accessible to all installs.' ); ?></p>
<p><?php esc_html_e( 'Don\'t be afraid to close this overlay. It will be in exactly the same state once you press the Git button again.' ); ?></p>
</div>
</div>
<?php
}
public function git_ssh_gen() {
// check the user has the permissions
IDE::check_perms();
// errors need to be on while experimental
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
$gitpath = preg_replace( "#/$#", "", sanitize_text_field( $_POST['sshpath'] ) );
// create the folder if doesn't exist
if ( ! file_exists( $gitpath ) ) {
mkdir( $gitpath, 0700 );
}
// create known hosts if doesn't exist
if ( ! file_exists( $gitpath . "/known_hosts" ) ) {
touch( $gitpath . "/known_hosts" );
chmod( $gitpath . "/known_hosts", 0700 );
}
// create keys if not exist
if ( ! file_exists( $gitpath . "/id_rsa" ) || ! file_exists( $gitpath . "/id_rsa.pub" ) ) {
$this->createRsaKey( 2048 );
// create private key
file_put_contents( $gitpath . "/id_rsa", $privatekey );
chmod( $gitpath . "/id_rsa", 0700 );
// create public key
file_put_contents( $gitpath . "/id_rsa.pub", $publickey );
chmod( $gitpath . "/id_rsa.pub", 0700 );
}
// return public key
echo "\n\n" . file_get_contents( $gitpath . "/id_rsa.pub" ) . "\n\n";
die();
}
protected function git_open_repo() {
// check the user has the permissions
IDE::check_perms();
// errors need to be on while experimental
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
$root = apply_filters( 'aceide_filesystem_root', WP_CONTENT_DIR );
$root = trailingslashit($root);
// check repo path entered or die
if ( ! strlen( $_POST['gitpath'] ) ) {
die( __( "Error: Path to your git repository is required! (see settings)" ) );
}
$this->git_repo_path = $root . sanitize_text_field( $_POST['gitpath'] );
$gitbinary = sanitize_text_field( stripslashes( $_POST['gitbinary'] ) );
/*
if ( $gitbinary==="I'll guess.." ) { // the binary path
$thebinary = TQ\Git\Cli\Binary::locateBinary();
$this->git = TQ\Git\Repository\Repository::open( $this->git_repo_path, new TQ\Git\Cli\Binary( $thebinary ), 0755 );
} else {
$thebinary = $_POST['gitbinary'];
$this->git = TQ\Git\Repository\Repository::open( $this->git_repo_path, new TQ\Git\Cli\Binary( $thebinary ), 0755 );
}
*/
}
public function git_status() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
// echo branch
$branch = $this->git->getCurrentBranch();
echo '<p><strong>' . __( 'Current branch:' ) . '</strong> ' . $branch . '</p>';
// [0] => Array
// (
// [file] => AceIDE.php
// [x] =>
// [y] => M
// [renamed] =>
// )
$status = $this->git->getStatus();
$i = 0;// row counter
if ( count( $status ) ) {
// echo out rows of staged files
foreach ( $status as $item ) {
echo '<div class="gitfilerow ' . ( $i % 2 != 0 ? 'light' : '' ) ."\"><span class='filename'>{$item["file"]}</span> <input type='checkbox' name=\"" . str_replace( '=', '_', base64_encode( $item['file'] ) ) . '" value="' . base64_encode( $item['file'] ) . '" checked />
<a href="' . base64_encode( $item['file'] ) . '" class="viewdiff">[view diff]</a> <div class="gitdivdiff ' . str_replace( '=', '_', base64_encode( $item['file'] ) ) . '"></div> </div>';
$i++;
}
} else {
echo '<p class="red">' . __( 'No changed files in this repo so nothing to commit.' ) . '</p>';
}
// output the commit message box
echo '<div id="gitdivcommit"><label>Commit message</label><br /><input type="text" id="gitmessage" name="message" class="message" />
<p><a href="#" class="button-primary">' . __( 'Commit the staged changes' ) . '</a></p></div>';
die(); // this is required to return a proper result
}
public function git_log() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
$log = $this->git->getLog(50);
echo '<div class="git_log">';
foreach ( $log as $item ) {
$matches = array();
$log_array = array();
$bits = explode( "\n", $item );
foreach ( $bits as $bit ) {
if ( preg_match_all( "#(.*): (.*)#iS", trim( $bit ), $matches ) ) {
$key = $matches[1][0];
if ( is_string( $key ) && trim( $key ) !== "" ) {
$log_array[$key] = trim( $matches[2][0] );
}
}
}
$message = explode( end( $log_array ), $item );
$commit = explode( reset( $log_array ), $item );
$log_array['message'] = trim( $message[2] );
$log_array['commit'] = trim( str_replace( array( "commit ", "Author:" ), "", $commit[0] ) );
echo '<span class="input_row">';
echo "<span class='message'>{$log_array['message']}</span> {$log_array['AuthorDate']} <span style='float:right;'>ID: {$log_array['commit']}</span> ";
echo "</span>";
}
echo "</div>";
die(); // this is required to return a proper result
}
public function git_init() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
// create the local repo path if it doesn't exist
if ( ! file_exists( $this->git->getRepositoryPath() ) ) {
mkdir( $this->git->getRepositoryPath() );
}
$result = $this->git->getBinary()->{'init'}( $this->git->getRepositoryPath(), array(
// What do we put here?
) );
// return $result->getStdOut(); // still not getting enough output from the push...
if ( $result->getStdErr() === '' ) {
echo $result->getStdOut();
} else {
echo $result->getStdErr();
}
die(); // this is required to return a proper result
}
public function git_clone() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
// just incase it's a private repo we will setup the keys
$sshpath = preg_replace( "#/$#", "", $_POST['sshpath'] ); // get path replacing end slash if entered
putenv( 'GIT_SSH=' . plugin_dir_path( __FILE__ ) . 'git-wrapper-nohostcheck.sh' ); // tell Git about our wrapper script
/* See note on git_push re wrapper */
putenv( 'ACEIDE_SSH_PATH=' . $sshpath ); // no trailing slash - pass wp-content path to Git wrapper script
putenv( 'HOME='. plugin_dir_path( __FILE__ ) . 'git' ); // no trailing slash - set home to the git directory (this may not be needed)
if ( $_POST['repo_path'] === '' || is_null( $_POST['repo_path'] ) ) {
echo '<span class="input_row">
<label>' . __( 'Clone a remote repository by entering it\'s remote path' ) . '</label>
<input type="text" name="repo_path" id="repo_path" value=""> <em>' . __( 'It will be cloned into the repository path/folder defined in the Git settings.' ) . '</em>
<p><a href="#" class="button-primary git_clone">' . __( 'Clone' ) . '</a></p>
</span>';
die();
}
$path = sanitize_text_field( $_POST['repo_path'] );
// create the local repo path if it doesn't exist
if ( ! file_exists( $this->git->getRepositoryPath() ) ) {
mkdir( $this->git->getRepositoryPath() );
}
$result = $this->git->getBinary()->{'clone'}( $this->git->getRepositoryPath(), array (
$path,
$this->git->getRepositoryPath(),
'--recursive'
) );
// return $result->getStdOut(); // still not getting enough output from the push...
if ( $result->getStdErr() === '' ) {
$result = $result->getStdOut();
// format the output a little better
$result = str_replace( '...', '...<br />', $result );
echo $result;
} else {
echo $result->getStdErr();
}
die(); // this is required to return a proper result
}
public function git_push() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
$sshpath = preg_replace( "#/$#", "", $_POST['sshpath'] ); // get path replacing end slash if entered
putenv( 'GIT_SSH=' . plugin_dir_path( __FILE__ ) . 'git-wrapper-nohostcheck.sh' ); // tell Git about our wrapper script
/*
The wrapper we use above doesn't do a host check which means we can't guarentee the other side is who we think it is
We have this other wrapper which does a host check which we should swap to after the initial push/connection has been made
and the entry automatically added to known hosts but that logic isn't in place yet.
putenv("GIT_SSH=". plugin_dir_path(__FILE__) . 'git/git-wrapper.sh');
*/
putenv( 'ACEIDE_SSH_PATH=' . $sshpath ); // no trailing slash - pass wp-content path to Git wrapper script
putenv( 'HOME=' . plugin_dir_path( __FILE__ ) . 'git' ); // no trailing slash - set home to the git directory (this may not be needed)
echo '<pre>';
$push_result = $this->git->push();
echo '</pre>';
if ( $push_result === '' ) {
echo __( "Sucessfully pushed to your remote repo" );
} else {
echo $push_result;
}
echo __( "<p>Git push completed.</p>" );
die(); // this is required to return a proper result
}
public function git_diff() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
$file = sanitize_text_field( base64_decode( $_POST['file']) );
$result = $this->git->getBinary()->{'diff'}( $this->git->getRepositoryPath(), array (
$file
));
// return $result->getStdOut(); // still not getting enough output from the push...
if ( $result->getStdErr() === '' ) {
$diff_lines = explode( "\n", $result->getStdOut() );
foreach ( $diff_lines as $a_line ) {
if ( preg_match( "#^\+#", $a_line ) ) {
$a_class = 'plus';
} elseif ( preg_match("#^\-#", $a_line ) ) {
$a_class = 'minus';
} else {
$a_class = '';
}
echo "<span class='diff_line {$a_class}'>{$a_line}</span>";
}
} else {
echo $result->getStdErr();
}
echo '<strong>' . __( 'Diff' ) . '</strong>' . $diff_table;
die(); // this is required to return a proper result
}
public function git_commit() {
// check the user has the permissions
IDE::check_perms();
$this->git_open_repo(); // make sure git repo is open
$userinfo = wp_get_current_user();
// committer name, shows under author on github
putenv( sprintf(
"GIT_COMMITTER_NAME=%s %s",
$userinfo->user_firstname,
$userinfo->user_lastname
) );
// committer email address
putenv( sprintf(
"GIT_COMMITTER_EMAIL=%s",
$userinfo->user_email
) );
$files = array();
foreach ( $_POST['files'] as $file ) {
$files[] = base64_decode( $file );
}
// get the current user to be used for the commit
$current_user = wp_get_current_user();
$this->git->add( $files );
$this->git->commit( sanitize_text_field( stripslashes( $_POST['gitmessage'] ) ) , $files, "{$current_user->user_firstname} {$current_user->user_lastname} <{$current_user->user_email}>" );
// output our status
$this->git_status();
die(); // this is required to return a proper result
}
private function createRsaKey( $size ) {
$config = array();
$rsa = openssl_pkey_new( array_merge( array (
'private_key_bits' => $size
), $config ) );
openssl_pkey_export($rsa, $privatekeystr, null, $config);
$publickeyarr = openssl_pkey_get_details($rsa);
return array (
'privatekey' => $privatekeystr,
'publickey' => $publickeyarr['key']
);
}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace AceIDE\Editor\Modules;
interface Module {
public function setup_hooks();
}

View File

@@ -0,0 +1,719 @@
/* This is to make sure the IDE does not overlap anything else in the window */
.toplevel_page_aceide #wpcontent {
z-index: 10;
position: relative;
}
#quicktags, #post-status-info, #editor-toolbar, #newcontent, .ace_print_margin { display: none; }
#aceidelogo {
width: 111px;
height: 33px;
margin: -4px 7px 4px auto;
display: block;
}
#fancyeditordiv {
position: relative;
width: 70%;
height: 400px;
}
#template div{margin-right:0 !important;}
#fancyeditordiv #resizer {
width: 16px;
height: 16px;
position: absolute;
bottom: 0px;
right: 0px;
cursor: nw-resize;
background-image: url( 'images/resize-handle.png' );
}
#template div{margin-right:0 !important;}
#aceide_container {
width: 75%;
box-sizing: border-box;
}
#aceide_container.fullScreen {
width: 100%;
height: 100%;
padding: 20px;
background-color: #E9E9E9;
}
#aceide_toolbar{
width: 100%;
min-height: 30px;
text-align: right;
padding-top: 5px;
position: relative;
float: left;
}
#aceide_toolbar form{
position: absolute;
left: 104%;
}
#aceide_toolbar_tabs{
width:100%;
}
#aceide_toolbar .aceide_tab {
position:relative;
height: 18px;
font: 13px/18px Arial,Helvetica,sans-serif normal;
margin-top: -2px;
margin-right: 2px;
padding: 6px;
padding-right:20px;
float: left;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-border-top-right-radius: 3px;
-webkit-border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
background-color: #E8E8E8;
border-color: #DFDFDF #DFDFDF #CCC;
color: #B00001;
text-decoration: none;
font-style: italic;
-moz-opacity:.60;
filter:alpha(opacity=60);
opacity:.60;
}
#aceide_toolbar .aceide_tab.active {
-moz-opacity:1;
filter:alpha(opacity=1);
opacity:1;
border-left-color:#bbb;
border-right-color:#bbb;
border-top-color:#bbb;
border-bottom-color:#dedede;
}
#aceide_toolbar .aceide_tab.modified {
color: blue;
font-weight: bold;
}
#aceide_toolbar .aceide-tab.modified:after {
content: ' *';
}
#aceide_toolbar .close_tab {
color: #575757;
font-style: normal;
padding-bottom: 7px;
padding-left: 7px;
position: absolute;
right: 3px;
text-decoration: none;
top: -2px;
outline: none !important;
}
#aceide_toolbar .close_tab:hover{
color:#B00001;
font-weight:bold;
}
#aceide_toolbar .close_tab:active {
color: #444444;
font-weight: bold;
}
#aceide_file_browser{
margin-right:2%;
text-align:left;
}
.toplevel_page_aceide #submitdiv,
.toplevel_page_aceide #docinfodiv h3.hndle{
width:100%;
float:right;
clear:right;
}
.toplevel_page_aceide #submitdiv h3.hndle,
.toplevel_page_aceide #docinfodiv h3.hndle{
font-family: Georgia,"Times New Roman";
font-size: 15px;
font-weight: bold;
padding: 7px 10px;
margin: 0;
line-height: 1;
}
#aceide_toolbar_buttons {
position:relative;
min-height:30px;
width:100%;
float:left;
clear:left;
text-align:left;
overflow:hidden;
border-bottom: 1px solid #CCC;
background-color: #E9E9E9;
background-image: -ms-linear-gradient(bottom,#ddd,#e9e9e9);
background-image: -moz-linear-gradient(bottom,#ddd,#e9e9e9);
background-image: -o-linear-gradient(bottom,#ddd,#e9e9e9);
background-image: -webkit-linear-gradient(bottom,#ddd,#e9e9e9);
background-image: linear-gradient(bottom,#ddd,#e9e9e9);
-webkit-border-top-right-radius: 6px;
-webkit-border-top-left-radius: 0px;
border-top-right-radius: 6px;
border-top-left-radius: 0px;
}
#aceide_toolbar_buttons a{
display: block;
float: right;
margin: 2px;
padding: 0 10px;
height: auto;
margin-top: 4px;
}
#aceide_toolbar_buttons .red{
color:#bc201d;
}
#wpwrap div.ace_gutter{
background-color:#f4f4f4;
color:#aaa;
z-index:999;
}
/* The above fix will make tooltips hide behind the gutter.
This will bring them in front. */
#wpwrap .ace_gutter-tooltip {
z-index: 1000;
}
#aceide_save_container{
float: left;
clear: left;
width: 100%;
padding: 0.5%;
background-color: #E9E9E9;
box-sizing: border-box;
border-color: #CCC;
-webkit-box-shadow: inset 0 1px 0 #fff;
box-shadow: inset 0 1px 0 #fff;
-webkit-border-radius: 3px;
border-radius: 3px;
}
#aceide_info {
position: relative;
min-height: 30px;
width: 100%;
padding-right:2px;
float: right;
clear: right;
text-align: left;
overflow: visible;
border-bottom: 1px solid #CCC;
background-color: #E9E9E9;
background-image: -ms-linear-gradient(bottom,#DDD,#E9E9E9);
background-image: -moz-linear-gradient(bottom,#DDD,#E9E9E9);
background-image: -o-linear-gradient(bottom,#DDD,#E9E9E9);
background-image: -webkit-linear-gradient(bottom,#DDD,#E9E9E9);
background-image: linear-gradient(bottom,#DDD,#E9E9E9);
-webkit-border-top-right-radius: 0px;
-webkit-border-top-left-radius: 6px;
border-top-right-radius: 0px;
border-top-left-radius: 6px;
}
#aceide_info_content{
margin-top: 8px;
margin-left: 10px;
}
.aceide_func_highlight,
.aceide_func_highlight_black {
font-size: 120%;
}
.aceide_func_highlight{
color: #4A8EAD;
}
.aceide_func_params{
padding-left:10px;
display: block;
color:#555;
font-family: courier;
}
.aceide_func_desc{
color:#333;
}
.aceide_func_arg_notrequired{
color:#888;
}
.aceide_func_arg_notrequired em{
color: green;
display: block;
font-size: 80%;
line-height: 100%;
}
#fancyeditordiv{
width:100%;
height:1000px;
margin-right:0!important;
float:left;
min-height: 230px;
/* Stop browser text selection of the editor.
This will not stop selection IN the editor. */
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
#aceide_message{
display:none;
width: 80%;
float: left;
text-align: left;
margin: 0;
padding: 7px;
}
#aceide_message a{
float:none;
display:inline-block;
margin:2px;
}
#aceide_message span{
width: 80%;
}
#aceide_message .note{
font-size: 10px;
margin: 10px 0;
display: block;
}
#aceide_footer_message,
#aceide_footer_message_last_saved,
#aceide_footer_message_unsaved{
display:none;
float: left;
padding: 8px;
font-size: 12px;
color: #666;
}
#aceide_footer_message_unsaved{
color:#bc201d;
}
#aceide_save{
float: right;
}
#aceide_git{
float: right;
margin-right: 20px;
background-image: url(images/git.png);
background-repeat: no-repeat;
background-position: right center;
padding-right: 30px;
}
/* Make sure the modal window doesn't get hidden behind wp toolbar */
.ui-dialog{
margin-top:30px; /* this just is not working - the WP admin toolbar gets in the way */
}
#gitdiv{
display:none;
background-color: #efefef;
}
#gitdiv .red{
color: #bc201d;
}
#gitdivcontent{
margin:10px;
}
.git_settings_panel{
overflow: hidden;
margin:20px 0px;
}
.input_row{
padding: 5px;
width: 99%;
background-color: #ddd;
margin: 2px;
display:block;
}
.input_row input[type=text]{
width:98%;
}
.input_row .input_row em{
margin: 2px;
font-size: 10px;
}
.git_settings_panel .input_row,
.git_settings_panel .input_row em,
.git_settings_panel label,
.git_settings_panel input[type=text]{
float:left;
clear:left;
}
.git_log .input_row{
padding: 5px;
width: 99%;
background-color: #ddd;
margin: 2px;
float: left;
}
.git_log .input_row .message{
display:block;
font-weight:bold;
margin-bottom:10px;
}
#gitdiv label,
#gitdiv input[type=text],
#gitdiv a.button{
margin:2px;
}
#gitdiv label{
font-weight:bold;
}
#gitdiv .button{
text-align: center;
height: inherit;
line-height: 130%;
padding-top: 10px;
font-weight:bold;
}
#gitdiv .button em{
display:block;
font-size: 10px;
font-weight:normal;
}
.gitfilerow{
background-color: #bbb;
padding: 10px;
}
.gitfilerow:hover{
}
.gitfilerow.light{
background-color: #ddd;
}
.gitfilerow input[type=checkbox]{
margin-right:20px;
}
.gitfilerow .filename{
width: 70%;
display: block;
float: left;
}
.gitfilerow .viewdiff{
color: #bc201d;
}
#gitdivcommit{
margin-top:20px;
padding:10px;
border: 1px solid #bbb;
}
#gitdivcommit a.button-primary{
margin-left: 8px;
}
#gitdiv input.message{
width:70%;
}
.gitdivdiff{
margin-top: 10px;
}
.gitdivdiff .diff_line{
display:block;
padding:5px;
font-size:11px;
background-color:#fff;
}
.gitdivdiff .diff_line.plus{
background-color:#b5ffce;
}
.gitdivdiff .diff_line.minus{
background-color:#fad3e5;
}
.gitdivdiff .diff-addedline,
.gitdivdiff .diff-deletedline{
font-size:10px;
line-height:130%;
}
#publishing-action img{
visibility: hidden;
}
div#side-info-column{
width:23%;
}
#submitdiv.postbox{
min-width:220px;
}
/* color assist */
.ImageColorPickerWrapper{
height: 300px;
width: 100%;
overflow: scroll;
}
#aceide_color_assist{
position:relative;
width: 100%;
background-color: whiteSmoke;
margin: auto;
border: 1px solid #CCC;
padding-right: 2px;
margin-left: -2px;
height: 380px;
}
#aceide_color_assist img, #aceide_color_assist canvas{
margin:auto;
display:block;
}
#aceide_color_assist canvas.ImageColorPickerCanvasColor{
position:absolute;
left:0;
top:0;
}
#aceide_color_assist input[type=button]{
float:left;
width:110px;
margin: 15px 5px;
font-size: 12px;
}
#aceide_color_assist_input{
float:left;
width:100px;
margin: 15px 5px;
}
.close_color_picker{
padding-bottom: 7px;
padding-left: 7px;
position: absolute;
right: 20px;
top: 5px;
}
.close_color_picker a{
color: #575757;
font-style: normal;
text-decoration: none;
font-size: 16px;
}
#aceide_color_assist h3{
background-color: #F1F1F1;
background-image: -ms-linear-gradient(top,#F9F9F9,#ECECEC);
background-image: -moz-linear-gradient(top,#F9F9F9,#ECECEC);
background-image: -o-linear-gradient(top,#F9F9F9,#ECECEC);
background-image: -webkit-gradient(linear,left top,left bottom,from(#F9F9F9),to(#ECECEC));
background-image: -webkit-linear-gradient(top,#F9F9F9,#ECECEC);
background-image: linear-gradient(top,#F9F9F9,#ECECEC);
-webkit-border-top-left-radius: 3px;
-webkit-border-top-right-radius: 3px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.currentColor, .selectedColor {
border: 1px solid #000;
background-color: #fff;
width:30px;
height:30px;
}
.ImageColorPickerCanvas {
cursor:crosshair;
}
div.ImageColorPickerWrapper{
}
#wpfooter{
display:none;
}
#wpbody-content{
padding-bottom:0;
}
.aceide-settings {
height: 20px;
width: 20px;
background-image: url( images/settings.png );
background-repeat: no-repeat;
background-position: 2px 2px;
display: inline-block;
border: 1px solid transparent;
border-radius: 2px;
padding: 2px;
position: absolute;
right: 2px;
top: 2px;
}
.editor_settings_dialog-minbutton {
display: none;
}
.aceide-settings:hover {
border-color: #666666;
background-color: #F2F2F2;
}
/* Settings Dialog */
#editor_settings_dialog label {
display: inline-block;
width: 100%;
margin: 4px 0;
font-weight: bold;
}
#editor_settings_dialog label .ipt-sel {
width: 125px;
}
#editor_settings_dialog label .number {
width: 117px;
}
#editor_settings_dialog label input, #editor_settings_dialog label select {
float: right;
font-weight: normal;
}
#editor_settings_dialog .left {
float: left;
width: 48%;
}
#editor_settings_dialog .right {
float: right;
width: 48%;
}
#editor_find_dialog {
overflow: hidden;
}
#editor_find_dialog_minimized {
float: right;
}
#editor_find_dialog label {
display: block;
width: 40%;
}
#editor_find_dialog label.left {
display: inline-block;
float: left;
width: 65%;
}
#editor_find_dialog input.action_button {
display: inline-block;
float: right;
width: 100%;
}
#editor_find_dialog input.action_button:active {
box-shadow: 0 0 5px lightGrey inset
}
#editor_find_dialog label.left input {
float: right;
width: 190px;
}
#editor_find_dialog div.search_direction {
display: inline-block;
position: absolute;
bottom: 10px;
right: 10px;
width: 30%;
}
#editor_find_dialog div.search_direction label {
width: 100%;
}
#editor_find_dialog div.right {
display: inline-block;
position: absolute;
top: 4px;
right: 10px;
width: 30%
}
#editor_find_dialog div.right input {
border: 1px solid #dfdfdf;
background-color: #fefefe;
border-radius: 2px;
}
#editor_find_dialog div.right input:hover {
border-color: #AAAAAA;
}
ul.jqueryFileTree a {
overflow: hidden;
text-overflow: ellipsis;
min-width: 123px;
margin-right: 26px;
}
.jqueryFileTree .create_new a {
min-width: 24px;
max-width: 24px;
width: 24px;
}
.jqueryFileTree .directory > a,
.jqueryFileTree .file > a {
border: 1px solid transparent;
outline: none !important;
}
.jqueryFileTree .filetree_delete:hover {
opacity: 1;
}
.jqueryFileTree .directory > a:hover,
.jqueryFileTree .file > a:hover {
background-color: #BDF;
border: 1px solid #BDF;
outline: none !important;
}
.jqueryFileTree .directory > a:active,
.jqueryFileTree .file > a:active {
border: 1px solid #AAF;
background-color: #BDF;
outline: none !important;
}
.jqueryFileTree LI.allowDrop > a {
background: #3ca924;
color: #fff;
}
#aceide_file_browser .aceide-context-menu {
position: absolute;
background: white;
border: 1px solid #AAAAAA;
padding: 3px;
z-index: 100;
border-radius: 3px;
box-shadow: 6px 6px 11px -7px #333;
}
#aceide_file_browser .aceide-context-menu li {
list-style-type: none;
padding: 3px 6px 3px 20px;
-webkit-user-select: none;
user-select: none;
cursor: pointer;
font-size: 14px;
}
#aceide_file_browser .aceide-context-menu li:hover {
background-color: #DFDFDF;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,619 @@
/*!
* jQuery UI CSS Framework 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
.ui-helper-clearfix:after { clear: both; }
.ui-helper-clearfix { zoom: 1; }
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*!
* jQuery UI CSS Framework 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Helvetica,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=2px&bgColorHeader=dddddd&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=50&borderColorHeader=dddddd&fcHeader=444444&iconColorHeader=0073ea&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=dddddd&fcContent=444444&iconColorContent=ff0084&bgColorDefault=f6f6f6&bgTextureDefault=03_highlight_soft.png&bgImgOpacityDefault=100&borderColorDefault=dddddd&fcDefault=0073ea&iconColorDefault=666666&bgColorHover=0073ea&bgTextureHover=03_highlight_soft.png&bgImgOpacityHover=25&borderColorHover=0073ea&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=dddddd&fcActive=ff0084&iconColorActive=454545&bgColorHighlight=ffffff&bgTextureHighlight=01_flat.png&bgImgOpacityHighlight=55&borderColorHighlight=cccccc&fcHighlight=444444&iconColorHighlight=0073ea&bgColorError=ffffff&bgTextureError=01_flat.png&bgImgOpacityError=55&borderColorError=ff0084&fcError=222222&iconColorError=ff0084&bgColorOverlay=eeeeee&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=80&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=60&thicknessShadow=4px&offsetTopShadow=-4px&offsetLeftShadow=-4px&cornerRadiusShadow=0px
*/
/* Component containers
----------------------------------*/
.ui-widget { font-family: Helvetica, Arial, sans-serif; font-size: 1.1em; }
.ui-widget .ui-widget { font-size: 1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Helvetica, Arial, sans-serif; font-size: 1em; }
.ui-widget-content { border: 1px solid #dddddd; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #444444; }
.ui-widget-content a { color: #444444; }
.ui-widget-header { border: 1px solid #dddddd; background: #dddddd url(images/ui-bg_highlight-soft_50_dddddd_1x100.png) 50% 50% repeat-x; color: #444444; font-weight: bold; }
.ui-widget-header a { color: #444444; }
/* Interaction states
----------------------------------*/
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dddddd; background: #f6f6f6 url(images/ui-bg_highlight-soft_100_f6f6f6_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #0073ea; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #0073ea; text-decoration: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #0073ea; background: #0073ea url(images/ui-bg_highlight-soft_25_0073ea_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
.ui-state-hover a, .ui-state-hover a:hover { color: #ffffff; text-decoration: none; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #dddddd; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #ff0084; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ff0084; text-decoration: none; }
.ui-widget :active { outline: none; }
/* Interaction Cues
----------------------------------*/
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #cccccc; background: #ffffff url(images/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x; color: #444444; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #444444; }
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #ff0084; background: #ffffff url(images/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #222222; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #222222; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_ff0084_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_ff0084_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_0073ea_256x240.png); }
.ui-state-default .ui-icon { background-image: url(images/ui-icons_666666_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_0073ea_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ff0084_256x240.png); }
/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px; -khtml-border-top-left-radius: 2px; border-top-left-radius: 2px; }
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 2px; -webkit-border-top-right-radius: 2px; -khtml-border-top-right-radius: 2px; border-top-right-radius: 2px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -khtml-border-bottom-left-radius: 2px; border-bottom-left-radius: 2px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px; -khtml-border-bottom-right-radius: 2px; border-bottom-right-radius: 2px; }
/* Overlays */
.ui-widget-overlay { background: #eeeeee url(images/ui-bg_flat_0_eeeeee_40x100.png) 50% 50% repeat-x; opacity: .80;filter:Alpha(Opacity=80); }
.ui-widget-shadow { margin: -4px 0 0 -4px; padding: 4px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60;filter:Alpha(Opacity=60); -moz-border-radius: 0px; -khtml-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; }/*!
* jQuery UI Resizable 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Resizable#theming
*/
.ui-resizable { position: relative;}
.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*!
* jQuery UI Selectable 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Selectable#theming
*/
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
/*!
* jQuery UI Accordion 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Accordion#theming
*/
/* IE/Win - Fix animation bug - #4615 */
.ui-accordion { width: 100%; }
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
.ui-accordion .ui-accordion-li-fix { display: inline; }
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
.ui-accordion .ui-accordion-content-active { display: block; }
/*!
* jQuery UI Autocomplete 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Autocomplete#theming
*/
.ui-autocomplete { position: absolute; cursor: default; }
/* workarounds */
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
/*
* jQuery UI Menu 1.8.20
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Menu#theming
*/
.ui-menu {
list-style:none;
padding: 2px;
margin: 0;
display:block;
float: left;
}
.ui-menu .ui-menu {
margin-top: -3px;
}
.ui-menu .ui-menu-item {
margin:0;
padding: 0;
zoom: 1;
float: left;
clear: left;
width: 100%;
}
.ui-menu .ui-menu-item a {
text-decoration:none;
display:block;
padding:.2em .4em;
line-height:1.5;
zoom:1;
}
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
font-weight: normal;
margin: -1px;
}
/*!
* jQuery UI Button 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Button#theming
*/
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
.ui-button-icons-only { width: 3.4em; }
button.ui-button-icons-only { width: 3.7em; }
/*button text element */
.ui-button .ui-button-text { display: block; line-height: 1.4; }
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
/* no icon support for input elements, provide padding by default */
input.ui-button { padding: .4em 1em; }
/*button icon element(s) */
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
/*button sets*/
.ui-buttonset { margin-right: 7px; }
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
/* workarounds */
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
/*!
* jQuery UI Dialog 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog#theming
*/
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; z-index: 1000; }
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
.ui-dialog .ui-dialog-titlebar-close span { display: block; }
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }
/*!
* jQuery UI Slider 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Slider#theming
*/
.ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.ui-slider-horizontal { height: .8em; }
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
.ui-slider-vertical { width: .8em; height: 100px; }
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*!
* jQuery UI Tabs 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Tabs#theming
*/
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
.ui-tabs .ui-tabs-hide { display: none !important; }
/*!
* jQuery UI Datepicker 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Datepicker#theming
*/
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
.ui-datepicker .ui-datepicker-prev { left:2px; }
.ui-datepicker .ui-datepicker-next { right:2px; }
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 49%;}
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
.ui-datepicker td { border: 0; padding: 1px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi { width:auto; }
.ui-datepicker-multi .ui-datepicker-group { float:left; }
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
/* RTL support */
.ui-datepicker-rtl { direction: rtl; }
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
display: none; /*sorry for IE5*/
display/**/: block; /*sorry for IE5*/
position: absolute; /*must have*/
z-index: -1; /*must have*/
filter: mask(); /*must have*/
top: -4px; /*must have*/
left: -4px; /*must have*/
width: 200px; /*must have*/
height: 200px; /*must have*/
}/*!
* jQuery UI Progressbar 1.8.20
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Progressbar#theming
*/
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
/*
* css for minimise
*/
.dialog_form th {
text-align: left;
}
.dialog_form textarea, .dialog_form input[type=text] {
width: 320px;
}
.dialog_window_minimized {
float: left;
position: relative;
height: 18px;
font-size: 13px;
margin-top: -2px;
margin-right: 2px;
padding: 6px;
padding-right: 20px;
text-decoration: none;
font-style: italic;
display: none;
}
.dialog_window_minimized .ui-icon {
display: inline-block !important;
position: relative;
top: 3px;
cursor: pointer;
}
.ui-dialog .ui-dialog-titlebar-minimize {
height: 18px;
width: 19px;
padding: 1px;
position: absolute;
right: 23px;
top: 9px;
}
.ui-dialog .ui-dialog-titlebar-minimize .ui-icon {
display: block;
margin: 1px;
}
.ui-dialog .ui-dialog-titlebar-minimize:hover, .ui-dialog .ui-dialog-titlebar-minimize:focus {
padding: 0;
}

View File

@@ -0,0 +1,180 @@
UL.jqueryFileTree {
font-family: Verdana, sans-serif;
font-size: 11px;
line-height: 18px;
padding: 0px;
margin: 0px;
}
UL.jqueryFileTree LI {
list-style: none;
padding: 0px;
padding-left: 20px;
margin: 0px;
white-space: nowrap;
}
UL.jqueryFileTree A {
color: #333;
text-decoration: none;
display: block;
padding: 0 2px;
overflow: hidden;
text-overflow: ellipsis;
min-width: 123px;
margin-right: 26px;
}
.jqueryFileTree .create_new a {
min-width: 24px;
max-width: 24px;
width: 24px;
}
.jqueryFileTree .directory,
.jqueryFileTree .file {
border: 1px solid transparent;
outline: none !important;
position: relative;
}
.jqueryFileTree .filetree_node:hover {
background-color: #BDF;
border-color: #BDF;
}
.jqueryFileTree .filetree_node:active {
border-color: #AAF;
background-color: #BDF;
}
.jqueryFileTree .filetree_delete {
float: right;
width: 20px;
height: 20px;
margin-right: 2px;
opacity: 0.7;
position: absolute;
top: 1px;
right: 0;
}
.jqueryFileTree .filetree_delete:hover {
opacity: 1;
}
/* Core Styles */
.jqueryFileTree LI.directory { background: url(../images/directory.png) left top no-repeat; }
.jqueryFileTree LI.expanded { background: url(../images/folder_open.png) left top no-repeat; }
.jqueryFileTree LI.file { background: url(../images/file.png) left top no-repeat; }
.jqueryFileTree LI.wait { background: url(../images/spinner.gif) left top no-repeat !important; }
/* File Extensions*/
.jqueryFileTree LI.ext_3gp { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_afp { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_afpa { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_asp { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_aspx { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_avi { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_bat { background: url(../images/application.png) left top no-repeat; }
.jqueryFileTree LI.ext_bmp { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_c { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_cfm { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_cgi { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_com { background: url(../images/application.png) left top no-repeat; }
.jqueryFileTree LI.ext_cpp { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_css { background: url(../images/css.png) left top no-repeat; }
.jqueryFileTree LI.ext_doc { background: url(../images/doc.png) left top no-repeat; }
.jqueryFileTree LI.ext_exe { background: url(../images/application.png) left top no-repeat; }
.jqueryFileTree LI.ext_gif { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_fla { background: url(../images/flash.png) left top no-repeat; }
.jqueryFileTree LI.ext_h { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_htm { background: url(../images/html.png) left top no-repeat; }
.jqueryFileTree LI.ext_html { background: url(../images/html.png) left top no-repeat; }
.jqueryFileTree LI.ext_jar { background: url(../images/java.png) left top no-repeat; }
.jqueryFileTree LI.ext_jpg { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_jpeg { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_js { background: url(../images/script.png) left top no-repeat; }
.jqueryFileTree LI.ext_lasso { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_log { background: url(../images/txt.png) left top no-repeat; }
.jqueryFileTree LI.ext_m4p { background: url(../images/music.png) left top no-repeat; }
.jqueryFileTree LI.ext_mov { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_mp3 { background: url(../images/music.png) left top no-repeat; }
.jqueryFileTree LI.ext_mp4 { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_mpg { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_mpeg { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_ogg { background: url(../images/music.png) left top no-repeat; }
.jqueryFileTree LI.ext_pcx { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_pdf { background: url(../images/pdf.png) left top no-repeat; }
.jqueryFileTree LI.ext_php { background: url(../images/php.png) left top no-repeat; }
.jqueryFileTree LI.ext_png { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_ppt { background: url(../images/ppt.png) left top no-repeat; }
.jqueryFileTree LI.ext_psd { background: url(../images/psd.png) left top no-repeat; }
.jqueryFileTree LI.ext_pl { background: url(../images/script.png) left top no-repeat; }
.jqueryFileTree LI.ext_py { background: url(../images/script.png) left top no-repeat; }
.jqueryFileTree LI.ext_rb { background: url(../images/ruby.png) left top no-repeat; }
.jqueryFileTree LI.ext_rbx { background: url(../images/ruby.png) left top no-repeat; }
.jqueryFileTree LI.ext_rhtml { background: url(../images/ruby.png) left top no-repeat; }
.jqueryFileTree LI.ext_rpm { background: url(../images/linux.png) left top no-repeat; }
.jqueryFileTree LI.ext_ruby { background: url(../images/ruby.png) left top no-repeat; }
.jqueryFileTree LI.ext_sql { background: url(../images/db.png) left top no-repeat; }
.jqueryFileTree LI.ext_swf { background: url(../images/flash.png) left top no-repeat; }
.jqueryFileTree LI.ext_tif { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_tiff { background: url(../images/picture.png) left top no-repeat; }
.jqueryFileTree LI.ext_txt { background: url(../images/txt.png) left top no-repeat; }
.jqueryFileTree LI.ext_vb { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_wav { background: url(../images/music.png) left top no-repeat; }
.jqueryFileTree LI.ext_wmv { background: url(../images/film.png) left top no-repeat; }
.jqueryFileTree LI.ext_xls { background: url(../images/xls.png) left top no-repeat; }
.jqueryFileTree LI.ext_xml { background: url(../images/code.png) left top no-repeat; }
.jqueryFileTree LI.ext_zip { background: url(../images/zip.png) left top no-repeat; }
a.new_directory{
background: url(../images/new-folder.png) center no-repeat;
}
a.new_file{
background: url(../images/new-file.png) center center no-repeat;
}
ul.jqueryFileTree a:focus {
outline: none;
-webkit-box-shadow: none;
box-shadow: none;
}
ul.jqueryFileTree .new_file,
ul.jqueryFileTree .new_directory{
width:20px;
height:20px;
padding:2px;
float:left;
display:block;
opacity:0.6;
}
ul.jqueryFileTree .new_file:hover,
ul.jqueryFileTree .new_directory:hover{
width:20px;
height:20px;
padding:2px;
float:left;
display:block;
opacity:1;
}
div.new_directory,
div.new_file{
display:none;
}
#major-publishing-actions input[type='text'],
#major-publishing-actions input[type='text']{
text-align:left;
width:150px;
}
#major-publishing-actions label{
display: block;
font-weight: bold;
padding-left: 3px;
}

View File

@@ -0,0 +1,183 @@
/************** Skin 1 *********************/
.dd {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
z-index:999;
-moz-box-shadow: 2px 2px 2px 2px #ccc;
-webkit-box-shadow: 2px 2px 2px 2px #ccc;
box-shadow: 2px 2px 2px 2px #ccc;
}
.dd .ddTitle {
background:#f2f2f2;
border:1px solid #c3c3c3;
padding:3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:16px;
}
.dd .ddTitle span.arrow {
background:none no-repeat 0 0; float:right; display:inline-block;width:16px; height:16px; cursor:pointer;
}
.dd .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:16px;}
.dd .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0}
.dd .ddTitle img.selected {
padding:0 3px 0 0;
vertical-align:top;
}
.dd .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
min-width:150px;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
z-index:9999;
}
.dd .ddChild .opta a, .dd .ddChild .opta a:visited {padding-left:10px}
.dd .ddChild a {
display:block;
padding:2px 0 2px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd .ddChild a:hover {
background-color:#eee;
}
.dd .ddChild a img {
border:0;
padding: 2px;
padding-left: 10px;
vertical-align:middle;
float: right;
}
.dd .ddChild a.selected {
background-color:#eee;
}
.hidden {display:none;}
.dd .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd .noBorderTop{border-top:none 0 !important}
/************** Skin 2 *********************/
.dd2 {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
}
.dd2 .ddTitle {
background:transparent none no-repeat;
padding:0 3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:36px;
}
.dd2 .ddTitle span.arrow {
background:transparent none no-repeat 0 0; float:right; display:inline-block;width:27px; height:27px; cursor:pointer; top:5px; position:relative; right:2px;
}
.dd2 .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:33px; font-family:Georgia, "Times New Roman", Times, serif; font-size:16px; font-weight:bold; color:#fff; _position:relative; _top:4px}
.dd2 .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0;}
.dd2 .ddTitle img.selected {
padding:0 2px 0 0;
vertical-align:top;
}
.dd2 .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
min-width: 150px;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
font-size:14px;
}
.dd2 .ddChild .opta a, .dd2 .ddChild .opta a:visited {padding-left:10px}
.dd2 .ddChild a {
display:block;
padding:3px 0 3px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd2 .ddChild a:hover {
background-color:#66CCFF;
}
.dd2 .ddChild a img {
border:0;
padding:0 2px 0 0;
vertical-align:middle;
}
.dd2 .ddChild a.selected {
background-color:#66CCFF;
}
.dd2 .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd2 .noBorderTop{border-top:none 0 !important}
/************* use sprite *****************/
.dd .ddChild a.sprite, .dd .ddChild a.sprite:visited {
background-image:url(../icons/sprite.gif);
background-repeat:no-repeat;
padding-left:24px;
}
.dd .ddChild a.calendar, .dd .ddChild a.calendar:visited {
background-position:0 -404px;
}
.dd .ddChild a.shoppingcart, .dd .ddChild a.shoppingcart:visited {
background-position:0 -330px;
}
.dd .ddChild a.cd, .dd .ddChild a.cd:visited {
background-position:0 -439px;
}
.dd .ddChild a.email, .dd .ddChild a.email:visited {
background-position:0 -256px;
}
.dd .ddChild a.faq, .dd .ddChild a.faq:visited {
background-position:0 -183px;
}
.dd .ddChild a.games,
.dd .ddChild a.games:visited {
background-position:0 -365px;
}
.dd .ddChild a.music, .dd .ddChild a.music:visited {
background-position:0 -146px;
}
.dd .ddChild a.phone, .dd .ddChild a.phone:visited {
background-position:0 -109px;
}
.dd .ddChild a.graph, .dd .ddChild a.graph:visited {
background-position:0 -73px;
}
.dd .ddChild a.secured, .dd .ddChild a.secured:visited {
background-position:0 -37px;
}
.dd .ddChild a.video, .dd .ddChild a.video:visited {
background-position:0 0;
}
/*******************************/

View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -e
set -u
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=$ACEIDE_SSH_PATH/known_hosts -i $ACEIDE_SSH_PATH/id_rsa $@

View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -e
set -u
ssh -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$ACEIDE_SSH_PATH/known_hosts -i $ACEIDE_SSH_PATH/id_rsa $@

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

View File

@@ -0,0 +1,225 @@
/*!
* jQuery ImageColorPicker Plugin v0.3
* http://github.com/Skarabaeus/ImageColorPicker
*
* Copyright 2010, Stefan Siebel
* Licensed under the MIT license.
* http://github.com/Skarabaeus/ImageColorPicker/MIT-LICENSE.txt
*
* Released under the MIT
*
* Date: Tue May 17 11:20:16 2011 -0700
*/
(function(){
var uiImageColorPicker = function(){
var _d2h = function(d) {
var result;
if (! isNaN( parseInt(d) ) ) {
result = parseInt(d).toString(16);
} else {
result = d;
}
if (result.length === 1) {
result = "0" + result;
}
return result;
};
var _h2d = function(h) {
return parseInt(h,16);
};
var _pointerPos = {};
var _createImageColorPicker = function(widget) {
// store 2D context in widget for later access
widget.ctx = null;
// rgb
widget.color = [0, 0, 0];
// create additional DOM elements.
widget.$canvas = jQuery('<canvas class="ImageColorPickerCanvas"></canvas>');
widget.$canvas2 = jQuery('<canvas class="ImageColorPickerCanvasColor"></canvas>');
// add them to the DOM
widget.element.wrap('<div class="ImageColorPickerWrapper"></div>');
widget.$wrapper = widget.element.parent();
widget.$wrapper.append(widget.$canvas);
widget.$wrapper.append(widget.$canvas2);
if (typeof(widget.$canvas.get(0).getContext) === 'function') { // FF, Chrome, ...
widget.ctx = widget.$canvas.get(0).getContext('2d');
widget.ctx2 = widget.$canvas2.get(0).getContext('2d');
// this does not work yet!
} else {
widget.destroy();
if (console) {
console.log("ImageColor Picker: Can't get canvas context. Use "
+ "Firefox, Chrome or include excanvas to your project.");
}
}
// draw the image in the canvas
var img = new Image();
img.src = widget.element.attr("src");
widget.$canvas.attr("width", img.width);
widget.$canvas.attr("height", img.height);
//the floating color
widget.$canvas2.attr("width", "40");
widget.$canvas2.attr("height", "40");
var canvas = widget.$canvas;
var mouse={x:0,y:0} //make an object to hold mouse position
canvas.onmousemove=function(e){mouse={x:e.pageX-this.offsetLeft,y:e.pageY-this.offsetTop};}
canvas.onmousemove=function(e){mouse={x:e.pageX-this.offsetLeft,y:e.pageY-this.offsetTop};}
widget.ctx.drawImage(img, 0, 0);
// get the image data.
try {
try {
widget.imageData = widget.ctx.getImageData(0, 0, img.width, img.height);
} catch (e1) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
widget.imageData = widget.ctx.getImageData(0, 0, img.width, img.height);
}
} catch (e2) {
widget.destroy();
if (console) {
console.log("ImageColor Picker: Unable to access image data. "
+ "This could be either due "
+ "to the browser you are using (IE doesn't work) or image and script "
+ "are saved on different servers or you run the script locally. ");
}
}
// hide the original image
widget.element.hide();
// for usage in events
var that = widget;
widget.$canvas.bind("mousemove", function(e){
var point = imageCoordinates( that, e.pageX, e.pageY );
var color = lookupColor( that.imageData, point );
updateCurrentColor( that, color.red, color.green, color.blue, point );
});
widget.$canvas.bind("click", function(e){
var point = imageCoordinates( that, e.pageX, e.pageY );
var color = lookupColor( that.imageData, point );
updateSelectedColor( that, color.red, color.green, color.blue );
that._trigger("afterColorSelected", 0, that.selectedColor());
});
widget.$canvas.bind("mouseleave", function(e){
widget.$canvas2.css("display", "none");
});
// hope that helps to prevent memory leaks
jQuery(window).unload(function(e){
that.destroy();
});
};
// for pageX and pageY, determine image coordinates using offset
var imageCoordinates = function( widget, pageX, pageY ) {
var offset = widget.$canvas.offset();
return { x: Math.round( pageX - offset.left ),
y: Math.round( pageY - offset.top ) };
}
// lookup color values for point [x,y] location in image
var lookupColor = function( imageData, point) {
var pixel = ((point.y * imageData.width) + point.x) * 4;
return { red: imageData.data[pixel],
green: imageData.data[(pixel + 1)],
blue: imageData.data[(pixel + 2)] }
}
var updateCurrentColor = function(widget, red, green, blue, point) {
var c = widget.ctx;
var c2 = widget.ctx2;
var canvasWidth = widget.$canvas.attr("width");
var canvasHeight = widget.$canvas.attr("height");
widget.$canvas2.css("display", "block");
// draw current Color
c2.fillStyle = "rgb(" + red + "," + green + "," + blue + ")";
c2.fillRect (0, 0, 30, 30);
// draw border
c2.lineWidth = "3"
c2.lineJoin = "round";
c2.strokeStyle="#FFFFFF";
c2.strokeRect (0, 0, 30, 30);
widget.$canvas2.css("top", (point.y+30) - jQuery(widget.$canvas).parent().scrollTop() );
widget.$canvas2.css("left", (point.x+30) - jQuery(widget.$canvas).parent().scrollLeft() );
}
var updateSelectedColor = function(widget, red, green, blue) {
jQuery("#aceide_color_assist_input").css("borderRight", "30px solid #" + _d2h(red) + _d2h(green) + _d2h(blue) );
// set new selected color
var newColor = [red, green, blue];
widget.color = newColor;
}
return {
// default options
options: {
},
_create: function() {
if (this.element.get(0).tagName.toLowerCase() === 'img') {
if (this.element.get(0).complete) {
_createImageColorPicker(this);
} else {
this.element.bind('load', { that: this }, function(e){
var that = e.data.that;
_createImageColorPicker(that);
});
}
}
},
destroy: function() {
// default destroy
jQuery.Widget.prototype.destroy.apply(this, arguments);
// remove possible large array with pixel data
this.imageData = null;
// remove additional elements
this.$canvas.remove();
this.element.unwrap();
this.element.show();
},
selectedColor: function() {
return "#" + _d2h(this.color[0]) + _d2h(this.color[1]) + _d2h(this.color[2]);
}
};
}();
jQuery.widget("ui.ImageColorPicker", uiImageColorPicker);
})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
define("ace/ext/beautify/php_rules",["require","exports","module","ace/token_iterator"],function(e,t,n){"use strict";var r=e("ace/token_iterator").TokenIterator;t.newLines=[{type:"support.php_tag",value:"<?php"},{type:"support.php_tag",value:"<?"},{type:"support.php_tag",value:"?>"},{type:"paren.lparen",value:"{",indent:!0},{type:"paren.rparen",breakBefore:!0,value:"}",indent:!1},{type:"paren.rparen",breakBefore:!0,value:"})",indent:!1,dontBreak:!0},{type:"comment"},{type:"text",value:";"},{type:"text",value:":",context:"php"},{type:"keyword",value:"case",indent:!0,dontBreak:!0},{type:"keyword",value:"default",indent:!0,dontBreak:!0},{type:"keyword",value:"break",indent:!1,dontBreak:!0},{type:"punctuation.doctype.end",value:">"},{type:"meta.tag.punctuation.end",value:">"},{type:"meta.tag.punctuation.begin",value:"<",blockTag:!0,indent:!0,dontBreak:!0},{type:"meta.tag.punctuation.begin",value:"</",indent:!1,breakBefore:!0,dontBreak:!0},{type:"punctuation.operator",value:";"}],t.spaces=[{type:"xml-pe",prepend:!0},{type:"entity.other.attribute-name",prepend:!0},{type:"storage.type",value:"var",append:!0},{type:"storage.type",value:"function",append:!0},{type:"keyword.operator",value:"="},{type:"keyword",value:"as",prepend:!0,append:!0},{type:"keyword",value:"function",append:!0},{type:"support.function",next:/[^\(]/,append:!0},{type:"keyword",value:"or",append:!0,prepend:!0},{type:"keyword",value:"and",append:!0,prepend:!0},{type:"keyword",value:"case",append:!0},{type:"keyword.operator",value:"||",append:!0,prepend:!0},{type:"keyword.operator",value:"&&",append:!0,prepend:!0}],t.singleTags=["!doctype","area","base","br","hr","input","img","link","meta"],t.transform=function(e,n,r){var i=e.getCurrentToken(),s=t.newLines,o=t.spaces,u=t.singleTags,a="",f=0,l=!1,c,h,p={},d,v={},m=!1,g="";while(i!==null){console.log(i);if(!i){i=e.stepForward();continue}i.type=="support.php_tag"&&i.value!="?>"?r="php":i.type=="support.php_tag"&&i.value=="?>"?r="html":i.type=="meta.tag.name.style"&&r!="css"?r="css":i.type=="meta.tag.name.style"&&r=="css"?r="html":i.type=="meta.tag.name.script"&&r!="js"?r="js":i.type=="meta.tag.name.script"&&r=="js"&&(r="html"),v=e.stepForward(),v&&v.type.indexOf("meta.tag.name")==0&&(d=v.value),p.type=="support.php_tag"&&p.value=="<?="&&(l=!0),i.type=="meta.tag.name"&&(i.value=i.value.toLowerCase()),i.type=="text"&&(i.value=i.value.trim());if(!i.value){i=v;continue}g=i.value;for(var y in o)i.type==o[y].type&&(!o[y].value||i.value==o[y].value)&&v&&(!o[y].next||o[y].next.test(v.value))&&(o[y].prepend&&(g=" "+i.value),o[y].append&&(g+=" "));i.type.indexOf("meta.tag.name")==0&&(c=i.value),m=!1;for(y in s)if(i.type==s[y].type&&(!s[y].value||i.value==s[y].value)&&(!s[y].blockTag||u.indexOf(d)===-1)&&(!s[y].context||s[y].context===r)){s[y].indent===!1&&f--;if(s[y].breakBefore&&(!s[y].prev||s[y].prev.test(p.value))){a+="\n",m=!0;for(y=0;y<f;y++)a+=" "}break}if(l===!1)for(y in s)if(p.type==s[y].type&&(!s[y].value||p.value==s[y].value)&&(!s[y].blockTag||u.indexOf(c)===-1)&&(!s[y].context||s[y].context===r)){s[y].indent===!0&&f++;if(!s[y].dontBreak&&!m){a+="\n";for(y=0;y<f;y++)a+=" "}break}a+=g,p.type=="support.php_tag"&&p.value=="?>"&&(l=!1),h=c,p=i,i=v;if(i===null)break}return a}}),define("ace/ext/beautify",["require","exports","module","ace/token_iterator","ace/ext/beautify/php_rules"],function(e,t,n){"use strict";var r=e("ace/token_iterator").TokenIterator,i=e("./beautify/php_rules").transform;t.beautify=function(e){var t=new r(e,0,0),n=t.getCurrentToken(),s=e.$modeId.split("/").pop(),o=i(t,s);e.doc.setValue(o)},t.commands=[{name:"beautify",exec:function(e){t.beautify(e.session)},bindKey:"Ctrl-Shift-B"}]});
(function() {
window.require(["ace/ext/beautify"], function() {});
})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t,n){"use strict";var r=function(e){this.$editor=e;var t=this,n=[],r=!1;this.onAfterExec=function(){r=!1,t.processRows(n),n=[]},this.onExec=function(){r=!0},this.onChange=function(e){r&&(n.indexOf(e.start.row)==-1&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;var t=[];for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t.indexOf(i)>-1)continue;var s=this.$findCellWidthsForBlock(i),o=this.$setBlockCellWidthsToMax(s.cellWidths),u=s.firstRow;for(var a=0,f=o.length;a<f;a++){var l=o[a];t.push(u),this.$adjustRow(u,l),u++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){var t=[],n,r=e;while(r>=0){n=this.$cellWidthsForRow(r);if(n.length==0)break;t.unshift(n),r--}var i=r+1;r=e;var s=this.$editor.session.getLength();while(r<s-1){r++,n=this.$cellWidthsForRow(r);if(n.length==0)break;t.push(n)}return{cellWidths:t,firstRow:i}},this.$cellWidthsForRow=function(e){var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),r=n.map(function(e){return 0}).slice(1),i=this.$editor.session.getLine(e);for(var s=0,o=n.length-1;s<o;s++){var u=n[s]+1,a=n[s+1],f=this.$rightmostSelectionInCell(t,a),l=i.substring(u,a);r[s]=Math.max(l.replace(/\s+$/g,"").length,f-u)}return r},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){var t=!0,n,r,i,s=this.$izip_longest(e);for(var o=0,u=s.length;o<u;o++){var a=s[o];if(!a.push){console.error(a);continue}a.push(NaN);for(var f=0,l=a.length;f<l;f++){var c=a[f];t&&(n=f,i=0,t=!1);if(isNaN(c)){r=f;for(var h=n;h<r;h++)e[h][o]=i;t=!0}i=Math.max(i,c)}}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){var r=[];for(var i=0,s=e.length;i<s;i++)e[i]<=t?r.push(i):r.push(0);n=Math.max.apply(Math,r)}return n},this.$tabsForRow=function(e){var t=[],n=this.$editor.session.getLine(e),r=/\t/g,i;while((i=r.exec(n))!=null)t.push(i.index);return t},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(n.length==0)return;var r=0,i=-1,s=this.$izip(t,n);for(var o=0,u=s.length;o<u;o++){var a=s[o][0],f=s[o][1];i+=1+a,f+=r;var l=i-f;if(l==0)continue;var c=this.$editor.session.getLine(e).substr(0,f),h=c.replace(/\s*$/g,""),p=c.length-h.length;l>0&&(this.$editor.session.getDocument().insertInLine({row:e,column:f+1},Array(l+1).join(" ")+" "),this.$editor.session.getDocument().removeInLine(e,f,f+1),r+=l),l<0&&p>=-l&&(this.$editor.session.getDocument().removeInLine(e,f+l,f),r+=l)}},this.$izip_longest=function(e){if(!e[0])return[];var t=e[0].length,n=e.length;for(var r=1;r<n;r++){var i=e[r].length;i>t&&(t=i)}var s=[];for(var o=0;o<t;o++){var u=[];for(var r=0;r<n;r++)e[r][o]===""?u.push(NaN):u.push(e[r][o]);s.push(u)}return s},this.$izip=function(e,t){var n=e.length>=t.length?t.length:e.length,r=[];for(var i=0;i<n;i++){var s=[e[i],t[i]];r.push(s)}return r}}).call(r.prototype),t.ElasticTabstopsLite=r;var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new r(this)),this.commands.on("afterExec",this.elasticTabstops.onAfterExec),this.commands.on("exec",this.elasticTabstops.onExec),this.on("change",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener("afterExec",this.elasticTabstops.onAfterExec),this.commands.removeListener("exec",this.elasticTabstops.onExec),this.removeListener("change",this.elasticTabstops.onChange))}}})});
(function() {
window.require(["ace/ext/elastic_tabstops_lite"], function() {});
})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
;
(function() {
window.require(["ace/ext/error_marker"], function() {});
})();

View File

@@ -0,0 +1,5 @@
define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../../lib/dom"),i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}";r.importCssString(i),n.exports.overlayPage=function(t,n,i,s,o,u){function l(e){e.keyCode===27&&a.click()}i=i?"top: "+i+";":"",o=o?"bottom: "+o+";":"",s=s?"right: "+s+";":"",u=u?"left: "+u+";":"";var a=document.createElement("div"),f=document.createElement("div");a.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",a.addEventListener("click",function(){document.removeEventListener("keydown",l),a.parentNode.removeChild(a),t.focus(),a=null}),document.addEventListener("keydown",l),f.style.cssText=i+s+o+u,f.addEventListener("click",function(e){e.stopPropagation()});var c=r.createElement("div");c.style.position="relative";var h=r.createElement("div");h.className="ace_closeButton",h.addEventListener("click",function(){a.click()}),c.appendChild(h),f.appendChild(c),f.appendChild(n),a.appendChild(f),document.body.appendChild(a),t.blur()}}),define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",["require","exports","module","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../../lib/keys");n.exports.getEditorKeybordShortcuts=function(e){var t=r.KEY_MODS,n=[],i={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var r in t){var s=r.replace(/(^|-)\w/g,function(e){return e.toUpperCase()}),o=t[r];Array.isArray(o)||(o=[o]),o.forEach(function(e){typeof e!="string"&&(e=e.name),i[e]?i[e].key+="|"+s:(i[e]={key:s,command:e},n.push(i[e]))})}}),n}}),define("ace/ext/keybinding_menu",["require","exports","module","ace/editor","ace/ext/menu_tools/overlay_page","ace/ext/menu_tools/get_editor_keyboard_shortcuts"],function(e,t,n){"use strict";function i(t){if(!document.getElementById("kbshortcutmenu")){var n=e("./menu_tools/overlay_page").overlayPage,r=e("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts,i=r(t),s=document.createElement("div"),o=i.reduce(function(e,t){return e+'<div class="ace_optionsMenuEntry"><span class="ace_optionsMenuCommand">'+t.command+"</span> : "+'<span class="ace_optionsMenuKey">'+t.key+"</span></div>"},"");s.id="kbshortcutmenu",s.innerHTML="<h1>Keyboard Shortcuts</h1>"+o+"</div>",n(t,s,"0","0","0",null)}}var r=e("ace/editor").Editor;n.exports.init=function(e){r.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e,t){e.showKeyboardShortcuts()}}])}});
(function() {
window.require(["ace/ext/keybinding_menu"], function() {});
})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t,n){function i(e){var t=e.editor,n=e.getAccelKey();if(n){var t=e.editor,r=e.getDocumentPosition(),i=t.session,s=i.getTokenAt(r.row,r.column);t._emit("linkHover",{position:r,token:s})}}function s(e){var t=e.getAccelKey(),n=e.getButton();if(n==0&&t){var r=e.editor,i=e.getDocumentPosition(),s=r.session,o=s.getTokenAt(i.row,i.column);r._emit("linkClick",{position:i,token:o})}}var r=e("ace/editor").Editor;e("../config").defineOptions(r.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",s),this.on("mousemove",i)):(this.off("click",s),this.off("mousemove",i))},value:!1}})});
(function() {
window.require(["ace/ext/linking"], function() {});
})();

Some files were not shown because too many files have changed in this diff Show More