- Cambios
git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_Web/trunk@45 77ab8c26-3d69-2c4d-86f2-786f4ba54905
2237
db/lqdvi.sql
8
db/migracion.sql
Normal file
@ -0,0 +1,8 @@
|
||||
UPDATE wp_options SET option_value = replace(option_value, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi') WHERE option_name = 'home' OR option_name = 'siteurl';
|
||||
UPDATE wp_posts SET guid = replace(guid, 'http://www.loquedeverdadimporta.org/web','http://localhost/lqdvi');
|
||||
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
UPDATE wp_contact_form_7 SET additional_settings = replace(additional_settings , 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
UPDATE wp_facethumb SET url = replace(url, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
UPDATE wp_options SET option_value = replace(option_value, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
UPDATE wp_rg_lead SET source_url = replace(source_url, 'http://www.loquedeverdadimporta.org/web', 'http://localhost/lqdvi');
|
||||
BIN
información/banner_animado2xb.gif
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
referencia/gravityforms_1.5.3.zip
Normal file
@ -1,4 +1,12 @@
|
||||
|
||||
# BEGIN WordPress
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /lqdvi/
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /lqdvi/index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# END WordPress
|
||||
|
||||
109
src/readme.html
@ -1,109 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>WordPress › ReadMe</title>
|
||||
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="logo">
|
||||
<a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" width="250" height="68" /></a>
|
||||
<br /> Version 3.2.1
|
||||
</h1>
|
||||
<p style="text-align: center">Semantic Personal Publishing Platform</p>
|
||||
|
||||
<h1>First Things First</h1>
|
||||
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I'm proud to be a part of. Thousands of hours have gone into WordPress, and we're dedicated to making it better every day. Thank you for making it part of your world.</p>
|
||||
<p style="text-align: right">— Matt Mullenweg</p>
|
||||
|
||||
<h1>Installation: Famous 5-minute install</h1>
|
||||
<ol>
|
||||
<li>Unzip the package in an empty directory and upload everything.</li>
|
||||
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
|
||||
<ol>
|
||||
<li>If for some reason this doesn't work, don't worry. It doesn't work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
|
||||
<li>Save the file as <code>wp-config.php</code> and upload it.</li>
|
||||
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Once the configuration file is set up, the installer will set up the tables needed for your blog. If there is an error, double check your <code>wp-config.php</code> file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/" title="WordPress support">support forums</a> with as much data as you can gather.</li>
|
||||
<li><strong>If you did not enter a password, note the password given to you.</strong> If you did not provide a username, it will be <code>admin</code>.</li>
|
||||
<li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on 'Profile' to change the password.</li>
|
||||
</ol>
|
||||
|
||||
<h1>Updating</h1>
|
||||
<h2>Using the Automatic Updater</h2>
|
||||
<p>If you are updating from version 2.7 or higher, you can use the automatic updater:</p>
|
||||
<ol>
|
||||
<li>Open the <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
|
||||
<li>You wanted more, perhaps? That's it!</li>
|
||||
</ol>
|
||||
|
||||
<h2>Updating Manually</h2>
|
||||
<ol>
|
||||
<li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
|
||||
<li>Delete your old WordPress files, saving ones you've modified.</li>
|
||||
<li>Upload the new files.</li>
|
||||
<li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
|
||||
</ol>
|
||||
|
||||
<h2>Theme Template Changes</h2>
|
||||
<p>If you have customized your theme templates, you may have to make some changes across major versions.</p>
|
||||
|
||||
<h1>Migrating from other systems</h1>
|
||||
<p>WordPress can <a href="http://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
|
||||
|
||||
<h1>System Requirements</h1>
|
||||
<ul>
|
||||
<li><a href="http://php.net/">PHP</a> version <strong>5.2.4</strong> or higher.</li>
|
||||
<li><a href="http://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or higher.</li>
|
||||
</ul>
|
||||
|
||||
<h2>System Recommendations</h2>
|
||||
<ul>
|
||||
<li>The <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
|
||||
<li>A link to <a href="http://wordpress.org/">http://wordpress.org</a> on your site.</li>
|
||||
</ul>
|
||||
|
||||
<h1>Online Resources</h1>
|
||||
<p>If you have any questions that aren't addressed in this document, please take advantage of WordPress' numerous online resources:</p>
|
||||
<dl>
|
||||
<dt><a href="http://codex.wordpress.org/">The WordPress Codex</a></dt>
|
||||
<dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
|
||||
<dt><a href="http://wordpress.org/news/">The WordPress Blog</a></dt>
|
||||
<dd>This is where you'll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.</dd>
|
||||
<dt><a href="http://planet.wordpress.org/">WordPress Planet</a></dt>
|
||||
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
|
||||
<dt><a href="http://wordpress.org/support/">WordPress Support Forums</a></dt>
|
||||
<dd>If you've looked everywhere and still can't find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
|
||||
<dt><a href="http://codex.wordpress.org/IRC">WordPress <abbr title="Internet Relay Chat">IRC</abbr> Channel</a></dt>
|
||||
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
|
||||
</dl>
|
||||
|
||||
<h1><abbr title="eXtensible Markup Language">XML</abbr>-<abbr title="Remote Procedure Call">RPC</abbr> and Atom Interface</h1>
|
||||
<p>You can post to your WordPress blog with tools like <a href="http://download.live.com/writer">Windows Live Writer</a>, <a href="http://illuminex.com/ecto/">Ecto</a>, <a href="http://bloggar.com/">w.bloggar</a>, <a href="http://radio.userland.com/">Radio Userland</a> (which means you can use Radio's email-to-blog feature), <a href="http://www.newzcrawler.com/">NewzCrawler</a>, and other tools that support the blogging <abbr title="application programming interface">API</abbr>s! :) You can read more about <a href="http://codex.wordpress.org/XML-RPC_Support"><abbr>XML</abbr>-<abbr>RPC</abbr> support on the Codex</a>.</p>
|
||||
|
||||
<h1>Post via Email</h1>
|
||||
<p>You can post from an email client! To set this up go to your "Writing" options screen and fill in the connection details for your secret <abbr title="Post Office Protocol version 3">POP3</abbr> account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with <a href="http://en.wikipedia.org/wiki/Cron">cron</a>-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> <abbr title="Uniform Resource Locator">URL</abbr>.</p>
|
||||
<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <em>delete</em> emails that are successfully posted.</p>
|
||||
|
||||
<h1>User Roles</h1>
|
||||
<p>We introduced a very flexible roles system in version 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities" title="WordPress roles and capabilities">read more about Roles and Capabilities on the Codex</a>.</p>
|
||||
|
||||
<h1>Final Notes</h1>
|
||||
<ul>
|
||||
<li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="http://wordpress.org/support/">Support Forums</a>.</li>
|
||||
<li>WordPress has a robust plugin <abbr title="application programming interface">API</abbr> that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="http://codex.wordpress.org/Plugin_API" title="WordPress plugin API">plugin documentation in the Codex</a>. You shouldn't modify any of the core code.</li>
|
||||
</ul>
|
||||
|
||||
<h1>Share the Love</h1>
|
||||
<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.</p>
|
||||
|
||||
<p>WordPress is the official continuation of <a href="http://cafelog.com/">b2/cafélog</a>, which came from Michel V. The work has been continued by the <a href="http://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="http://wordpress.org/donate/" title="Donate to WordPress">donating</a>.</p>
|
||||
|
||||
<h1>License</h1>
|
||||
<p>WordPress is free software, and is released under the terms of the <abbr title="GNU General Public License">GPL</abbr> version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
605
src/wp-content/plugins/admin-menu-editor/css/menu-editor.css
Normal file
@ -0,0 +1,605 @@
|
||||
/* Admin Menu Editor CSS file */
|
||||
|
||||
.ws_main_container {
|
||||
margin: 2px;
|
||||
width: 310px;
|
||||
float: left;
|
||||
display:block;
|
||||
border: 1px solid #cdd5d5;
|
||||
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
.ws_box {
|
||||
min-height: 30px;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
#ws_menu_box {
|
||||
}
|
||||
|
||||
#ws_submenu_box {
|
||||
}
|
||||
|
||||
/*
|
||||
* The sidebar
|
||||
*/
|
||||
|
||||
#ws_editor_sidebar {
|
||||
width: 138px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.ws_main_button {
|
||||
clear: both;
|
||||
display: block;
|
||||
margin: 4px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 120px;
|
||||
padding: 4px !important;
|
||||
}
|
||||
|
||||
#ws_save_menu {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#ws_export_menu {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Menu components and widgets
|
||||
*/
|
||||
|
||||
.ws_container {
|
||||
display: block;
|
||||
width: 290px;
|
||||
|
||||
padding : 3px;
|
||||
margin: 2px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
border: 1px solid #a9badb;
|
||||
background-color: #bdd3ff;
|
||||
}
|
||||
|
||||
.ws_active {
|
||||
background-color : #8eb0f1 !important; /* make sure this overrides ws_menu_separator */
|
||||
}
|
||||
|
||||
.ws_menu { }
|
||||
.ws_item { }
|
||||
|
||||
.ws_menu_separator {
|
||||
background-image: url("../images/menu-arrows.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position : 4px 8px;
|
||||
background-color: #F9F9F9;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
|
||||
.ws_submenu {
|
||||
min-height: 2em;
|
||||
}
|
||||
|
||||
|
||||
.ws_item_head {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ws_item_title {
|
||||
display: block;
|
||||
padding: 2px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.ws_edit_link {
|
||||
float: right;
|
||||
margin-right: 0px;
|
||||
cursor: pointer;
|
||||
display:block;
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
|
||||
background-image: url('../images/bullet_arrow_down2.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
a.ws_edit_link:hover {
|
||||
background-color: #ffffd0;
|
||||
background-image: url('../images/bullet_arrow_down2.png');
|
||||
}
|
||||
|
||||
.ws_edit_link_expanded {
|
||||
background-color: #ffffd0;
|
||||
border-bottom: none;
|
||||
border-color: #ffffd0;
|
||||
|
||||
background-image: url('../images/bullet_arrow_down2.png');
|
||||
padding-bottom: 1px;
|
||||
background-position: center 3px;
|
||||
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
|
||||
-moz-border-radius-bottomright: 0;
|
||||
-moz-border-radius-bottomleft: 0;
|
||||
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
-webkit-border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
.ws_menu_drop_hover {
|
||||
background-color: #43b529 !important;
|
||||
}
|
||||
|
||||
.ws_container.ui-sortable-helper * {
|
||||
cursor: move !important;
|
||||
}
|
||||
|
||||
/****************************************
|
||||
Per-menu settings fields & panels
|
||||
*****************************************/
|
||||
|
||||
.ws_editbox {
|
||||
display: block;
|
||||
background-color: #ffffd0;
|
||||
padding: 4px;
|
||||
|
||||
border-radius: 2px;
|
||||
border-top-right-radius: 0px;
|
||||
|
||||
-moz-border-radius: 2px;
|
||||
-moz-border-radius-topright: 0px;
|
||||
|
||||
-webkit-border-radius: 2px;
|
||||
-webkit-border-top-right-radius: 0px;
|
||||
}
|
||||
|
||||
.ws_edit_panel {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.ws_edit_field {
|
||||
margin-bottom: 8px;
|
||||
height: 42.2px;
|
||||
}
|
||||
|
||||
.ws_edit_field-custom {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* The reset-to-default button */
|
||||
.ws_reset_button {
|
||||
display: block;
|
||||
float: right;
|
||||
|
||||
margin-left: 4px;
|
||||
margin-top: 2px;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: top;
|
||||
|
||||
background-image: url("../images/pencil_delete_gray.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.ws_reset_button:hover {
|
||||
background-image: url("../images/pencil_delete.png");
|
||||
}
|
||||
|
||||
.ws_input_default input, .ws_input_default select {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
/* No reset button for fields set to the default value */
|
||||
.ws_input_default .ws_reset_button {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* The input box in each field editor */
|
||||
#ws_menu_editor .ws_editbox input[type="text"],
|
||||
#ws_menu_editor .ws_editbox select {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 254px;
|
||||
|
||||
font-size: 12px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#ws_menu_editor .ws_edit_field label {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#ws_menu_editor .ws_edit_field-custom input[type="checkbox"] {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
/* Dropdown button for combo-box fields */
|
||||
#ws_menu_editor .ws_dropdown_button {
|
||||
display : block;
|
||||
float: left;
|
||||
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
|
||||
margin: 1px 1px 1px 0;
|
||||
padding: 0;
|
||||
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
font-size: 9px !important;
|
||||
|
||||
border-color: #dfdfdf;
|
||||
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
|
||||
-moz-border-radius-topright: 3px;
|
||||
-moz-border-radius-bottomright: 3px;
|
||||
-moz-border-radius-topleft: 0px;
|
||||
-moz-border-radius-bottomleft: 0px;
|
||||
|
||||
-webkit-border-top-right-radius: 3px;
|
||||
-webkit-border-bottom-right-radius: 3px;
|
||||
-webkit-border-top-left-radius: 0px;
|
||||
-webkit-border-bottom-left-radius: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
The appearance and size of combobox fields need to be changed
|
||||
to accomodate the dropdown button.
|
||||
*/
|
||||
#ws_menu_editor .ws_has_dropdown input.ws_field_value {
|
||||
width: 230px;
|
||||
margin-right: 0;
|
||||
border-right: 0;
|
||||
|
||||
border-top-right-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
|
||||
-moz-border-radius-topright: 0px;
|
||||
-moz-border-radius-bottomright: 0px;
|
||||
|
||||
-webkit-border-top-right-radius: 0px;
|
||||
-webkit-border-bottom-right-radius: 0px;
|
||||
}
|
||||
|
||||
/* Unlike others, this field is just a single checkbox, so it has a smaller height */
|
||||
#ws_menu_editor .ws_edit_field-custom {
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
/*
|
||||
* "Show/hide advanced fields"
|
||||
*/
|
||||
.ws_toggle_container {
|
||||
text-align: right;
|
||||
margin-right: 27px;
|
||||
}
|
||||
|
||||
.ws_toggle_advanced_fields {
|
||||
color: #6087CB;
|
||||
text-decoration: none;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
.ws_toggle_advanced_fields:visited, .ws_toggle_advanced_fields:active {
|
||||
color: #6087CB;
|
||||
}
|
||||
|
||||
.ws_toggle_advanced_fields:hover {
|
||||
color: #d54e21;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/************************************
|
||||
Menu flags
|
||||
*************************************/
|
||||
|
||||
.ws_flag_container {
|
||||
float: right;
|
||||
margin-right: 4px;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.ws_flag {
|
||||
display: block;
|
||||
float: right;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-left: 4px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
/* user-created items */
|
||||
.ws_custom_item_flag {
|
||||
background-image: url('../images/page_white_add.png');
|
||||
}
|
||||
|
||||
/* items not present in the default menu */
|
||||
.ws_missing_flag {
|
||||
background-image: url('../images/plugin_error.png');
|
||||
}
|
||||
|
||||
/* unused items - those that are in the default menu but not in the custom one */
|
||||
.ws_unused_flag {
|
||||
background-image: url('../images/plugin_add.png');
|
||||
}
|
||||
|
||||
/* hidden items */
|
||||
.ws_hidden_flag {
|
||||
background-image: url('../images/plugin_disabled.png');
|
||||
}
|
||||
|
||||
/* These classes could be used to apply different styles to items depending on their flags */
|
||||
.ws_missing { }
|
||||
.ws_custom_item { }
|
||||
.ws_hidden { }
|
||||
.ws_unused { }
|
||||
|
||||
|
||||
/************************************
|
||||
Toolbars
|
||||
*************************************/
|
||||
|
||||
.ws_toolbar {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.ws_button_container {
|
||||
padding-left: 6px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.ws_button {
|
||||
display: block;
|
||||
margin-right: 3px;
|
||||
padding: 4px;
|
||||
border: 1px solid #c0c0e0;
|
||||
float: left;
|
||||
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
a.ws_button:hover {
|
||||
background-color: #d0e0ff;
|
||||
border-color: #9090c0;
|
||||
}
|
||||
|
||||
.ws_separator {
|
||||
float: left;
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
/************************************
|
||||
Capability selector
|
||||
*************************************/
|
||||
|
||||
#wpbody select.ws_dropdown {
|
||||
width: 252px;
|
||||
height: 20em;
|
||||
|
||||
z-index: 1002;
|
||||
position: absolute;
|
||||
display: none;
|
||||
|
||||
font-family : "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#wpbody select.ws_dropdown option {
|
||||
font-family : "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
|
||||
font-size: 12px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#wpbody select.ws_dropdown optgroup option {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/************************************
|
||||
Export and import
|
||||
*************************************/
|
||||
|
||||
#export_dialog, #import_dialog {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ui-widget-overlay {
|
||||
background-color: black;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
opacity: 0.70;
|
||||
-moz-opacity: 0.70;
|
||||
filter: alpha(opacity=70);
|
||||
}
|
||||
|
||||
.ui-dialog {
|
||||
background: white;
|
||||
border: 1px solid #c0c0c0;
|
||||
|
||||
padding: 2px;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
.ui-dialog-titlebar {
|
||||
display: block;
|
||||
height: 22px;
|
||||
margin: 0;
|
||||
padding: 4px 4px 4px 8px;
|
||||
|
||||
background-color: #86A7E3;
|
||||
font-size: 1.0em;
|
||||
line-height: 22px;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
.ui-dialog-title {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ui-dialog-titlebar-close {
|
||||
background-image: url(../images/x.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-color: #86A7E3;
|
||||
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
display: block;
|
||||
float: right;
|
||||
color: white;
|
||||
|
||||
border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
}
|
||||
|
||||
.ui-dialog-titlebar-close:hover {
|
||||
/*background-image: url(../images/x-light.png);*/
|
||||
background-color: #a6c2f5;
|
||||
}
|
||||
|
||||
.ui-icon-closethick {
|
||||
|
||||
}
|
||||
|
||||
.ui-dialog-content {
|
||||
padding: 6px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.ws_dialog_panel {
|
||||
height: 84px;
|
||||
}
|
||||
|
||||
#export_dialog .ws_dialog_panel {
|
||||
height: 70px;
|
||||
}
|
||||
|
||||
.ws_dialog_buttons {
|
||||
height: 23px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.ws_dialog_buttons .button-primary {
|
||||
display: block;
|
||||
float: left;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.ws_dialog_buttons .button {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
#import_file_selector {
|
||||
display: block;
|
||||
width: 286px;
|
||||
|
||||
margin-top: 6px;
|
||||
margin-bottom: 12px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#ws_start_import {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#import_complete_notice {
|
||||
text-align: center;
|
||||
font-size: large;
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
/************************************
|
||||
Screen meta buttons
|
||||
*************************************/
|
||||
|
||||
/* All buttons */
|
||||
#ws-ame-feedback-widget-wrap,
|
||||
#ws-pro-version-notice {
|
||||
float: right;
|
||||
height: 22px;
|
||||
padding: 0;
|
||||
margin: 0 0 0 6px;
|
||||
font-family: sans-serif;
|
||||
|
||||
-moz-border-radius-bottomleft: 3px;
|
||||
-moz-border-radius-bottomright: 3px;
|
||||
-webkit-border-bottom-left-radius: 3px;
|
||||
-webkit-border-bottom-right-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
|
||||
background: #e3e3e3;
|
||||
|
||||
border-right: 1px solid transparent;
|
||||
border-left: 1px solid transparent;
|
||||
border-bottom: 1px solid transparent;
|
||||
background-image: -ms-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* IE10 */
|
||||
background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Firefox */
|
||||
background-image: -o-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Opera */
|
||||
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1)); /* old Webkit */
|
||||
background-image: -webkit-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* new Webkit */
|
||||
background-image: linear-gradient(bottom, #dfdfdf, #f1f1f1); /* proposed W3C Markup */
|
||||
}
|
||||
|
||||
#ws-ame-feedback-widget-wrap a.show-settings,
|
||||
#ws-pro-version-notice a.show-settings {
|
||||
background-image: none;
|
||||
padding:0 6px 0 6px;
|
||||
}
|
||||
|
||||
/* "Upgrade to Pro" */
|
||||
#ws-pro-version-notice {
|
||||
background-color: #00C31F;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
||||
#ws-pro-version-notice a.show-settings {
|
||||
font-weight: bold;
|
||||
color: #DEFFD8;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#ws-pro-version-notice a.show-settings:hover {
|
||||
color: white;
|
||||
}
|
||||
|
After Width: | Height: | Size: 367 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/bullet_error.png
Normal file
|
After Width: | Height: | Size: 454 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/cut.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/delete.png
Normal file
|
After Width: | Height: | Size: 715 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/menu-arrows.png
Normal file
|
After Width: | Height: | Size: 400 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 603 B |
|
After Width: | Height: | Size: 522 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/plugin_add.png
Normal file
|
After Width: | Height: | Size: 691 B |
|
After Width: | Height: | Size: 347 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/plugin_error.png
Normal file
|
After Width: | Height: | Size: 702 B |
|
After Width: | Height: | Size: 487 B |
|
After Width: | Height: | Size: 506 B |
|
After Width: | Height: | Size: 509 B |
BIN
src/wp-content/plugins/admin-menu-editor/images/spinner.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/wp-content/plugins/admin-menu-editor/images/x-light.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/wp-content/plugins/admin-menu-editor/images/x.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
To install Admin Menu Editor as a global plugin in WPMU :
|
||||
1) Place the "admin-menu-editor" directory into your "mu-plugins" directory.
|
||||
2) Move this file, admin-menu-editor-mu.php, from the "admin-menu-editor" directory
|
||||
to your "mu-plugins" directory.
|
||||
|
||||
The resulting directory structure should look like this :
|
||||
|
||||
mu-plugins/
|
||||
admin-menu-editor-mu.php
|
||||
admin-menu-editor/
|
||||
menu-editor.php
|
||||
menu-editor-core.php
|
||||
...and other Admin Menu Editor files
|
||||
|
||||
**/
|
||||
|
||||
//Load the plugin
|
||||
$ws_menu_editor_filename = dirname(__FILE__) . '/admin-menu-editor/menu-editor.php';
|
||||
$ws_menu_editor_pro_filename = dirname(__FILE__) . '/admin-menu-editor-pro/menu-editor.php';
|
||||
if ( file_exists($ws_menu_editor_filename) ) {
|
||||
require $ws_menu_editor_filename;
|
||||
} elseif ( file_exists($ws_menu_editor_pro_filename) ) {
|
||||
require $ws_menu_editor_pro_filename;
|
||||
} else {
|
||||
add_action('admin_notices', 'ws_ame_installation_error');
|
||||
}
|
||||
|
||||
function ws_ame_installation_error(){
|
||||
if ( !is_site_admin() ) return;
|
||||
?>
|
||||
<div class="error fade"><p>
|
||||
<strong>Admin Menu Editor is installed incorrectly!</strong>
|
||||
</p>
|
||||
<p>
|
||||
Please copy the entire <code>admin-menu-directory</code> directory to your <code>mu-plugins</code>
|
||||
directory, then move only the admin-menu-editor-mu.php file from
|
||||
<code>admin-menu-editor/includes</code> to <code>mu-plugins</code>.
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,356 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author W-Shadow
|
||||
* @copyright 2008-2011
|
||||
*/
|
||||
|
||||
//Make sure the needed constants are defined
|
||||
if ( ! defined( 'WP_CONTENT_URL' ) )
|
||||
define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' );
|
||||
if ( ! defined( 'WP_CONTENT_DIR' ) )
|
||||
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
||||
if ( ! defined( 'WP_PLUGIN_URL' ) )
|
||||
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
|
||||
if ( ! defined( 'WP_PLUGIN_DIR' ) )
|
||||
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
|
||||
|
||||
|
||||
//Load JSON functions for PHP < 5.2
|
||||
if ( !(function_exists('json_encode') && function_exists('json_decode')) && !(class_exists('Services_JSON') || class_exists('Moxiecode_JSON')) ){
|
||||
$class_json_path = ABSPATH.WPINC.'/class-json.php';
|
||||
$class_moxiecode_json_path = ABSPATH.WPINC.'/js/tinymce/plugins/spellchecker/classes/utils/JSON.php';
|
||||
if ( file_exists($class_json_path) ){
|
||||
require $class_json_path;
|
||||
} elseif ( file_exists($class_moxiecode_json_path) ) {
|
||||
require $class_moxiecode_json_path;
|
||||
}
|
||||
}
|
||||
|
||||
class MenuEd_ShadowPluginFramework {
|
||||
public static $framework_version = '0.4.1';
|
||||
|
||||
public $is_mu_plugin = null; //True if installed in the mu-plugins directory, false otherwise
|
||||
|
||||
protected $options = array();
|
||||
public $option_name = ''; //should be set or overriden by the plugin
|
||||
protected $defaults = array(); //should be set or overriden by the plugin
|
||||
protected $sitewide_options = false; //WPMU only : save the setting in a site-wide option
|
||||
protected $serialize_with_json = false; //Use the JSON format for option storage
|
||||
|
||||
public $plugin_file = ''; //Filename of the plugin.
|
||||
public $plugin_basename = ''; //Basename of the plugin, as returned by plugin_basename().
|
||||
public $plugin_dir_url = ''; //The URL of the plugin's folder
|
||||
|
||||
protected $magic_hooks = false; //Automagically set up hooks for all methods named "hook_[hookname]" .
|
||||
protected $magic_hook_priority = 10; //Priority for magically set hooks.
|
||||
|
||||
protected $settings_link = ''; //If set, this will be automatically added after "Deactivate"/"Edit".
|
||||
|
||||
/**
|
||||
* Class constructor. Populates some internal fields, then calls the plugin's own
|
||||
* intializer (if any).
|
||||
*
|
||||
* @param string $plugin_file Plugin's filename. Usuallly you can just use __FILE__.
|
||||
* @return void
|
||||
*/
|
||||
function __construct( $plugin_file = '', $option_name = null ){
|
||||
if ($plugin_file == ''){
|
||||
//Try to guess the name of the file that included this file.
|
||||
//Not implemented yet.
|
||||
}
|
||||
$this->option_name = $option_name;
|
||||
|
||||
if ( is_null($this->is_mu_plugin) )
|
||||
$this->is_mu_plugin = $this->is_in_wpmu_plugin_dir($plugin_file);
|
||||
|
||||
$this->plugin_file = $plugin_file;
|
||||
$this->plugin_basename = plugin_basename($this->plugin_file);
|
||||
|
||||
if ( $this->is_mu_plugin ){
|
||||
$this->plugin_dir_url = WPMU_PLUGIN_URL . '/' . dirname($this->plugin_basename);
|
||||
} else {
|
||||
$this->plugin_dir_url = WP_PLUGIN_URL . '/' . dirname($this->plugin_basename);
|
||||
}
|
||||
|
||||
/************************************
|
||||
Add the default hooks
|
||||
************************************/
|
||||
add_action('activate_'.$this->plugin_basename, array(&$this,'activate'));
|
||||
add_action('deactivate_'.$this->plugin_basename, array(&$this,'deactivate'));
|
||||
|
||||
$this->init(); //Call the plugin's init() function
|
||||
$this->init_finish(); //Complete initialization by loading settings, etc
|
||||
}
|
||||
|
||||
/**
|
||||
* Init the plugin. Should be overridden in a sub-class.
|
||||
* Called by the class constructor.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function init(){
|
||||
//Do nothing.
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize settings and set up magic hooks.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function init_finish(){
|
||||
/************************************
|
||||
Load settings
|
||||
************************************/
|
||||
//The provided $option_name overrides the default only if it is set to something useful
|
||||
if ( $this->option_name == '' ) {
|
||||
//Generate a unique name
|
||||
$this->option_name = 'plugin_'.md5($this->plugin_basename);
|
||||
}
|
||||
|
||||
//Do we need to load the plugin's settings?
|
||||
if ($this->option_name != null){
|
||||
$this->load_options();
|
||||
}
|
||||
|
||||
//Add a "Settings" action link
|
||||
if ($this->settings_link)
|
||||
add_filter('plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2);
|
||||
|
||||
if ($this->magic_hooks)
|
||||
$this->set_magic_hooks();
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the plugin's configuration.
|
||||
* Loads the specified option into $this->options, substituting defaults where necessary.
|
||||
*
|
||||
* @param string $option_name Optional. The slug of the option to load. If not set, the value of $this->option_name will be used instead.
|
||||
* @return boolean TRUE if options were loaded okay and FALSE otherwise.
|
||||
*/
|
||||
function load_options($option_name = null){
|
||||
if ( empty($option_name) ){
|
||||
$option_name = $this->option_name;
|
||||
}
|
||||
|
||||
if ( $this->sitewide_options ) {
|
||||
$this->options = get_site_option($option_name);
|
||||
} else {
|
||||
$this->options = get_option($option_name);
|
||||
}
|
||||
|
||||
if ( $this->serialize_with_json || is_string($this->options) ){
|
||||
$this->options = $this->json_decode($this->options, true);
|
||||
}
|
||||
|
||||
if(!is_array($this->options)){
|
||||
$this->options = $this->defaults;
|
||||
return false;
|
||||
} else {
|
||||
$this->options = array_merge($this->defaults, $this->options);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::save_options()
|
||||
* Saves the $options array to the database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function save_options(){
|
||||
if ($this->option_name) {
|
||||
$stored_options = $this->options;
|
||||
if ( $this->serialize_with_json ){
|
||||
$stored_options = $this->json_encode($stored_options);
|
||||
}
|
||||
|
||||
if ( $this->sitewide_options ) {
|
||||
update_site_option($this->option_name, $stored_options);
|
||||
} else {
|
||||
update_option($this->option_name, $stored_options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Backwards fompatible json_decode.
|
||||
*
|
||||
* @param string $data
|
||||
* @param bool $assoc Decode objects as associative arrays.
|
||||
* @return string
|
||||
*/
|
||||
function json_decode($data, $assoc=false){
|
||||
if ( function_exists('json_decode') ){
|
||||
return json_decode($data, $assoc);
|
||||
}
|
||||
if ( class_exists('Services_JSON') ){
|
||||
$flag = $assoc?SERVICES_JSON_LOOSE_TYPE:0;
|
||||
$json = new Services_JSON($flag);
|
||||
return( $json->decode($data) );
|
||||
} elseif ( class_exists('Moxiecode_JSON') ){
|
||||
$json = new Moxiecode_JSON();
|
||||
return $json->decode($data);
|
||||
} else {
|
||||
trigger_error('No JSON parser available', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Backwards fompatible json_encode.
|
||||
*
|
||||
* @param mixed $data
|
||||
* @return string
|
||||
*/
|
||||
function json_encode($data) {
|
||||
if ( function_exists('json_encode') ){
|
||||
return json_encode($data);
|
||||
}
|
||||
if ( class_exists('Services_JSON') ){
|
||||
$json = new Services_JSON();
|
||||
return( $json->encodeUnsafe($data) );
|
||||
} elseif ( class_exists('Moxiecode_JSON') ){
|
||||
$json = new Moxiecode_JSON();
|
||||
return $json->encode($data);
|
||||
} else {
|
||||
trigger_error('No JSON parser available', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::set_magic_hooks()
|
||||
* Automagically sets up hooks for all methods named "hook_[tag]". Uses the Reflection API.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function set_magic_hooks(){
|
||||
$class = new ReflectionClass(get_class($this));
|
||||
$methods = $class->getMethods();
|
||||
|
||||
foreach ($methods as $method){
|
||||
//Check if the method name starts with "hook_"
|
||||
if (strpos($method->name, 'hook_') === 0){
|
||||
//Get the hook's tag from the method name
|
||||
$hook = substr($method->name, 5);
|
||||
//Add the hook. Uses add_filter because add_action is simply a wrapper of the same.
|
||||
add_filter($hook, array(&$this, $method->name),
|
||||
$this->magic_hook_priority, $method->getNumberOfParameters());
|
||||
}
|
||||
}
|
||||
|
||||
unset($class);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::activate()
|
||||
* Stub function for the activation hook. Simply stores the default configuration.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function activate(){
|
||||
$this->save_options();
|
||||
}
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::deactivate()
|
||||
* Stub function for the deactivation hook. Does nothing.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function deactivate(){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::plugin_action_links()
|
||||
* Adds a "Settings" link to the plugin's action links. Default handler for the 'plugin_action_links' hook.
|
||||
*
|
||||
* @param array $links
|
||||
* @param string $file
|
||||
* @return array
|
||||
*/
|
||||
function plugin_action_links($links, $file) {
|
||||
if ($file == $this->plugin_basename)
|
||||
$links[] = "<a href='" . $this->settings_link . "'>" . __('Settings') . "</a>";
|
||||
return $links;
|
||||
}
|
||||
|
||||
/**
|
||||
* ShadowPluginFramework::uninstall()
|
||||
* Default uninstaller. Removes the plugins configuration record (if available).
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function uninstall(){
|
||||
if ($this->option_name)
|
||||
delete_option($this->option_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the specified file is inside the mu-plugins directory.
|
||||
*
|
||||
* @param string $filename The filename to check. Leave blank to use the current plugin's filename.
|
||||
* @return bool
|
||||
*/
|
||||
function is_in_wpmu_plugin_dir( $filename = '' ){
|
||||
if ( !defined('WPMU_PLUGIN_DIR') ) return false;
|
||||
|
||||
if ( empty($filename) ){
|
||||
$filename = $this->plugin_file;
|
||||
}
|
||||
|
||||
return (strpos( realpath($filename), realpath(WPMU_PLUGIN_DIR) ) !== false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the plugin is active for the entire network.
|
||||
* Will return true when the plugin is installed in /mu-plugins/ (WPMU, pre-3.0)
|
||||
* or has been activated via "Network Activate" (WP 3.0+).
|
||||
*
|
||||
* Blame the ridiculous blog/site/network confusion perpetrated by
|
||||
* the WP API for the silly name.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_super_plugin(){
|
||||
if ( is_null($this->is_mu_plugin) ){
|
||||
$this->is_mu_plugin = $this->is_in_wpmu_plugin_dir($this->plugin_file);
|
||||
}
|
||||
|
||||
if ( $this->is_mu_plugin ){
|
||||
return true;
|
||||
} else {
|
||||
return $this->is_plugin_active_for_network($this->plugin_basename);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the plugin is active for the entire network.
|
||||
*
|
||||
* Silly WP doesn't load the file that contains this native function until *after*
|
||||
* all plugins are loaded, so until then we use a copy-pasted version of the same.
|
||||
*
|
||||
* @param string $plugin
|
||||
* @return bool
|
||||
*/
|
||||
function is_plugin_active_for_network( $plugin ) {
|
||||
if ( function_exists('is_plugin_active_for_network') ){
|
||||
return is_plugin_active_for_network($plugin);
|
||||
}
|
||||
|
||||
if ( !is_multisite() )
|
||||
return false;
|
||||
|
||||
$plugins = get_site_option( 'active_sitewide_plugins');
|
||||
if ( isset($plugins[$plugin]) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
675
src/wp-content/plugins/admin-menu-editor/js/jquery.form.js
Normal file
@ -0,0 +1,675 @@
|
||||
/*!
|
||||
* jQuery Form Plugin
|
||||
* version: 2.43 (12-MAR-2010)
|
||||
* @requires jQuery v1.3.2 or later
|
||||
*
|
||||
* Examples and documentation at: http://malsup.com/jquery/form/
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
;(function($) {
|
||||
|
||||
/*
|
||||
Usage Note:
|
||||
-----------
|
||||
Do not use both ajaxSubmit and ajaxForm on the same form. These
|
||||
functions are intended to be exclusive. Use ajaxSubmit if you want
|
||||
to bind your own submit handler to the form. For example,
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#myForm').bind('submit', function() {
|
||||
$(this).ajaxSubmit({
|
||||
target: '#output'
|
||||
});
|
||||
return false; // <-- important!
|
||||
});
|
||||
});
|
||||
|
||||
Use ajaxForm when you want the plugin to manage all the event binding
|
||||
for you. For example,
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#myForm').ajaxForm({
|
||||
target: '#output'
|
||||
});
|
||||
});
|
||||
|
||||
When using ajaxForm, the ajaxSubmit function will be invoked for you
|
||||
at the appropriate time.
|
||||
*/
|
||||
|
||||
/**
|
||||
* ajaxSubmit() provides a mechanism for immediately submitting
|
||||
* an HTML form using AJAX.
|
||||
*/
|
||||
$.fn.ajaxSubmit = function(options) {
|
||||
// fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
|
||||
if (!this.length) {
|
||||
log('ajaxSubmit: skipping submit process - no element selected');
|
||||
return this;
|
||||
}
|
||||
|
||||
if (typeof options == 'function')
|
||||
options = { success: options };
|
||||
|
||||
var url = $.trim(this.attr('action'));
|
||||
if (url) {
|
||||
// clean url (don't include hash vaue)
|
||||
url = (url.match(/^([^#]+)/)||[])[1];
|
||||
}
|
||||
url = url || window.location.href || '';
|
||||
|
||||
options = $.extend({
|
||||
url: url,
|
||||
type: this.attr('method') || 'GET',
|
||||
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank'
|
||||
}, options || {});
|
||||
|
||||
// hook for manipulating the form data before it is extracted;
|
||||
// convenient for use with rich editors like tinyMCE or FCKEditor
|
||||
var veto = {};
|
||||
this.trigger('form-pre-serialize', [this, options, veto]);
|
||||
if (veto.veto) {
|
||||
log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
|
||||
return this;
|
||||
}
|
||||
|
||||
// provide opportunity to alter form data before it is serialized
|
||||
if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
|
||||
log('ajaxSubmit: submit aborted via beforeSerialize callback');
|
||||
return this;
|
||||
}
|
||||
|
||||
var a = this.formToArray(options.semantic);
|
||||
if (options.data) {
|
||||
options.extraData = options.data;
|
||||
for (var n in options.data) {
|
||||
if(options.data[n] instanceof Array) {
|
||||
for (var k in options.data[n])
|
||||
a.push( { name: n, value: options.data[n][k] } );
|
||||
}
|
||||
else
|
||||
a.push( { name: n, value: options.data[n] } );
|
||||
}
|
||||
}
|
||||
|
||||
// give pre-submit callback an opportunity to abort the submit
|
||||
if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
|
||||
log('ajaxSubmit: submit aborted via beforeSubmit callback');
|
||||
return this;
|
||||
}
|
||||
|
||||
// fire vetoable 'validate' event
|
||||
this.trigger('form-submit-validate', [a, this, options, veto]);
|
||||
if (veto.veto) {
|
||||
log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
|
||||
return this;
|
||||
}
|
||||
|
||||
var q = $.param(a);
|
||||
|
||||
if (options.type.toUpperCase() == 'GET') {
|
||||
options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
|
||||
options.data = null; // data is null for 'get'
|
||||
}
|
||||
else
|
||||
options.data = q; // data is the query string for 'post'
|
||||
|
||||
var $form = this, callbacks = [];
|
||||
if (options.resetForm) callbacks.push(function() { $form.resetForm(); });
|
||||
if (options.clearForm) callbacks.push(function() { $form.clearForm(); });
|
||||
|
||||
// perform a load on the target only if dataType is not provided
|
||||
if (!options.dataType && options.target) {
|
||||
var oldSuccess = options.success || function(){};
|
||||
callbacks.push(function(data) {
|
||||
var fn = options.replaceTarget ? 'replaceWith' : 'html';
|
||||
$(options.target)[fn](data).each(oldSuccess, arguments);
|
||||
});
|
||||
}
|
||||
else if (options.success)
|
||||
callbacks.push(options.success);
|
||||
|
||||
options.success = function(data, status, xhr) { // jQuery 1.4+ passes xhr as 3rd arg
|
||||
for (var i=0, max=callbacks.length; i < max; i++)
|
||||
callbacks[i].apply(options, [data, status, xhr || $form, $form]);
|
||||
};
|
||||
|
||||
// are there files to upload?
|
||||
var files = $('input:file', this).fieldValue();
|
||||
var found = false;
|
||||
for (var j=0; j < files.length; j++)
|
||||
if (files[j])
|
||||
found = true;
|
||||
|
||||
var multipart = false;
|
||||
// var mp = 'multipart/form-data';
|
||||
// multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
|
||||
|
||||
// options.iframe allows user to force iframe mode
|
||||
// 06-NOV-09: now defaulting to iframe mode if file input is detected
|
||||
if ((files.length && options.iframe !== false) || options.iframe || found || multipart) {
|
||||
// hack to fix Safari hang (thanks to Tim Molendijk for this)
|
||||
// see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
|
||||
if (options.closeKeepAlive)
|
||||
$.get(options.closeKeepAlive, fileUpload);
|
||||
else
|
||||
fileUpload();
|
||||
}
|
||||
else
|
||||
$.ajax(options);
|
||||
|
||||
// fire 'notify' event
|
||||
this.trigger('form-submit-notify', [this, options]);
|
||||
return this;
|
||||
|
||||
|
||||
// private function for handling file uploads (hat tip to YAHOO!)
|
||||
function fileUpload() {
|
||||
var form = $form[0];
|
||||
|
||||
if ($(':input[name=submit]', form).length) {
|
||||
alert('Error: Form elements must not be named "submit".');
|
||||
return;
|
||||
}
|
||||
|
||||
var opts = $.extend({}, $.ajaxSettings, options);
|
||||
var s = $.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);
|
||||
|
||||
var id = 'jqFormIO' + (new Date().getTime());
|
||||
var $io = $('<iframe id="' + id + '" name="' + id + '" src="'+ opts.iframeSrc +'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />');
|
||||
var io = $io[0];
|
||||
|
||||
$io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
|
||||
|
||||
var xhr = { // mock object
|
||||
aborted: 0,
|
||||
responseText: null,
|
||||
responseXML: null,
|
||||
status: 0,
|
||||
statusText: 'n/a',
|
||||
getAllResponseHeaders: function() {},
|
||||
getResponseHeader: function() {},
|
||||
setRequestHeader: function() {},
|
||||
abort: function() {
|
||||
this.aborted = 1;
|
||||
$io.attr('src', opts.iframeSrc); // abort op in progress
|
||||
}
|
||||
};
|
||||
|
||||
var g = opts.global;
|
||||
// trigger ajax global events so that activity/block indicators work like normal
|
||||
if (g && ! $.active++) $.event.trigger("ajaxStart");
|
||||
if (g) $.event.trigger("ajaxSend", [xhr, opts]);
|
||||
|
||||
if (s.beforeSend && s.beforeSend(xhr, s) === false) {
|
||||
s.global && $.active--;
|
||||
return;
|
||||
}
|
||||
if (xhr.aborted)
|
||||
return;
|
||||
|
||||
var cbInvoked = false;
|
||||
var timedOut = 0;
|
||||
|
||||
// add submitting element to data if we know it
|
||||
var sub = form.clk;
|
||||
if (sub) {
|
||||
var n = sub.name;
|
||||
if (n && !sub.disabled) {
|
||||
opts.extraData = opts.extraData || {};
|
||||
opts.extraData[n] = sub.value;
|
||||
if (sub.type == "image") {
|
||||
opts.extraData[n+'.x'] = form.clk_x;
|
||||
opts.extraData[n+'.y'] = form.clk_y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// take a breath so that pending repaints get some cpu time before the upload starts
|
||||
function doSubmit() {
|
||||
// make sure form attrs are set
|
||||
var t = $form.attr('target'), a = $form.attr('action');
|
||||
|
||||
// update form attrs in IE friendly way
|
||||
form.setAttribute('target',id);
|
||||
if (form.getAttribute('method') != 'POST')
|
||||
form.setAttribute('method', 'POST');
|
||||
if (form.getAttribute('action') != opts.url)
|
||||
form.setAttribute('action', opts.url);
|
||||
|
||||
// ie borks in some cases when setting encoding
|
||||
if (! opts.skipEncodingOverride) {
|
||||
$form.attr({
|
||||
encoding: 'multipart/form-data',
|
||||
enctype: 'multipart/form-data'
|
||||
});
|
||||
}
|
||||
|
||||
// support timout
|
||||
if (opts.timeout)
|
||||
setTimeout(function() { timedOut = true; cb(); }, opts.timeout);
|
||||
|
||||
// add "extra" data to form if provided in options
|
||||
var extraInputs = [];
|
||||
try {
|
||||
if (opts.extraData)
|
||||
for (var n in opts.extraData)
|
||||
extraInputs.push(
|
||||
$('<input type="hidden" name="'+n+'" value="'+opts.extraData[n]+'" />')
|
||||
.appendTo(form)[0]);
|
||||
|
||||
// add iframe to doc and submit the form
|
||||
$io.appendTo('body');
|
||||
$io.data('form-plugin-onload', cb);
|
||||
form.submit();
|
||||
}
|
||||
finally {
|
||||
// reset attrs and remove "extra" input elements
|
||||
form.setAttribute('action',a);
|
||||
t ? form.setAttribute('target', t) : $form.removeAttr('target');
|
||||
$(extraInputs).remove();
|
||||
}
|
||||
};
|
||||
|
||||
if (opts.forceSync)
|
||||
doSubmit();
|
||||
else
|
||||
setTimeout(doSubmit, 10); // this lets dom updates render
|
||||
|
||||
var domCheckCount = 100;
|
||||
|
||||
function cb() {
|
||||
if (cbInvoked)
|
||||
return;
|
||||
|
||||
var ok = true;
|
||||
try {
|
||||
if (timedOut) throw 'timeout';
|
||||
// extract the server response from the iframe
|
||||
var data, doc;
|
||||
|
||||
doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
|
||||
|
||||
var isXml = opts.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
|
||||
log('isXml='+isXml);
|
||||
if (!isXml && (doc.body == null || doc.body.innerHTML == '')) {
|
||||
if (--domCheckCount) {
|
||||
// in some browsers (Opera) the iframe DOM is not always traversable when
|
||||
// the onload callback fires, so we loop a bit to accommodate
|
||||
log('requeing onLoad callback, DOM not available');
|
||||
setTimeout(cb, 250);
|
||||
return;
|
||||
}
|
||||
log('Could not access iframe DOM after 100 tries.');
|
||||
return;
|
||||
}
|
||||
|
||||
log('response detected');
|
||||
cbInvoked = true;
|
||||
xhr.responseText = doc.body ? doc.body.innerHTML : null;
|
||||
xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
|
||||
xhr.getResponseHeader = function(header){
|
||||
var headers = {'content-type': opts.dataType};
|
||||
return headers[header];
|
||||
};
|
||||
|
||||
if (opts.dataType == 'json' || opts.dataType == 'script') {
|
||||
// see if user embedded response in textarea
|
||||
var ta = doc.getElementsByTagName('textarea')[0];
|
||||
if (ta)
|
||||
xhr.responseText = ta.value;
|
||||
else {
|
||||
// account for browsers injecting pre around json response
|
||||
var pre = doc.getElementsByTagName('pre')[0];
|
||||
if (pre)
|
||||
xhr.responseText = pre.innerHTML;
|
||||
}
|
||||
}
|
||||
else if (opts.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
|
||||
xhr.responseXML = toXml(xhr.responseText);
|
||||
}
|
||||
data = $.httpData(xhr, opts.dataType);
|
||||
}
|
||||
catch(e){
|
||||
log('error caught:',e);
|
||||
ok = false;
|
||||
xhr.error = e;
|
||||
$.handleError(opts, xhr, 'error', e);
|
||||
}
|
||||
|
||||
// ordering of these callbacks/triggers is odd, but that's how $.ajax does it
|
||||
if (ok) {
|
||||
opts.success(data, 'success');
|
||||
if (g) $.event.trigger("ajaxSuccess", [xhr, opts]);
|
||||
}
|
||||
if (g) $.event.trigger("ajaxComplete", [xhr, opts]);
|
||||
if (g && ! --$.active) $.event.trigger("ajaxStop");
|
||||
if (opts.complete) opts.complete(xhr, ok ? 'success' : 'error');
|
||||
|
||||
// clean up
|
||||
setTimeout(function() {
|
||||
$io.removeData('form-plugin-onload');
|
||||
$io.remove();
|
||||
xhr.responseXML = null;
|
||||
}, 100);
|
||||
};
|
||||
|
||||
function toXml(s, doc) {
|
||||
if (window.ActiveXObject) {
|
||||
doc = new ActiveXObject('Microsoft.XMLDOM');
|
||||
doc.async = 'false';
|
||||
doc.loadXML(s);
|
||||
}
|
||||
else
|
||||
doc = (new DOMParser()).parseFromString(s, 'text/xml');
|
||||
return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* ajaxForm() provides a mechanism for fully automating form submission.
|
||||
*
|
||||
* The advantages of using this method instead of ajaxSubmit() are:
|
||||
*
|
||||
* 1: This method will include coordinates for <input type="image" /> elements (if the element
|
||||
* is used to submit the form).
|
||||
* 2. This method will include the submit element's name/value data (for the element that was
|
||||
* used to submit the form).
|
||||
* 3. This method binds the submit() method to the form for you.
|
||||
*
|
||||
* The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely
|
||||
* passes the options argument along after properly binding events for submit elements and
|
||||
* the form itself.
|
||||
*/
|
||||
$.fn.ajaxForm = function(options) {
|
||||
return this.ajaxFormUnbind().bind('submit.form-plugin', function(e) {
|
||||
e.preventDefault();
|
||||
$(this).ajaxSubmit(options);
|
||||
}).bind('click.form-plugin', function(e) {
|
||||
var target = e.target;
|
||||
var $el = $(target);
|
||||
if (!($el.is(":submit,input:image"))) {
|
||||
// is this a child element of the submit el? (ex: a span within a button)
|
||||
var t = $el.closest(':submit');
|
||||
if (t.length == 0)
|
||||
return;
|
||||
target = t[0];
|
||||
}
|
||||
var form = this;
|
||||
form.clk = target;
|
||||
if (target.type == 'image') {
|
||||
if (e.offsetX != undefined) {
|
||||
form.clk_x = e.offsetX;
|
||||
form.clk_y = e.offsetY;
|
||||
} else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
|
||||
var offset = $el.offset();
|
||||
form.clk_x = e.pageX - offset.left;
|
||||
form.clk_y = e.pageY - offset.top;
|
||||
} else {
|
||||
form.clk_x = e.pageX - target.offsetLeft;
|
||||
form.clk_y = e.pageY - target.offsetTop;
|
||||
}
|
||||
}
|
||||
// clear form vars
|
||||
setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 100);
|
||||
});
|
||||
};
|
||||
|
||||
// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
|
||||
$.fn.ajaxFormUnbind = function() {
|
||||
return this.unbind('submit.form-plugin click.form-plugin');
|
||||
};
|
||||
|
||||
/**
|
||||
* formToArray() gathers form element data into an array of objects that can
|
||||
* be passed to any of the following ajax functions: $.get, $.post, or load.
|
||||
* Each object in the array has both a 'name' and 'value' property. An example of
|
||||
* an array for a simple login form might be:
|
||||
*
|
||||
* [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
|
||||
*
|
||||
* It is this array that is passed to pre-submit callback functions provided to the
|
||||
* ajaxSubmit() and ajaxForm() methods.
|
||||
*/
|
||||
$.fn.formToArray = function(semantic) {
|
||||
var a = [];
|
||||
if (this.length == 0) return a;
|
||||
|
||||
var form = this[0];
|
||||
var els = semantic ? form.getElementsByTagName('*') : form.elements;
|
||||
if (!els) return a;
|
||||
for(var i=0, max=els.length; i < max; i++) {
|
||||
var el = els[i];
|
||||
var n = el.name;
|
||||
if (!n) continue;
|
||||
|
||||
if (semantic && form.clk && el.type == "image") {
|
||||
// handle image inputs on the fly when semantic == true
|
||||
if(!el.disabled && form.clk == el) {
|
||||
a.push({name: n, value: $(el).val()});
|
||||
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
var v = $.fieldValue(el, true);
|
||||
if (v && v.constructor == Array) {
|
||||
for(var j=0, jmax=v.length; j < jmax; j++)
|
||||
a.push({name: n, value: v[j]});
|
||||
}
|
||||
else if (v !== null && typeof v != 'undefined')
|
||||
a.push({name: n, value: v});
|
||||
}
|
||||
|
||||
if (!semantic && form.clk) {
|
||||
// input type=='image' are not found in elements array! handle it here
|
||||
var $input = $(form.clk), input = $input[0], n = input.name;
|
||||
if (n && !input.disabled && input.type == 'image') {
|
||||
a.push({name: n, value: $input.val()});
|
||||
a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
|
||||
}
|
||||
}
|
||||
return a;
|
||||
};
|
||||
|
||||
/**
|
||||
* Serializes form data into a 'submittable' string. This method will return a string
|
||||
* in the format: name1=value1&name2=value2
|
||||
*/
|
||||
$.fn.formSerialize = function(semantic) {
|
||||
//hand off to jQuery.param for proper encoding
|
||||
return $.param(this.formToArray(semantic));
|
||||
};
|
||||
|
||||
/**
|
||||
* Serializes all field elements in the jQuery object into a query string.
|
||||
* This method will return a string in the format: name1=value1&name2=value2
|
||||
*/
|
||||
$.fn.fieldSerialize = function(successful) {
|
||||
var a = [];
|
||||
this.each(function() {
|
||||
var n = this.name;
|
||||
if (!n) return;
|
||||
var v = $.fieldValue(this, successful);
|
||||
if (v && v.constructor == Array) {
|
||||
for (var i=0,max=v.length; i < max; i++)
|
||||
a.push({name: n, value: v[i]});
|
||||
}
|
||||
else if (v !== null && typeof v != 'undefined')
|
||||
a.push({name: this.name, value: v});
|
||||
});
|
||||
//hand off to jQuery.param for proper encoding
|
||||
return $.param(a);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the value(s) of the element in the matched set. For example, consider the following form:
|
||||
*
|
||||
* <form><fieldset>
|
||||
* <input name="A" type="text" />
|
||||
* <input name="A" type="text" />
|
||||
* <input name="B" type="checkbox" value="B1" />
|
||||
* <input name="B" type="checkbox" value="B2"/>
|
||||
* <input name="C" type="radio" value="C1" />
|
||||
* <input name="C" type="radio" value="C2" />
|
||||
* </fieldset></form>
|
||||
*
|
||||
* var v = $(':text').fieldValue();
|
||||
* // if no values are entered into the text inputs
|
||||
* v == ['','']
|
||||
* // if values entered into the text inputs are 'foo' and 'bar'
|
||||
* v == ['foo','bar']
|
||||
*
|
||||
* var v = $(':checkbox').fieldValue();
|
||||
* // if neither checkbox is checked
|
||||
* v === undefined
|
||||
* // if both checkboxes are checked
|
||||
* v == ['B1', 'B2']
|
||||
*
|
||||
* var v = $(':radio').fieldValue();
|
||||
* // if neither radio is checked
|
||||
* v === undefined
|
||||
* // if first radio is checked
|
||||
* v == ['C1']
|
||||
*
|
||||
* The successful argument controls whether or not the field element must be 'successful'
|
||||
* (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
|
||||
* The default value of the successful argument is true. If this value is false the value(s)
|
||||
* for each element is returned.
|
||||
*
|
||||
* Note: This method *always* returns an array. If no valid value can be determined the
|
||||
* array will be empty, otherwise it will contain one or more values.
|
||||
*/
|
||||
$.fn.fieldValue = function(successful) {
|
||||
for (var val=[], i=0, max=this.length; i < max; i++) {
|
||||
var el = this[i];
|
||||
var v = $.fieldValue(el, successful);
|
||||
if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length))
|
||||
continue;
|
||||
v.constructor == Array ? $.merge(val, v) : val.push(v);
|
||||
}
|
||||
return val;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the value of the field element.
|
||||
*/
|
||||
$.fieldValue = function(el, successful) {
|
||||
var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
|
||||
if (typeof successful == 'undefined') successful = true;
|
||||
|
||||
if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
|
||||
(t == 'checkbox' || t == 'radio') && !el.checked ||
|
||||
(t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
|
||||
tag == 'select' && el.selectedIndex == -1))
|
||||
return null;
|
||||
|
||||
if (tag == 'select') {
|
||||
var index = el.selectedIndex;
|
||||
if (index < 0) return null;
|
||||
var a = [], ops = el.options;
|
||||
var one = (t == 'select-one');
|
||||
var max = (one ? index+1 : ops.length);
|
||||
for(var i=(one ? index : 0); i < max; i++) {
|
||||
var op = ops[i];
|
||||
if (op.selected) {
|
||||
var v = op.value;
|
||||
if (!v) // extra pain for IE...
|
||||
v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
|
||||
if (one) return v;
|
||||
a.push(v);
|
||||
}
|
||||
}
|
||||
return a;
|
||||
}
|
||||
return el.value;
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the form data. Takes the following actions on the form's input fields:
|
||||
* - input text fields will have their 'value' property set to the empty string
|
||||
* - select elements will have their 'selectedIndex' property set to -1
|
||||
* - checkbox and radio inputs will have their 'checked' property set to false
|
||||
* - inputs of type submit, button, reset, and hidden will *not* be effected
|
||||
* - button elements will *not* be effected
|
||||
*/
|
||||
$.fn.clearForm = function() {
|
||||
return this.each(function() {
|
||||
$('input,select,textarea', this).clearFields();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the selected form elements.
|
||||
*/
|
||||
$.fn.clearFields = $.fn.clearInputs = function() {
|
||||
return this.each(function() {
|
||||
var t = this.type, tag = this.tagName.toLowerCase();
|
||||
if (t == 'text' || t == 'password' || tag == 'textarea')
|
||||
this.value = '';
|
||||
else if (t == 'checkbox' || t == 'radio')
|
||||
this.checked = false;
|
||||
else if (tag == 'select')
|
||||
this.selectedIndex = -1;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Resets the form data. Causes all form elements to be reset to their original value.
|
||||
*/
|
||||
$.fn.resetForm = function() {
|
||||
return this.each(function() {
|
||||
// guard against an input with the name of 'reset'
|
||||
// note that IE reports the reset function as an 'object'
|
||||
if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType))
|
||||
this.reset();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Enables or disables any matching elements.
|
||||
*/
|
||||
$.fn.enable = function(b) {
|
||||
if (b == undefined) b = true;
|
||||
return this.each(function() {
|
||||
this.disabled = !b;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks/unchecks any matching checkboxes or radio buttons and
|
||||
* selects/deselects and matching option elements.
|
||||
*/
|
||||
$.fn.selected = function(select) {
|
||||
if (select == undefined) select = true;
|
||||
return this.each(function() {
|
||||
var t = this.type;
|
||||
if (t == 'checkbox' || t == 'radio')
|
||||
this.checked = select;
|
||||
else if (this.tagName.toLowerCase() == 'option') {
|
||||
var $sel = $(this).parent('select');
|
||||
if (select && $sel[0] && $sel[0].type == 'select-one') {
|
||||
// deselect all other options
|
||||
$sel.find('option').selected(false);
|
||||
}
|
||||
this.selected = select;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// helper fn for console logging
|
||||
// set $.fn.ajaxSubmit.debug to true to enable debug logging
|
||||
function log() {
|
||||
if ($.fn.ajaxSubmit.debug) {
|
||||
var msg = '[jquery.form] ' + Array.prototype.join.call(arguments,'');
|
||||
if (window.console && window.console.log)
|
||||
window.console.log(msg);
|
||||
else if (window.opera && window.opera.postError)
|
||||
window.opera.postError(msg);
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
156
src/wp-content/plugins/admin-menu-editor/js/jquery.json-1.3.js
Normal file
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* jQuery JSON Plugin
|
||||
* version: 1.0 (2008-04-17)
|
||||
*
|
||||
* This document is licensed as free software under the terms of the
|
||||
* MIT License: http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Brantley Harris technically wrote this plugin, but it is based somewhat
|
||||
* on the JSON.org website's http://www.json.org/json2.js, which proclaims:
|
||||
* "NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.", a sentiment that
|
||||
* I uphold. I really just cleaned it up.
|
||||
*
|
||||
* It is also based heavily on MochiKit's serializeJSON, which is
|
||||
* copywrited 2005 by Bob Ippolito.
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
function toIntegersAtLease(n)
|
||||
// Format integers to have at least two digits.
|
||||
{
|
||||
return n < 10 ? '0' + n : n;
|
||||
}
|
||||
|
||||
Date.prototype.toJSON = function(date)
|
||||
// Yes, it polutes the Date namespace, but we'll allow it here, as
|
||||
// it's damned usefull.
|
||||
{
|
||||
return this.getUTCFullYear() + '-' +
|
||||
toIntegersAtLease(this.getUTCMonth()) + '-' +
|
||||
toIntegersAtLease(this.getUTCDate());
|
||||
};
|
||||
|
||||
var escapeable = /["\\\x00-\x1f\x7f-\x9f]/g;
|
||||
var meta = { // table of character substitutions
|
||||
'\b': '\\b',
|
||||
'\t': '\\t',
|
||||
'\n': '\\n',
|
||||
'\f': '\\f',
|
||||
'\r': '\\r',
|
||||
'"' : '\\"',
|
||||
'\\': '\\\\'
|
||||
};
|
||||
|
||||
$.quoteString = function(string)
|
||||
// Places quotes around a string, inteligently.
|
||||
// If the string contains no control characters, no quote characters, and no
|
||||
// backslash characters, then we can safely slap some quotes around it.
|
||||
// Otherwise we must also replace the offending characters with safe escape
|
||||
// sequences.
|
||||
{
|
||||
if (escapeable.test(string))
|
||||
{
|
||||
return '"' + string.replace(escapeable, function (a)
|
||||
{
|
||||
var c = meta[a];
|
||||
if (typeof c === 'string') {
|
||||
return c;
|
||||
}
|
||||
c = a.charCodeAt();
|
||||
return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);
|
||||
}) + '"';
|
||||
}
|
||||
return '"' + string + '"';
|
||||
};
|
||||
|
||||
$.toJSON = function(o, compact)
|
||||
{
|
||||
var type = typeof(o);
|
||||
|
||||
if (type == "undefined")
|
||||
return "undefined";
|
||||
else if (type == "number" || type == "boolean")
|
||||
return o + "";
|
||||
else if (o === null)
|
||||
return "null";
|
||||
|
||||
// Is it a string?
|
||||
if (type == "string")
|
||||
{
|
||||
return $.quoteString(o);
|
||||
}
|
||||
|
||||
// Does it have a .toJSON function?
|
||||
if (type == "object" && typeof o.toJSON == "function")
|
||||
return o.toJSON(compact);
|
||||
|
||||
// Is it an array?
|
||||
if (type != "function" && typeof(o.length) == "number")
|
||||
{
|
||||
var ret = [];
|
||||
for (var i = 0; i < o.length; i++) {
|
||||
ret.push( $.toJSON(o[i], compact) );
|
||||
}
|
||||
if (compact)
|
||||
return "[" + ret.join(",") + "]";
|
||||
else
|
||||
return "[" + ret.join(", ") + "]";
|
||||
}
|
||||
|
||||
// If it's a function, we have to warn somebody!
|
||||
if (type == "function") {
|
||||
throw new TypeError("Unable to convert object of type 'function' to json.");
|
||||
}
|
||||
|
||||
// It's probably an object, then.
|
||||
var ret = [];
|
||||
for (var k in o) {
|
||||
var name;
|
||||
type = typeof(k);
|
||||
|
||||
if (type == "number")
|
||||
name = '"' + k + '"';
|
||||
else if (type == "string")
|
||||
name = $.quoteString(k);
|
||||
else
|
||||
continue; //skip non-string or number keys
|
||||
|
||||
var val = $.toJSON(o[k], compact);
|
||||
if (typeof(val) != "string") {
|
||||
// skip non-serializable values
|
||||
continue;
|
||||
}
|
||||
|
||||
if (compact)
|
||||
ret.push(name + ":" + val);
|
||||
else
|
||||
ret.push(name + ": " + val);
|
||||
}
|
||||
return "{" + ret.join(", ") + "}";
|
||||
};
|
||||
|
||||
$.compactJSON = function(o)
|
||||
{
|
||||
return $.toJSON(o, true);
|
||||
};
|
||||
|
||||
$.evalJSON = function(src)
|
||||
// Evals JSON that we know to be safe.
|
||||
{
|
||||
return eval("(" + src + ")");
|
||||
};
|
||||
|
||||
$.secureEvalJSON = function(src)
|
||||
// Evals JSON in a way that is *more* secure.
|
||||
{
|
||||
var filtered = src;
|
||||
filtered = filtered.replace(/\\["\\\/bfnrtu]/g, '@');
|
||||
filtered = filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']');
|
||||
filtered = filtered.replace(/(?:^|:|,)(?:\s*\[)+/g, '');
|
||||
|
||||
if (/^[\],:{}\s]*$/.test(filtered))
|
||||
return eval("(" + src + ")");
|
||||
else
|
||||
throw new SyntaxError("Error parsing JSON, source is not valid.");
|
||||
};
|
||||
})(jQuery);
|
||||
65
src/wp-content/plugins/admin-menu-editor/js/jquery.sort.js
Normal file
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* jQuery.fn.sort
|
||||
* --------------
|
||||
* @param Function comparator:
|
||||
* Exactly the same behaviour as [1,2,3].sort(comparator)
|
||||
*
|
||||
* @param Function getSortable
|
||||
* A function that should return the element that is
|
||||
* to be sorted. The comparator will run on the
|
||||
* current collection, but you may want the actual
|
||||
* resulting sort to occur on a parent or another
|
||||
* associated element.
|
||||
*
|
||||
* E.g. $('td').sort(comparator, function(){
|
||||
* return this.parentNode;
|
||||
* })
|
||||
*
|
||||
* The <td>'s parent (<tr>) will be sorted instead
|
||||
* of the <td> itself.
|
||||
*/
|
||||
jQuery.fn.sort = (function(){
|
||||
|
||||
var sort = [].sort;
|
||||
|
||||
return function(comparator, getSortable) {
|
||||
|
||||
getSortable = getSortable || function(){return this;};
|
||||
|
||||
var placements = this.map(function(){
|
||||
|
||||
var sortElement = getSortable.call(this),
|
||||
parentNode = sortElement.parentNode,
|
||||
|
||||
// Since the element itself will change position, we have
|
||||
// to have some way of storing its original position in
|
||||
// the DOM. The easiest way is to have a 'flag' node:
|
||||
nextSibling = parentNode.insertBefore(
|
||||
document.createTextNode(''),
|
||||
sortElement.nextSibling
|
||||
);
|
||||
|
||||
return function() {
|
||||
|
||||
if (parentNode === this) {
|
||||
throw new Error(
|
||||
"You can't sort elements if any one is a descendant of another."
|
||||
);
|
||||
}
|
||||
|
||||
// Insert before flag:
|
||||
parentNode.insertBefore(this, nextSibling);
|
||||
// Remove flag:
|
||||
parentNode.removeChild(nextSibling);
|
||||
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
return sort.call(this, comparator).each(function(i){
|
||||
placements[i].call(getSortable.call(this));
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})();
|
||||
1464
src/wp-content/plugins/admin-menu-editor/js/menu-editor.js
Normal file
19
src/wp-content/plugins/admin-menu-editor/menu-editor.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: Admin Menu Editor
|
||||
Plugin URI: http://w-shadow.com/blog/2008/12/20/admin-menu-editor-for-wordpress/
|
||||
Description: Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
|
||||
Version: 1.1.5
|
||||
Author: Janis Elsts
|
||||
Author URI: http://w-shadow.com/blog/
|
||||
*/
|
||||
|
||||
//Are we running in the Dashboard?
|
||||
if ( is_admin() ) {
|
||||
|
||||
//Load the plugin
|
||||
require 'includes/menu-editor-core.php';
|
||||
$wp_menu_editor = new WPMenuEditor(__FILE__, 'ws_menu_editor');
|
||||
|
||||
}//is_admin()
|
||||
?>
|
||||
134
src/wp-content/plugins/admin-menu-editor/readme.txt
Normal file
@ -0,0 +1,134 @@
|
||||
=== Admin Menu Editor ===
|
||||
Contributors: whiteshadow
|
||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A6P9S6CE3SRSW
|
||||
Tags: admin, dashboard, menu, security, wpmu
|
||||
Requires at least: 3.0
|
||||
Tested up to: 3.2.1
|
||||
Stable tag: 1.1.5
|
||||
|
||||
Lets you directly edit the WordPress admin menu. You can re-order, hide or rename existing menus, add custom menus and more.
|
||||
|
||||
== Description ==
|
||||
Admin Menu Editor lets you manually edit the Dashboard menu. You can reorder the menus, show/hide specific items, change access rights, and more.
|
||||
|
||||
**Features**
|
||||
|
||||
* Edit any existing menu - change the title, access rights, menu icon and so on.
|
||||
* Sort menu items via drag & drop.
|
||||
* Move a menu item to a different submenu via cut & paste.
|
||||
* Hide/show any menu or menu item. A hidden menu is invisible to all users, including administrators.
|
||||
* Create custom menus that point to any part of the Dashboard or an external URL.
|
||||
|
||||
The [Pro version](http://wpplugins.com/plugin/146/admin-menu-editor-pro) of the plugin lets you also import/export menu configurations, make menu items open in a new window, and use [shortcodes](http://wpplugins.com/plugin/146/admin-menu-editor-pro?view=notes) in the Dashboard menu.
|
||||
|
||||
[Suggest new features and improvements here](http://feedback.w-shadow.com/forums/58572-admin-menu-editor)
|
||||
|
||||
**Notes**
|
||||
|
||||
* If you delete any of the default menus they will reappear after saving. This is by design. To get rid of a menu for good, either hide it or set it's access rights to a higher level.
|
||||
* If one of your menu items is only visible in the editor but not the Dashboard menu itself, make sure its "Custom" checkbox is ticked. The plugin will usually do this for you when you create a new menu.
|
||||
* You can't lower a menu's required access rights, but you can change them to be more restrictive.
|
||||
* In case of emergency, you can reset the menu configuration back to the default by going to http://example.com/wp-admin/?reset\_admin\_menu=1
|
||||
|
||||
== Installation ==
|
||||
|
||||
**Normal installation**
|
||||
|
||||
1. Download the admin-menu-editor.zip file to your computer.
|
||||
1. Unzip the file.
|
||||
1. Upload the `admin-menu-editor` directory to your `/wp-content/plugins/` directory.
|
||||
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
||||
|
||||
That's it. You can access the the menu editor by going to *Settings -> Menu Editor*. The plugin will automatically load your current menu configuration the first time you run it.
|
||||
|
||||
**WP MultiSite installation**
|
||||
|
||||
If you have WordPress set up in multisite ("Network") mode, you can also install Admin Menu Editor as a global plugin. This will enable you to edit the Dashboard menu for all sites and users at once.
|
||||
|
||||
1. Download the admin-menu-editor.zip file to your computer.
|
||||
1. Unzip the file.
|
||||
1. Create a new directory named `mu-plugins` in your site's `wp-content` directory (unless it already exists).
|
||||
1. Upload the `admin-menu-editor` directory to `/wp-content/mu-plugins/`.
|
||||
1. Move `admin-menu-editor-mu.php` from `admin-menu-editor/includes` to `/wp-content/mu-plugins/`.
|
||||
|
||||
Plugins installed in the `mu-plugins` directory are treated as "always on", so you don't need to explicitly activate the menu editor. Just go to *Settings -> Menu Editor* and start customizing your admin menu :)
|
||||
|
||||
*Notes*
|
||||
* Instead of installing Admin Menu Editor in `mu-plugins`, you can also install it normally and then activate it globally via "Network Activate". However, this will make the plugin visible to normal users when it is inactive (e.g. during upgrades).
|
||||
* When Admin Menu Editor is installed in `mu-plugins` or activated via "Network Activate", only the "super admin" user can access the menu editor page. Other users will see the customized Dashboard menu, but be unable to edit it.
|
||||
* It is currently not possible to install Admin Menu Editor as both a normal and global plugin on the same site.
|
||||
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.1.4 =
|
||||
* Fixed the updater's cron hook not being removed when the plugin is deactivated.
|
||||
* Fixed updates not showing up in some situations.
|
||||
* Fixed the "Feedback" button not responding to mouse clicks in some browsers.
|
||||
* Fixed "Feedback" button style to be consistent with other WP screen meta buttons.
|
||||
* Enforce the custom menu order by using the 'menu_order' filter. Fixes Jetpack menu not staying put.
|
||||
* You can now copy/paste as many menu separators as you like without worrying about some of them mysteriously disappearing on save.
|
||||
* Fixed a long-standing copying related bug where copied menus would all still refer to the same JS object instance.
|
||||
* Added ALT attributes to the toolbar icon images.
|
||||
* Removed the "Custom" checkbox. In retrospect, all it did was confuse people.
|
||||
* Made it impossible to edit separator properties.
|
||||
* Removed the deprecated "level_X" capabilities from the "Required capability" dropdown. You can still type them in manually if you want.
|
||||
|
||||
= 1.1.3 =
|
||||
* Tests for WordPress 3.2 compatibility.
|
||||
|
||||
= 1.1.2 =
|
||||
* Fixed a "failed to decode input" error that could show up when saving the menu.
|
||||
|
||||
= 1.1.1 =
|
||||
* WordPress 3.1.3 compatibility. Should also be compatible with the upcoming 3.2.
|
||||
* Fixed spurious slashes sometimes showing up in menus.
|
||||
* Fixed a fatal error concerning "Services_JSON".
|
||||
|
||||
= 1.1 =
|
||||
* WordPress 3.1 compatibility.
|
||||
* Added the ability to drag & drop a menu item to a different menu.
|
||||
* Added a drop-down list of Dashboard pages to the "File" box.
|
||||
* When the menu editor is opened, the first top-level menu is now automatically selected and it's submenu displayed. Hopefully, this will make the UI slightly easier to understand for first-time users.
|
||||
* All corners rounded on the "expand" link when not expanded.
|
||||
* By popular request, the "Menu Editor" menu entry can be hidden again.
|
||||
|
||||
= 1.0.1 =
|
||||
* Added "Super Admin" to the "Required capability" dropdown.
|
||||
* Prevent users from accidentally making the menu editor inaccessible.
|
||||
* WordPress 3.0.1 compatibility made official.
|
||||
|
||||
= 1.0 =
|
||||
* Added a "Feedback" link.
|
||||
* Added a dropdown list of all roles and capabilities to the menu editor.
|
||||
* Added toolbar buttons for sorting menu items alphabetically.
|
||||
* New "Add separator" button.
|
||||
* New separator graphics.
|
||||
* Minimum requirements upped to WP 3.0.
|
||||
* Compatibility with WP 3.0 MultiSite mode.
|
||||
* Plugin pages moved to different menus no longer stop working.
|
||||
* Fixed moved pages not having a window title.
|
||||
* Hide advanced menu fields by default (can be turned off in Screen Options).
|
||||
* Changed a lot of UI text to be a bit more intuitive.
|
||||
* In emergencies, administrators can now reset the custom menu by going to http://example.com/wp-admin/?reset\_admin\_menu=1
|
||||
* Fixed the "Donate" link in readme.txt
|
||||
* Unbundle the JSON.php JSON parser/encoder and use the built-in class-json.php instead.
|
||||
* Use the native JSON decoding routine if it's available.
|
||||
* Replaced the cryptic "Cannot redeclare whatever" activation error message with a more useful one.
|
||||
|
||||
= 0.2 =
|
||||
* Provisional WPMU support.
|
||||
* Missing and unused menu items now get different icons in the menu editor.
|
||||
* Fixed some visual glitches.
|
||||
* Items that are not present in the default menu will only be included in the generated menu if their "Custom" flag is set. Makes perfect sense, eh? The takeaway is that you should tick the "Custom" checkbox for the menus you have created manually if you want them to show up.
|
||||
* You no longer need to manually reload the page to see the changes you made to the menu. Just clicking "Save Changes" is enough.
|
||||
* Added tooltips to the small flag icons that indicate that a particular menu item is hidden, user-created or otherwise special.
|
||||
* Updated the readme.txt
|
||||
|
||||
= 0.1.6 =
|
||||
* Fixed a conflict with All In One SEO Pack 1.6.10. It was caused by that plugin adding invisible sub-menus to a non-existent top-level menu.
|
||||
|
||||
= 0.1.5 =
|
||||
* First release on wordpress.org
|
||||
* Moved all images into a separate directory.
|
||||
* Added a readme.txt
|
||||
20
src/wp-content/plugins/admin-menu-editor/uninstall.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author W-Shadow
|
||||
* @copyright 2009
|
||||
*
|
||||
* The uninstallation script.
|
||||
*/
|
||||
|
||||
if( defined( 'ABSPATH') && defined('WP_UNINSTALL_PLUGIN') ) {
|
||||
|
||||
//Remove the plugin's settings
|
||||
delete_option('ws_menu_editor');
|
||||
if ( function_exists('delete_site_option') ){
|
||||
delete_site_option('ws_menu_editor');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
1055
src/wp-content/plugins/gravityforms/change_log.txt
Normal file
2807
src/wp-content/plugins/gravityforms/common.php
Normal file
564
src/wp-content/plugins/gravityforms/css/admin.css
Normal file
@ -0,0 +1,564 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
admin.css
|
||||
Gravity Forms Administration Form Styles
|
||||
http://www.gravityforms.com
|
||||
updated: May 18, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE!
|
||||
THIS FILE IS REPLACED DURING AUTO UPGRADE
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN.
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
:focus {outline:0}
|
||||
input,
|
||||
textarea {outline-style:none; font-size:12px; font-family:verdana,sans-serif; padding:2px 0}
|
||||
ul {margin:0}
|
||||
li {list-style:none}
|
||||
#wpbody-content {position:relative; width:99%}
|
||||
.wrap.gforms_edit_form {margin-bottom:20px!important; overflow: visible!important}
|
||||
ul#gform_fields {padding:0; margin:0}
|
||||
select {font-size:12px!important; font-family:verdana,sans-serif; padding:2px 0}
|
||||
table.xwidefat {width:99%!important}
|
||||
div.wrap {position: relative}
|
||||
.hr-divider {background-color:#fff; height:1px; overflow:hidden; border-top:1px solid #E6E6E6; border-bottom:1px solid #fff; margin:24px 0; clear:both}
|
||||
div.delete-alert {padding:0 0 20px 20px; margin-bottom:30px;}
|
||||
div.gforms_help_alert {background-color:#FFFFE0; border:1px solid #E6DB55; padding:10px; margin:10px 0}
|
||||
div.gforms_helpbox {border:1px solid #C2D7EF; background-color:#E2EDFF; margin:10px 0; padding:10px; width:520px; font-size:13px}
|
||||
div.gforms_helpbox select {width:460px}
|
||||
div.gforms_helpbox ul.resource_list {margin-top:4px}
|
||||
div.gforms_helpbox ul.resource_list li {margin:0 0 6px!important}
|
||||
div.gforms_code {border:1px solid #C2D7EF; background-color:#E2EDFF; margin:10px 0; padding:10px; width:700px; font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace!important; font-size:13px}
|
||||
div.gforms_code pre {display:block; font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace!important; font-size:13px; font-weight:normal!important; line-height:18px; margin:0; overflow:hidden; z-index:100; position:relative; white-space:pre-wrap; white-space:0; white-space:0; white-space:0; word-wrap:break-word; padding:6px 10px 6px 0}
|
||||
div.delete-alert input.button {border:1px solid #CFADB3; color:#832525;}
|
||||
div.delete-alert input.button:hover {border:1px solid #dbadac}
|
||||
#field_settings {margin:0 0 12px; padding-top:6px}
|
||||
#field_settings ul li label {display:block; line-height:125%; margin:0 0 3px}
|
||||
.gform_heading .form_edit_iconx,.form_head .form_delete_iconx {display:block}
|
||||
.settings_control_container{height:18px}
|
||||
.ui-tabs-panel ul li label {margin-bottom:8px!important}
|
||||
li.field_setting input,
|
||||
li.field_setting select {margin-top:4px}
|
||||
.inline {display:inline!important}
|
||||
label.float_label {float:left; width:40px; padding:2px 0 0}
|
||||
#gform_fields li{border:1px solid transparent; padding:10px; overflow:hidden}
|
||||
.gforms_form_settings li {border:1px solid transparent; padding:10px 0px; overflow:hidden}
|
||||
.gform_page_names li {padding:5px 0px!important}
|
||||
|
||||
#gform_heading {border:1px solid transparent; padding:8px 10px 10px 10px; width:480px!important; overflow:hidden; margin-bottom:10px; position:relative}
|
||||
.gform_settings_container {border:1px solid transparent; padding:10px; width:480px!important}
|
||||
#gform_fields {width:500px!important}
|
||||
.gfield_time_hour,
|
||||
.gfield_time_minute {width:70px; float:left; margin-bottom:4px}
|
||||
.gfield_date_month,
|
||||
.gfield_date_day,
|
||||
.gfield_date_year {width:50px; float:left; margin-bottom:4px}
|
||||
.gfield_date_month input,
|
||||
.gfield_date_day input,
|
||||
.gfield_date_year input {width:80%!important}
|
||||
.gfield_time_ampm select {width:50px!important}
|
||||
.gfield_time_hour input,
|
||||
.gfield_time_minute input {width:80%!important}
|
||||
.field_hover {border:1px dashed #2175A9!important; cursor:pointer}
|
||||
.field_selected {background-color:#DFEFFF; border:1px solid #C2D7EF!important}
|
||||
.field_name_first,.field_name_last,ol.field_type li {width:50%; float:left}
|
||||
.field_name_first input,.ginput_complex .ginput_left input {width:90%!important}
|
||||
.field_name_last input {width:93%!important}
|
||||
.datepicker {width:100px!important}
|
||||
img#gfield_input_datepicker_icon {position:relative; top:3px; left:4px}
|
||||
#date_picker_container {margin:8px 0}
|
||||
#gfield_icon_url_container {margin-top:5px}
|
||||
.ginput_complex .ginput_left,
|
||||
.ginput_complex .ginput_right {width:48%; float:left}
|
||||
.ginput_complex input,
|
||||
.ginput_complex select {width:92%!important}
|
||||
.ginput_complex label,
|
||||
.gfield_time_hour label,.gfield_time_minute label {display:block; margin:4px 0}
|
||||
.ginput_complex .name_prefix {float:left; width:30px!important; margin-right:14px}
|
||||
.ginput_complex .name_suffix {float:left; width:30px!important}
|
||||
.ginput_complex .name_first,.ginput_complex .name_last {float:left; width:100px; margin-right:8px}
|
||||
.top_label .gfield_label {display:block; margin:4px 0; font-weight:bold}
|
||||
.left_label .gfield_label {float:left; margin:2px 15px 0 0; width:29%; font-weight:bold}
|
||||
.right_label .gfield_label {float:left; margin:2px 15px 0 0; width:29%; font-weight:bold; text-align:right}
|
||||
.left_label ul.gfield_checkbox,.right_label ul.gfield_checkbox,.left_label ul.gfield_radio,.right_label ul.gfield_radio {margin-left:32%}
|
||||
.top_label input.small,
|
||||
.top_label select.small {width:25%}
|
||||
.top_label input.medium,
|
||||
.top_label select.medium {width:50%}
|
||||
.top_label input.large,
|
||||
.top_label select.large,
|
||||
.top_label textarea.textarea {width:96%}
|
||||
.right_label input.small,
|
||||
.right_label select.small,
|
||||
.left_label input.small,
|
||||
.left_label select.small {width:15%}
|
||||
.right_label input.medium,
|
||||
.right_label select.medium,
|
||||
.left_label input.medium,
|
||||
.left_label select.medium {width:35%}
|
||||
.right_label input.large,
|
||||
.right_label select.large,
|
||||
.left_label input.large,
|
||||
.left_label select.large,
|
||||
textarea.textarea {width:64%}
|
||||
.right_label div.ginput_complex,
|
||||
.left_label div.ginput_complex {width:64%; float:left}
|
||||
h2.gsection_title {margin:0!important; padding:0!important; letter-spacing:normal!important; font-style:normal!important; font-weight:bold; font-size:16px; font-family:Helvetica,sans-serif; width:98%}
|
||||
h3.gf_add_fields {margin:0 0 .5em 0!important}
|
||||
.gsection .gfield_label {font-weight:bold; font-size:16px; font-family:Helvetica,sans-serif}
|
||||
.gsection_description {width:98%; font-size:10px; line-height:150%; clear:both; padding-top:4px; font-family:verdana,sans-serif}
|
||||
.gsection_description,
|
||||
.gfield_description {font-style:italic}
|
||||
.gfield_date_year+.gfield_description {padding:0 0 8px}
|
||||
.gsection {border-bottom:1px dotted #ccc!important}
|
||||
|
||||
/* updated radio and checkbox styling - justifies lenghty labels ------------------------------------------------------*/
|
||||
|
||||
ul.gfield_checkbox, ul.gfield_radio {margin:6px 0}
|
||||
.gfield_checkbox li,
|
||||
.gfield_radio li {position:relative; padding:0!important}
|
||||
.gfield_checkbox li label,
|
||||
.gfield_radio li label {display:block; margin: 0 0 0 24px; padding:0!important; width: auto; line-height:1.5; vertical-align: top}
|
||||
.gfield_checkbox li input[type=checkbox],
|
||||
.gfield_radio li input[type=radio],
|
||||
.gfield_checkbox li input {float:left; margin-top:2px}
|
||||
|
||||
.description,.instruction,
|
||||
.gfield_description {font-size:10px; line-height:150%; clear:both; padding-top:10px; font-family:verdana,sans-serif}
|
||||
.right_label .gfield_description,
|
||||
.left_label .gfield_description,
|
||||
.left_label .instruction,
|
||||
.right_label .instruction {margin-left:29%; padding-left:15px}
|
||||
.left_label .gsection .gsection_description,
|
||||
.right_label .gsection .gsection_description {margin-left:0; padding-left:0; padding-top:10px; line-height:150%}
|
||||
.ginput_complex + .gfield_description {padding-top:0!important}
|
||||
.gfield_required {color:red; margin-left:4px}
|
||||
textarea.small {height:80px}
|
||||
textarea.medium {height:150px}
|
||||
textarea.large {height:250px}
|
||||
.gform_footer {padding:10px 0 10px 10px; margin:6px 0 0; border-top:1px dotted #ccc!important}
|
||||
.gform_wrapper .gform_footer+.right_label,
|
||||
.gform_wrapper .gform_footer+.left_label {padding:16px 0 10px 31%}
|
||||
a.close_icon {position:absolute; left:100%; margin-left:-27px; top:9px; width:16px; height:16px; background-image:url(../images/close.png); background-repeat:no-repeat; text-indent:-9000px}
|
||||
.gfield {position:relative}
|
||||
.field_hover .field_edit_icon,
|
||||
.field_hover .field_delete_icon,
|
||||
.field_hover .form_edit_icon,
|
||||
.field_hover .form_delete_icon,
|
||||
.field_selected .field_edit_icon,
|
||||
.field_selected .field_delete_icon,
|
||||
.field_selected .form_edit_icon,
|
||||
.field_selected .form_delete_icon {display:block!important; cursor:pointer;}
|
||||
.field_edit_icon,.form_edit_icon {display:none; float:right; font-size:10px; text-decoration:none; margin-right:6px; height:16px; line-height:16px; padding:0 0 0 18px}
|
||||
.edit_icon_expanded {background-image:url(../images/close.png); background-repeat:no-repeat}
|
||||
.edit_icon_collapsed {background-image:url(../images/edit.png); background-repeat:no-repeat}
|
||||
.entries_edit_icon {float:right; font-size:10px; text-decoration:none; margin:2px 6px 0 0; height:16px; line-height:16px; padding:0 0 0 18px; background-image:url(../images/edit.png); background-repeat:no-repeat; text-shadow:none; font-weight:normal}
|
||||
.field_delete_icon,
|
||||
.form_delete_icon {display:none; float:right; font-size:10px; text-decoration:none; height:16px; line-height:16px; padding:0 0 0 18px; background-image:url(../images/delete.png); background-repeat:no-repeat}
|
||||
.option_header {margin:5px 0 2px; font-weight:bold}
|
||||
div.error + a.gforms_settings_button {top:-90px}
|
||||
div.error + a.gforms_settings_button {*top:-80px}
|
||||
img.gtitle_icon {float:left; margin:15px 7px 0 0}
|
||||
td.pad_top {padding-top:10px}
|
||||
#form_settings {padding:5px; margin-top:10px}
|
||||
.input_size_a,
|
||||
.textarea_size_a {width:375px}
|
||||
.form_button_options {margin:8px 0}
|
||||
#form_button_text_container,
|
||||
#form_button_image_container {margin-top:8px!important}
|
||||
.captcha_message {padding:5px}
|
||||
#after_insert_dialog div {padding-bottom:10px}
|
||||
#simplemodal-overlay {background-color:#000; cursor:default}
|
||||
#simplemodal-container {padding:20px 20px 0; height:300px; width:400px; background-color:#F9F9F9; border:6px solid #636363; -moz-border-radius:8px; -webkit-border-radius:8px; -khtml-border-radius:8px; border-radius:8px}
|
||||
#simplemodal-container a.modalCloseImg {background:url(../images/close.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-14px; right:-18px; cursor:pointer}
|
||||
div#after_insert_dialog h3 {text-align:center; padding:10px 6px; background-color:#FFFBCC; border:1px solid #E6DB55; -moz-border-radius:4px; -webkit-border-radius:4px; -khtml-border-radius:4px; border-radius:4px; margin:0 0 4px}
|
||||
div.gold_notice {padding:10px 6px; background-color:#FFFBCC; border:1px solid #E6DB55; -moz-border-radius:4px; -webkit-border-radius:4px; -khtml-border-radius:4px; border-radius:4px; margin:0 0 4px}
|
||||
div.new-form-option a {font-size:16px; padding:8px; text-decoration:none; text-align:center; display:block; color:#535353; background-color:#F9F9F9; border:1px solid #BBB; -moz-border-radius:20px; -webkit-border-radius:20px; -khtml-border-radius:20px; border-radius:20px; margin-bottom:4px; background:url(../images/new-form-option-bg.png) repeat-x}
|
||||
div.new-form-option a:hover {color:#2B2B2B; border:1px solid #666}
|
||||
.installation_item_cell {width:40px}
|
||||
.installation_item_message {padding-left:15px; color:red}
|
||||
div#wpbody {position:relative}
|
||||
#floatMenu {position:absolute; width:280px; top:130px; z-index:99}
|
||||
div.add-buttons-title {background-color:#636363; background-image:url(../images/expand_title.png); background-repeat:no-repeat; background-position:right 0; height:24px; overflow:hidden; cursor:pointer; font-size:13px; border-width:1px; border-style:solid; border-color:#636363; margin:0!important; padding:5px 12px 0; white-space:nowrap; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-right-radius:4px; -webkit-border-top-left-radius:4px; -khtml-border-top-right-radius:4px; -khtml-border-top-left-radius:4px; border-top-right-radius:4px; border-top-left-radius:4px}
|
||||
.button-title-link {color:#FFF; text-shadow:none; font-weight:bold; cursor:text!important}
|
||||
.add-buttons {border-width:0 1px 1px; border-style:none solid solid; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-right-radius:4px; -webkit-border-bottom-left-radius:4px; -khtml-border-bottom-right-radius:4px; -khtml-border-bottom-left-radius:4px; border-bottom-right-radius:4px; border-bottom-left-radius:4px; background-color:#F1F1F1; border-color:#bbb; padding:12px}
|
||||
ul.menu li {margin-bottom:10px}
|
||||
ol.field_type {display:block; visibility:visible!important; overflow:hidden; margin:0; padding:0}
|
||||
div.push-alert-gold {padding:10px 6px; margin:30px 0 10px; text-align:center; line-height:150%; display:block!important; visibility:visible!important; min-width:800px; font-size:1.1em; background-color:#FFFBCC; border-top:1px solid #E6DB55; border-bottom:1px solid #E6DB55}
|
||||
div.push-alert-green {padding:10px 6px; margin:30px 0 10px; text-align:center; line-height:150%; display:block!important; visibility:visible!important; min-width:800px; font-size:1.1em; background-color:#ecfcde; border-top:1px solid #a7c886; border-bottom:1px solid #a7c886}
|
||||
div.push-alert-blue {padding:10px 6px; margin:30px 0 10px; text-align:center; line-height:150%; display:block!important; visibility:visible!important; min-width:800px; font-size:1.1em; background-color:#E2EDFF; border-top:1px solid #C2D7EF; border-bottom:1px solid #C2D7EF}
|
||||
div.push-alert-red {padding:10px 6px; margin:30px 0 10px; text-align:center; line-height:150%; display:block!important; visibility:visible!important; min-width:800px; font-size:1.1em; background-color:#FFE1E1; border-top:1px solid #EAAEAD; border-bottom:1px solid #EAAEAD}
|
||||
#gfield_settings_category_container,
|
||||
#gfield_settings_choices_container {border:1px solid #DFDFDF; overflow:auto; padding:2px 0 6px}
|
||||
#gfield_settings_category_container {max-height:230px; margin:8px 0 0}
|
||||
table td.gfield_category_cell {padding-top:3px}
|
||||
#gfield_settings_choices_container {max-height:230px; margin:8px 0 14px}
|
||||
#field_choices li {padding:0 10px!important; margin:0!important}
|
||||
|
||||
/* hidden value field ------------------------------------------------------*/
|
||||
|
||||
#field_choices li input.field-choice-text {width:312px}
|
||||
#field_choices li input.field-choice-value {display:none}
|
||||
#field_choices li input.field-choice-price {display:none}
|
||||
.gfield_choice_header_label {padding-left: 30px; display:none!important}
|
||||
.gfield_choice_header_value {display:none!important}
|
||||
.gfield_choice_header_price {display:none!important}
|
||||
|
||||
/* visible value field without price ------------------------------------------------------*/
|
||||
|
||||
.choice_with_value li input.field-choice-value {width:155px!important; display:inline!important}
|
||||
.choice_with_value li input.field-choice-text {width:155px!important}
|
||||
.choice_with_value .gfield_choice_header_label {display:inline!important}
|
||||
.choice_with_value .gfield_choice_header_value {padding-left: 120px; display:inline!important}
|
||||
|
||||
/* visible value field with price ------------------------------------------------------*/
|
||||
|
||||
.choice_with_value_and_price li input.field-choice-text {width:103px!important}
|
||||
.choice_with_value_and_price li input.field-choice-value {width:103px!important; display:inline!important}
|
||||
.choice_with_value_and_price li input.field-choice-price {width:103px!important; display:inline!important}
|
||||
.choice_with_value_and_price .gfield_choice_header_label {display:inline!important}
|
||||
.choice_with_value_and_price .gfield_choice_header_value {padding-left: 70px; display:inline!important}
|
||||
.choice_with_value_and_price .gfield_choice_header_price {padding-left: 70px; display:inline!important}
|
||||
|
||||
/* visible price and no value ------------------------------------------------------*/
|
||||
|
||||
.choice_with_price li input.field-choice-text {width:155px!important}
|
||||
.choice_with_price li input.field-choice-price {width:155px!important; display:inline!important}
|
||||
.choice_with_price .gfield_choice_header_label {display:inline!important}
|
||||
.choice_with_price .gfield_choice_header_price {padding-left: 120px; display:inline!important}
|
||||
|
||||
|
||||
/* view form styles ------------------------------------------------------*/
|
||||
|
||||
table.entry-detail-view {margin-bottom:16px}
|
||||
table.entry-detail-view th {font-size:13px}
|
||||
table.entry-detail-view td.lastrow {border-bottom:none!important}
|
||||
td.entry-view-section-break {font-size:14px; font-weight:bold; background-color:#EEE; border-bottom:1px solid #DFDFDF; padding:7px}
|
||||
td.entry-view-field-name {font-weight:bold; background-color:#EAF2FA; border-bottom:1px solid #FFF; line-height:150%; padding:7px}
|
||||
td.entry-view-field-value {border-bottom:1px solid #DFDFDF; padding:7px 7px 7px 40px; line-height:150%}
|
||||
td.entry-view-field-value p {text-align:left}
|
||||
td.entry-view-field-value ul.bulleted {margin-left:12px}
|
||||
td.entry-view-field-value ul.bulleted li {list-style-type:disc}
|
||||
div.note-avatar {width:48px; height:48px; float:left; margin-right:6px}
|
||||
h6.note-author {font-weight:bold; font-size:13px; margin:0; padding:0}
|
||||
div.detail-note-content {margin:10px 0 10px 54px; line-height:150%}
|
||||
div.detail-note-content p {line-height:150%}
|
||||
|
||||
/* edit details form styles ------------------------------------------------------*/
|
||||
|
||||
#namediv_admin {position:relative; min-width:500px}
|
||||
body #namediv table.entry-details td.detail-view label.detail-label,.ginput_full_admin label {display:block; font-weight:bold; font-size:13px; margin-bottom:4px}
|
||||
body #namediv div.ginput_complex_admin .ginput_full_admin label {font-weight:normal; font-size:11px}
|
||||
body #namediv table.entry-details input[type=text],
|
||||
body #namediv table.entry-details input {width:99%}
|
||||
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_left,
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_left_admin,
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_right,
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_right_admin {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; width:49%}
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_left,
|
||||
body #namediv .ginput_complex_admin.ginput_container span.ginput_left_admin {margin-right:1em}
|
||||
body #namediv .ginput_left_admin label,
|
||||
body #namediv .ginput_right_admin label {display:block}
|
||||
|
||||
body #namediv .ginput_container ul.gfield_radio li input,
|
||||
body #namediv .ginput_container ul.gfield_checkbox li input {width:auto!important}
|
||||
body #namediv .ginput_left_admin input[type=text] {width:99%!important}
|
||||
body #namediv select.medium_admin {max-width:400px}
|
||||
body #namediv textarea.medium_admin {width:98%; min-width:475px; min-height:250px}
|
||||
body #namediv h2.detail_gsection_title {font-family:Helvetica,sans-serif; font-size:16px; font-style:normal!important; font-weight:bold; letter-spacing:normal!important; margin:0!important; padding:0!important}
|
||||
|
||||
/* notifications page styles ------------------------------------------------------*/
|
||||
|
||||
ul#form_notification_container,ul#form_autoresponder_container {width:95%}
|
||||
ul#form_notification_container li,
|
||||
ul#form_autoresponder_container li {margin-bottom:15px!important}
|
||||
ul#form_notification_container li label,
|
||||
ul#form_autoresponder_container li label {margin-bottom:8px!important; display:block}
|
||||
|
||||
/* set some widths and heights ------------------------------------------------------*/
|
||||
|
||||
.fieldwidth-1,input.fieldwidth-1 {width:100%}
|
||||
.fieldwidth-2,input.fieldwidth-2 {width:350px}
|
||||
.fieldwidth-3,input.fieldwidth-3 {width:375px}
|
||||
.fieldwidth-4,input.fieldwidth-4 {width:250px}
|
||||
.fieldheight-1,input.fieldheight-1 {height:160px}
|
||||
.fieldheight-2,input.fieldheight-2 {height:80px}
|
||||
|
||||
/* bulk add panel ------------------------------------------------------*/
|
||||
|
||||
.panel-instructions {border-bottom:1px solid #dfdfdf; color:#555; font-size:11px; padding:4px 0; margin-bottom:6px}
|
||||
.bulk-left-panel {float:left; overflow-y:auto; height:330px; width:220px; padding:0}
|
||||
.bulk-left-panel ul li {padding:0; margin:0}
|
||||
.bulk-left-panel ul li a.bulk-choice {background-color:#eaeaea; color:#555; display:block; width:190px; border-top:1px solid #fff; border-bottom:1px solid #d7d7d7; padding:5px; text-align:center; text-decoration:none}
|
||||
.bulk-left-panel ul li a.bulk-choice:hover {background-color:#dadada}
|
||||
a.bulk-choice:first-child {border-top:none}
|
||||
.bulk-arrow-mid {float:left; width:45px; height:330px; background-image:url(../images/arrow-right.jpg); background-repeat:no-repeat; background-position:center center}
|
||||
textarea#gfield_bulk_add_input {width:330px; height:330px; float:right; padding:6px}
|
||||
div.panel-buttons {margin-top:8px}
|
||||
.bulk-left-panel {height:300px}
|
||||
|
||||
/* IE specific ------------------------------------------------------*/
|
||||
|
||||
.bulk-arrow-mid {height:300px}
|
||||
textarea#gfield_bulk_add_input {width:310px; height:290px}
|
||||
#TB_ajaxContent {height:400px!important}
|
||||
|
||||
/* Safari & Google Chrome specific styles ------------------------------------------------------*/
|
||||
|
||||
@media screen and -webkit-min-device-pixel-ratio0#gfield_settings_category_container,
|
||||
#gfield_settings_choices_container {max-height:222px}
|
||||
|
||||
input.headercb {margin-top:-3px}
|
||||
.gfield_rule_select,.gfield_routing_select {width:150px}
|
||||
.validation_message {color:#f00!important; font-size:11px; font-family:verdana,sans-serif; letter-spacing:normal}
|
||||
.gfield_error {background-color:#FFDFDF!important; margin-top:4px!important; margin-bottom:6px; padding:6px 6px 4px!important; border:1px dotted #C89797}
|
||||
.grouting_rule_error input {border:1px solid #f00}
|
||||
.gfield_sub_setting {margin-top:20px}
|
||||
|
||||
/* after update form panel ------------------------------------------------------*/
|
||||
|
||||
#after_update_dialog {}
|
||||
.updated_base {background-color:#FFFFE0; border-color:#E6DB55}
|
||||
.updated_base {border-width:1px; border-style:solid; padding:0 .6em; margin:10px 15px 10px 0; -moz-border-radius:3px; -khtml-border-radius:3px; -webkit-border-radius:3px; border-radius:3px}
|
||||
.updated_base p {margin:.5em 0; line-height:1; padding:2px}
|
||||
.wrap .updated_base {margin:10px 15px 10px 0}
|
||||
table.form-table td .updated_base {font-size:13px}
|
||||
.error_base {background-color:#FFEBE8; border-color:#CC0000}
|
||||
.error_base {border-width:1px; border-style:solid; padding:0 .6em; margin:10px 15px 10px 0; -moz-border-radius:3px; -khtml-border-radius:3px; -webkit-border-radius:3px; border-radius:3px}
|
||||
.error_base p {margin:.5em 0; line-height:1; padding:2px}
|
||||
.wrap .error_base {margin:10px 15px 10px 0}
|
||||
table.form-table td .error_base {font-size:13px}
|
||||
|
||||
/*jQuery UI date picker ------------------------------------------------------*/
|
||||
|
||||
.ui-datepicker-div,
|
||||
.ui-datepicker-inline,
|
||||
#ui-datepicker-div {/*resets*/margin:0; padding:0; border:0; outline:0; line-height:1.3; text-decoration:none; font-size:100%; list-style:none; font-family:Verdana,Arial,sans-serif; background:#ffffff; font-size:1em; border:4px solid #aaaaaa; width:15.5em; padding:2.5em .5em .5em; position:relative}
|
||||
.ui-datepicker-div,
|
||||
#ui-datepicker-div {z-index:9999; /*must have*/display:none}
|
||||
.ui-datepicker-inline {float:left; display:block}
|
||||
.ui-datepicker-control {display:none}
|
||||
.ui-datepicker-current {display:none}
|
||||
.ui-datepicker-next,
|
||||
.ui-datepicker-prev {position:absolute; left:.5em; top:.5em; background:#e6e6e6}
|
||||
.ui-datepicker-next {left:14.6em}
|
||||
.ui-datepicker-next:hover,
|
||||
.ui-datepicker-prev:hover {background:#dadada}
|
||||
.ui-datepicker-next a,
|
||||
.ui-datepicker-prev a {text-indent:-999999px; width:1.3em; height:1.4em; display:block; font-size:1em; background:url(../images/datepicker_arrow_left.gif) 50% 50% no-repeat; border:1px solid #d3d3d3; cursor:pointer}
|
||||
.ui-datepicker-next a {background:url(../images/datepicker_arrow_right.gif) 50% 50% no-repeat}
|
||||
.ui-datepicker-header select {border:1px solid #d3d3d3; color:#555555; background:#e6e6e6; font-size:1em; line-height:1.4em; position:absolute; top:.5em; margin:0!important}
|
||||
.ui-datepicker-header option:focus,.ui-datepicker-header option:hover {background:#dadada}
|
||||
.ui-datepicker-header select.ui-datepicker-new-month {width:7em; left:2.2em}
|
||||
.ui-datepicker-header select.ui-datepicker-new-year {width:5em; left:9.4em}
|
||||
table.ui-datepicker {width:15.5em; text-align:right}
|
||||
table.ui-datepicker td a {padding:.1em .3em .1em 0; display:block; color:#555555; background:#e6e6e6; cursor:pointer; border:1px solid #ffffff}
|
||||
table.ui-datepicker td a:hover {border:1px solid #999999; color:#212121; background:#dadada}
|
||||
table.ui-datepicker td a:active {border:1px solid #aaaaaa; color:#212121; background:#ffffff}
|
||||
table.ui-datepicker .ui-datepicker-title-row td {padding:.3em 0; text-align:center; font-size:.9em; color:#222222; text-transform:uppercase}
|
||||
table.ui-datepicker .ui-datepicker-title-row td a {color:#222222}
|
||||
.ui-datepicker-cover {display:none; display:block; position:absolute; z-index:-1; filter:mask(); top:-4px; left:-4px; width:193px; height:200px}
|
||||
|
||||
/*html block ------------------------------------------------------*/
|
||||
|
||||
li.gfield_html label.gfield_label {height:18px}
|
||||
|
||||
/* a few IE7 specific hacks ------------------------------------------------------*/
|
||||
|
||||
.menu.collapsible ol.field_type li {*width:48%}
|
||||
.menu.collapsible ol.field_type li input.button {*width:96%!important}
|
||||
.menu.collapsible li {*min-width:20%!important}
|
||||
.gfield_checkbox li input[type=checkbox], .gfield_radio li input[type=radio], .gfield_checkbox li input {*margin-top:0}
|
||||
|
||||
/* simple captcha fields ------------------------------------------------------*/
|
||||
|
||||
.gfield_captcha_input_container{padding-top:3px}
|
||||
.simple_captcha_small input {width:100px}
|
||||
.simple_captcha_medium input {width:150px}
|
||||
.simple_captcha_large input {width:200px}
|
||||
.left_label .simple_captcha_small,
|
||||
.right_label .simple_captcha_small,
|
||||
.left_label .simple_captcha_medium,
|
||||
.right_label .simple_captcha_medium,
|
||||
.left_label .simple_captcha_large,
|
||||
.right_label .simple_captcha_large {margin-left:32%}
|
||||
|
||||
/* math challenge fields ------------------------------------------------------*/
|
||||
|
||||
.math_small input {width:69px}
|
||||
.math_medium input {width:90px}
|
||||
.math_large input {width:108px}
|
||||
.left_label .math_small,
|
||||
.right_label .math_small,
|
||||
.left_label .math_medium,
|
||||
.right_label .math_medium,
|
||||
.left_label .math_large,
|
||||
.right_label .math_large {margin-left:32%}
|
||||
|
||||
/* transaction table ------------------------------------------------------*/
|
||||
|
||||
table.entry-products {border:1px solid #DFDFDF; border-right:none; border-bottom:none; margin:10px 0}
|
||||
table.entry-products th[scope=col] {background-color:#f4f4f4; border-right:1px solid #DFDFDF!important}
|
||||
table.entry-products col.entry-products-col2 {width:50px}
|
||||
table.entry-products col.entry-products-col3 {width:155px}
|
||||
table.entry-products col.entry-products-col4 {width:155px}
|
||||
table.entry-products td {border-right:1px solid #DFDFDF!important; padding-top:7px; padding-bottom:8px}
|
||||
table.entry-products td.textcenter,
|
||||
table.entry-products th.textcenter {text-align: center}
|
||||
table.entry-products td.textright,
|
||||
table.entry-products th.textright {text-align: right}
|
||||
table.entry-products td.grandtotal,
|
||||
table.entry-products td.grandtotal_amount,
|
||||
table.entry-products td.shipping,
|
||||
table.entry-products td.shipping_amount {font-weight:bold; font-size:13px; padding-top:7px; padding-bottom:8px}
|
||||
table.entry-products td.emptycell {background-color:#f4f4f4}
|
||||
table.entry-products td div.product_name {font-weight:bold; color:#BF461E; font-size:13px; margin-bottom:5px}
|
||||
table.entry-products td ul.product_options {}
|
||||
table.entry-products td ul.product_options li {background-image:url(../images/prodlist.png); background-repeat:no-repeat; background-position: left top; overflow:visible; margin:0 0 0 2px!important; padding:4px 0 4px 16px}
|
||||
table.entry-products td ul.product_options li.lastitem {background-image:url(../images/prodlist_last.png)}
|
||||
|
||||
/* additional button styles ------------------------------------------------------*/
|
||||
|
||||
input.button-primary.gfbutton,
|
||||
button.button-primary.gfbutton,
|
||||
a.button-primary.gfbutton {margin:10px 0 20px 0; letter-spacing: 0.4pt; font-size:12px!important; font-weight:normal; -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; padding:3px 8px 4px 8px!important }
|
||||
|
||||
.menu.collapsible ol.field_type li input.button:hover {color:#D54E21; border-color:#8f8f8f; -webkit-border-radius: 16px!important; -moz-border-radius: 16px!important; border-radius: 16px!important}
|
||||
|
||||
/* multi-page progress bar ------------------------------------------------------*/
|
||||
|
||||
h3.gf_progressbar_title {font-size:13px; line-height:1!important; margin:0 0 4px 0!important; padding:0!important; clear:both; filter:alpha(opacity=60); -moz-opacity:0.6; -khtml-opacity: 0.6; opacity: 0.6}
|
||||
.gform_wrapper .gf_progressbar_wrapper {clear:both; margin:0 0 14px 0}
|
||||
.gform_wrapper .gf_progressbar {width:100%; height:20px; overflow:hidden; line-height:20px!important; background-color:#fff; border:1px solid #acacac; border-right:1px solid #959595; border-bottom:1px solid #959595; background-image: url(images/percentbar_bg.png); background-repeat: repeat-x; background-position: bottom; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px}
|
||||
.gform_wrapper .gf_progressbar_percentage {background-repeat:repeat-x; height:20px; text-align:right;font-family:"helvetica",verdana,arial,sans-serif; font-size:13px!important; text-shadow: 0 1px 1px rgba(0,0,0,0.50)}
|
||||
.gform_wrapper .gf_progressbar_percentage span {margin-right:5px}
|
||||
.gform_wrapper .percentbar_blue {background-image: url(../images/percentbar_blue.png); color:#fff; background-color:#0072BC}
|
||||
.gform_wrapper .percentbar_gray {background-image: url(../images/percentbar_gray.png); color:#fff; background-color:#666}
|
||||
.gform_wrapper .percentbar_green {background-image: url(../images/percentbar_green.png); color:#0c2c17; background-color:#94DC21}
|
||||
.gform_wrapper .percentbar_orange {background-image: url(../images/percentbar_orange.png); color:#fff; background-color:#DC7021}
|
||||
.gform_wrapper .percentbar_red {background-image: url(../images/percentbar_red.png); color:#fff; background-color:#DC2521}
|
||||
.gform_wrapper .percentbar_custom {background-image: url(../images/percentbar_custom.png)}
|
||||
|
||||
/* multi-page steps ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gf_page_steps {overflow:hidden}
|
||||
.gform_wrapper .gf_step {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; width:auto!important; margin:0 10px 10px 0; font-size:14px; height:20px; line-height:20px!important; filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5}
|
||||
.gform_wrapper .gf_step span.gf_step_number {font-size:20px; float:left}
|
||||
.gform_wrapper .gf_step.gf_step_active {filter:alpha(opacity=100); -moz-opacity:1.0; -khtml-opacity: 1.0; opacity: 1.0}
|
||||
|
||||
/* password strength ----------------------------------------------------*/
|
||||
|
||||
.gfield_password_strength {border-style: solid; border-width: 1px; float: left; margin: 12px 5px 5px 1px; padding: 3px 5px; text-align: center; width: 200px; background-color: #eee; border-color: #ddd !important}
|
||||
|
||||
/* form toolbar ----------------------------------------------------*/
|
||||
|
||||
#contextual-help-link-wrap {display:none}
|
||||
#gf_form_toolbar {margin:10px 0}
|
||||
ul#gf_form_toolbar_links {min-width:790px; padding:0 0 0 6px; border:1px solid #bbb; background-color:#e4e4e4; margin:0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background-image:url(../images/gf_toolbar_bg.jpg); background-repeat: repeat-x}
|
||||
ul#gf_form_toolbar_links li {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; margin:0; padding:10px 6px; width:auto}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_selectform {background-image:url(../images/gf_toolbar_divider.jpg); background-repeat: repeat-y; background-position: right}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings a,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_editor a,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications a,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_entries a ,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_preview a {background-image:url(../images/gf_toolbar_iconsprite.png); background-repeat: no-repeat; padding:1px 0 0 20px; text-decoration: none; text-shadow: 0 1px 1px #fff; line-height:16px; white-space: nowrap}
|
||||
ul#gf_form_toolbar_links li a:hover,
|
||||
ul#gf_form_toolbar_links li a:focus,
|
||||
ul#gf_form_toolbar_links li a.gf_toolbar_active {color:#333}
|
||||
ul#gf_form_toolbar_links li a.gf_toolbar_active {font-weight:bold}
|
||||
ul#gf_form_toolbar_links li a.gf_toolbar_disabled {color:#333; filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; -ms-filter:"alpha(opacity=50)"}
|
||||
ul#gf_form_toolbar_links li a.gf_toolbar_active,
|
||||
ul#gf_form_toolbar_links li a.gf_toolbar_disabled {cursor:default}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings {width:103px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings a {background-position:0 0}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings a:hover,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings a.gf_toolbar_active {background-position:0 -96px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_settings a.gf_toolbar_disabled:hover {background-position:0 0}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_editor a {background-position:0 -16px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_editor a:hover,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_editor a.gf_toolbar_active {background-position:0 -112px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_editor a.gf_toolbar_disabled:hover {background-position:0 -16px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications {padding:10px 6px 10px 4px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications a {background-position:0 -32px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications a:hover,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications a.gf_toolbar_active {background-position:0 -128px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_notifications a.gf_toolbar_disabled:hover {background-position:0 -32px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_entries a {background-position:0 -48px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_entries a:hover,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_entries a.gf_toolbar_active {background-position:0 -144px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_entries a.gf_toolbar_disabled:hover {background-position:0 -48px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_preview a {background-position:0 -64px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_preview a:hover,
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_preview a.gf_toolbar_active {background-position:0 -160px}
|
||||
ul#gf_form_toolbar_links li.gf_form_toolbar_preview a.gf_toolbar_disabled:hover {background-position:0 -64px}
|
||||
|
||||
/* form switcher ----------------------------------------------------*/
|
||||
|
||||
ul#gf_form_toolbar_links {position: relative}
|
||||
li.gf_form_switcher {position:absolute; right:2px; top:-4px}
|
||||
li.gf_form_switcher label {display:none}
|
||||
li.gf_form_switcher select#form_switcher {max-width:200px}
|
||||
|
||||
/* tidy up the title area ----------------------------------------------------*/
|
||||
|
||||
p.search-box {margin:12px 0 0 0}
|
||||
|
||||
/* form settings panel ----------------------------------------------------*/
|
||||
|
||||
div#gform_heading.selectable.field_selected {background-image:url(../images/gf_formsettings_header.jpg); background-repeat: no-repeat; background-position: 0 0; padding-top:8px}
|
||||
div#gform_heading.selectable h3#gform_title {margin-top:2em}
|
||||
|
||||
/* upgrade and renewal styles for settings page ----------------------------------------------------*/
|
||||
|
||||
div.gf_renew_license {border:1px solid #CFADB3; color:#832525; background-color:#FAF2F5; padding:0 0 20px 20px}
|
||||
p.gform_renew_expired strong {color:#790000}
|
||||
div.gf_upgrade_license h4 { font-size:14px; margin:0; padding:0}
|
||||
div.gf_upgrade_developer_license,
|
||||
div.gf_upgrade_business_license {padding:14px 0 0 140px; min-height:135px; background-repeat: no-repeat; background-position: 0 0}
|
||||
div.gf_upgrade_developer_license {background-image:url(../images/gravityforms_developer_upgrade.png); margin:30px 0 0 0}
|
||||
div.gf_upgrade_business_license {background-image:url(../images/gravityforms_business_upgrade.png); margin:0}
|
||||
p.gform_renew_expired,
|
||||
p.gform_renew_not_expired {padding-left:20px; background-image:url(../images/exclamation.png); background-repeat: no-repeat; background-position: 0 0}
|
||||
|
||||
/* update page status styles ----------------------------------------------------*/
|
||||
|
||||
.gf_update_current,
|
||||
.gf_update_expired,
|
||||
.gf_update_outdated {padding:10px; margin-top:20px}
|
||||
|
||||
/* alert styles to reuse ----------------------------------------------------*/
|
||||
|
||||
.alert_green,
|
||||
.alert_red,
|
||||
.alert_yellow,
|
||||
.alert_gray,
|
||||
.alert_blue {background-image:url(../images/top_highlight.png); background-repeat: repeat-x; background-position: 0 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px}
|
||||
.alert_green {border:1px solid #97B48A; background-color:#CBECA0}
|
||||
.alert_red {border:1px solid #CFADB3; color:#832525; background-color:#FAF2F5}
|
||||
.alert_yellow {border:1px solid #E6DB55; background-color:#FFFBCC; color:#424242}
|
||||
.alert_gray {border:1px solid #CCC; color:#424242; background-color:#EEE}
|
||||
.alert_blue {border:1px solid #CFADB3; color:#832525; background-color:#FAF2F5}
|
||||
|
||||
/* adjust key indicator positions ----------------------------------------------------*/
|
||||
|
||||
img.gf_keystatus_invalid,
|
||||
img.gf_keystatus_valid {position: relative; top:2px}
|
||||
|
||||
/* note for truncated radio and checkbox lists ----------------------------------------------------*/
|
||||
|
||||
ul.gfield_radio li.gchoice_total,
|
||||
ul.gfield_checkbox li.gchoice_total {font-size:11px; color:#878787; padding-top:14px!important}
|
||||
|
||||
/* added to prevent truncating the button panels ----------------------------------------------------*/
|
||||
body #wpcontent #wpbody #wpbody-content {overflow: visible}
|
||||
590
src/wp-content/plugins/gravityforms/css/forms.css
Normal file
@ -0,0 +1,590 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
Gravity Forms Front End Form Styles
|
||||
Version 1.5.2.12
|
||||
http://www.gravityforms.com
|
||||
updated: July 5, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE! MAKE ANY MODIFICATIONS IN YOUR
|
||||
THEME STYLESHEET. THIS FILE IS REPLACED DURING AUTO-UPDATES
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTEN.
|
||||
|
||||
If you need to make extensive customizations,
|
||||
copy the contents of this file to your theme
|
||||
style sheet for editing. Then, go to the form
|
||||
settings page & set the 'output CSS' option
|
||||
to no.
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
.gform_wrapper {overflow:inherit; margin:10px 0; max-width:98%}
|
||||
.gform_wrapper h1,
|
||||
.gform_wrapper h2,
|
||||
.gform_wrapper h3 {font-weight:normal; border:none; outline:none; background:none}
|
||||
.gform_wrapper :focus {outline:0}
|
||||
.gform_wrapper form {text-align:left}
|
||||
.gform_wrapper input[type=text],
|
||||
.gform_wrapper input[type=url],
|
||||
.gform_wrapper input[type=email],
|
||||
.gform_wrapper input[type=tel],
|
||||
.gform_wrapper input[type=number],
|
||||
.gform_wrapper input[type=password] {outline-style: none; font-size:11px; font-family:inherit; padding:2px 0 2px 0; letter-spacing:normal}
|
||||
.gform_wrapper textarea {outline-style: none; font-size:11px; font-family:inherit; letter-spacing:normal; padding:2px 0 2px 0; resize:none} /* doesn't validate but added for Safari field resizing */
|
||||
.gform_wrapper ul {margin:0; list-style-type:none}
|
||||
html>body .entry ul,
|
||||
.gform_wrapper ul {text-indent:0px}
|
||||
.gform_wrapper li,
|
||||
.gform_wrapper form li {list-style-type:none!important; list-style-image: none!important; overflow:hidden}
|
||||
.gform_wrapper ul li.gfield {clear: both}
|
||||
.gform_wrapper ul.gfield_radio li,
|
||||
.gform_wrapper ul.gfield_checkbox li {overflow:hidden}
|
||||
.gform_wrapper ul.right_label li,
|
||||
.gform_wrapper form ul.right_label li,
|
||||
.gform_wrapper ul.left_label li,
|
||||
.gform_wrapper form ul.left_label li {margin-bottom:14px}
|
||||
.gform_wrapper ul li:before,
|
||||
.gform_wrapper ul li:after,
|
||||
.entry ul li:before,
|
||||
.entry ul li:after {content:""} /* for Safari */
|
||||
.gform_wrapper ul li:before,
|
||||
.gform_wrapper ul li:after,
|
||||
.entry ul li:before,
|
||||
.entry ul li:after {content:none; #} /* for other browsers */
|
||||
.gform_wrapper ul.gform_fields {padding:0px; margin:0px; overflow:hidden}
|
||||
.gform_wrapper select {font-size:11px; font-family:inherit; padding:3px 0 3px 0; letter-spacing:normal}
|
||||
.gform_wrapper .inline {display:inline!important}
|
||||
.gform_wrapper .gform_heading {width:98%; margin-bottom:18px}
|
||||
.gform_wrapper .gfield_time_hour,
|
||||
.gform_wrapper .gfield_time_minute,
|
||||
.gform_wrapper .gfield_date_month,
|
||||
.gform_wrapper .gfield_date_day,
|
||||
.gform_wrapper .gfield_date_year {width:70px; display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; vertical-align: top}
|
||||
.gform_wrapper .gfield_date_month,
|
||||
.gform_wrapper .gfield_date_day,
|
||||
.gform_wrapper .gfield_date_year {margin-right:12px}
|
||||
.gform_wrapper .gfield_time_ampm {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; vertical-align: top}
|
||||
.gform_wrapper .gfield_time_ampm select {width:60px!important}
|
||||
.gform_wrapper .gfield_time_hour input,
|
||||
.gform_wrapper .gfield_time_minute input,
|
||||
.gform_wrapper .gfield_date_month input,
|
||||
.gform_wrapper .gfield_date_day input,
|
||||
.gform_wrapper .gfield_date_year input {width:70%!important}
|
||||
.gform_wrapper .gfield_date_month,
|
||||
.gform_wrapper .gfield_date_day,
|
||||
.gform_wrapper .gfield_date_year {width:50px; float:left}
|
||||
.gform_wrapper .gfield_date_month input,
|
||||
.gform_wrapper .gfield_date_day input,
|
||||
.gform_wrapper .gfield_date_year input {width:85%!important}
|
||||
.gform_wrapper .field_hover {border:1px dashed #2175A9; cursor:pointer}
|
||||
.gform_wrapper .field_selected {background-color:#DFEFFF; border:1px solid #C2D7EF}
|
||||
.gform_wrapper .field_name_first,
|
||||
.gform_wrapper .field_name_last {width:50%; float:left}
|
||||
.gform_wrapper .ginput_complex {overflow:hidden}
|
||||
.gform_wrapper .field_name_first input,
|
||||
.gform_wrapper .ginput_complex .ginput_left input {width:95%!important}
|
||||
.gform_wrapper .field_name_last input {width:93%!important}
|
||||
.gform_wrapper .datepicker {width:100px!important}
|
||||
.gform_wrapper .ginput_complex .ginput_left {width:50%; float:left}
|
||||
.gform_wrapper .ginput_complex .ginput_right {width:49%; float:right}
|
||||
.gform_wrapper .gfield_error .ginput_complex .ginput_left,
|
||||
.gform_wrapper .gfield_error .ginput_complex .ginput_right {width:50%}
|
||||
.gform_wrapper .gfield_error .ginput_complex .ginput_left input {width:90%!important}
|
||||
.gform_wrapper .gfield_error .ginput_complex .ginput_right input {width:95%!important}
|
||||
.gform_wrapper .ginput_complex input,
|
||||
.gform_wrapper .ginput_complex select {width:95%!important}
|
||||
.gform_wrapper .ginput_complex .ginput_right input,
|
||||
.gform_wrapper .ginput_complex .ginput_right select {width:96%!important}
|
||||
.gform_wrapper .ginput_complex label,
|
||||
.gform_wrapper .gfield_time_hour label,
|
||||
.gform_wrapper .gfield_time_minute label,
|
||||
.gform_wrapper .gfield_date_month label,
|
||||
.gform_wrapper .gfield_date_day label,
|
||||
.gform_wrapper .gfield_date_year label,
|
||||
.gform_wrapper .instruction {display:block; margin:3px 0; font-size:11px; letter-spacing:0.5pt}
|
||||
.gform_wrapper .ginput_complex .name_prefix {float:left; width:30px!important; margin-right:14px}
|
||||
.gform_wrapper .ginput_complex .name_suffix {float:left; width:30px!important}
|
||||
.gform_wrapper .ginput_complex .name_first,
|
||||
.gform_wrapper .ginput_complex .name_last {float:left; width:100px; margin-right:8px}
|
||||
.gform_wrapper .top_label .gfield_label {margin:10px 0 4px 0; font-weight:bold; display:-moz-inline-stack; display:inline-block; line-height:1.3em; clear:both}
|
||||
.gform_wrapper .left_label .gfield_label {float:left; margin:2px 15px 0 0; width:29%; font-weight:bold}
|
||||
.gform_wrapper .right_label .gfield_label {float:left; margin:2px 15px 0 0; width:29%; font-weight:bold; text-align:right}
|
||||
.gform_wrapper .left_label ul.gfield_checkbox,
|
||||
.gform_wrapper .right_label ul.gfield_checkbox,
|
||||
.gform_wrapper .left_label ul.gfield_radio,
|
||||
.gform_wrapper .right_label ul.gfield_radio {margin-left:32%; overflow:hidden}
|
||||
.gform_wrapper .top_label input.small,
|
||||
.gform_wrapper .top_label select.small {width:25%}
|
||||
.gform_wrapper .top_label input.medium,
|
||||
.gform_wrapper .top_label select.medium {width:47%}
|
||||
.gform_wrapper .top_label input.medium {padding-right:2px}
|
||||
.gform_wrapper .top_label input.large,
|
||||
.gform_wrapper .top_label select.large,
|
||||
.gform_wrapper .top_label textarea.textarea {width:92%}
|
||||
.gform_wrapper .right_label input.small,
|
||||
.gform_wrapper .right_label select.small,
|
||||
.gform_wrapper .left_label input.small,
|
||||
.gform_wrapper .left_label select.small {width:15%}
|
||||
.gform_wrapper .right_label input.medium,
|
||||
.gform_wrapper .right_label select.medium,
|
||||
.gform_wrapper .left_label input.medium,
|
||||
.gform_wrapper .left_label select.medium {width:35%}
|
||||
.gform_wrapper .right_label input.large,
|
||||
.gform_wrapper .right_label select.large,
|
||||
.gform_wrapper .left_label input.large,
|
||||
.gform_wrapper .left_label select.large,
|
||||
.gform_wrapper textarea.textarea {width:59%}
|
||||
.gform_wrapper .right_label div.ginput_complex,
|
||||
.gform_wrapper .left_label div.ginput_complex {width:64%; float:left}
|
||||
.gform_wrapper h2.gsection_title {margin:0!important; padding:0!important; letter-spacing:normal!important}
|
||||
.gform_wrapper .gsection .gfield_label,
|
||||
.gform_wrapper h2.gsection_title,
|
||||
.gform_wrapper h3.gform_title {font-weight:bold; font-size:16px}
|
||||
.gform_wrapper h3.gform_title {letter-spacing:normal!important; margin:10px 0 6px 0}
|
||||
.gform_wrapper span.gform_description {font-weight:normal}
|
||||
.gform_wrapper h2.gsection_title,
|
||||
.gform_wrapper .gsection_description,
|
||||
.gform_wrapper h3.gform_title {width:98%}
|
||||
.gform_wrapper .gsection {border-bottom:1px dotted #ccc; padding:0 0 8px 0; margin:16px 0; clear:both}
|
||||
.gform_wrapper ul.gfield_checkbox li input[type=checkbox],
|
||||
.gform_wrapper ul.gfield_radio li input[type=radio] {width:auto!important}
|
||||
|
||||
|
||||
/* updated radio and checkbox styling - justifies lenghty labels ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gfield_checkbox li,
|
||||
.gform_wrapper .gfield_radio li {position:relative}
|
||||
.gform_wrapper ul.gfield_checkbox,
|
||||
.gform_wrapper ul.gfield_radio {margin:6px 0; padding:0}
|
||||
.gform_wrapper .gfield_checkbox li label,
|
||||
.gform_wrapper .gfield_radio li label {display:block; margin: 0 0 0 24px; padding:0; width: auto; line-height:1.5; vertical-align: top }
|
||||
.gform_wrapper .gfield_checkbox li input[type=checkbox],
|
||||
.gform_wrapper .gfield_radio li input[type=radio],
|
||||
.gform_wrapper .gfield_checkbox li input {float:left; margin-top:2px;}
|
||||
.gform_wrapper .description,
|
||||
.gform_wrapper .gfield_description,
|
||||
.gform_wrapper .gsection_description,
|
||||
.gform_wrapper .instruction {font-size:11px; line-height:1.5em; clear:both; font-family:sans-serif; letter-spacing:normal}
|
||||
.gform_wrapper .description,
|
||||
.gform_wrapper .gfield_description,
|
||||
.gform_wrapper .gsection_description {padding:4px 0 8px 0}
|
||||
.gform_wrapper .gfield_description {padding: 10px 0 0 0; font-style: italic}
|
||||
.gfield_date_year+.gfield_description {padding:0}
|
||||
.gform_wrapper .gsection_description {font-style: italic}
|
||||
.ginput_complex + .gfield_description {padding-top:0!important}
|
||||
.gform_wrapper .right_label .gfield_description,
|
||||
.gform_wrapper .left_label .gfield_description,
|
||||
.gform_wrapper .left_label .instruction,
|
||||
.gform_wrapper .right_label .instruction {margin-left:29%; padding-left:15px}
|
||||
.gform_wrapper .left_label .gsection .gsection_description,
|
||||
.gform_wrapper .right_label .gsection .gsection_description {margin-left:0; padding-left:0; padding-top:4px; line-height:1.5em}
|
||||
.gform_wrapper .gfield_required {color:#790000; margin-left:4px}
|
||||
.gform_wrapper textarea.small {height:80px}
|
||||
.gform_wrapper textarea.medium {height:150px}
|
||||
.gform_wrapper textarea.large {height:250px}
|
||||
.gform_wrapper li.gfield.gfield_error {background-color:#FFDFDF; margin-bottom:6px!important; padding:6px 6px 4px 6px!important; border:1px dotted #C89797}
|
||||
.gform_wrapper .top_label .gfield_error .ginput_container {max-width:99%}
|
||||
.gform_wrapper .top_label .gfield_error {width:97%}
|
||||
.gform_wrapper .top_label .gfield_error input,
|
||||
.gform_wrapper .top_label .gfield_error textarea,
|
||||
.gform_wrapper .top_label .gfield_error select {border:1px solid #790000}
|
||||
.gform_wrapper .top_label .gfield_error input.large,
|
||||
.gform_wrapper .top_label .gfield_error select.large,
|
||||
.gform_wrapper .top_label .gfield_error textarea.textarea {width:100%}
|
||||
.gform_wrapper .right_label .gfield_error input.large,
|
||||
.gform_wrapper .right_label .gfield_error select.large,
|
||||
.gform_wrapper .right_label .gfield_error textarea.textarea,
|
||||
.gform_wrapper .left_label .gfield_error input.large,
|
||||
.gform_wrapper .left_label .gfield_error select.large,
|
||||
.gform_wrapper .left_label .gfield_error textarea.textarea {width:66%}
|
||||
.gform_wrapper .gfield_error .gfield_label {color:#790000}
|
||||
.gform_wrapper .validation_error {color:#790000; font-weight:bold; font-size:14px; line-height:1.5em; margin-bottom:16px}
|
||||
.gform_wrapper .validation_message {color:#790000; font-size:11px; letter-spacing:normal}
|
||||
.gform_wrapper .gform_footer {padding:16px 0 10px 0; margin:16px 0 0 0; clear:both}
|
||||
.gform_wrapper .gform_footer.right_label,
|
||||
.gform_wrapper .gform_footer.left_label {padding:16px 0 10px 31%}
|
||||
.gform_wrapper .gform_footer input.button,
|
||||
.gform_wrapper .gform_footer input[type=submit] {font-size:1em}
|
||||
#gforms_confirmation_message {background-color:#fffac6; border:1px solid #feda70; margin-top:10px; margin-bottom:10px; padding:20px 0; font-size:14px; color:#252525; text-align:center}
|
||||
.gform_wrapper .gform_edit_link {margin:20px 0; font-family:inherit; font-size:12px}
|
||||
.gform_wrapper .ginput_complex .ginput_left,
|
||||
.gform_wrapper .ginput_complex .ginput_right,
|
||||
.gform_wrapper .ginput_complex .ginput_full {min-height:43px; display:block; overflow:hidden}
|
||||
.gform_wrapper .ginput_complex .ginput_full input {width:98%!important}
|
||||
.gform_wrapper .gfield_checkbox li,
|
||||
.gform_wrapper .gfield_radio li {margin:0 0 4px 0; line-height: 1.3em!important} /* improve spacing and prevent descenders from getting cut off in IE */
|
||||
|
||||
|
||||
/* jQuery UI date picker ------------------------------------------------------*/
|
||||
|
||||
.ui-datepicker-div,
|
||||
.ui-datepicker-inline,
|
||||
#ui-datepicker-div {/*resets*/margin:0; padding:0; border:0; outline:0; line-height:1.3; text-decoration:none; font-size:1em; list-style:none; font-family:"lucida sans", "lucida grande", lucida , sans-serif; background:#fff; font-size:1em; border:4px solid #C1C1C1; width:15.5em; padding:2.5em .5em .5em .5em; position:relative}
|
||||
.ui-datepicker-div,
|
||||
#ui-datepicker-div {z-index:9999; display:none} /*must have*/
|
||||
.ui-datepicker-inline {float:left; display:block}
|
||||
.ui-datepicker-control {display:none}
|
||||
.ui-datepicker-current {display:none}
|
||||
.ui-datepicker-next,
|
||||
.ui-datepicker-prev {position:absolute; left:.5em; top:.5em; background:#eee}
|
||||
.ui-datepicker-next {left:14.6em}
|
||||
.ui-datepicker-next:hover,
|
||||
.ui-datepicker-prev:hover {background:#dadada}
|
||||
.ui-datepicker-next a,
|
||||
.ui-datepicker-prev a {text-indent:-999999px; width:1.3em; height:1.4em; display:block; font-size:1em; background:url(../images/datepicker_arrow_left.gif) 50% 50% no-repeat; border:1px solid #d3d3d3; cursor:pointer}
|
||||
.ui-datepicker-next a {background:url(../images/datepicker_arrow_right.gif) 50% 50% no-repeat}
|
||||
.ui-datepicker-header select {border:1px solid #d3d3d3; color:#555; background:#e6e6e6; font-size:1em; line-height:1.4em; position:absolute; top:.5em; margin:0!important}
|
||||
.ui-datepicker-header option:focus,
|
||||
.ui-datepicker-header option:hover {background:#dadada}
|
||||
.ui-datepicker-header select.ui-datepicker-new-month {width:7em; left:2.2em}
|
||||
.ui-datepicker-header select.ui-datepicker-new-year {width:5em; left:9.4em}
|
||||
table.ui-datepicker {width:15.5em; text-align:right}
|
||||
table.ui-datepicker td a {padding:.1em; display:block; color:#555; background:#e6e6e6; cursor:pointer; border:1px solid #fff; text-align:center}
|
||||
table.ui-datepicker td a:hover {border:1px solid #fff; color:#212121; background:#dadada; text-decoration: none}
|
||||
table.ui-datepicker td a:active {border:1px solid #aaa; color:#212121; background:#fff; text-decoration: none}
|
||||
table.ui-datepicker .ui-datepicker-title-row td {padding:.2em 0; text-align:center; font-size:.9em; color:#222; text-transform:uppercase}
|
||||
table.ui-datepicker .ui-datepicker-title-row td a {color:#222; padding:.3em 0}
|
||||
.ui-datepicker-cover {display:none; display/**/:block; position:absolute; z-index:-1; filter:mask(); top:-4px; left:-4px; width:193px; height:200px}
|
||||
img.ui-datepicker-trigger {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; cursor: pointer; vertical-align: top; width:17px}
|
||||
.gform_wrapper input.datepicker.datepicker_with_icon {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; margin-right:4px!important}
|
||||
|
||||
|
||||
/* tame those pesky hidden fields ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper input[type=hidden],
|
||||
.gform_wrapper input.gform_hidden,
|
||||
.gform_wrapper .gform_hidden {display:none!important; max-height:1px!important; overflow:hidden}
|
||||
.gform_wrapper .ginput_full br,
|
||||
.gform_wrapper .ginput_left br,
|
||||
.gform_wrapper .ginput_right br {display:none!important}
|
||||
|
||||
|
||||
/* fix captcha alignment for IE8, Chrome & Safari ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gform_body ul.gform_fields li.gfield .ginput_container #recaptcha_widget_div #recaptcha_area {width:99%!important}
|
||||
.gform_wrapper .left_label #recaptcha_area #recaptcha_table,
|
||||
.gform_wrapper .right_label #recaptcha_area #recaptcha_table {margin-left:32%}
|
||||
|
||||
|
||||
/* additional spacing and padding tweaks ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper ul.gfield_checkbox li,
|
||||
.gform_wrapper ul.gfield_radio li {padding:0!important}
|
||||
.gform_wrapper .top_label .ginput_complex + .gfield_description {padding-bottom:0!important}
|
||||
.gform_wrapper .top_label .gfield_description, {padding: 10px 0 0 0}
|
||||
.gform_wrapper .top_label .gfield_description.validation_message,
|
||||
.gform_wrapper .gfield_description.validation_message {padding:10px 0 10px 0}
|
||||
|
||||
|
||||
/* HTML field default margins -----------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .left_label li.gfield_html_formatted,
|
||||
.gform_wrapper .right_label li.gfield_html_formatted {margin-left:32%}
|
||||
.gform_wrapper .gfield_html.gfield_no_follows_desc {margin-top:10px}
|
||||
|
||||
|
||||
/* ajax forms ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gform_ajax_spinner {padding-left: 10px}
|
||||
|
||||
|
||||
/* hide the honeypot field ------------------------------------------------------*/
|
||||
|
||||
body .gform_wrapper .gform_body ul.gform_fields li.gfield.gform_validation_container,
|
||||
body .gform_wrapper ul.gform_fields li.gfield.gform_validation_container {display:none!important; position: absolute!important; left:-9000px}
|
||||
|
||||
|
||||
/* Simple Captcha ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gfield_captcha_input_container {padding-top:3px}
|
||||
.gform_wrapper .simple_captcha_small input {width:100px}
|
||||
.gform_wrapper .simple_captcha_medium input {width:150px}
|
||||
.gform_wrapper .simple_captcha_large input {width:200px}
|
||||
.gform_wrapper .gform_wrapper .left_label .simple_captcha_small,
|
||||
.gform_wrapper .right_label .simple_captcha_small,
|
||||
.gform_wrapper .left_label .simple_captcha_medium,
|
||||
.gform_wrapper .right_label .simple_captcha_medium,
|
||||
.gform_wrapper .left_label .simple_captcha_large,
|
||||
.gform_wrapper .right_label .simple_captcha_large {margin-left:32%}
|
||||
.gform_wrapper .gfield_captcha_container img.gfield_captcha {border:none!important; background:none!important; float:none!important; margin:0!important; padding:0!important}
|
||||
|
||||
|
||||
/* math challenge ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .math_small input {width:69px}
|
||||
.gform_wrapper .math_medium input {width:90px}
|
||||
.gform_wrapper .math_large input {width:108px}
|
||||
.gform_wrapper .left_label .math_small,
|
||||
.gform_wrapper .right_label .math_small,
|
||||
.gform_wrapper .left_label .math_medium,
|
||||
.gform_wrapper .right_label .math_medium,
|
||||
.gform_wrapper .left_label .math_large,
|
||||
.gform_wrapper .right_label .math_large {margin-left:32%}
|
||||
|
||||
|
||||
/* textarea character counter ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper div.charleft {font-size:11px; margin-top:4px; color:#b7b7b7; width:92%!important; white-space: nowrap!important}
|
||||
.gform_wrapper div.charleft[style] {width:92%!important}
|
||||
.gform_wrapper .left_label div.charleft,
|
||||
.gform_wrapper .right_label div.charleft {margin-left:32%}
|
||||
.gform_wrapper div.charleft.warningTextareaInfo {color:#a1a1a1}
|
||||
.gform_wrapper li.gf_hide_charleft div.charleft {display:none!important}
|
||||
|
||||
|
||||
/* pricing fields ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .ginput_price {filter:alpha(opacity=70); -moz-opacity:0.7; -khtml-opacity: 0.7; opacity: 0.7}
|
||||
.gform_wrapper span.ginput_total {color:#060; font-size:1.2em}
|
||||
.gform_wrapper .top_label span.ginput_total { margin:8px 0}
|
||||
.gform_wrapper span.ginput_product_price_label { margin-right:2px}
|
||||
.gform_wrapper span.ginput_product_price {color:#990000}
|
||||
.gform_wrapper span.ginput_quantity_label {margin-left:10px; margin-right:2px}
|
||||
.gform_wrapper input.ginput_quantity {width:40px}
|
||||
|
||||
|
||||
/* multi-page form paging ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gform_page_footer {margin:20px 0; width:92%; border-top:1px dotted #ccc; padding:16px 0 0 0}
|
||||
.gform_wrapper .gform_page_footer .button.gform_button {margin-right:10px}
|
||||
|
||||
|
||||
/* multi-page progress bar ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gf_progressbar_wrapper {clear:both; width:92%; margin:0 0 8px 0; padding: 0 0 16px 0; border-bottom:1px dotted #ccc}
|
||||
.gform_wrapper .gf_progressbar_wrapper h3.gf_progressbar_title {font-size:13px; line-height:1em!important; margin:0 0 6px 0!important; padding:0!important; clear:both; filter:alpha(opacity=60); -moz-opacity:0.6; -khtml-opacity: 0.6; opacity: 0.6}
|
||||
.gform_wrapper .gf_progressbar {width:99%; height:20px; overflow:hidden; line-height:20px!important; background-color:#fff; border:1px solid #acacac; border-right:1px solid #959595; border-bottom:1px solid #959595; background-image: url(../images/percentbar_bg.png); background-repeat: repeat-x; background-position: bottom; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px}
|
||||
.gform_wrapper .gf_progressbar_percentage {background-repeat:repeat-x; height:20px; text-align:right; font-family:"helvetica",arial,sans-serif; font-size:13px!important; text-shadow: 0 1px 1px rgba(0,0,0,0.50)}
|
||||
.gform_wrapper .gf_progressbar_percentage span {margin-right:5px; margin-left:5px}
|
||||
.gform_wrapper .percentbar_blue {background-image: url(../images/percentbar_blue.png); color:#fff; background-color:#0072BC}
|
||||
.gform_wrapper .percentbar_gray {background-image: url(../images/percentbar_gray.png); color:#fff; background-color:#666}
|
||||
.gform_wrapper .percentbar_green {background-image: url(../images/percentbar_green.png); color:#fff; background-color:#94DC21}
|
||||
.gform_wrapper .percentbar_orange {background-image: url(../images/percentbar_orange.png); color:#fff; background-color:#DC7021}
|
||||
.gform_wrapper .percentbar_red {background-image: url(../images/percentbar_red.png); color:#fff; background-color:#DC2521}
|
||||
.gform_wrapper .percentbar_custom {background-image: url(../images/percentbar_custom.png)}
|
||||
|
||||
|
||||
/* multi-page steps ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gf_page_steps {overflow:hidden; width:92%; margin:0 0 8px 0; padding: 0 0 4px 0; border-bottom:1px dotted #ccc}
|
||||
.gform_wrapper .gf_step {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; width:auto!important; margin:0 10px 10px 0; font-size:14px; height:20px; line-height:20px!important; filter:alpha(opacity=50); -moz-opacity:0.4; -khtml-opacity: 0.4; opacity: 0.4; font-family:arial,sans-serif}
|
||||
.gform_wrapper .gf_step span.gf_step_number {font-size:20px; float:left; font-family:arial,sans-serif}
|
||||
.gform_wrapper .gf_step.gf_step_active {filter:alpha(opacity=100); -moz-opacity:1.0; -khtml-opacity: 1.0; opacity: 1.0}
|
||||
|
||||
|
||||
/* IE specific hacks ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gfield_time_hour {*width:80px}
|
||||
.gform_wrapper .gfield_time_minute {*width:70px}
|
||||
.gform_wrapper .gfield_time_ampm {*padding-top:2px}
|
||||
.gform_wrapper .gfield_time_hour input,
|
||||
.gform_wrapper .gfield_time_minute input {*margin-left:0}
|
||||
.gform_wrapper .ginput_complex .ginput_left label,
|
||||
.gform_wrapper .ginput_complex .ginput_right label {*margin:3px 0 5px 0}
|
||||
.gform_footer input.button {*padding:3px}
|
||||
.gform_wrapper ul.top_label .clear-multi {overflow:hidden; clear:both}
|
||||
.gform_wrapper .gfield_checkbox li input[type=checkbox],
|
||||
.gform_wrapper .gfield_radio li input[type=radio],
|
||||
.gform_wrapper .gfield_checkbox li input {*margin-top:0}
|
||||
.gform_wrapper .ginput_complex .ginput_left select,
|
||||
.gform_wrapper .ginput_complex .ginput_right select {padding: 2px 0 2px 0\9 }
|
||||
|
||||
|
||||
/* inline fields ready class ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .top_label li.gfield.gf_inline {display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; vertical-align: top; width:auto!important; margin-right:14px; float:none!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=text].large,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=url].large,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=email].large,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=tel].large,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=number].large,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=password].large {width:25.4em!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=text].medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=url].medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=email].medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=tel].medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=number].medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=password].medium {width:18.7em!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=text].datepicker.medium {width:6em!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=text].small,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=url].small,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=email].small,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=tel].small,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=number].small,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline input[type=password].small {width:5em!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline select {width:auto!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline textarea {width:95%!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_time_hour input[type=text],
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_time_minute input[type=text] {width:70%!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_time_hour,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_time_minute,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_date_month,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_date_day,
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_date_year {width:50px}
|
||||
.gform_wrapper .top_label li.gfield.gf_inline div.gfield_time_ampm {width:auto}
|
||||
.gform_wrapper li.gf_inline div.ginput_container {white-space: nowrap!important}
|
||||
|
||||
|
||||
/* 2 column ready class ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half {margin:0 0 8px 0; width:49%}
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half {margin:0 0 8px 0; width:49%}
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_left_half,
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_right_half {width:46%}
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_right_half {margin-right:1%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half {float:left; clear:left!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half {float:right; clear:right!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half input.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half input.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half select.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half select.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half input.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half input.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half select.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half select.large {width:97%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half textarea,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half textarea {width:98%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half input.small,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half input.small {width:35%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half+li.gsection,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half+li.gsection {padding:16px 0 8px 0}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half+li.gfield.gsection.gf_left_half,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half+li.gfield.gsection.gf_left_half,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half+li.gfield.gsection.gf_right_half,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half+li.gfield.gsection.gf_right_half,
|
||||
.gform_wrapper .top_label li.gfield.gsection.gf_left_half+li.gfield.gsection.gf_left_half,
|
||||
.gform_wrapper .top_label li.gfield.gsection.gf_right_half+li.gfield.gsection.gf_left_half,
|
||||
.gform_wrapper .top_label li.gfield.gsection.gf_right_half+li.gfield.gsection.gf_right_half {padding:16px 0 8px 0}
|
||||
.gform_wrapper .top_label li.gfield.gsection.gf_left_half+li.gfield.gsection.gf_right_half {padding:0 0 8px 0}
|
||||
.gform_wrapper .top_label li.gfield.gsection.gf_left_half+li.gfield.gsection.gf_right_half+li.gfield.gsection.gf_left_half+li.gfield.gsection.gf_right_half {padding:16px 0 8px 0}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half+li.gfield,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half+li.gfield {clear:both}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_half+.gform_footer,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_half+.gform_footer {clear:both}
|
||||
|
||||
|
||||
/* 3 column ready class ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third {margin:0 0 8px 0; width:32%}
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_left_third,
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_middle_third,
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_right_third {width:29%}
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_right_third {margin-right:1%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third {float:left; clear:left!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third {float:left; margin-left:2%; clear:none!important}
|
||||
.gform_wrapper .top_label li.gfield.gfield_error.gf_middle_third {margin-left:3%}
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third {float:right; clear:right!important}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third input.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third input.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third select.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third select.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third input.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third input.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third select.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third select.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third input.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third input.large,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third select.medium,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third select.large {width:95%}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third+li.gsection,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third+li.gsection {padding:16px 0 8px 0}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third+li.gfield,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third+li.gfield,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third+li.gfield {clear:both}
|
||||
.gform_wrapper .top_label li.gfield.gf_left_third+.gform_footer,
|
||||
.gform_wrapper .top_label li.gfield.gf_middle_third+.gform_footer,
|
||||
.gform_wrapper .top_label li.gfield.gf_right_third+.gform_footer {clear:both}
|
||||
|
||||
|
||||
/* radio/checkbox sub-column ready classes ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper li.gfield.gf_list_2col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_2col ul.gfield_radio li,
|
||||
.gform_wrapper li.gfield.gf_2col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_2col ul.gfield_radio li {width:50%; float:left; margin:0; min-height:1.8em}
|
||||
.gform_wrapper li.gfield.gf_list_3col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_3col ul.gfield_radio li,
|
||||
.gform_wrapper li.gfield.gf_3col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_3col ul.gfield_radio li {width:33%; float:left; margin:0; min-height:1.8em}
|
||||
.gform_wrapper li.gfield.gf_list_4col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_4col ul.gfield_radio li,
|
||||
.gform_wrapper li.gfield.gf_4col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_4col ul.gfield_radio li {width:25%; float:left; margin:0; min-height:1.8em}
|
||||
.gform_wrapper li.gfield.gf_list_5col ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_5col ul.gfield_radio li {width:20%; float:left; margin:0; min-height:1.8em}
|
||||
.gform_wrapper li.gfield.gf_list_2col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_list_2col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_list_3col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_list_3col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_list_4col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_list_4col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_list_5col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_list_5col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_2col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_2col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_3col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_3col ul.gfield_radio,
|
||||
.gform_wrapper li.gfield.gf_4col ul.gfield_checkbox,
|
||||
.gform_wrapper li.gfield.gf_4col ul.gfield_radio {overflow:hidden}
|
||||
|
||||
|
||||
/* optional height settings for the radio/checkbox columns */
|
||||
|
||||
.gform_wrapper li.gfield.gf_list_height_25 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_25 ul.gfield_radio li {height:25px}
|
||||
.gform_wrapper li.gfield.gf_list_height_50 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_50 ul.gfield_radio li {height:50px}
|
||||
.gform_wrapper li.gfield.gf_list_height_75 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_75 ul.gfield_radio li {height:75px}
|
||||
.gform_wrapper li.gfield.gf_list_height_100 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_100 ul.gfield_radio li {height:100px}
|
||||
.gform_wrapper li.gfield.gf_list_height_125 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_125 ul.gfield_radio li {height:125px}
|
||||
.gform_wrapper li.gfield.gf_list_height_150 ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gfield.gf_list_height_150 ul.gfield_radio li {height:150px}
|
||||
|
||||
|
||||
/* radio/checkbox inline list ready classes ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper li.gf_list_inline ul.gfield_checkbox li,
|
||||
.gform_wrapper li.gf_list_inline ul.gfield_radio li {width:auto!important; float:none!important; display: -moz-inline-stack; display: inline-block; zoom: 1; *display: inline; margin:0 10px 10px 0}
|
||||
|
||||
|
||||
/* hide am/pm field ready class ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper li.gf_hide_ampm div.gfield_time_ampm {display:none!important}
|
||||
|
||||
|
||||
/* scrolling text section break ready class ------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper li.gsection.gf_scroll_text {height:180px; width:96%; overflow:auto; border:1px solid #ccc; border-bottom:1px solid #ccc!important}
|
||||
.gform_wrapper li.gsection.gf_scroll_text h2.gsection_title {margin:10px 10px 0 10px!important}
|
||||
.gform_wrapper li.gsection.gf_scroll_text .gsection_description {margin:10px; font-size:0.8em}
|
||||
|
||||
|
||||
/* password strength indicator -----------------------------------------------------------------*/
|
||||
|
||||
.gform_wrapper .gfield_password_strength {border:1px solid #ddd; margin:0; padding:3px 5px; text-align:center; width:200px; background-color:#eee}
|
||||
.gform_wrapper .gfield_password_strength.bad {background-color:#ffb78c; border-color:#ff853c}
|
||||
.gform_wrapper .gfield_password_strength.good {background-color:#ffec8b; border-color:#fc0}
|
||||
.gform_wrapper .gfield_password_strength.short,
|
||||
.gform_wrapper .gfield_password_strength.mismatch {background-color:#ffa0a0; border-color:#f04040}
|
||||
.gform_wrapper .gfield_password_strength.strong {background-color:#c3ff88; border-color:#8dff1c}
|
||||
|
||||
|
||||
/* reset the default list styles for the HTML blocks -----------------------------------------------------------------*/
|
||||
|
||||
body .gform_wrapper div.gform_body ul.gform_fields li.gfield.gfield_html ul li,
|
||||
body .gform_wrapper form div.gform_body ul.gform_fields li.gfield.gfield_html ul li {list-style-type: disc!important; overflow:visible}
|
||||
body .gform_wrapper div.gform_body ul.gform_fields li.gfield.gfield_html ul,
|
||||
body .gform_wrapper form div.gform_body ul.gform_fields li.gfield.gfield_html ul {list-style-type: disc!important; margin: 0 0 1.5em 1.5em}
|
||||
412
src/wp-content/plugins/gravityforms/css/jquery-ui-1.7.2.custom.css
vendored
Normal file
@ -0,0 +1,412 @@
|
||||
/*
|
||||
* jQuery UI CSS Framework
|
||||
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
*/
|
||||
|
||||
/* Layout helpers
|
||||
----------------------------------*/
|
||||
.ui-helper-hidden { display: none; }
|
||||
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
|
||||
.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:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
||||
.ui-helper-clearfix { display: inline-block; }
|
||||
/* required comment for clearfix to work in Opera \*/
|
||||
* html .ui-helper-clearfix { height:1%; }
|
||||
.ui-helper-clearfix { display:block; }
|
||||
/* end clearfix */
|
||||
.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
|
||||
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
|
||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
||||
*/
|
||||
|
||||
|
||||
/* Component containers
|
||||
----------------------------------*/
|
||||
.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
|
||||
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; }
|
||||
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff; color: #222222; }
|
||||
.ui-widget-content a { color: #222222; }
|
||||
.ui-widget-header { border-bottom: 1px solid #DFDFDF; color: #222222; }
|
||||
.ui-widget-header a { color: #222222; }
|
||||
|
||||
/* Interaction states
|
||||
----------------------------------*/
|
||||
.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #DFDFDF; background: #EAEAEA; font-weight:normal; color: #222222; outline: none; }
|
||||
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; outline: none; }
|
||||
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #DFDFDF; background: #dadada; font-weight: normal; color: #212121; outline: none; }
|
||||
.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; outline: none; }
|
||||
.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #DFDFDF!important; background: #ffffff; font-weight: normal; color: #212121; outline: none; }
|
||||
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; outline: none; text-decoration: none; }
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee; color: #363636; }
|
||||
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; }
|
||||
.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec; color: #cd0a0a; }
|
||||
.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; }
|
||||
.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; }
|
||||
.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
||||
.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
|
||||
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images
|
||||
.ui-icon { width: 16px; height: 16px; }
|
||||
.ui-widget-content .ui-icon {}
|
||||
.ui-widget-header .ui-icon {}
|
||||
.ui-state-default .ui-icon {}
|
||||
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {}
|
||||
.ui-state-active .ui-icon {}
|
||||
.ui-state-highlight .ui-icon {}
|
||||
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {}
|
||||
*/
|
||||
|
||||
/* 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-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-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; }
|
||||
.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
|
||||
.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
|
||||
.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
|
||||
.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
|
||||
.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
|
||||
.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
|
||||
.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
|
||||
.xui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; }
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { background: #aaaaaa; opacity: .30;filter:Alpha(Opacity=30); }
|
||||
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Accordion
|
||||
----------------------------------*/
|
||||
.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 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; }
|
||||
.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker
|
||||
----------------------------------*/
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; }
|
||||
.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 { float:left; 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 .ui-datepicker-title select.ui-datepicker-year { float: right; }
|
||||
.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%; }
|
||||
|
||||
/* 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*/
|
||||
}/* Dialog
|
||||
----------------------------------*/
|
||||
.ui-dialog { position: relative; padding: .2em; width: 300px; }
|
||||
.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative; }
|
||||
.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; }
|
||||
.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; margin: 1px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
||||
.ui-dialog .ui-dialog-content { 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 button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; }
|
||||
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
||||
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
||||
/* Progressbar
|
||||
----------------------------------*/
|
||||
.ui-progressbar { height:2em; text-align: left; }
|
||||
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable
|
||||
----------------------------------*/
|
||||
.ui-resizable { position: relative;}
|
||||
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; 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: 0px; }
|
||||
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; }
|
||||
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; }
|
||||
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; 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;}/* Slider
|
||||
----------------------------------*/
|
||||
.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; }
|
||||
|
||||
.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; }/* Tabs
|
||||
----------------------------------*/
|
||||
.ui-tabs { padding: .2em; zoom: 1; }
|
||||
.ui-tabs[style] {
|
||||
border:1px solid #C2D7EF!important;
|
||||
margin:6px 0 0 0!important;
|
||||
swidth:438px!important;
|
||||
}
|
||||
.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0 0; }
|
||||
.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; text-align: center; }
|
||||
.ui-tabs .ui-tabs-nav li a { display:block; text-decoration: none; padding: .5em 1em; text-align:center; font-size:12px; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
|
||||
.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 { padding: 1em 1.4em; display: block; border-width: 0; background: none; }
|
||||
.ui-tabs .ui-tabs-hide { display: none !important; }
|
||||
29
src/wp-content/plugins/gravityforms/css/preview.css
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
Gravity Forms Form Preview Styles
|
||||
http://www.gravityforms.com
|
||||
updated: May 18, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE!
|
||||
THIS FILE IS REPLACED DURING AUTO UPGRADE
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTTEN.
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
body{font-family:Helvetica,Arial,sans-serif; padding:0 0 20px 0;}
|
||||
div#preview_top {position:fixed; top:0; left:0; z-index:2000; width:100%;}
|
||||
div#preview_hdr {background-color:#464646; color:#fff; font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif; padding:12px 20px 12px 54px; font-size:22px; margin:0; background-image: url(../images/wp-logo.gif); background-repeat:no-repeat; background-position: 16px center;}
|
||||
div#preview_hdr span.actionlinks {width:200px; display:block; float:right; text-align: right; margin:5px 6px 0 0; font-family:"lucida sans","lucida grande",verdana,arial,sans-serif; font-size:12px; color:#ccc; z-index:2100;}
|
||||
div#preview_hdr a {color:#ccc; text-decoration:none; display:inline; font-weight:normal; letter-spacing:normal;}
|
||||
div#preview_hdr a:hover {color:#fff; text-decoration:underline}
|
||||
div#preview_note {background-color:#fffeeb; border-bottom:1px solid #ccc; margin:0 0 16px 0; padding:8px 18px; font-size:12px; color:#555; font-family: 'Lucida Grande', Verdana, Arial, 'Bitstream Vera Sans', sans-serif; }
|
||||
div#preview_form_container {padding:0 20px 40px 20px; margin-top:100px;}
|
||||
.gform_wrapper{ font-size:13px; color:#111; overflow:hidden; max-width:640px;}
|
||||
86
src/wp-content/plugins/gravityforms/css/print.css
Normal file
@ -0,0 +1,86 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
print.css
|
||||
Gravity Forms Print Entry Styles
|
||||
http://www.gravityforms.com
|
||||
updated: May 18, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE!
|
||||
THIS FILE IS REPLACED DURING AUTO UPGRADE
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTTEN.
|
||||
|
||||
------------------------------------------------
|
||||
*/
|
||||
|
||||
@media screen
|
||||
{
|
||||
body{color:#333}
|
||||
div#print-preview-header {background-color:#464646; color:#fff; font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif; padding:10px 20px 10px 54px; font-size:22px; margin:0 0 16px 0; background-image: url(../images/wp-logo.gif); background-repeat:no-repeat; background-position: 16px center;}
|
||||
div#print-preview-header span.actionlinks {width:200px; display:block; float:right; text-align: right; margin-top:5px; font-family:"lucida sans","lucida grande",verdana,arial,sans-serif; font-size:12px; color:#ccc}
|
||||
div#print-preview-header a {color:#ccc; text-decoration:none; display:inline; font-weight:normal; letter-spacing:normal;}
|
||||
div#print-preview-header a:hover {color:#fff; text-decoration:underline}
|
||||
div#view-container {margin:0 20px 20px 20px;}
|
||||
}
|
||||
|
||||
@media print
|
||||
{
|
||||
body{color:#000}
|
||||
div#print-preview-header {display:none}
|
||||
}
|
||||
|
||||
@media screen,print
|
||||
{
|
||||
|
||||
html{height:100%;}
|
||||
body{font-family:"lucida sans","lucida grande",verdana,arial,sans-serif; font-size:12px; padding:0; margin:0; height:100%}
|
||||
ul{margin:10px 0; padding:0}
|
||||
img{border:0}
|
||||
.widefat{background-color:#FFF; border-color:#DFDFDF}
|
||||
.widefat{ -moz-border-radius: 4px; -khtml-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; border-spacing:0; border-style:solid; border-width:1px; clear:both; margin:0; width:100%}
|
||||
table.fixed{table-layout:fixed}
|
||||
table.entry-detail-view, table.entry-detail-notes {margin:0 0 16px 0}
|
||||
table.entry-detail-notes {page-break-before:always}
|
||||
table.entry-detail-view th, table.entry-detail-notes th{font-size:14px; text-shadow:0 1px 0 #FFF; text-align:left; padding:7px; background-color:#E3E3E3}
|
||||
table.entry-detail-view td.lastrow, table.entry-detail-notes td.lastrow{border-bottom:none!important}
|
||||
td.entry-view-section-break{font-size:14px; font-weight:bold; background-color:#EEE; border-bottom:1px solid #DFDFDF; padding:7px 7px;}
|
||||
td.entry-view-field-name{font-weight:bold; background-color:#EAF2FA; border-bottom:1px solid #FFF; line-height:150%; padding:7px 7px;}
|
||||
td.entry-view-field-value{border-bottom:1px solid #DFDFDF; padding:7px 7px 7px 40px; line-height:150%;}
|
||||
td.entry-view-field-value p{text-align:left; line-height:150%}
|
||||
td.entry-view-field-value ul.bulleted{margin-left:12px}
|
||||
td.entry-view-field-value ul.bulleted li{list-style-type:disc}
|
||||
td.entry-detail-note{border-bottom:1px solid #DFDFDF; padding:7px 7px; line-height:150%}
|
||||
div.note-avatar{width:48px; height:48px; float:left; margin-right:6px}
|
||||
h6.note-author{font-weight:bold; font-size:13px; margin:0; padding:0; line-height:100%}
|
||||
div.detail-note-content{margin:10px 0 10px 54px; line-height:150%}
|
||||
div.detail-note-content p{line-height:150%}
|
||||
|
||||
/* transaction table styles ------------------------------------------------------------------------- */
|
||||
|
||||
table.entry-products {border:1px solid #DFDFDF; border-right:none; border-bottom:none; margin:10px 0;}
|
||||
table.entry-products th[scope=col] {background-color:#f4f4f4; border-right:1px solid #DFDFDF!important; border-bottom:1px solid #DFDFDF;}
|
||||
table.entry-products col.entry-products-col2 {width:50px}
|
||||
table.entry-products col.entry-products-col3 {width:155px}
|
||||
table.entry-products col.entry-products-col4 {width:155px}
|
||||
table.entry-products td {border-right:1px solid #DFDFDF!important; border-bottom:1px solid #DFDFDF; padding:7px 7px 8px 7px; vertical-align:top;}
|
||||
table.entry-products td.textcenter,
|
||||
table.entry-products th.textcenter {text-align: center}
|
||||
table.entry-products td.textright,
|
||||
table.entry-products th.textright {text-align: right}
|
||||
table.entry-products td.grandtotal,
|
||||
table.entry-products td.grandtotal_amount,
|
||||
table.entry-products td.shipping,
|
||||
table.entry-products td.shipping_amount {font-weight:bold; font-size:13px; padding-top:7px; padding-bottom:8px;}
|
||||
table.entry-products td.emptycell {background-color:#f4f4f4}
|
||||
table.entry-products td div.product_name {font-weight:bold; color:#BF461E; font-size:13px; margin-bottom:5px;}
|
||||
table.entry-products td ul.product_options {}
|
||||
table.entry-products td ul.product_options li {background-image:url(../images/prodlist.png); background-repeat:no-repeat; background-position: left top; overflow:visible; margin:0 0 0 2px!important; padding:4px 0 4px 16px; list-style-type:none}
|
||||
table.entry-products td ul.product_options li.lastitem {background-image:url(../images/prodlist_last.png);}
|
||||
|
||||
}
|
||||
29
src/wp-content/plugins/gravityforms/css/reset.css
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
reset.css
|
||||
Gravity Forms CSS Reset
|
||||
http://www.gravityforms.com
|
||||
updated: May 18, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE!
|
||||
THIS FILE IS REPLACED DURING AUTO UPGRADE
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTTEN.
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
html,
|
||||
body,
|
||||
fieldset,
|
||||
form,
|
||||
label,
|
||||
legend {margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit; font-size:100%; font-family:inherit; vertical-align:baseline}
|
||||
ul {margin:0; padding:0}
|
||||
body {font-size:62.5%; line-height:1.5}
|
||||
30
src/wp-content/plugins/gravityforms/css/tooltip.css
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
tooltip.css
|
||||
Gravity Forms Admin Tooltip Styles
|
||||
http://www.gravityforms.com
|
||||
updated: May 18, 2011
|
||||
|
||||
a Rocketgenius project
|
||||
copyright 2011 Rocketgenius Inc.
|
||||
http://www.rocketgenius.com
|
||||
this may not be re-distrubited without the
|
||||
express written permission of the author.
|
||||
|
||||
NOTE: DO NOT EDIT THIS FILE!
|
||||
THIS FILE IS REPLACED DURING AUTO UPGRADE
|
||||
AND ANY CHANGES MADE HERE WILL BE OVERWRITTTEN.
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
a.tooltip,
|
||||
a.tooltip_left,
|
||||
a.tooltip_bottomleft {width:16px; height:16px; background-image:url(../images/icon-question.png); background-repeat:no-repeat; display:inline-block; text-indent:-9000px; text-decoration:none}
|
||||
li.add_field_button_container a.tooltip_left,
|
||||
li.add_field_button_container a.tooltip_bottomleft{background-image:url(../images/icon-question2.png)}
|
||||
.qtip{min-width:100px}
|
||||
.qtip-content{line-height:130%; margin:8px}
|
||||
.qtip-content h6{font-weight:bold; font-size:14px; color:#21759B; margin:0 0 2px 0; padding:0}
|
||||
25
src/wp-content/plugins/gravityforms/css/ui.tabs.css
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
----------------------------------------------------------------
|
||||
|
||||
ui.tabs.css
|
||||
Gravity Forms - admin UI tab styles
|
||||
http://www.gravityforms.com
|
||||
|
||||
a rocketgenius project
|
||||
http://www.rocketgenius.com
|
||||
|
||||
----------------------------------------------------------------
|
||||
*/
|
||||
|
||||
.ui-tabs { padding: .2em; zoom: 1; }
|
||||
.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; }
|
||||
.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; }
|
||||
.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
|
||||
.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; }
|
||||
.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; }
|
||||
.ui-tabs .ui-tabs-hide { display: none !important; }
|
||||
119
src/wp-content/plugins/gravityforms/currency.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
if(!class_exists("RGCurrency")){
|
||||
|
||||
class RGCurrency{
|
||||
private $currency;
|
||||
|
||||
public function __construct($currency){
|
||||
if(is_array($currency))
|
||||
$this->currency = $currency;
|
||||
else
|
||||
$this->currency = self::get_currency($currency);
|
||||
}
|
||||
|
||||
public function to_number($text){
|
||||
$text = strval($text);
|
||||
|
||||
if(is_numeric($text))
|
||||
return floatval($text);
|
||||
|
||||
//Removing symbol in unicode format (i.e. ᅜ)
|
||||
$text = preg_replace("/&.*?;/", "", $text);
|
||||
|
||||
//Removing all non-numeric characters
|
||||
$array = str_split($text);
|
||||
$is_negative = false;
|
||||
$clean_number = "";
|
||||
foreach($array as $char){
|
||||
|
||||
if (($char >= '0' && $char <= '9') || $char=="," || $char==".")
|
||||
$clean_number .= $char;
|
||||
else if($char == '-')
|
||||
$is_negative = true;
|
||||
}
|
||||
|
||||
$decimal_separator = $this->currency && $this->currency["decimal_separator"] ? $this->currency["decimal_separator"] : ".";
|
||||
|
||||
//Removing thousand separators but keeping decimal point
|
||||
$array = str_split($clean_number);
|
||||
$float_number = "";
|
||||
for($i=0, $count = sizeof($array); $i<$count; $i++)
|
||||
{
|
||||
$char = $array[$i];
|
||||
|
||||
if ($char >= '0' && $char <= '9')
|
||||
$float_number .= $char;
|
||||
else if($char == $decimal_separator)
|
||||
$float_number .= ".";
|
||||
}
|
||||
|
||||
if($is_negative)
|
||||
$float_number = "-" . $float_number;
|
||||
|
||||
return is_numeric($float_number) ? floatval($float_number) : false;
|
||||
}
|
||||
|
||||
public function to_money($number, $do_encode=false){
|
||||
|
||||
if(!is_numeric($number))
|
||||
$number = $this->to_number($number);
|
||||
|
||||
if($number === false)
|
||||
return "";
|
||||
|
||||
$negative = "";
|
||||
if(strpos(strval($number), "-") !== false){
|
||||
$negative = "-";
|
||||
$number = floatval(substr($number,1));
|
||||
}
|
||||
|
||||
$money = number_format($number, $this->currency["decimals"], $this->currency["decimal_separator"], $this->currency["thousand_separator"]);
|
||||
$symbol_left = !empty($this->currency["symbol_left"]) ? $this->currency["symbol_left"] . $this->currency["symbol_padding"] : "";
|
||||
$symbol_right = !empty($this->currency["symbol_right"]) ? $this->currency["symbol_padding"] . $this->currency["symbol_right"] : "";
|
||||
|
||||
if($do_encode){
|
||||
$symbol_left = html_entity_decode($symbol_left);
|
||||
$symbol_right = html_entity_decode($symbol_right);
|
||||
}
|
||||
|
||||
return $negative . $symbol_left . $money . $symbol_right;
|
||||
}
|
||||
|
||||
public static function get_currency($code){
|
||||
$currencies = self::get_currencies();
|
||||
return $currencies[$code];
|
||||
}
|
||||
|
||||
public static function get_currencies(){
|
||||
$currencies = array(
|
||||
"AUD" => array("name" => __("Australian Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"BRL" => array("name" => __("Brazilian Real", "gravityforms"), "symbol_left" => 'R$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"CAD" => array("name" => __("Canadian Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "CAD", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"CZK" => array("name" => __("Czech Koruna", "gravityforms"), "symbol_left" => '', "symbol_right" => "Kč", "symbol_padding" => " ", "thousand_separator" => ' ', "decimal_separator" => ',', "decimals" => 2),
|
||||
"DKK" => array("name" => __("Danish Krone", "gravityforms"), "symbol_left" => 'Kr', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"EUR" => array("name" => __("Euro", "gravityforms"), "symbol_left" => '', "symbol_right" => "€", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"HKD" => array("name" => __("Hong Kong Dollar", "gravityforms"), "symbol_left" => 'HK$', "symbol_right" => "", "symbol_padding" => "", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"HUF" => array("name" => __("Hungarian Forint", "gravityforms"), "symbol_left" => '', "symbol_right" => "Ft", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"ILS" => array("name" => __("Israeli New Sheqel", "gravityforms"), "symbol_left" => '₪', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"JPY" => array("name" => __("Japanese Yen", "gravityforms"), "symbol_left" => '¥', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '', "decimals" => 0),
|
||||
"MYR" => array("name" => __("Malaysian Ringgit", "gravityforms"), "symbol_left" => 'RM', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"MXN" => array("name" => __("Mexican Peso", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"NOK" => array("name" => __("Norwegian Krone", "gravityforms"), "symbol_left" => 'Kr', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"NZD" => array("name" => __("New Zealand Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"PHP" => array("name" => __("Philippine Peso", "gravityforms"), "symbol_left" => 'Php', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"PLN" => array("name" => __("Polish Zloty", "gravityforms"), "symbol_left" => 'zł', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),
|
||||
"GBP" => array("name" => __("Pound Sterling", "gravityforms"), "symbol_left" => '£', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"SGD" => array("name" => __("Singapore Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"SEK" => array("name" => __("Swedish Krona", "gravityforms"), "symbol_left" => '', "symbol_right" => "Kr", "symbol_padding" => " ", "thousand_separator" => ' ', "decimal_separator" => ',', "decimals" => 2),
|
||||
"CHF" => array("name" => __("Swiss Franc", "gravityforms"), "symbol_left" => 'Fr.', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => "'", "decimal_separator" => '.', "decimals" => 2),
|
||||
"TWD" => array("name" => __("Taiwan New Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"THB" => array("name" => __("Thai Baht", "gravityforms"), "symbol_left" => '฿', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),
|
||||
"USD" => array("name" => __("U.S. Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => "", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2)
|
||||
);
|
||||
|
||||
return apply_filters("gform_currencies", $currencies);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
27
src/wp-content/plugins/gravityforms/download.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once (preg_replace("/wp-content.*/","wp-blog-header.php",__FILE__));
|
||||
require_once (preg_replace("/wp-content.*/","/wp-admin/includes/admin.php",__FILE__));
|
||||
|
||||
//redirect to the login page if user is not authenticated
|
||||
auth_redirect();
|
||||
|
||||
if(!IS_ADMINISTRATOR)
|
||||
die(__("You don't have permission to download a file", "gravityforms"));
|
||||
|
||||
$file_path = RGFormsModel::get_upload_path($_GET["form_id"]) . "/" . $_GET["f"];
|
||||
$info = pathinfo($file_path);
|
||||
if(strtolower($info["extension"]) == "csv"){
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Disposition: attachment; filename=export.csv');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
header('Content-Length: ' . filesize($file_path));
|
||||
ob_clean();
|
||||
flush();
|
||||
readfile($file_path);
|
||||
}
|
||||
exit;
|
||||
?>
|
||||
648
src/wp-content/plugins/gravityforms/entry_detail.php
Normal file
@ -0,0 +1,648 @@
|
||||
<?php
|
||||
class GFEntryDetail{
|
||||
|
||||
public static function lead_detail_page(){
|
||||
global $wpdb;
|
||||
global $current_user;
|
||||
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
echo GFCommon::get_remote_message();
|
||||
|
||||
$form = RGFormsModel::get_form_meta($_GET["id"]);
|
||||
$lead = RGFormsModel::get_lead($_GET["lid"]);
|
||||
|
||||
if(!$lead){
|
||||
_e("OOps! We couldn't find your lead. Please try again", "gravityforms");
|
||||
return;
|
||||
}
|
||||
|
||||
RGFormsModel::update_lead_property($lead["id"], "is_read", 1);
|
||||
|
||||
$search_qs = empty($_GET["s"]) ? "" : "&s=" . $_GET["s"];
|
||||
$sort_qs = empty($_GET["sort"]) ? "" : "&sort=" . $_GET["sort"];
|
||||
$dir_qs = empty($_GET["dir"]) ? "" : "&dir=" . $_GET["dir"];
|
||||
$page_qs = empty($_GET["paged"]) ? "" : "&paged=" . absint($_GET["paged"]);
|
||||
|
||||
switch(RGForms::post("action")){
|
||||
case "update" :
|
||||
check_admin_referer('gforms_save_entry', 'gforms_save_entry');
|
||||
RGFormsModel::save_lead($form, $lead);
|
||||
$lead = RGFormsModel::get_lead($_GET["lid"]);
|
||||
|
||||
break;
|
||||
|
||||
case "add_note" :
|
||||
check_admin_referer('gforms_update_note', 'gforms_update_note');
|
||||
$user_data = get_userdata($current_user->ID);
|
||||
RGFormsModel::add_note($lead["id"], $current_user->ID, $user_data->display_name, stripslashes($_POST["new_note"]));
|
||||
|
||||
//emailing notes if configured
|
||||
if(rgpost("gentry_email_notes_to"))
|
||||
{
|
||||
$email_to = $_POST["gentry_email_notes_to"];
|
||||
$email_from = $current_user->user_email;
|
||||
$email_subject = stripslashes($_POST["gentry_email_subject"]);
|
||||
|
||||
$headers = "From: \"$email_from\" <$email_from> \r\n";
|
||||
$result = wp_mail($email_to, $email_subject, stripslashes($_POST["new_note"]), $headers);
|
||||
}
|
||||
break;
|
||||
|
||||
case "add_quick_note" :
|
||||
check_admin_referer('gforms_save_entry', 'gforms_save_entry');
|
||||
$user_data = get_userdata($current_user->ID);
|
||||
RGFormsModel::add_note($lead["id"], $current_user->ID, $user_data->display_name, stripslashes($_POST["quick_note"]));
|
||||
break;
|
||||
|
||||
case "bulk" :
|
||||
check_admin_referer('gforms_update_note', 'gforms_update_note');
|
||||
if($_POST["bulk_action"] == "delete")
|
||||
RGFormsModel::delete_notes($_POST["note"]);
|
||||
break;
|
||||
|
||||
case "delete" :
|
||||
check_admin_referer('gforms_save_entry', 'gforms_save_entry');
|
||||
RGFormsModel::delete_lead($lead["id"]);
|
||||
?>
|
||||
<div id="message" class="updated fade" style="background-color: rgb(255, 251, 204); margin-top:50px; padding:50px;">
|
||||
<?php _e("Entry has been deleted.", "gravityforms"); ?> <a href="<?php echo esc_url("admin.php?page=gf_entries&view=entries&id=" . absint($form["id"]) . $search_qs . $sort_qs . $dir_qs . $page_qs) ?>"><?php _e("Back to entries list", "gravityforms"); ?></a>
|
||||
</div>
|
||||
<?php
|
||||
exit;
|
||||
break;
|
||||
}
|
||||
|
||||
$mode = empty($_POST["screen_mode"]) ? "view" : $_POST["screen_mode"];
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css" />
|
||||
<script type="text/javascript">
|
||||
|
||||
function DeleteFile(leadId, fieldId){
|
||||
if(confirm(<?php _e("'Would you like to delete this file? \'Cancel\' to stop. \'OK\' to delete'", "gravityforms"); ?>)){
|
||||
|
||||
var mysack = new sack("<?php echo admin_url("admin-ajax.php")?>");
|
||||
mysack.execute = 1;
|
||||
mysack.method = 'POST';
|
||||
mysack.setVar( "action", "rg_delete_file" );
|
||||
mysack.setVar( "rg_delete_file", "<?php echo wp_create_nonce("rg_delete_file") ?>" );
|
||||
mysack.setVar( "lead_id", leadId );
|
||||
mysack.setVar( "field_id", fieldId );
|
||||
mysack.encVar( "cookie", document.cookie, false );
|
||||
mysack.onError = function() { alert('<?php echo esc_js(__("Ajax error while deleting field.", "gravityforms")) ?>' )};
|
||||
mysack.runAJAX();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function EndDeleteFile(fieldId){
|
||||
jQuery('#preview_' + fieldId).hide();
|
||||
jQuery('#upload_' + fieldId).show('slow');
|
||||
}
|
||||
|
||||
function ToggleShowEmptyFields(){
|
||||
if(jQuery("#gentry_display_empty_fields").is(":checked")){
|
||||
createCookie("gf_display_empty_fields", true, 10000);
|
||||
document.location = document.location.href;
|
||||
}
|
||||
else{
|
||||
eraseCookie("gf_display_empty_fields");
|
||||
document.location = document.location.href;
|
||||
}
|
||||
}
|
||||
|
||||
function createCookie(name,value,days) {
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime()+(days*24*60*60*1000));
|
||||
var expires = "; expires="+date.toGMTString();
|
||||
}
|
||||
else var expires = "";
|
||||
document.cookie = name+"="+value+expires+"; path=/";
|
||||
}
|
||||
|
||||
function eraseCookie(name) {
|
||||
createCookie(name,"",-1);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<form method="post" id="entry_form" enctype='multipart/form-data'>
|
||||
<?php wp_nonce_field('gforms_save_entry', 'gforms_save_entry') ?>
|
||||
<input type="hidden" name="action" id="action" value=""/>
|
||||
<input type="hidden" name="screen_mode" id="screen_mode" value="<?php echo esc_attr(rgpost("screen_mode")) ?>" />
|
||||
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" src="<?php echo GFCommon::get_base_url()?>/images/gravity-title-icon-32.png" style="float:left; margin:15px 7px 0 0;"/>
|
||||
<h2><?php _e("Entry #", "gravityforms"); ?><?php echo absint($lead["id"])?></h2>
|
||||
<a href="<?php echo esc_url("admin.php?page=gf_entries&view=entries&id=" . absint($form["id"]) . $search_qs . $sort_qs . $dir_qs . $page_qs) ?>"><?php _e("« back to entries list", "gravityforms"); ?></a>
|
||||
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
||||
<div id="side-info-column" class="inner-sidebar">
|
||||
<div id="submitdiv" class="stuffbox">
|
||||
<h3>
|
||||
<span class="hndle"><?php _e("Info", "gravityforms"); ?></span>
|
||||
</h3>
|
||||
<div class="inside">
|
||||
<div id="submitcomment" class="submitbox">
|
||||
<div id="minor-publishing" style="padding:10px;">
|
||||
<br/>
|
||||
<?php _e("Entry Id", "gravityforms"); ?>: <?php echo absint($lead["id"]) ?><br/><br/>
|
||||
<?php _e("Submitted on", "gravityforms"); ?>: <?php echo esc_html(GFCommon::format_date($lead["date_created"], false, "Y/m/d")) ?>
|
||||
<br/><br/>
|
||||
<?php _e("User IP", "gravityforms"); ?>: <?php echo $lead["ip"] ?>
|
||||
<br/><br/>
|
||||
<?php
|
||||
if(!empty($lead["created_by"]) && $usermeta = get_userdata($lead["created_by"])){
|
||||
?>
|
||||
<?php _e("User", "gravityforms"); ?>: <a href="user-edit.php?user_id=<?php echo absint($lead["created_by"]) ?>" alt="<?php _e("View user profile", "gravityforms"); ?>" title="<?php _e("View user profile", "gravityforms"); ?>"><?php echo esc_html($usermeta->user_login) ?></a>
|
||||
<br/><br/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php _e("Embed Url", "gravityforms"); ?>: <a href="<?php echo esc_url($lead["source_url"]) ?>" target="_blank" alt="<?php echo esc_url($lead["source_url"]) ?>" title="<?php echo esc_url($lead["source_url"]) ?>">.../<?php echo esc_html(GFCommon::truncate_url($lead["source_url"]))?></a>
|
||||
<br/><br/>
|
||||
<?php
|
||||
if(!empty($lead["post_id"])){
|
||||
$post = get_post($lead["post_id"]);
|
||||
?>
|
||||
<?php _e("Edit Post", "gravityforms"); ?>: <a href="post.php?action=edit&post=<?php echo absint($post->ID) ?>" alt="<?php _e("Click to edit post", "gravityforms"); ?>" title="<?php _e("Click to edit post", "gravityforms"); ?>"><?php echo esc_html($post->post_title) ?></a>
|
||||
<br/><br/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(!empty($lead["payment_status"])){
|
||||
echo $lead["transaction_type"] != 2 ? __("Payment Status", "gravityforms") : __("Subscription Status", "gravityforms"); ?>: <?php echo $lead["payment_status"] ?>
|
||||
<br/><br/>
|
||||
<?php
|
||||
if(!empty($lead["payment_date"])){
|
||||
echo $lead["transaction_type"] == 1 ? __("Payment Date", "gravityforms") : __("Start Date", "gravityforms") ?>: <?php echo GFCommon::format_date($lead["payment_date"], false, "Y/m/d", $lead["transaction_type"] == 1) ?>
|
||||
<br/><br/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(!empty($lead["transaction_id"])){
|
||||
echo $lead["transaction_type"] == 1 ? __("Transaction Id", "gravityforms") : __("Subscriber Id", "gravityforms"); ?>: <?php echo $lead["transaction_id"]?>
|
||||
<br/><br/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if(strlen($lead["payment_amount"]) > 0){
|
||||
echo $lead["transaction_type"] == 1 ? __("Payment Amount", "gravityforms") : __("Subscription Amount", "gravityforms"); ?>: <?php echo GFCommon::to_money($lead["payment_amount"], $lead["currency"]) ?>
|
||||
<br/><br/>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
do_action("gform_entry_info", $form["id"], $lead);
|
||||
?>
|
||||
</div>
|
||||
<div id="major-publishing-actions">
|
||||
<div id="delete-action">
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_entries")){
|
||||
$delete_link = '<a class="submitdelete deletion" onclick="if ( confirm(\''. __("You are about to delete this entry. \'Cancel\' to stop, \'OK\' to delete.", "gravityforms") .'\') ) { jQuery(\'#action\').val(\'delete\'); jQuery(\'#entry_form\')[0].submit();} return false;" href="#">' . __("Delete", "gravityforms") . '</a>';
|
||||
echo apply_filters("gform_entrydetail_delete_link", $delete_link);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="publishing-action">
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_edit_entries")){
|
||||
$button_text = $mode == "view" ? __("Edit Entry", "gravityforms") : __("Update Entry", "gravityforms");
|
||||
$button_click = $mode == "view" ? "jQuery('#screen_mode').val('edit');" : "jQuery('#action').val('update'); jQuery('#screen_mode').val('view');";
|
||||
$update_button = '<input class="button-primary" type="submit" tabindex="4" value="' . $button_text . '" name="save" onclick="' . $button_click . '"/>';
|
||||
echo apply_filters("gform_entrydetail_update_button", $update_button);
|
||||
if($mode == "edit")
|
||||
echo ' <input class="button" style="color:#bbb;" type="submit" tabindex="5" value="' . __("Cancel", "gravityforms") . '" name="cancel" onclick="jQuery(\'#screen_mode\').val(\'view\');"/>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<br/> <br/><br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(GFCommon::current_user_can_any("gravityforms_edit_entry_notes")) { ?>
|
||||
<!-- start side notes -->
|
||||
<div class="postbox" id="tagsdiv-post_tag">
|
||||
<h3 style="cursor:default;"><span>Quick Note</span></h3>
|
||||
<div class="inside">
|
||||
<div id="post_tag" class="tagsdiv">
|
||||
<div>
|
||||
<span>
|
||||
<textarea name="quick_note" style="width:99%; height:180px; margin-bottom:4px;"></textarea>
|
||||
<input type="submit" name="add_quick_note" value="<?php _e("Add Note", "gravityforms") ?>" class="button" style="width:60px;" onclick="jQuery('#action').val('add_quick_note');"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end side notes -->
|
||||
<?php } ?>
|
||||
|
||||
<!-- begin print button -->
|
||||
<div class="detail-view-print">
|
||||
<a href="javascript:;" onclick="var notes_qs = jQuery('#gform_print_notes').is(':checked') ? '¬es=1' : ''; var url='<?php echo GFCommon::get_base_url() ?>/print-entry.php?fid=<?php echo $form['id'] ?>&lid=<?php echo $lead['id']?>' + notes_qs; window.open (url,'printwindow');" class="button">Print</a>
|
||||
<?php if(GFCommon::current_user_can_any("gravityforms_view_entry_notes")) { ?>
|
||||
<input type="checkbox" name="print_notes" value="print_notes" checked="checked" id="gform_print_notes"/>
|
||||
<label for="print_notes">include notes</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!-- end print button -->
|
||||
|
||||
</div>
|
||||
|
||||
<div id="post-body" class="has-sidebar">
|
||||
<div id="post-body-content" class="has-sidebar-content">
|
||||
<?php
|
||||
if($mode == "view")
|
||||
self::lead_detail_grid($form, $lead, true);
|
||||
else
|
||||
self::lead_detail_edit($form, $lead);
|
||||
?>
|
||||
|
||||
<?php if(GFCommon::current_user_can_any("gravityforms_view_entry_notes")) { ?>
|
||||
<div id="namediv" class="stuffbox">
|
||||
<h3>
|
||||
<label for="name"><?php _e("Notes", "gravityforms"); ?></label>
|
||||
</h3>
|
||||
|
||||
<form method="post">
|
||||
<?php wp_nonce_field('gforms_update_note', 'gforms_update_note') ?>
|
||||
<div class="inside">
|
||||
<?php
|
||||
$notes = RGFormsModel::get_lead_notes($lead["id"]);
|
||||
|
||||
//getting email values
|
||||
$email_fields = GFCommon::get_email_fields($form);
|
||||
$emails = array();
|
||||
|
||||
foreach($email_fields as $email_field){
|
||||
if(!empty($lead[$email_field["id"]])){
|
||||
$emails[] = $lead[$email_field["id"]];
|
||||
}
|
||||
}
|
||||
//displaying notes grid
|
||||
$subject = !empty($form["autoResponder"]["subject"]) ? "RE: " . GFCommon::replace_variables($form["autoResponder"]["subject"], $form, $lead) : "";
|
||||
self::notes_grid($notes, true, $emails, $subject);
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
if(rgpost("action") == "update"){
|
||||
?>
|
||||
<div class="updated fade" style="padding:6px;">
|
||||
<?php _e("Entry Updated.", "gravityforms"); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
public static function lead_detail_edit($form, $lead){
|
||||
$form = apply_filters("gform_admin_pre_render_" . $form["id"], apply_filters("gform_admin_pre_render", $form));
|
||||
?>
|
||||
<div id="namediv" class="stuffbox">
|
||||
<h3>
|
||||
<label for="name"><?php _e("Details", "gravityforms"); ?></label>
|
||||
</h3>
|
||||
<div class="inside">
|
||||
<table class="form-table entry-details">
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($form["fields"] as $field){
|
||||
switch(RGFormsModel::get_input_type($field)){
|
||||
case "section" :
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td class="detail-view">
|
||||
<div style="margin-bottom:10px; border-bottom:1px dotted #ccc;"><h2 class="detail_gsection_title"><?php echo esc_html(GFCommon::get_label($field))?></h2></div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "captcha":
|
||||
case "html":
|
||||
case "password":
|
||||
//ignore certain fields
|
||||
break;
|
||||
|
||||
default :
|
||||
$value = RGFormsModel::get_lead_field_value($lead, $field);
|
||||
$content = "<tr valign='top'><td class='detail-view'><label class='detail-label'>" . esc_html(GFCommon::get_label($field)) . "</label>" .
|
||||
GFCommon::get_field_input($field, $value, $lead["id"]) . "</td></tr>";
|
||||
|
||||
$content = apply_filters("gform_field_content", $content, $field, $value, $lead["id"], $form["id"]);
|
||||
|
||||
echo $content;
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
public static function notes_grid($notes, $is_editable, $emails = null, $autoresponder_subject=""){
|
||||
if(sizeof($notes) > 0 && $is_editable && GFCommon::current_user_can_any("gravityforms_edit_entry_notes")){
|
||||
?>
|
||||
<div class="alignleft actions" style="padding:3px 0;">
|
||||
<label class="hidden" for="bulk_action"><?php _e(" Bulk action", "gravityforms") ?></label>
|
||||
<select name="bulk_action" id="bulk_action">
|
||||
<option value=''><?php _e(" Bulk action ", "gravityforms") ?></option>
|
||||
<option value='delete'><?php _e("Delete", "gravityforms") ?></option>
|
||||
</select>
|
||||
<?php
|
||||
$apply_button = '<input type="submit" class="button" value="' . __("Apply", "gravityforms") . '" onclick="jQuery(\'#action\').val(\'bulk\');" style="width: 50px;" />';
|
||||
echo apply_filters("gform_notes_apply_button", $apply_button);
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<table class="widefat fixed entry-detail-notes" cellspacing="0">
|
||||
<?php
|
||||
if(!$is_editable){
|
||||
?>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="notes">Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tbody id="the-comment-list" class="list:comment">
|
||||
<?php
|
||||
$count = 0;
|
||||
$notes_count = sizeof($notes);
|
||||
foreach($notes as $note){
|
||||
$count++;
|
||||
$is_last = $count >= $notes_count ? true : false;
|
||||
?>
|
||||
<tr valign="top">
|
||||
<?php
|
||||
if($is_editable && GFCommon::current_user_can_any("gravityforms_edit_entry_notes")){
|
||||
?>
|
||||
<th class="check-column" scope="row" style="padding:9px 3px 0 0">
|
||||
<input type="checkbox" value="<?php echo $note->id ?>" name="note[]"/>
|
||||
</th>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<td class="entry-detail-note<?php echo $is_last ? " lastrow" : "" ?>">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div style="margin-top:4px;">
|
||||
<div class="note-avatar"><?php echo get_avatar($note->user_id, 48);?></div>
|
||||
<h6 class="note-author"> <?php echo esc_html($note->user_name)?></h6>
|
||||
<p style="line-height:130%; text-align:left; margin-top:3px;"><a href="mailto:<?php echo esc_attr($note->user_email)?>"><?php echo esc_html($note->user_email) ?></a><br />
|
||||
<?php _e("added on", "gravityforms"); ?> <?php echo esc_html(GFCommon::format_date($note->date_created, false)) ?></p>
|
||||
</div>
|
||||
<div class="detail-note-content"><?php echo esc_html($note->value) ?></div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if($is_editable && GFCommon::current_user_can_any("gravityforms_edit_entry_notes")){
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3" style="padding:10px;" class="lastrow">
|
||||
<textarea name="new_note" style="width:100%; height:50px; margin-bottom:4px;"></textarea>
|
||||
<?php
|
||||
$note_button = '<input type="submit" name="add_note" value="' . __("Add Note", "gravityforms") . '" class="button" style="width:60px;" onclick="jQuery(\'#action\').val(\'add_note\');"/>';
|
||||
echo apply_filters("gform_addnote_button", $note_button);
|
||||
|
||||
if(!empty($emails)){ ?>
|
||||
|
||||
<span>
|
||||
<select name="gentry_email_notes_to" onchange="if(jQuery(this).val() != '') {jQuery('#gentry_email_subject_container').css('display', 'inline');} else{jQuery('#gentry_email_subject_container').css('display', 'none');}">
|
||||
<option value=""><?php _e("Also email this note to", "gravityforms") ?></option>
|
||||
<?php foreach($emails as $email){ ?>
|
||||
<option value="<?php echo $email ?>"><?php echo $email ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
|
||||
<span id='gentry_email_subject_container' style="display:none;">
|
||||
<label for="gentry_email_subject"><?php _e("Subject:", "gravityforms") ?></label>
|
||||
<input type="text" name="gentry_email_subject" id="gentry_email_subject" value="<?php echo $autoresponder_subject ?>" style="width:35%"/>
|
||||
</span>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
|
||||
public static function lead_detail_grid($form, $lead, $allow_display_empty_fields=false){
|
||||
$display_empty_fields = false;
|
||||
if($allow_display_empty_fields){
|
||||
$display_empty_fields = rgget("gf_display_empty_fields", $_COOKIE);
|
||||
}
|
||||
?>
|
||||
<table cellspacing="0" class="widefat fixed entry-detail-view">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="details">
|
||||
<?php echo $form["title"]?> : <?php _e("Entry # ", "gravityforms") ?> <?php echo $lead["id"] ?>
|
||||
</th>
|
||||
<th style="width:140px; font-size:10px; text-align: right;">
|
||||
<?php
|
||||
if($allow_display_empty_fields){
|
||||
?>
|
||||
<input type="checkbox" id="gentry_display_empty_fields" <?php echo $display_empty_fields ? "checked='checked'" : "" ?> onclick="ToggleShowEmptyFields();"/> <label for="gentry_display_empty_fields">show empty fields</label>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$count = 0;
|
||||
$field_count = sizeof($form["fields"]);
|
||||
$has_product_fields = false;
|
||||
foreach($form["fields"] as $field){
|
||||
switch(RGFormsModel::get_input_type($field)){
|
||||
case "section" :
|
||||
$count++;
|
||||
$is_last = $count >= $field_count ? true : false;
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" class="entry-view-section-break<?php echo $is_last ? " lastrow" : ""?>"><?php echo esc_html(GFCommon::get_label($field))?></td>
|
||||
</tr>
|
||||
<?php
|
||||
break;
|
||||
|
||||
case "captcha":
|
||||
case "html":
|
||||
case "password":
|
||||
case "page":
|
||||
//ignore captcha, html, password, page field
|
||||
break;
|
||||
|
||||
|
||||
default :
|
||||
//ignore product fields as they will be grouped together at the end of the grid
|
||||
if(GFCommon::is_product_field($field["type"])){
|
||||
$has_product_fields = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
$value = RGFormsModel::get_lead_field_value($lead, $field);
|
||||
$display_value = GFCommon::get_lead_field_display($field, $value, $lead["currency"]);
|
||||
|
||||
$display_value = apply_filters("gform_entry_field_value", $display_value, $field, $lead, $form);
|
||||
|
||||
if($display_empty_fields || !empty($display_value) || $display_value === "0"){
|
||||
$count++;
|
||||
$is_last = $count >= $field_count && !$has_product_fields ? true : false;
|
||||
$last_row = $is_last ? " lastrow" : "";
|
||||
|
||||
$display_value = empty($display_value) && $display_value !== "0" ? " " : $display_value;
|
||||
|
||||
$content = '
|
||||
<tr>
|
||||
<td colspan="2" class="entry-view-field-name">' . esc_html(GFCommon::get_label($field)) . '</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="entry-view-field-value' . $last_row . '">' . $display_value . '</td>
|
||||
</tr>';
|
||||
|
||||
$content = apply_filters("gform_field_content", $content, $field, $value, $lead["id"], $form["id"]);
|
||||
|
||||
echo $content;
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$products = array();
|
||||
if($has_product_fields){
|
||||
$products = GFCommon::get_product_fields($form, $lead);
|
||||
if(!empty($products["products"])){
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" class="entry-view-field-name"><?php echo apply_filters("gform_order_label_{$form["id"]}", apply_filters("gform_order_label", __("Order", "gravityforms"), $form["id"]), $form["id"]) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="entry-view-field-value lastrow">
|
||||
<table class="entry-products" cellspacing="0" width="97%">
|
||||
|
||||
<colgroup>
|
||||
<col class="entry-products-col1">
|
||||
<col class="entry-products-col2">
|
||||
<col class="entry-products-col3">
|
||||
<col class="entry-products-col4">
|
||||
</colgroup>
|
||||
|
||||
<thead>
|
||||
<th scope="col"><?php _e("Product", "gravityforms") ?></th>
|
||||
<th scope="col" class="textcenter"><?php _e("Qty", "gravityforms") ?></th>
|
||||
<th scope="col"><?php _e("Unit Price", "gravityforms") ?></th>
|
||||
<th scope="col"><?php _e("Price", "gravityforms") ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
$total = 0;
|
||||
foreach($products["products"] as $product){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="product_name"><?php echo esc_html($product["name"])?></div>
|
||||
<ul class="product_options">
|
||||
<?php
|
||||
$price = GFCommon::to_number($product["price"]);
|
||||
if(is_array(rgar($product,"options"))){
|
||||
$count = sizeof($product["options"]);
|
||||
$index = 1;
|
||||
foreach($product["options"] as $option){
|
||||
$price += GFCommon::to_number($option["price"]);
|
||||
$class = $index == $count ? " class='lastitem'" : "";
|
||||
$index++;
|
||||
?>
|
||||
<li<?php echo $class?>><?php echo $option["option_label"]?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$subtotal = floatval($product["quantity"]) * $price;
|
||||
$total += $subtotal;
|
||||
?>
|
||||
</ul>
|
||||
</td>
|
||||
<td class="textcenter"><?php echo $product["quantity"] ?></td>
|
||||
<td><?php echo GFCommon::to_money($price, $lead["currency"]) ?></td>
|
||||
<td><?php echo GFCommon::to_money($subtotal, $lead["currency"]) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$total += floatval($products["shipping"]["price"]);
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<?php
|
||||
if(!empty($products["shipping"]["name"])){
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2" rowspan="2" class="emptycell"> </td>
|
||||
<td class="textright shipping"><?php echo $products["shipping"]["name"] ?></td>
|
||||
<td class="shipping_amount"><?php echo GFCommon::to_money($products["shipping"]["price"], $lead["currency"])?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<?php
|
||||
if(empty($products["shipping"]["name"])){
|
||||
?>
|
||||
<td colspan="2" class="emptycell"> </td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<td class="textright grandtotal"><?php _e("Total", "gravityforms") ?></td>
|
||||
<td class="grandtotal_amount"><?php echo GFCommon::to_money($total, $lead["currency"])?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
661
src/wp-content/plugins/gravityforms/entry_list.php
Normal file
@ -0,0 +1,661 @@
|
||||
<?php
|
||||
class GFEntryList{
|
||||
public static function all_leads_page(){
|
||||
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
$forms = RGFormsModel::get_forms(null, "title");
|
||||
$id = RGForms::get("id");
|
||||
|
||||
if(sizeof($forms) == 0)
|
||||
{
|
||||
?>
|
||||
<div style="margin:50px 0 0 10px;">
|
||||
<?php echo sprintf(__("You don't have any active forms. Let's go %screate one%s", "gravityforms"), '<a href="?page=gravityforms.php&id=0">', '</a>'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
if(empty($id))
|
||||
$id = $forms[0]->id;
|
||||
|
||||
self::leads_page($id);
|
||||
}
|
||||
}
|
||||
|
||||
public static function leads_page($form_id){
|
||||
global $wpdb;
|
||||
|
||||
//quit if version of wp is not supported
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
echo GFCommon::get_remote_message();
|
||||
$action = RGForms::post("action");
|
||||
|
||||
switch($action){
|
||||
case "delete" :
|
||||
check_admin_referer('gforms_entry_list', 'gforms_entry_list');
|
||||
$lead_id = $_POST["action_argument"];
|
||||
RGFormsModel::delete_lead($lead_id);
|
||||
break;
|
||||
|
||||
case "bulk":
|
||||
check_admin_referer('gforms_entry_list', 'gforms_entry_list');
|
||||
$bulk_action = !empty($_POST["bulk_action"]) ? $_POST["bulk_action"] : $_POST["bulk_action2"];
|
||||
$leads = $_POST["lead"];
|
||||
switch($bulk_action){
|
||||
case "delete":
|
||||
RGFormsModel::delete_leads($leads);
|
||||
break;
|
||||
|
||||
case "mark_read":
|
||||
RGFormsModel::update_leads_property($leads, "is_read", 1);
|
||||
break;
|
||||
|
||||
case "mark_unread":
|
||||
RGFormsModel::update_leads_property($leads, "is_read", 0);
|
||||
break;
|
||||
|
||||
case "add_star":
|
||||
RGFormsModel::update_leads_property($leads, "is_starred", 1);
|
||||
break;
|
||||
|
||||
case "remove_star":
|
||||
RGFormsModel::update_leads_property($leads, "is_starred", 0);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case "change_columns":
|
||||
check_admin_referer('gforms_entry_list', 'gforms_entry_list');
|
||||
$columns = GFCommon::json_decode(stripslashes($_POST["grid_columns"]), true);
|
||||
RGFormsModel::update_grid_column_meta($form_id, $columns);
|
||||
break;
|
||||
}
|
||||
|
||||
$sort_field = empty($_GET["sort"]) ? 0 : $_GET["sort"];
|
||||
$sort_direction = empty($_GET["dir"]) ? "DESC" : $_GET["dir"];
|
||||
$search = RGForms::get("s");
|
||||
$page_index = empty($_GET["paged"]) ? 0 : intval($_GET["paged"]) - 1;
|
||||
$star = is_numeric(RGForms::get("star")) ? intval(RGForms::get("star")) : null;
|
||||
$read = is_numeric(RGForms::get("read")) ? intval(RGForms::get("read")) : null;
|
||||
$page_size = 20;
|
||||
$first_item_index = $page_index * $page_size;
|
||||
|
||||
$form = RGFormsModel::get_form_meta($form_id);
|
||||
$sort_field_meta = RGFormsModel::get_field($form, $sort_field);
|
||||
$is_numeric = $sort_field_meta["type"] == "number";
|
||||
|
||||
$leads = RGFormsModel::get_leads($form_id, $sort_field, $sort_direction, $search, $first_item_index, $page_size, $star, $read, $is_numeric);
|
||||
$lead_count = RGFormsModel::get_lead_count($form_id, $search, $star, $read);
|
||||
|
||||
$summary = RGFormsModel::get_form_counts($form_id);
|
||||
$total_lead_count = $summary["total"];
|
||||
$unread_count = $summary["unread"];
|
||||
$starred_count = $summary["starred"];
|
||||
|
||||
|
||||
$columns = RGFormsModel::get_grid_columns($form_id, true);
|
||||
|
||||
$search_qs = empty($search) ? "" : "&s=" . urlencode($search);
|
||||
$sort_qs = empty($sort_field) ? "" : "&sort=$sort_field";
|
||||
$dir_qs = empty($sort_field) ? "" : "&dir=$sort_direction";
|
||||
$star_qs = $star !== null ? "&star=$star" : "";
|
||||
$read_qs = $read !== null ? "&read=$read" : "";
|
||||
|
||||
$page_links = paginate_links( array(
|
||||
'base' => admin_url("admin.php") . "?page=gf_entries&view=entries&id=$form_id&%_%" . $search_qs . $sort_qs . $dir_qs. $star_qs . $read_qs,
|
||||
'format' => 'paged=%#%',
|
||||
'prev_text' => __('«'),
|
||||
'next_text' => __('»'),
|
||||
'total' => ceil($lead_count / $page_size),
|
||||
'current' => $page_index + 1,
|
||||
'show_all' => false
|
||||
));
|
||||
|
||||
|
||||
wp_print_scripts(array("thickbox"));
|
||||
wp_print_styles(array("thickbox"));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script src="<?php echo GFCommon::get_base_url() ?>/js/jquery.json-1.3.js?ver=<?php echo GFCommon::$version ?>"></script>
|
||||
|
||||
<script>
|
||||
function ChangeColumns(columns){
|
||||
jQuery("#action").val("change_columns");
|
||||
jQuery("#grid_columns").val(jQuery.toJSON(columns));
|
||||
tb_remove();
|
||||
jQuery("#lead_form")[0].submit();
|
||||
}
|
||||
|
||||
function Search(sort_field_id, sort_direction, form_id, search, star, read){
|
||||
var search_qs = search == "" ? "" : "&s=" + search;
|
||||
var star_qs = star == "" ? "" : "&star=" + star;
|
||||
var read_qs = read == "" ? "" : "&read=" + read;
|
||||
|
||||
var location = "?page=gf_entries&view=entries&id=" + form_id + "&sort=" + sort_field_id + "&dir=" + sort_direction + search_qs + star_qs + read_qs;
|
||||
document.location = location;
|
||||
}
|
||||
|
||||
function ToggleStar(img, lead_id){
|
||||
var is_starred = img.src.indexOf("star1.png") >=0
|
||||
if(is_starred)
|
||||
img.src = img.src.replace("star1.png", "star0.png");
|
||||
else
|
||||
img.src = img.src.replace("star0.png", "star1.png");
|
||||
|
||||
UpdateCount("star_count", is_starred ? -1 : 1);
|
||||
|
||||
UpdateLeadProperty(lead_id, "is_starred", is_starred ? 0 : 1);
|
||||
}
|
||||
|
||||
function ToggleRead(lead_id){
|
||||
var title = jQuery("#lead_row_" + lead_id);
|
||||
|
||||
marking_read = title.hasClass("lead_unread");
|
||||
|
||||
jQuery("#mark_read_" + lead_id).css("display", marking_read ? "none" : "inline");
|
||||
jQuery("#mark_unread_" + lead_id).css("display", marking_read ? "inline" : "none");
|
||||
title.toggleClass("lead_unread");
|
||||
|
||||
UpdateCount("unread_count", marking_read ? -1 : 1);
|
||||
|
||||
UpdateLeadProperty(lead_id, "is_read", marking_read ? 1 : 0);
|
||||
}
|
||||
|
||||
function UpdateLeadProperty(lead_id, name, value){
|
||||
var mysack = new sack("<?php echo admin_url("admin-ajax.php")?>" );
|
||||
mysack.execute = 1;
|
||||
mysack.method = 'POST';
|
||||
mysack.setVar( "action", "rg_update_lead_property" );
|
||||
mysack.setVar( "rg_update_lead_property", "<?php echo wp_create_nonce("rg_update_lead_property") ?>" );
|
||||
mysack.setVar( "lead_id", lead_id);
|
||||
mysack.setVar( "name", name);
|
||||
mysack.setVar( "value", value);
|
||||
mysack.encVar( "cookie", document.cookie, false );
|
||||
mysack.onError = function() { alert('<?php echo esc_js(__("Ajax error while setting lead property", "gravityforms")) ?>' )};
|
||||
mysack.runAJAX();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function UpdateCount(element_id, change){
|
||||
var element = jQuery("#" + element_id);
|
||||
var count = parseInt(element.html()) + change
|
||||
element.html(count + "");
|
||||
}
|
||||
|
||||
function DeleteLead(lead_id){
|
||||
jQuery("#action").val("delete");
|
||||
jQuery("#action_argument").val(lead_id);
|
||||
jQuery("#lead_form")[0].submit();
|
||||
return true;
|
||||
}
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("#lead_search").keyup(function(event){
|
||||
if(event.keyCode == 13)
|
||||
Search('<?php echo $sort_field ?>', '<?php echo $sort_direction ?>', <?php echo $form_id ?>, this.value, '<?php echo $star ?>', '<?php echo $read ?>');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url() ?>/css/admin.css" type="text/css" />
|
||||
<style>
|
||||
.lead_unread a, .lead_unread td{font-weight: bold;}
|
||||
.row-actions a{ font-weight:normal;}
|
||||
.entry_nowrap{
|
||||
overflow:hidden; white-space:nowrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" src="<?php echo GFCommon::get_base_url()?>/images/gravity-entry-icon-32.png" style="float:left; margin:15px 7px 0 0;"/>
|
||||
<h2><?php _e("Entries", "gravityforms"); ?> : <?php echo $form["title"] ?> </h2>
|
||||
|
||||
<?php RGForms::top_toolbar() ?>
|
||||
|
||||
<form id="lead_form" method="post">
|
||||
<?php wp_nonce_field('gforms_entry_list', 'gforms_entry_list') ?>
|
||||
|
||||
<input type="hidden" value="" name="grid_columns" id="grid_columns" />
|
||||
<input type="hidden" value="" name="action" id="action" />
|
||||
<input type="hidden" value="" name="action_argument" id="action_argument" />
|
||||
|
||||
<ul class="subsubsub">
|
||||
<li><a class="<?php echo ($star === null && $read === null) ? "current" : "" ?>" href="?page=gf_entries&view=entries&id=<?php echo $form_id ?>"><?php _e("All", "gravityforms"); ?> <span class="count">(<span id="all_count"><?php echo $total_lead_count ?></span>)</span></a> | </li>
|
||||
<li><a class="<?php echo $read !== null ? "current" : ""?>" href="?page=gf_entries&view=entries&id=<?php echo $form_id ?>&read=0"><?php _e("Unread", "gravityforms"); ?> <span class="count">(<span id="unread_count"><?php echo $unread_count ?></span>)</span></a> | </li>
|
||||
<li><a class="<?php echo $star !== null ? "current" : ""?>" href="?page=gf_entries&view=entries&id=<?php echo $form_id ?>&star=1"><?php _e("Starred", "gravityforms"); ?> <span class="count">(<span id="star_count"><?php echo $starred_count ?></span>)</span></a></li>
|
||||
</ul>
|
||||
<p class="search-box">
|
||||
<label class="hidden" for="lead_search"><?php _e("Search Entries:", "gravityforms"); ?></label>
|
||||
<input type="text" id="lead_search" value="<?php echo $search ?>"><a class="button" id="lead_search_button" href="javascript:Search('<?php echo $sort_field ?>', '<?php echo $sort_direction ?>', <?php echo $form_id ?>, jQuery('#lead_search').val(), '<?php echo $star ?>', '<?php echo $read ?>');"><?php _e("Search", "gravityforms") ?></a>
|
||||
</p>
|
||||
<div class="tablenav">
|
||||
|
||||
<div class="alignleft actions" style="padding:8px 0 7px 0;">
|
||||
<label class="hidden" for="bulk_action"> <?php _e("Bulk action", "gravityforms") ?></label>
|
||||
<select name="bulk_action" id="bulk_action">
|
||||
<option value=''><?php _e(" Bulk action ", "gravityforms") ?></option>
|
||||
|
||||
<?php if(GFCommon::current_user_can_any("gravityforms_delete_entries")){ ?>
|
||||
<option value='delete'><?php _e("Delete", "gravityforms") ?></option>
|
||||
<?php } ?>
|
||||
|
||||
<option value='mark_read'><?php _e("Mark as Read", "gravityforms") ?></option>
|
||||
<option value='mark_unread'><?php _e("Mark as Unread", "gravityforms") ?></option>
|
||||
<option value='add_star'><?php _e("Add Star", "gravityforms") ?></option>
|
||||
<option value='remove_star'><?php _e("Remove Star", "gravityforms") ?></option>
|
||||
</select>
|
||||
<?php
|
||||
$apply_button = '<input type="submit" class="button" value="' . __("Apply", "gravityforms") . '" onclick="jQuery(\'#action\').val(\'bulk\');" />';
|
||||
echo apply_filters("gform_entry_apply_button", $apply_button);
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//Displaying paging links if appropriate
|
||||
if($page_links){
|
||||
?>
|
||||
<div class="tablenav-pages">
|
||||
<span class="displaying-num"><?php printf(__("Displaying %d - %d of %d", "gravityforms"), $first_item_index + 1, ($first_item_index + $page_size) > $lead_count ? $lead_count : $first_item_index + $page_size , $lead_count) ?></span>
|
||||
<?php echo $page_links ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<table class="widefat fixed" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" id="cb" class="manage-column column-cb check-column" style="vertical-align:middle;"><input type="checkbox" class="headercb" /></th>
|
||||
<th scope="col" class="manage-column column-cb check-column" > </th>
|
||||
<?php
|
||||
foreach($columns as $field_id => $field_info){
|
||||
$dir = $field_id == 0 ? "DESC" : "ASC"; //default every field so ascending sorting except date_created (id=0)
|
||||
if($field_id == $sort_field) //reverting direction if clicking on the currently sorted field
|
||||
$dir = $sort_direction == "ASC" ? "DESC" : "ASC";
|
||||
?>
|
||||
<th scope="col" class="manage-column entry_nowrap" onclick="Search('<?php echo $field_id ?>', '<?php echo $dir ?>', <?php echo $form_id ?>, '<?php echo $search ?>', '<?php echo $star ?>', '<?php echo $read ?>');" style="cursor:pointer;"><?php echo esc_html($field_info["label"]) ?></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<th scope="col" align="right" width="50">
|
||||
<a title="<?php _e("Select Columns" , "gravityforms") ?>" href="<?php echo GFCommon::get_base_url() ?>/select_columns.php?id=<?php echo $form_id ?>&TB_iframe=true&height=365&width=600" class="thickbox entries_edit_icon">Edit</a>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" /></th>
|
||||
<th scope="col" id="cb" class="manage-column column-cb check-column" > </th>
|
||||
<?php
|
||||
foreach($columns as $field_id => $field_info){
|
||||
$dir = $field_id == 0 ? "DESC" : "ASC"; //default every field so ascending sorting except date_created (id=0)
|
||||
if($field_id == $sort_field) //reverting direction if clicking on the currently sorted field
|
||||
$dir = $sort_direction == "ASC" ? "DESC" : "ASC";
|
||||
?>
|
||||
<th scope="col" class="manage-column entry_nowrap" onclick="Search('<?php echo $field_id ?>', '<?php echo $dir ?>', <?php echo $form_id ?>, '<?php echo $search ?>', '<?php echo $star ?>', '<?php echo $read ?>');" style="cursor:pointer;"><?php echo esc_html($field_info["label"]) ?></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<th scope="col" style="width:15px;">
|
||||
<a href="<?php echo GFCommon::get_base_url() ?>/select_columns.php?id=<?php echo $form_id ?>&TB_iframe=true&height=350&width=500" class="thickbox entries_edit_icon">Edit</a>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody class="list:user user-list">
|
||||
<?php
|
||||
if(sizeof($leads) > 0){
|
||||
$field_ids = array_keys($columns);
|
||||
|
||||
foreach($leads as $lead){
|
||||
?>
|
||||
<tr id="lead_row_<?php echo $lead["id"] ?>" class='author-self status-inherit <?php echo $lead["is_read"] ? "" : "lead_unread" ?>' valign="top">
|
||||
<th scope="row" class="check-column">
|
||||
<input type="checkbox" name="lead[]" value="<?php echo $lead["id"] ?>" />
|
||||
</th>
|
||||
<td >
|
||||
<img src="<?php echo GFCommon::get_base_url() ?>/images/star<?php echo intval($lead["is_starred"]) ?>.png" onclick="ToggleStar(this, <?php echo $lead["id"] ?>);" />
|
||||
</td>
|
||||
<?php
|
||||
$is_first_column = true;
|
||||
|
||||
$nowrap_class="entry_nowrap";
|
||||
foreach($field_ids as $field_id){
|
||||
$value = RGForms::get($field_id, $lead);
|
||||
|
||||
//filtering lead value
|
||||
$value = apply_filters("gform_get_field_value", $value, $lead, RGFormsModel::get_field($form, $field_id));
|
||||
|
||||
$input_type = !empty($columns[$field_id]["inputType"]) ? $columns[$field_id]["inputType"] : $columns[$field_id]["type"];
|
||||
switch($input_type){
|
||||
case "checkbox" :
|
||||
$value = "";
|
||||
|
||||
//looping through lead detail values trying to find an item identical to the column label. Mark with a tick if found.
|
||||
$lead_field_keys = array_keys($lead);
|
||||
foreach($lead_field_keys as $input_id){
|
||||
//mark as a tick if input label (from form meta) is equal to submitted value (from lead)
|
||||
if(is_numeric($input_id) && absint($input_id) == absint($field_id)){
|
||||
if($lead[$input_id] == $columns[$field_id]["label"]){
|
||||
$value = "<img src='" . GFCommon::get_base_url() . "/images/tick.png'/>";
|
||||
}
|
||||
else{
|
||||
$field = RGFormsModel::get_field($form, $field_id);
|
||||
if(rgar($field, "enableChoiceValue") || rgar($field, "enablePrice")){
|
||||
foreach($field["choices"] as $choice){
|
||||
if($choice["value"] == $lead[$field_id]){
|
||||
$value = "<img src='" . GFCommon::get_base_url() . "/images/tick.png'/>";
|
||||
break;
|
||||
}
|
||||
else if($field["enablePrice"]){
|
||||
$ary = explode("|", $lead[$field_id]);
|
||||
$val = count($ary) > 0 ? $ary[0] : "";
|
||||
$price = count($ary) > 1 ? $ary[1] : "";
|
||||
|
||||
if($val == $choice["value"]){
|
||||
$value = "<img src='" . GFCommon::get_base_url() . "/images/tick.png'/>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "post_image" :
|
||||
list($url, $title, $caption, $description) = explode("|:|", $value);
|
||||
if(!empty($url)){
|
||||
//displaying thumbnail (if file is an image) or an icon based on the extension
|
||||
$thumb = self::get_icon_url($url);
|
||||
$value = "<a href='" . esc_attr($url) . "' target='_blank' title='" . __("Click to view", "gravityforms") . "'><img src='$thumb'/></a>";
|
||||
}
|
||||
break;
|
||||
|
||||
case "post_category" :
|
||||
$ary = explode(":", $value);
|
||||
$cat_name = count($ary) > 0 ? $ary[0] : "";
|
||||
|
||||
$value = $cat_name;
|
||||
break;
|
||||
|
||||
case "fileupload" :
|
||||
$file_path = $value;
|
||||
if(!empty($file_path)){
|
||||
//displaying thumbnail (if file is an image) or an icon based on the extension
|
||||
$thumb = self::get_icon_url($file_path);
|
||||
$file_path = esc_attr($file_path);
|
||||
$value = "<a href='$file_path' target='_blank' title='" . __("Click to view", "gravityforms") . "'><img src='$thumb'/></a>";
|
||||
}
|
||||
break;
|
||||
|
||||
case "source_url" :
|
||||
$value = "<a href='" . esc_attr($lead["source_url"]) . "' target='_blank' alt='" . esc_attr($lead["source_url"]) ."' title='" . esc_attr($lead["source_url"]) . "'>.../" . esc_attr(GFCommon::truncate_url($lead["source_url"])) . "</a>";
|
||||
break;
|
||||
|
||||
case "textarea" :
|
||||
case "post_content" :
|
||||
case "post_excerpt" :
|
||||
$value = esc_html($value);
|
||||
break;
|
||||
|
||||
case "date_created" :
|
||||
case "payment_date" :
|
||||
$value = GFCommon::format_date($value, false);
|
||||
break;
|
||||
|
||||
case "date" :
|
||||
$field = RGFormsModel::get_field($form, $field_id);
|
||||
$value = GFCommon::date_display($value, $field["dateFormat"]);
|
||||
break;
|
||||
|
||||
case "radio" :
|
||||
case "select" :
|
||||
$field = RGFormsModel::get_field($form, $field_id);
|
||||
$value = GFCommon::selection_display($value, $field, $lead["currency"]);
|
||||
break;
|
||||
|
||||
case "total" :
|
||||
case "payment_amount" :
|
||||
$value = GFCommon::to_money($value, $lead["currency"]);
|
||||
break;
|
||||
|
||||
case "created_by" :
|
||||
if(!empty($value)){
|
||||
$userdata = get_userdata($value);
|
||||
$value = $userdata->user_login;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
$value = esc_html($value);
|
||||
}
|
||||
|
||||
$value = apply_filters("gform_entries_field_value", $value, $form_id, $field_id, $lead);
|
||||
|
||||
$query_string = "gf_entries&view=entry&id={$form_id}&lid={$lead["id"]}{$search_qs}{$sort_qs}{$dir_qs}&paged=" . $page_index + 1;
|
||||
if($is_first_column){
|
||||
?>
|
||||
<td class="column-title" >
|
||||
<a href="admin.php?page=gf_entries&view=entry&id=<?php echo $form_id ?>&lid=<?php echo $lead["id"] . $search_qs . $sort_qs . $dir_qs?>&paged=<?php echo ($page_index + 1)?>"><?php echo $value ?></a>
|
||||
<div class="row-actions">
|
||||
<span class="edit">
|
||||
<a title="<?php _e("View this entry", "gravityforms"); ?>" href="admin.php?page=gf_entries&view=entry&id=<?php echo $form_id ?>&lid=<?php echo $lead["id"] . $search_qs . $sort_qs . $dir_qs?>&paged=<?php echo ($page_index + 1)?>"><?php _e("View", "gravityforms"); ?></a>
|
||||
|
|
||||
</span>
|
||||
<span class="edit">
|
||||
<a id="mark_read_<?php echo $lead["id"] ?>" title="Mark this entry as read" href="javascript:ToggleRead(<?php echo $lead["id"] ?>);" style="display:<?php echo $lead["is_read"] ? "none" : "inline" ?>;"><?php _e("Mark read", "gravityforms"); ?></a><a id="mark_unread_<?php echo $lead["id"] ?>" title="<?php _e("Mark this entry as unread", "gravityforms"); ?>" href="javascript:ToggleRead(<?php echo $lead["id"] ?>);" style="display:<?php echo $lead["is_read"] ? "inline" : "none" ?>;"><?php _e("Mark unread", "gravityforms"); ?></a>
|
||||
<?php echo GFCommon::current_user_can_any("gravityforms_delete_entries") ? "|" : "" ?>
|
||||
</span>
|
||||
|
||||
<?php if(GFCommon::current_user_can_any("gravityforms_delete_entries"))
|
||||
{
|
||||
?>
|
||||
<span class="edit">
|
||||
<?php
|
||||
$delete_link ='<a title="' . __("Delete this entry", "gravityforms"). '" href="javascript:if ( confirm(' . __("'You are about to delete this entry. \'Cancel\' to stop, \'OK\' to delete.'", "gravityforms"). ') ) { DeleteLead(' . $lead["id"] .')};">' . __("Delete", "gravityforms") .'</a>';
|
||||
echo apply_filters("gform_delete_entry_link", $delete_link);
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
|
||||
do_action("gform_entries_first_column_actions", $form_id, $field_id, $value, $lead, $query_string);
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
do_action("gform_entries_first_column", $form_id, $field_id, $value, $lead, $query_string);
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<td class="<?php echo $nowrap_class ?>">
|
||||
<?php echo $value ?>
|
||||
<?php
|
||||
do_action("gform_entries_column", $form_id, $field_id, $value, $lead, $query_string);
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
$is_first_column = false;
|
||||
}
|
||||
?>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="<?php echo sizeof($columns) + 3 ?>" style="padding:20px;"><?php _e("This form does not have any entries yet.", "gravityforms"); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="tablenav">
|
||||
|
||||
<div class="alignleft actions" style="padding:8px 0 7px 0;">
|
||||
<label class="hidden" for="bulk_action2"> <?php _e("Bulk action", "gravityforms") ?></label>
|
||||
<select name="bulk_action2" id="bulk_action2">
|
||||
<option value=''><?php _e("Bulk action ", "gravityforms") ?></option>
|
||||
<option value='delete'><?php _e("Delete", "gravityforms") ?></option>
|
||||
<option value='mark_read'><?php _e("Mark as Read", "gravityforms") ?></option>
|
||||
<option value='mark_unread'><?php _e("Mark as Unread", "gravityforms") ?></option>
|
||||
<option value='add_star'><?php _e("Add Star", "gravityforms") ?></option>
|
||||
<option value='remove_star'><?php _e("Remove Star", "gravityforms") ?></option>
|
||||
</select>
|
||||
<?php
|
||||
$apply_button = '<input type="submit" class="button" value="' . __("Apply", "gravityforms") . '" onclick="jQuery(\'#action\').val(\'bulk\');" />';
|
||||
echo apply_filters("gform_entry_apply_button", $apply_button);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//Displaying paging links if appropriate
|
||||
if($page_links){
|
||||
?>
|
||||
<div class="tablenav-pages">
|
||||
<span class="displaying-num"><?php printf(__("Displaying %d - %d of %d", "gravityforms"), $first_item_index + 1, ($first_item_index + $page_size) > $lead_count ? $lead_count : $first_item_index + $page_size , $lead_count) ?></span>
|
||||
<?php echo $page_links ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
private static function get_icon_url($path){
|
||||
$info = pathinfo($path);
|
||||
|
||||
switch(strtolower($info["extension"])){
|
||||
|
||||
case "css" :
|
||||
$file_name = "icon_css.gif";
|
||||
break;
|
||||
|
||||
case "doc" :
|
||||
$file_name = "icon_doc.gif";
|
||||
break;
|
||||
|
||||
case "fla" :
|
||||
$file_name = "icon_fla.gif";
|
||||
break;
|
||||
|
||||
case "html" :
|
||||
case "htm" :
|
||||
case "shtml" :
|
||||
$file_name = "icon_html.gif";
|
||||
break;
|
||||
|
||||
case "js" :
|
||||
$file_name = "icon_js.gif";
|
||||
break;
|
||||
|
||||
case "log" :
|
||||
$file_name = "icon_log.gif";
|
||||
break;
|
||||
|
||||
case "mov" :
|
||||
$file_name = "icon_mov.gif";
|
||||
break;
|
||||
|
||||
case "pdf" :
|
||||
$file_name = "icon_pdf.gif";
|
||||
break;
|
||||
|
||||
case "php" :
|
||||
$file_name = "icon_php.gif";
|
||||
break;
|
||||
|
||||
case "ppt" :
|
||||
$file_name = "icon_ppt.gif";
|
||||
break;
|
||||
|
||||
case "psd" :
|
||||
$file_name = "icon_psd.gif";
|
||||
break;
|
||||
|
||||
case "sql" :
|
||||
$file_name = "icon_sql.gif";
|
||||
break;
|
||||
|
||||
case "swf" :
|
||||
$file_name = "icon_swf.gif";
|
||||
break;
|
||||
|
||||
case "txt" :
|
||||
$file_name = "icon_txt.gif";
|
||||
break;
|
||||
|
||||
case "xls" :
|
||||
$file_name = "icon_xls.gif";
|
||||
break;
|
||||
|
||||
case "xml" :
|
||||
$file_name = "icon_xml.gif";
|
||||
break;
|
||||
|
||||
case "zip" :
|
||||
$file_name = "icon_zip.gif";
|
||||
break;
|
||||
|
||||
case "gif" :
|
||||
case "jpg" :
|
||||
case "jpeg":
|
||||
case "png" :
|
||||
case "bmp" :
|
||||
case "tif" :
|
||||
case "eps" :
|
||||
$file_name = "icon_image.gif";
|
||||
break;
|
||||
|
||||
case "mp3" :
|
||||
case "wav" :
|
||||
case "wma" :
|
||||
$file_name = "icon_audio.gif";
|
||||
break;
|
||||
|
||||
case "mp4" :
|
||||
case "avi" :
|
||||
case "wmv" :
|
||||
case "flv" :
|
||||
$file_name = "icon_video.gif";
|
||||
break;
|
||||
|
||||
default:
|
||||
$file_name = "icon_generic.gif";
|
||||
break;
|
||||
}
|
||||
|
||||
return GFCommon::get_base_url() . "/images/doctypes/$file_name";
|
||||
}
|
||||
}
|
||||
?>
|
||||
548
src/wp-content/plugins/gravityforms/export.php
Normal file
@ -0,0 +1,548 @@
|
||||
<?php
|
||||
|
||||
class GFExport{
|
||||
private static $min_import_version = "1.3.12.3";
|
||||
|
||||
public static function maybe_export(){
|
||||
if(isset($_POST["export_lead"])){
|
||||
check_admin_referer("rg_start_export", "rg_start_export_nonce");
|
||||
$form_id=$_POST["export_form"];
|
||||
$form = RGFormsModel::get_form_meta($form_id);
|
||||
|
||||
$filename = sanitize_title_with_dashes($form["title"]) . "-" . date("Y-m-d") . ".csv";
|
||||
$charset = get_option('blog_charset');
|
||||
header('Content-Description: File Transfer');
|
||||
header("Content-Disposition: attachment; filename=$filename");
|
||||
header('Content-Type: text/plain; charset=' . $charset, true);
|
||||
ob_clean();
|
||||
GFExport::start_export($form);
|
||||
|
||||
die();
|
||||
}
|
||||
else if(isset($_POST["export_forms"])){
|
||||
check_admin_referer("gf_export_forms", "gf_export_forms_nonce");
|
||||
$selected_forms = $_POST["gf_form_id"];
|
||||
if(empty($selected_forms)){
|
||||
echo "<div class='error' style='padding:15px;'>" . __("Please select the forms to be exported", "gravityforms") . "</div>";
|
||||
return;
|
||||
}
|
||||
|
||||
$forms = RGFormsModel::get_forms_by_id($selected_forms);
|
||||
|
||||
//removing the inputs for checkboxes (choices will be used during the import)
|
||||
foreach($forms as &$form){
|
||||
foreach($form["fields"] as &$field){
|
||||
$inputType = RGFormsModel::get_input_type($field);
|
||||
|
||||
if(isset($field["pageNumber"]))
|
||||
unset($field["pageNumber"]);
|
||||
|
||||
if($inputType == "checkbox")
|
||||
unset($field["inputs"]);
|
||||
else if($inputType != "address")
|
||||
unset($field["addressType"]);
|
||||
else if($inputType != "date")
|
||||
unset($field["calendarIconType"]);
|
||||
else if($field["type"] == $field["inputType"])
|
||||
unset($field["inputType"]);
|
||||
|
||||
|
||||
if(in_array($inputType, array("checkbox", "radio", "select")) && !rgar($field,"enableChoiceValue")){
|
||||
foreach($field["choices"] as &$choice)
|
||||
unset($choice["value"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
require_once("xml.php");
|
||||
|
||||
$options = array(
|
||||
"version" => GFCommon::$version,
|
||||
"forms/form/id" => array("is_hidden" => true),
|
||||
"forms/form/nextFieldId" => array("is_hidden" => true),
|
||||
"forms/form/notification/routing" => array("array_tag" => "routing_item"),
|
||||
"forms/form/useCurrentUserAsAuthor" => array("is_attribute" => true),
|
||||
"forms/form/postAuthor" => array("is_attribute" => true),
|
||||
"forms/form/postCategory" => array("is_attribute" => true),
|
||||
"forms/form/postStatus" => array("is_attribute" => true),
|
||||
"forms/form/postAuthor" => array("is_attribute" => true),
|
||||
"forms/form/labelPlacement" => array("is_attribute" => true),
|
||||
"forms/form/confirmation/type" => array("is_attribute" => true),
|
||||
"forms/form/lastPageButton/type" => array("is_attribute" => true),
|
||||
"forms/form/pagination/type" => array("is_attribute" => true),
|
||||
"forms/form/pagination/style" => array("is_attribute" => true),
|
||||
"forms/form/button/type" => array("is_attribute" => true),
|
||||
"forms/form/button/conditionalLogic/actionType" => array("is_attribute" => true),
|
||||
"forms/form/button/conditionalLogic/logicType" => array("is_attribute" => true),
|
||||
"forms/form/button/conditionalLogic/rules/rule/fieldId" => array("is_attribute" => true),
|
||||
"forms/form/button/conditionalLogic/rules/rule/operator" => array("is_attribute" => true),
|
||||
"forms/form/button/conditionalLogic/rules/rule/value" => array("allow_empty" => true),
|
||||
"forms/form/fields/field/id" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/type" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/inputType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/displayOnly" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/size" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/isRequired" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/noDuplicates" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/inputs/input/id" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/inputs/input/name" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/formId" => array("is_hidden" => true),
|
||||
"forms/form/fields/field/allowsPrepopulate" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/adminOnly" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/enableChoiceValue" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/conditionalLogic/actionType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/conditionalLogic/logicType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/conditionalLogic/rules/rule/fieldId" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/conditionalLogic/rules/rule/operator" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/conditionalLogic/rules/rule/value" => array("allow_empty" => true),
|
||||
"forms/form/fields/field/previousButton/type" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/type" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/conditionalLogic/actionType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/conditionalLogic/logicType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/conditionalLogic/rules/rule/fieldId" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/conditionalLogic/rules/rule/operator" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nextButton/conditionalLogic/rules/rule/value" => array("allow_empty" => true),
|
||||
"forms/form/fields/field/choices/choice/isSelected" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/choices/choice/text" => array("allow_empty" => true),
|
||||
"forms/form/fields/field/choices/choice/value" => array("allow_empty" => true),
|
||||
"forms/form/fields/field/rangeMin" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/rangeMax" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/calendarIconType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/dateFormat" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/dateType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/nameFormat" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/phoneFormat" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/addressType" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/hideCountry" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/hideAddress2" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/displayTitle" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/displayCaption" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/displayDescription" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/displayAllCategories" => array("is_attribute" => true),
|
||||
"forms/form/fields/field/postCustomFieldName" => array("is_attribute" => true)
|
||||
);
|
||||
|
||||
$serializer = new RGXML($options);
|
||||
$xml = $serializer->serialize("forms", $forms);
|
||||
|
||||
if ( !seems_utf8( $xml ) )
|
||||
$value = utf8_encode( $xml );
|
||||
|
||||
$filename = "gravityforms-export-" . date("Y-m-d") . ".xml";
|
||||
header('Content-Description: File Transfer');
|
||||
header("Content-Disposition: attachment; filename=$filename");
|
||||
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
|
||||
echo $xml;
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
public static function export_page(){
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
echo GFCommon::get_remote_message();
|
||||
|
||||
$view = RGForms::get("view");
|
||||
switch($view){
|
||||
case "import_form" :
|
||||
self::import_form_page();
|
||||
break;
|
||||
|
||||
case "export_form" :
|
||||
self::export_form_page();
|
||||
break;
|
||||
|
||||
default:
|
||||
self::export_lead_page();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static function export_links(){
|
||||
$view = RGForms::get("view");
|
||||
|
||||
?>
|
||||
<ul class="subsubsub">
|
||||
<li><a href="?page=gf_export&view=export_entry" class="<?php echo $view=="export_entry" || empty($view) ? 'current' : ''; ?>"><?php _e("Export Entries", "gravityforms"); ?></a> | </li>
|
||||
<li><a href="?page=gf_export&view=export_form" class="<?php echo $view=="export_form" ? 'current' : ''; ?>"><?php _e("Export Forms", "gravityforms"); ?></a> | </li>
|
||||
<li><a href="?page=gf_export&view=import_form" class="<?php echo $view=="import_form" ? 'current' : ''; ?>"><?php _e("Import Forms", "gravityforms"); ?></a></li>
|
||||
</ul>
|
||||
<br style="clear:both"/>
|
||||
<br/>
|
||||
<?php
|
||||
}
|
||||
|
||||
public static function import_file($filepath){
|
||||
|
||||
$xmlstr = file_get_contents($filepath);
|
||||
|
||||
require_once("xml.php");
|
||||
|
||||
$options = array(
|
||||
"page" => array("unserialize_as_array" => true),
|
||||
"form"=> array("unserialize_as_array" => true),
|
||||
"field"=> array("unserialize_as_array" => true),
|
||||
"rule"=> array("unserialize_as_array" => true),
|
||||
"choice"=> array("unserialize_as_array" => true),
|
||||
"input"=> array("unserialize_as_array" => true),
|
||||
"routing_item"=> array("unserialize_as_array" => true),
|
||||
"routin"=> array("unserialize_as_array" => true) //routin is for backwards compatibility
|
||||
);
|
||||
$xml = new RGXML($options);
|
||||
$forms = $xml->unserialize($xmlstr);
|
||||
|
||||
if(!$forms)
|
||||
return 0; //Error. could not unserialize XML file
|
||||
else if(version_compare($forms["version"], self::$min_import_version, "<"))
|
||||
return -1; //Error. XML version is not compatible with current Gravity Forms version
|
||||
|
||||
//cleaning up generated object
|
||||
self::cleanup($forms);
|
||||
|
||||
foreach($forms as $key => $form){
|
||||
$title = $form["title"];
|
||||
$count = 2;
|
||||
while(!RGFormsModel::is_unique_title($title)){
|
||||
$title = $form["title"] . "($count)";
|
||||
$count++;
|
||||
}
|
||||
|
||||
//inserting form
|
||||
$form_id = RGFormsModel::insert_form($title);
|
||||
|
||||
//updating form meta
|
||||
$form["title"] = $title;
|
||||
$form["id"] = $form_id;
|
||||
RGFormsModel::update_form_meta($form_id, $form);
|
||||
}
|
||||
return sizeof($forms);
|
||||
|
||||
}
|
||||
|
||||
public static function import_form_page(){
|
||||
if(isset($_POST["import_forms"])){
|
||||
check_admin_referer("gf_import_forms", "gf_import_forms_nonce");
|
||||
|
||||
if(!empty($_FILES["gf_import_file"]["tmp_name"])){
|
||||
|
||||
$count = self::import_file($_FILES["gf_import_file"]["tmp_name"]);
|
||||
|
||||
if($count == 0 ){
|
||||
?>
|
||||
<div class="error" style="padding:10px;"><?php _e("Forms could not be imported. Please make sure your XML export file is in the correct format.", "gravityforms"); ?></div>
|
||||
<?php
|
||||
}
|
||||
else if($count == "-1"){
|
||||
?>
|
||||
<div class="error" style="padding:10px;"><?php _e("Forms could not be imported. Your XML export file is not compatible with your current version of Gravity Forms.", "gravityforms"); ?></div>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
$form_text = $count > 1 ? __("forms", "gravityforms") : __("form", "gravityforms");
|
||||
?>
|
||||
<div class="updated" style="padding:10px;"><?php echo sprintf(__("Gravity Forms imported %d {$form_text} successfully", "gravityforms"), $count); ?></div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css"/>
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" style="margin: 15px 7px 0pt 0pt; float: left;" src="<?php echo GFCommon::get_base_url() ?>/images/gravity-import-icon-32.png"/>
|
||||
<h2><?php _e("Import Forms", "gravityforms") ?></h2>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<p class="textleft"><?php
|
||||
self::export_links();
|
||||
|
||||
_e("Select the Gravity Forms XML file you would like to import. When you click the import button below, Gravity Forms will import the forms.", "gravityforms");
|
||||
?></p>
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<form method="post" enctype="multipart/form-data" style="margin-top:10px;">
|
||||
<?php echo wp_nonce_field("gf_import_forms", "gf_import_forms_nonce"); ?>
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
|
||||
<th scope="row"><label for="gf_import_file"><?php _e("Select File", "gravityforms");?></label></th>
|
||||
<td><input type="file" name="gf_import_file" id="gf_import_file"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
<input type="submit" value="<?php _e("Import", "gravityforms")?>" name="import_forms" class="button-primary" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
public static function export_form_page(){
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css"/>
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" style="margin: 15px 7px 0pt 0pt; float: left;" src="<?php echo GFCommon::get_base_url() ?>/images/gravity-export-icon-32.png"/>
|
||||
<h2><?php _e("Export Forms", "gravityforms") ?></h2>
|
||||
<?php
|
||||
self::export_links();
|
||||
?>
|
||||
|
||||
<p class="textleft"><?php _e("Select the forms you would like to export. When you click the download button below, Gravity Forms will create a XML file for you to save to your computer. Once you've saved the download file, you can use the Import tool to import the forms.", "gravityforms"); ?></p>
|
||||
<div class="hr-divider"></div>
|
||||
<form method="post" style="margin-top:10px;">
|
||||
<?php echo wp_nonce_field("gf_export_forms", "gf_export_forms_nonce"); ?>
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
<th scope="row"><label for="export_fields"><?php _e("Select Forms", "gravityforms"); ?></label> <?php gform_tooltip("export_select_forms") ?></th>
|
||||
<td>
|
||||
<ul id="export_form_list">
|
||||
<?php
|
||||
$forms = RGFormsModel::get_forms(null, "title");
|
||||
foreach($forms as $form){
|
||||
?>
|
||||
<li>
|
||||
<input type="checkbox" name="gf_form_id[]" id="gf_form_id_<?php echo absint($form->id)?>" value="<?php echo absint($form->id)?>"/>
|
||||
<label for="gf_form_id_<?php echo absint($form->id)?>"><?php echo esc_html($form->title) ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/><br/>
|
||||
<input type="submit" value="<?php _e("Download Export File", "gravityforms")?>" name="export_forms" class="button-primary" />
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
public static function export_lead_page(){
|
||||
?>
|
||||
<script type='text/javascript' src='<?php echo GFCommon::get_base_url()?>/js/jquery-ui/ui.datepicker.js?ver=<?php echo GFCommon::$version ?>'></script>
|
||||
<script type="text/javascript">
|
||||
function SelectExportForm(formId){
|
||||
if(!formId)
|
||||
return;
|
||||
|
||||
var mysack = new sack("<?php echo admin_url("admin-ajax.php")?>" );
|
||||
mysack.execute = 1;
|
||||
mysack.method = 'POST';
|
||||
mysack.setVar( "action", "rg_select_export_form" );
|
||||
mysack.setVar( "rg_select_export_form", "<?php echo wp_create_nonce("rg_select_export_form") ?>" );
|
||||
mysack.setVar( "form_id", formId);
|
||||
mysack.encVar( "cookie", document.cookie, false );
|
||||
mysack.onError = function() { alert('<?php echo esc_js(__("Ajax error while selecting a form", "gravityforms")) ?>' )};
|
||||
mysack.runAJAX();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function EndSelectExportForm(aryFields){
|
||||
if(aryFields.length == 0)
|
||||
{
|
||||
jQuery("#export_field_container, #export_date_container, #export_submit_container").hide()
|
||||
return;
|
||||
}
|
||||
|
||||
var fieldList = "<li><input type='checkbox' onclick=\"jQuery('.gform_export_field').attr('checked', this.checked); jQuery('#gform_export_check_all').html(this.checked ? '<strong><?php _e("Deselect All", "gravityforms") ?></strong>' : '<strong><?php _e("Select All", "gravityforms") ?></strong>'); \"> <label id='gform_export_check_all'><strong><?php _e("Select All", "gravityforms") ?></strong></label></li>";
|
||||
for(var i=0; i<aryFields.length; i++){
|
||||
fieldList += "<li><input type='checkbox' id='export_field_" + i + "' name='export_field[]' value='" + aryFields[i][0] + "' class='gform_export_field'> <label for='export_field_" + i + "'>" + aryFields[i][1] + "</label></li>";
|
||||
}
|
||||
jQuery("#export_field_list").html(fieldList);
|
||||
jQuery("#export_date_start, #export_date_end").datepicker({dateFormat: 'yy-mm-dd'});
|
||||
|
||||
jQuery("#export_field_container, #export_date_container, #export_submit_container").hide().show();
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css"/>
|
||||
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" style="margin: 15px 7px 0pt 0pt; float: left;" src="<?php echo GFCommon::get_base_url() ?>/images/gravity-export-icon-32.png"/>
|
||||
<h2><?php _e("Export Form Entries", "gravityforms") ?></h2>
|
||||
<?php
|
||||
self::export_links();
|
||||
?>
|
||||
|
||||
<p class="textleft"><?php _e("Select a form below to export entries. Once you have selected a form you may select the fields you would like to export and an optional date range. When you click the download button below, Gravity Forms will create a CSV file for you to save to your computer.", "gravityforms"); ?></p>
|
||||
<div class="hr-divider"></div>
|
||||
<form method="post" style="margin-top:10px;">
|
||||
<?php echo wp_nonce_field("rg_start_export", "rg_start_export_nonce"); ?>
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
|
||||
<th scope="row"><label for="export_form"><?php _e("Select A Form", "gravityforms"); ?></label> <?php gform_tooltip("export_select_form") ?></th>
|
||||
<td>
|
||||
|
||||
<select id="export_form" name="export_form" onchange="SelectExportForm(jQuery(this).val());">
|
||||
<option value=""><?php _e("Select a form", "gravityforms"); ?></option>
|
||||
<?php
|
||||
$forms = RGFormsModel::get_forms(null, "title");
|
||||
foreach($forms as $form){
|
||||
?>
|
||||
<option value="<?php echo absint($form->id) ?>"><?php echo esc_html($form->title) ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="export_field_container" valign="top" style="display: none;">
|
||||
<th scope="row"><label for="export_fields"><?php _e("Select Fields", "gravityforms"); ?></label> <?php gform_tooltip("export_select_fields") ?></th>
|
||||
<td>
|
||||
<ul id="export_field_list">
|
||||
<ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="export_date_container" valign="top" style="display: none;">
|
||||
<th scope="row"><label for="export_date"><?php _e("Select Date Range", "gravityforms"); ?></label> <?php gform_tooltip("export_date_range") ?></th>
|
||||
<td>
|
||||
<div>
|
||||
<span style="width:150px; float:left; ">
|
||||
<input type="text" id="export_date_start" name="export_date_start" style="width:90%"/>
|
||||
<strong><label for="export_date_start" style="display:block;"><?php _e("Start", "gravityforms"); ?></label></strong>
|
||||
</span>
|
||||
|
||||
<span style="width:150px; float:left;">
|
||||
<input type="text" id="export_date_end" name="export_date_end" style="width:90%"/>
|
||||
<strong><label for="export_date_end" style="display:block;"><?php _e("End", "gravityforms"); ?></label></strong>
|
||||
</span>
|
||||
<div style="clear: both;"></div>
|
||||
<?php _e("Date Range is optional, if no date range is selected all entries will be exported.", "gravityforms"); ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li id="export_submit_container" style="display:none; clear:both;">
|
||||
<br/><br/>
|
||||
<input type="submit" name="export_lead" value="<?php _e("Download Export File", "gravityforms"); ?>" class="button-primary"/>
|
||||
<span id="please_wait_container" style="display:none; margin-left:15px;">
|
||||
<img src="<?php echo GFCommon::get_base_url()?>/images/loading.gif"> <?php _e("Exporting entries. Please wait...", "gravityforms"); ?>
|
||||
</span>
|
||||
|
||||
<iframe id="export_frame" width="1" height="1" src="about:blank"></iframe>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static function start_export($form){
|
||||
|
||||
$form_id = $form["id"];
|
||||
$fields = $_POST["export_field"];
|
||||
$start_date = $_POST["export_date_start"];
|
||||
$end_date = $_POST["export_date_end"];
|
||||
|
||||
//adding default fields
|
||||
array_push($form["fields"],array("id" => "id" , "label" => __("Entry Id", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "date_created" , "label" => __("Entry Date", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "ip" , "label" => __("User IP", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "source_url" , "label" => __("Source Url", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "payment_status" , "label" => __("Payment Status", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "payment_date" , "label" => __("Payment Date", "gravityforms")));
|
||||
array_push($form["fields"],array("id" => "transaction_id" , "label" => __("Transaction Id", "gravityforms")));
|
||||
|
||||
$entry_count = RGFormsModel::get_lead_count($form_id, "", null, null, $start_date, $end_date);
|
||||
|
||||
$page_size = 200;
|
||||
$offset = 0;
|
||||
|
||||
//Adding BOM marker for UTF-8
|
||||
$lines= chr(239) . chr(187) . chr(191);
|
||||
|
||||
//writing header
|
||||
foreach($fields as $field_id){
|
||||
$field = RGFormsModel::get_field($form, $field_id);
|
||||
$value = '"' . str_replace('"', '""', GFCommon::get_label($field, $field_id)) . '"';
|
||||
$lines .= "$value,";
|
||||
}
|
||||
$lines = substr($lines, 0, strlen($lines)-1) . "\n";
|
||||
|
||||
//paging through results for memory issues
|
||||
while($entry_count > 0){
|
||||
$leads = RGFormsModel::get_leads($form_id,"date_created", "DESC", "", $offset, $page_size, null, null, false, $start_date, $end_date);
|
||||
|
||||
foreach($leads as $lead){
|
||||
foreach($fields as $field_id){
|
||||
switch($field_id){
|
||||
case "date_created" :
|
||||
$lead_gmt_time = mysql2date("G", $lead["date_created"]);
|
||||
$lead_local_time = GFCommon::get_local_timestamp($lead_gmt_time);
|
||||
$value = date_i18n("Y-m-d H:i:s", $lead_local_time);
|
||||
break;
|
||||
|
||||
default :
|
||||
$long_text = "";
|
||||
if(strlen($lead[$field_id]) >= GFORMS_MAX_FIELD_LENGTH)
|
||||
$long_text = RGFormsModel::get_field_value_long($lead["id"], $field_id);
|
||||
|
||||
$value = !empty($long_text) ? $long_text : $lead[$field_id];
|
||||
break;
|
||||
}
|
||||
$lines .= '"' . str_replace('"', '""', $value) . '",';
|
||||
}
|
||||
$lines = substr($lines, 0, strlen($lines)-1);
|
||||
$lines.= "\n";
|
||||
}
|
||||
|
||||
$offset += $page_size;
|
||||
$entry_count -= $page_size;
|
||||
|
||||
if ( !seems_utf8( $lines ) )
|
||||
$lines = utf8_encode( $lines );
|
||||
|
||||
echo $lines;
|
||||
$lines = "";
|
||||
}
|
||||
}
|
||||
|
||||
private function cleanup(&$forms){
|
||||
unset($forms["version"]);
|
||||
|
||||
//adding checkboxes "inputs" property based on "choices". (they were removed from the export
|
||||
//to provide a cleaner xml format
|
||||
foreach($forms as &$form){
|
||||
if(!is_array($form["fields"]))
|
||||
continue;
|
||||
|
||||
foreach($form["fields"] as &$field){
|
||||
$input_type = RGFormsModel::get_input_type($field);
|
||||
if(in_array($input_type, array("checkbox", "radio", "select"))){
|
||||
|
||||
//creating inputs array for checkboxes
|
||||
if($input_type == "checkbox" && !isset($field["inputs"]))
|
||||
$field["inputs"] = array();
|
||||
|
||||
for($i=1, $count = sizeof($field["choices"]); $i<=$count; $i++){
|
||||
if(!RGForms::get("enableChoiceValue", $field))
|
||||
$field["choices"][$i-1]["value"] = $field["choices"][$i-1]["text"];
|
||||
|
||||
if($input_type == "checkbox")
|
||||
$field["inputs"][] = array("id" => $field["id"] . "." . $i, "label" => $field["choices"][$i-1]["text"]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
1983
src/wp-content/plugins/gravityforms/form_detail.php
Normal file
1549
src/wp-content/plugins/gravityforms/form_display.php
Normal file
309
src/wp-content/plugins/gravityforms/form_list.php
Normal file
@ -0,0 +1,309 @@
|
||||
<?php
|
||||
class GFFormList{
|
||||
public static function form_list_page(){
|
||||
global $wpdb;
|
||||
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
echo GFCommon::get_remote_message();
|
||||
|
||||
$action = RGForms::post("action");
|
||||
$bulk_action = RGForms::post("bulk_action");
|
||||
$bulk_action = !empty($bulk_action) ? $bulk_action : RGForms::post("bulk_action2");
|
||||
|
||||
if($action == "delete")
|
||||
{
|
||||
check_admin_referer('gforms_update_forms', 'gforms_update_forms');
|
||||
$form_id = RGForms::post("action_argument");
|
||||
RGFormsModel::delete_form($form_id);
|
||||
}
|
||||
else if($action == "duplicate"){
|
||||
check_admin_referer('gforms_update_forms', 'gforms_update_forms');
|
||||
$form_id = RGForms::post("action_argument");
|
||||
RGFormsModel::duplicate_form($form_id);
|
||||
}
|
||||
else if($bulk_action == "delete"){
|
||||
check_admin_referer('gforms_update_forms', 'gforms_update_forms');
|
||||
$form_ids = RGForms::post("form");
|
||||
RGFormsModel::delete_forms($form_ids);
|
||||
}
|
||||
else if($bulk_action == "reset_views"){
|
||||
check_admin_referer('gforms_update_forms', 'gforms_update_forms');
|
||||
$form_ids = RGForms::post("form");
|
||||
foreach($form_ids as $form_id){
|
||||
RGFormsModel::delete_views($form_id);
|
||||
}
|
||||
}
|
||||
else if($bulk_action == "delete_entries"){
|
||||
check_admin_referer('gforms_update_forms', 'gforms_update_forms');
|
||||
$form_ids = RGForms::post("form");
|
||||
foreach($form_ids as $form_id){
|
||||
RGFormsModel::delete_leads_by_form($form_id);
|
||||
}
|
||||
}
|
||||
|
||||
$active = RGForms::get("active") == "" ? null : RGForms::get("active");
|
||||
$forms = RGFormsModel::get_forms($active, "title");
|
||||
$form_count = RGFormsModel::get_form_count();
|
||||
|
||||
?>
|
||||
<script>
|
||||
function DeleteForm(form_id){
|
||||
jQuery("#action_argument").val(form_id);
|
||||
jQuery("#action").val("delete");
|
||||
jQuery("#forms_form")[0].submit();
|
||||
}
|
||||
|
||||
function DuplicateForm(form_id){
|
||||
jQuery("#action_argument").val(form_id);
|
||||
jQuery("#action").val("duplicate");
|
||||
jQuery("#forms_form")[0].submit();
|
||||
}
|
||||
|
||||
function ToggleActive(img, form_id){
|
||||
var is_active = img.src.indexOf("active1.png") >=0
|
||||
if(is_active){
|
||||
img.src = img.src.replace("active1.png", "active0.png");
|
||||
jQuery(img).attr('title','<?php _e("Inactive", "gravityforms") ?>').attr('alt', '<?php _e("Inactive", "gravityforms") ?>');
|
||||
}
|
||||
else{
|
||||
img.src = img.src.replace("active0.png", "active1.png");
|
||||
jQuery(img).attr('title','<?php _e("Active", "gravityforms") ?>').attr('alt', '<?php _e("Active", "gravityforms") ?>');
|
||||
}
|
||||
|
||||
UpdateCount("active_count", is_active ? -1 : 1);
|
||||
UpdateCount("inactive_count", is_active ? 1 : -1);
|
||||
|
||||
var mysack = new sack("<?php echo admin_url("admin-ajax.php")?>" );
|
||||
mysack.execute = 1;
|
||||
mysack.method = 'POST';
|
||||
mysack.setVar( "action", "rg_update_form_active" );
|
||||
mysack.setVar( "rg_update_form_active", "<?php echo wp_create_nonce("rg_update_form_active") ?>" );
|
||||
mysack.setVar( "form_id", form_id);
|
||||
mysack.setVar( "is_active", is_active ? 0 : 1);
|
||||
mysack.encVar( "cookie", document.cookie, false );
|
||||
mysack.onError = function() { alert('<?php echo esc_js(__("Ajax error while update form", "gravityforms")) ?>' )};
|
||||
mysack.runAJAX();
|
||||
|
||||
return true;
|
||||
}
|
||||
function UpdateCount(element_id, change){
|
||||
var element = jQuery("#" + element_id);
|
||||
var count = parseInt(element.html()) + change
|
||||
element.html(count + "");
|
||||
}
|
||||
|
||||
function gfConfirmBulkAction(element_id){
|
||||
var element = "#" + element_id;
|
||||
if(jQuery(element).val() == 'delete')
|
||||
return confirm('<?php echo __("WARNING: You are about to delete this form and ALL entries associated with it. ", "gravityforms") . __("\'Cancel\' to stop, \'OK\' to delete.", "gravityforms") ?>');
|
||||
else if(jQuery(element).val() == 'reset_views')
|
||||
return confirm('<?php echo __("Are you sure you would like to reset the Views for the selected forms? ", "gravityforms") . __("\'Cancel\' to stop, \'OK\' to reset.", "gravityforms") ?>');
|
||||
else if(jQuery(element).val() == 'delete_entries')
|
||||
return confirm('<?php echo __("WARNING: You are about to delete ALL entries associated with the selected forms. ", "gravityforms") . __("\'Cancel\' to stop, \'OK\' to delete.", "gravityforms") ?>');
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css" />
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" src="<?php echo GFCommon::get_base_url()?>/images/gravity-edit-icon-32.png" style="float:left; margin:15px 7px 0 0;"/>
|
||||
<h2>
|
||||
<?php _e("Edit Forms", "gravityforms"); ?>
|
||||
<a class="button add-new-h2" href="admin.php?page=gf_new_form"><?php _e("Add New", "gravityforms") ?></a>
|
||||
</h2>
|
||||
<form id="forms_form" method="post">
|
||||
<?php wp_nonce_field('gforms_update_forms', 'gforms_update_forms') ?>
|
||||
<input type="hidden" id="action" name="action"/>
|
||||
<input type="hidden" id="action_argument" name="action_argument"/>
|
||||
|
||||
<ul class="subsubsub">
|
||||
<li><a class="<?php echo ($active === null) ? "current" : "" ?>" href="?page=gf_edit_forms"><?php _e("All", "gravityforms"); ?> <span class="count">(<span id="all_count"><?php echo $form_count["total"] ?></span>)</span></a> | </li>
|
||||
<li><a class="<?php echo $active == "1" ? "current" : ""?>" href="?page=gf_edit_forms&active=1"><?php _e("Active", "gravityforms"); ?> <span class="count">(<span id="active_count"><?php echo $form_count["active"] ?></span>)</span></a> | </li>
|
||||
<li><a class="<?php echo $active == "0" ? "current" : ""?>" href="?page=gf_edit_forms&active=0"><?php _e("Inactive", "gravityforms"); ?> <span class="count">(<span id="inactive_count"><?php echo $form_count["inactive"] ?></span>)</span></a></li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<div class="tablenav">
|
||||
<div class="alignleft actions" style="padding:8px 0 7px; 0">
|
||||
|
||||
<label class="hidden" for="bulk_action"><?php _e("Bulk action", "gravityforms") ?></label>
|
||||
<select name="bulk_action" id="bulk_action">
|
||||
<option value=''> <?php _e("Bulk action", "gravityforms") ?> </option>
|
||||
<option value='delete'><?php _e("Delete", "gravityforms") ?></option>
|
||||
<option value='reset_views'><?php _e("Reset Views", "gravityforms") ?></option>
|
||||
<option value='delete_entries'><?php _e("Delete Entries", "gravityforms") ?></option>
|
||||
</select>
|
||||
<?php
|
||||
$apply_button = '<input type="submit" class="button" value="' . __("Apply", "gravityforms") . '" onclick="return gfConfirmBulkAction(\'bulk_action\');"/>';
|
||||
echo apply_filters("gform_form_apply_button", $apply_button);
|
||||
?>
|
||||
|
||||
<br class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="widefat fixed" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" name="form_bulk_check_all" onclick="jQuery('.gform_list_checkbox').attr('checked', this.checked);" /></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<th scope="col" id="active" class="manage-column column-cb check-column"></th>
|
||||
<th scope="col" id="id" class="manage-column" style="width:50px;"><?php _e("Id", "gravityforms") ?></th>
|
||||
<th width="360" scope="col" id="title" class="manage-column column-title"><?php _e("Title", "gravityforms") ?></th>
|
||||
<th scope="col" id="author" class="manage-column column-author" style=""><?php _e("Views", "gravityforms") ?></th>
|
||||
<th scope="col" id="template" class="manage-column" style=""><?php _e("Entries", "gravityforms") ?></th>
|
||||
<th scope="col" id="template" class="manage-column" style=""><?php _e("Conversion", "gravityforms") ?> <?php gform_tooltip("entries_conversion", "tooltip_left") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" name="form_bulk_check_all" onclick="jQuery('.gform_list_checkbox').attr('checked', this.checked);" /></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<th scope="col" id="active" class="manage-column column-cb check-column"></th>
|
||||
<th scope="col" id="id" class="manage-column"><?php _e("Id", "gravityforms") ?></th>
|
||||
<th width="350" scope="col" id="title" class="manage-column column-title"><?php _e("Title", "gravityforms") ?></th>
|
||||
<th scope="col" id="author" class="manage-column column-author" style=""><?php _e("Views", "gravityforms") ?></th>
|
||||
<th scope="col" id="template" class="manage-column" style=""><?php _e("Entries", "gravityforms") ?></th>
|
||||
<th scope="col" id="template" class="manage-column" style=""><?php _e("Conversion", "gravityforms") ?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody class="list:user user-list">
|
||||
<?php
|
||||
if(sizeof($forms) > 0){
|
||||
foreach($forms as $form){
|
||||
$conversion = "0%";
|
||||
if($form->view_count > 0){
|
||||
$conversion = (number_format($form->lead_count / $form->view_count, 3) * 100) . "%";
|
||||
}
|
||||
?>
|
||||
<tr class='author-self status-inherit' valign="top">
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<th scope="row" class="check-column"><input type="checkbox" name="form[]" value="<?php echo $form->id ?>" class="gform_list_checkbox"/></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<td><img src="<?php echo GFCommon::get_base_url() ?>/images/active<?php echo intval($form->is_active) ?>.png" alt="<?php echo $form->is_active ? __("Active", "gravityforms") : __("Inactive", "gravityforms");?>" title="<?php echo $form->is_active ? __("Active", "gravityforms") : __("Inactive", "gravityforms");?>" onclick="ToggleActive(this, <?php echo $form->id ?>); " /></td>
|
||||
<td class="column-id"><?php echo $form->id ?></td>
|
||||
<td class="column-title">
|
||||
<strong><a class="row-title" href="admin.php?page=gf_edit_forms&id=<?php echo $form->id ?>" title="<?php _e("Edit", "gravityforms") ?>"><?php echo $form->title ?></a></strong>
|
||||
<div class="row-actions">
|
||||
<span class="edit">
|
||||
<a title="Edit this form" href="admin.php?page=gf_edit_forms&id=<?php echo $form->id ?>"><?php _e("Edit", "gravityforms"); ?></a>
|
||||
|
|
||||
</span>
|
||||
<span class="edit">
|
||||
<a title="<?php _e("Preview this form", "gravityforms"); ?>" href="<?php echo GFCommon::get_base_url() ?>/preview.php?id=<?php echo $form->id ?>" target="_blank"><?php _e("Preview", "gravityforms"); ?></a>
|
||||
|
|
||||
</span>
|
||||
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_view_entries")){
|
||||
?>
|
||||
<span class="edit">
|
||||
<a title="<?php _e("View entries generated by this form", "gravityforms"); ?>" href="admin.php?page=gf_entries&view=entries&id=<?php echo $form->id ?>"><?php _e("Entries", "gravityforms"); ?></a>
|
||||
|
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<span class="edit">
|
||||
<a title="<?php _e("Edit notifications sent by this form", "gravityforms"); ?>" href="admin.php?page=gf_edit_forms&view=notification&id=<?php echo $form->id ?>"><?php _e("Notifications", "gravityforms"); ?></a>
|
||||
<?php echo GFCommon::current_user_can_any("gravityforms_create_form") || GFCommon::current_user_can_any("gravityforms_delete_forms") ? "|" : "" ?>
|
||||
</span>
|
||||
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_create_form")){
|
||||
?>
|
||||
<span class="edit">
|
||||
<a title="<?php _e("Duplicate this form", "gravityforms"); ?>" href="javascript:DuplicateForm(<?php echo $form->id ?>);"><?php _e("Duplicate", "gravityforms"); ?></a>
|
||||
<?php echo GFCommon::current_user_can_any("gravityforms_delete_forms") ? "|" : "" ?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<span class="edit">
|
||||
<?php
|
||||
$delete_link = '<a title="Delete" href="javascript: if(confirm(\'' . __("WARNING: You are about to delete this form and ALL entries associated with it. ", "gravityforms") . __("\'Cancel\' to stop, \'OK\' to delete.", "gravityforms") . '\')){ DeleteForm(' . $form->id . ');}">' . __("Delete", "gravityforms"). '</a>';
|
||||
echo apply_filters("gform_form_delete_link", $delete_link);
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="column-date"><strong><?php echo $form->view_count ?></strong></td>
|
||||
<td class="column-date"><strong><?php echo $form->lead_count ?></strong></td>
|
||||
<td class="column-date"><?php echo $conversion?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else{
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="6" style="padding:20px;">
|
||||
<?php echo sprintf(__("You don't have any forms. Let's go %screate one%s!", "gravityforms"), '<a href="admin.php?page=gf_new_form">', "</a>"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="tablenav">
|
||||
<div class="alignleft actions" style="padding:8px 0 7px; 0">
|
||||
<?php
|
||||
if(GFCommon::current_user_can_any("gravityforms_delete_forms")){
|
||||
?>
|
||||
<label class="hidden" for="bulk_action2"><?php _e("Bulk action", "gravityforms") ?></label>
|
||||
<select name="bulk_action2" id="bulk_action2">
|
||||
<option value=''> <?php _e("Bulk action", "gravityforms") ?> </option>
|
||||
<option value='delete'><?php _e("Delete", "gravityforms") ?></option>
|
||||
<option value='reset_views'><?php _e("Reset Views", "gravityforms") ?></option>
|
||||
<option value='delete_entries'><?php _e("Delete Entries", "gravityforms") ?></option>
|
||||
</select>
|
||||
<?php
|
||||
$apply_button = '<input type="submit" class="button" value="' . __("Apply", "gravityforms") . '" onclick="return gfConfirmBulkAction(\'bulk_action2\');"/>';
|
||||
echo apply_filters("gform_form_apply_button", $apply_button);
|
||||
}
|
||||
?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
2136
src/wp-content/plugins/gravityforms/forms_model.php
Normal file
1252
src/wp-content/plugins/gravityforms/gravityforms.php
Normal file
182
src/wp-content/plugins/gravityforms/help.php
Normal file
@ -0,0 +1,182 @@
|
||||
<?php
|
||||
class GFHelp{
|
||||
public static function help_page(){
|
||||
if(!GFCommon::ensure_wp_version())
|
||||
return;
|
||||
|
||||
echo GFCommon::get_remote_message();
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css" />
|
||||
<div class="wrap">
|
||||
<img alt="<?php _e("Gravity Forms", "gravityforms") ?>" style="margin: 15px 7px 0pt 0pt; float: left;" src="<?php echo GFCommon::get_base_url() ?>/images/gravity-help-icon-32.png"/>
|
||||
<h2><?php _e("Gravity Forms Help", "gravityforms"); ?></h2>
|
||||
|
||||
<div style="margin-top:10px;">
|
||||
|
||||
<div class="gforms_help_alert alert_yellow"><?php _e("<strong>IMPORTANT NOTICE:</strong> We do not provide support via e-mail. Please post any support queries in our <a href='http://forum.gravityhelp.com/'>support forums</a>.", "gravityforms") ?></div>
|
||||
|
||||
<div><?php _e("Please review the plugin documentation and frequently asked questions (FAQ) first. If you still can't find the answer you need visit our <a href='http://forum.gravityhelp.com/'>support forums</a> where we will be happy to answer your questions and assist you with any problems. <strong>Please note:</strong> If you have not <a href='http://www.gravityforms.com/purchase-gravity-forms/'>purchased a license</a> from us, you won't have access to these help resources.", "gravityforms"); ?></div>
|
||||
|
||||
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
<h3><?php _e("Gravity Forms Documentation", "gravityforms"); ?></h3>
|
||||
<?php _e("<strong>Note:</strong> Only licensed Gravity Forms customers are granted access to the documentation section.", "gravityforms"); ?>
|
||||
<ul style="margin-top:15px;">
|
||||
<li>
|
||||
<div class="gforms_helpbox">
|
||||
<form name="jump">
|
||||
<select name="menu">
|
||||
|
||||
<!-- begin documentation listing -->
|
||||
<option selected><?php _e("Documentation (please select a topic)", "gravityforms"); ?></option>
|
||||
<option value="http://gravityhelp.com/documentation/page/Getting_Started"><?php _e("Getting Started", "gravityforms"); ?></option>
|
||||
|
||||
<option value="http://gravityhelp.com/documentation/page/Using_Gravity_Forms"><?php _e("Using Gravity Forms", "gravityforms"); ?></option>
|
||||
<option value="http://gravityhelp.com/documentation/page/Design_and_Layout"><?php _e("Design and Layout", "gravityforms"); ?></option>
|
||||
<option value="http://gravityhelp.com/documentation/page/Developer_Docs"><?php _e("Developer Docs", "gravityforms"); ?></option>
|
||||
<option value="http://gravityhelp.com/documentation/page/Add-ons"><?php _e("Add-Ons", "gravityforms"); ?></option>
|
||||
<option value="http://gravityhelp.com/documentation/page/How_To"><?php _e("How To", "gravityforms"); ?></option>
|
||||
|
||||
<!-- end documentation listing -->
|
||||
</select>
|
||||
<input type="button" class="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="<?php _e("GO", "gravityforms"); ?>">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
<h3><?php _e("Gravity Forms FAQ", "gravityforms"); ?></h3>
|
||||
<?php _e("<strong>Please Note:</strong> Only licensed Gravity Forms customers are granted access to the FAQ section.", "gravityforms"); ?>
|
||||
<ul style="margin-top:15px;">
|
||||
<li>
|
||||
<div class="gforms_helpbox">
|
||||
<form name="jump1">
|
||||
<select name="menu1">
|
||||
|
||||
<!-- begin faq listing -->
|
||||
<option selected><?php _e("FAQ (please select a topic)", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/frequently-asked-questions/#faq_installation"><?php _e("Installation Questions", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/frequently-asked-questions/#faq_styling"><?php _e("Formatting/Styling Questions", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/frequently-asked-questions/#faq_notifications"><?php _e("Notification Questions", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/frequently-asked-questions/#faq_general"><?php _e("General Questions", "gravityforms"); ?></option>
|
||||
|
||||
<!-- end faq listing -->
|
||||
</select>
|
||||
<input type="button" class="button" onClick="location=document.jump1.menu1.options[document.jump1.menu1.selectedIndex].value;" value="<?php _e("GO", "gravityforms"); ?>">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
<h3><?php _e("Gravity Forms Support Forums", "gravityforms"); ?></h3>
|
||||
<?php _e("<strong>Please Note:</strong> Only licensed Gravity Forms customers are granted access to the support forums.", "gravityforms"); ?>
|
||||
<ul style="margin-top:15px;">
|
||||
<li>
|
||||
<div class="gforms_helpbox">
|
||||
<form name="jump2">
|
||||
<select name="menu2">
|
||||
|
||||
<!-- begin forums listing -->
|
||||
<option selected><?php _e("Forums (please select a topic)", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/general"><?php _e("General", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/news-and-announcements"> <?php _e("News & Announcements", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/pre-sale-questions"> <?php _e("Pre-Sale Questions", "gravityforms"); ?></option>
|
||||
|
||||
<option value="http://www.gravityhelp.com/forums/forum/feature-requests"> <?php _e("Feature Requests", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/testimonials"> <?php _e("Testimonials", "gravityforms"); ?></option>
|
||||
|
||||
<option value="http://www.gravityhelp.com/forums/forum/plugin-support"><?php _e("Plugin Support", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms"> <?php _e("Gravity Forms", "gravityforms"); ?></option>
|
||||
|
||||
<optgroup label=" Basic Add-Ons">
|
||||
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms-mailchimp-add-on"> <?php _e("Gravity Forms MailChimp Add-On", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms-campaign-monitor-add-on"> <?php _e("Gravity Forms Campaign Monitor Add-On", "gravityforms"); ?></option>
|
||||
|
||||
</optgroup>
|
||||
<optgroup label=" Advanced Add-Ons">
|
||||
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms-freshbooks-add-on"> <?php _e("Gravity Forms FreshBooks Add-On", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms-paypal-add-on"> <?php _e("Gravity Forms PayPal Add-On", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/forums/forum/gravity-forms-user-registration-add-on"> <?php _e("Gravity Forms User Registration Add-On", "gravityforms"); ?></option>
|
||||
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- end forums listing -->
|
||||
</select>
|
||||
<input type="button" class="button" onClick="location=document.jump2.menu2.options[document.jump2.menu2.selectedIndex].value;" value="<?php _e("GO", "gravityforms"); ?>">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
<h3><?php _e("Gravity Forms Downloads", "gravityforms"); ?></h3>
|
||||
<?php _e("<strong>Please Note:</strong> Only licensed Gravity Forms customers are granted access to the downloads section.", "gravityforms"); ?>
|
||||
<ul style="margin-top:15px;">
|
||||
<li>
|
||||
<div class="gforms_helpbox">
|
||||
<form name="jump3">
|
||||
<select name="menu3">
|
||||
|
||||
<!-- begin downloads listing -->
|
||||
<option selected><?php _e("Downloads (please select a product)", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/downloads/"><?php _e("Gravity Forms", "gravityforms"); ?></option>
|
||||
<option value="http://www.gravityhelp.com/downloads/add-ons/"><?php _e("Gravity Forms Add-Ons", "gravityforms"); ?></option>
|
||||
|
||||
<!-- end downloads listing -->
|
||||
</select>
|
||||
<input type="button" class="button" onClick="location=document.jump3.menu3.options[document.jump3.menu3.selectedIndex].value;" value="<?php _e("GO", "gravityforms"); ?>">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="hr-divider"></div>
|
||||
|
||||
<h3><?php _e("Gravity Forms Tutorials & Resources", "gravityforms"); ?></h3>
|
||||
<?php _e("<strong>Please note:</strong> The Gravity Forms support team does not provide support for third party scripts, widgets, etc.", "gravityforms"); ?>
|
||||
|
||||
<div class="gforms_helpbox" style="margin:15px 0;">
|
||||
<ul class="resource_list">
|
||||
<li><a href="http://www.gravityhelp.com/">Gravity Forms Blog</a></li>
|
||||
<li><a href="http://www.gravityhelp.com/gravity-forms-css-visual-guide/">Gravity Forms Visual CSS Guide</a></li>
|
||||
<li><a href="http://www.rocketgenius.com/gravity-forms-css-targeting-specific-elements/">Gravity Forms CSS: Targeting Specific Elements</a></li>
|
||||
<li><a href="http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/">Creating a Modal Form with Gravity Forms and FancyBox</a></li>
|
||||
<li><a href="http://yoast.com/gravity-forms-widget-update/">Gravity Forms Widget (Third Party Release)</a></li>
|
||||
<li><a href="http://wordpress.org/extend/plugins/wp-mail-smtp/">WP Mail SMTP Plugin</a></li>
|
||||
<li><a href="http://wordpress.org/extend/plugins/members/">Members Plugin (Role Management - Integrates with Gravity Forms)</a></li>
|
||||
<li><a href="http://wordpress.org/extend/plugins/really-simple-captcha/">Really Simple Captcha Plugin (Integrates with Gravity Forms)</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
BIN
src/wp-content/plugins/gravityforms/images/active0.png
Normal file
|
After Width: | Height: | Size: 666 B |
BIN
src/wp-content/plugins/gravityforms/images/active1.png
Normal file
|
After Width: | Height: | Size: 727 B |
BIN
src/wp-content/plugins/gravityforms/images/add.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/wp-content/plugins/gravityforms/images/arrow-right.jpg
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/wp-content/plugins/gravityforms/images/arrow-rightleft.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/wp-content/plugins/gravityforms/images/blank.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
src/wp-content/plugins/gravityforms/images/calendar.png
Normal file
|
After Width: | Height: | Size: 260 B |
|
After Width: | Height: | Size: 13 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_clean.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_large.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_medium.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_red.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_small.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/wp-content/plugins/gravityforms/images/captcha_white.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/wp-content/plugins/gravityforms/images/close.png
Normal file
|
After Width: | Height: | Size: 712 B |
BIN
src/wp-content/plugins/gravityforms/images/color.png
Normal file
|
After Width: | Height: | Size: 892 B |
BIN
src/wp-content/plugins/gravityforms/images/cross.png
Normal file
|
After Width: | Height: | Size: 655 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 53 B |
BIN
src/wp-content/plugins/gravityforms/images/delete.png
Normal file
|
After Width: | Height: | Size: 764 B |
|
After Width: | Height: | Size: 250 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_css.gif
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_doc.gif
Normal file
|
After Width: | Height: | Size: 165 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_fla.gif
Normal file
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 154 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 559 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_js.gif
Normal file
|
After Width: | Height: | Size: 173 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_log.gif
Normal file
|
After Width: | Height: | Size: 216 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_mov.gif
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_pdf.gif
Normal file
|
After Width: | Height: | Size: 338 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_php.gif
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_ppt.gif
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_psd.gif
Normal file
|
After Width: | Height: | Size: 241 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_sql.gif
Normal file
|
After Width: | Height: | Size: 175 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_swf.gif
Normal file
|
After Width: | Height: | Size: 366 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_txt.gif
Normal file
|
After Width: | Height: | Size: 154 B |
|
After Width: | Height: | Size: 347 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_xls.gif
Normal file
|
After Width: | Height: | Size: 163 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_xml.gif
Normal file
|
After Width: | Height: | Size: 169 B |
BIN
src/wp-content/plugins/gravityforms/images/doctypes/icon_zip.gif
Normal file
|
After Width: | Height: | Size: 170 B |