├── README.md
└── gravityforms-cron
├── admin-page-framework
├── LICENSE.txt
├── admin-page-framework-loader.php
├── asset
│ ├── css
│ │ ├── about.css
│ │ ├── admin.css
│ │ ├── code.css
│ │ ├── column.css
│ │ ├── feed-list.css
│ │ └── help.css
│ ├── image
│ │ ├── demo
│ │ │ └── wordpress-logo-2x.png
│ │ ├── donation.gif
│ │ ├── getting_started
│ │ │ ├── my_first_page.png
│ │ │ ├── my_first_plugin.png
│ │ │ └── my_first_plugin_in_plugin_list_table.png
│ │ ├── icon-128x128.png
│ │ ├── new_feature
│ │ │ ├── collapsible_button.jpg
│ │ │ ├── nested_sections.jpg
│ │ │ ├── pointer_tool_tips.jpg
│ │ │ └── tool_tip.jpg
│ │ ├── wp-logo_16x16.png
│ │ ├── wp-logo_32x32.png
│ │ └── wp_logo_bw_32x32.png
│ ├── javascript
│ │ └── flip
│ │ │ ├── jquery.m.flip.css
│ │ │ └── jquery.m.flip.js
│ └── text
│ │ ├── about.txt
│ │ └── examples.txt
├── example
│ ├── admin-page-framework-demo-bootstrap.php
│ ├── admin_page
│ │ ├── APF_Demo.php
│ │ ├── advanced_usage
│ │ │ ├── APF_Demo_AdvancedUsage.php
│ │ │ ├── argument
│ │ │ │ ├── APF_Demo_AdvancedUsage_Argument.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Argument_Capability.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Argument_CustomContent.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Argument_CustomSectionContent.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Argument_Unsave.php
│ │ │ ├── callback
│ │ │ │ ├── APF_Demo_AdvancedUsage_Callback.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Callback_FieldDefinition.php
│ │ │ ├── mixed
│ │ │ │ ├── APF_Demo_AdvancedUsage_Mixed.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Mixed_Subfield.php
│ │ │ ├── nesting
│ │ │ │ ├── APF_Demo_AdvancedUsage_Nesting.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Nesting_SectionA.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Nesting_SectionB.php
│ │ │ ├── section
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_CollapsibleType_Button.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Collapsible_A.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Collapsible_B.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Collapsible_C.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Collapsible_D.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Collapsible_Repeatable.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Repeatable.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Repeatable_Tabbed.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_SectionTitleField.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Tabbed_A.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Section_Tabbed_B.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Section_Tabbed_C.php
│ │ │ └── verification
│ │ │ │ ├── APF_Demo_AdvancedUsage_Verification.php
│ │ │ │ ├── APF_Demo_AdvancedUsage_Verification_Field.php
│ │ │ │ └── APF_Demo_AdvancedUsage_Verification_Section.php
│ │ ├── builtin_field_type
│ │ │ ├── APF_Demo_BuiltinFieldType.php
│ │ │ ├── checklist
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Checklist.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Checklist_PostType.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_Checklist_Taxonomy.php
│ │ │ ├── file
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_File.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_File_Image.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_File_Media.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_File_Upload.php
│ │ │ ├── misc
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_MISC.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_MISC_Color.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_MISC_Hidden.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_MISC_Submit.php
│ │ │ ├── selector
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Selector.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Selector_Checkbox.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Selector_Radio.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Selector_Select.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_Selector_Size.php
│ │ │ ├── system
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_System.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_System_Info.php
│ │ │ └── text
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Text.php
│ │ │ │ ├── APF_Demo_BuiltinFieldTypes_Text_Text.php
│ │ │ │ └── APF_Demo_BuiltinFieldTypes_Text_TextArea.php
│ │ ├── contact
│ │ │ ├── APF_Demo_Contact.php
│ │ │ ├── APF_Demo_Contact_Tab_Feedback.php
│ │ │ └── APF_Demo_Contact_Tab_Report.php
│ │ ├── custom_field_type
│ │ │ ├── APF_Demo_CustomFieldType.php
│ │ │ ├── APF_Demo_CustomFieldType_ACE.php
│ │ │ ├── APF_Demo_CustomFieldType_GitHub.php
│ │ │ └── APF_Demo_CustomFieldType_Sample.php
│ │ ├── hidden_page
│ │ │ └── APF_Demo_HiddenPage.php
│ │ └── manage_options
│ │ │ ├── APF_Demo_ManageOptions.php
│ │ │ ├── APF_Demo_ManageOptions_Export.php
│ │ │ ├── APF_Demo_ManageOptions_Import.php
│ │ │ ├── APF_Demo_ManageOptions_Message.php
│ │ │ ├── APF_Demo_ManageOptions_Property.php
│ │ │ ├── APF_Demo_ManageOptions_Reset.php
│ │ │ └── APF_Demo_ManageOptions_SavedData.php
│ ├── basic_usage
│ │ ├── APF_BasicUsage.php
│ │ └── admin_page_meta_box
│ │ │ ├── APF_MetaBox_For_Pages_Advanced.php
│ │ │ ├── APF_MetaBox_For_Pages_NoField.php
│ │ │ ├── APF_MetaBox_For_Pages_Normal.php
│ │ │ ├── APF_MetaBox_For_Pages_Side.php
│ │ │ └── APF_MetaBox_For_Pages_WithFormSection.php
│ ├── class-file-list.php
│ ├── library
│ │ ├── ace-custom-field-type
│ │ │ ├── AceCustomFieldType.php
│ │ │ ├── LICENSE
│ │ │ └── README.md
│ │ └── sample-custom-field-type
│ │ │ └── SampleCustomFieldType.php
│ ├── network_admin
│ │ ├── APF_NetworkAdmin.php
│ │ └── APF_NetworkAdmin_ManageOptions.php
│ ├── post_meta_box
│ │ ├── APF_MetaBox_BuiltinFieldTypes.php
│ │ ├── APF_MetaBox_CollapsibleSections.php
│ │ ├── APF_MetaBox_RepeatableCollapsibleSections.php
│ │ ├── APF_MetaBox_RepeatableTabbedSections.php
│ │ └── APF_MetaBox_TabbedSections.php
│ ├── post_type
│ │ └── APF_PostType.php
│ ├── taxonomy_field
│ │ └── APF_TaxonomyField.php
│ ├── user_meta
│ │ └── APF_MyUserMeta.php
│ └── widget
│ │ ├── APF_Widget.php
│ │ └── APF_Widget_WithSection.php
├── include
│ ├── class
│ │ ├── AdminPageFrameworkLoader_Bootstrap.php
│ │ ├── admin
│ │ │ ├── _abstract
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Page_Base.php
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_RootBase.php
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Section_Base.php
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Tab_Base.php
│ │ │ │ └── AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php
│ │ │ ├── admin-page-framework
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPage.php
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php
│ │ │ │ ├── addon
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Addon.php
│ │ │ │ │ └── AdminPageFrameworkLoader_AdminPage_Addon_Top.php
│ │ │ │ ├── help
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_About.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Debug.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Example.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_FAQ.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Guide.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Information.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Report.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php
│ │ │ │ │ └── AdminPageFrameworkLoader_AdminPage_Help_Tip.php
│ │ │ │ └── tool
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Tool.php
│ │ │ │ │ ├── generator
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Tool_Generator.php
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php
│ │ │ │ │ └── AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php
│ │ │ │ │ └── minifier
│ │ │ │ │ ├── AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php
│ │ │ │ │ └── AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier.php
│ │ │ ├── dashboard
│ │ │ │ ├── AdminPageFrameworkLoader_AdminPageWelcome.php
│ │ │ │ └── welcome
│ │ │ │ │ └── AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php
│ │ │ ├── demo
│ │ │ │ └── AdminPageFrameworkLoader_Demo.php
│ │ │ └── network-admin
│ │ │ │ └── AdminPageFrameworkLoader_NetworkAdmin.php
│ │ ├── event
│ │ │ ├── AdminPageFrameworkLoader_Event.php
│ │ │ └── AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php
│ │ ├── option
│ │ │ └── AdminPageFrameworkLoader_Option.php
│ │ └── utility
│ │ │ ├── AdminPageFrameworkLoader_FeedList.php
│ │ │ └── AdminPageFrameworkLoader_Utility.php
│ ├── library
│ │ └── github-custom-field-type
│ │ │ ├── GitHubCustomFieldType.php
│ │ │ └── asset
│ │ │ └── github-buttons
│ │ │ ├── assets
│ │ │ ├── css
│ │ │ │ ├── buttons.css
│ │ │ │ └── lt-ie8.css
│ │ │ └── js
│ │ │ │ ├── ie8.js
│ │ │ │ └── main.js
│ │ │ ├── buttons.html
│ │ │ ├── buttons.js
│ │ │ └── components
│ │ │ └── octicons
│ │ │ └── octicons
│ │ │ ├── octicons.css
│ │ │ ├── octicons.eot
│ │ │ ├── octicons.svg
│ │ │ ├── octicons.ttf
│ │ │ └── octicons.woff
│ └── loader-class-list.php
├── language
│ ├── admin-page-framework-fr_FR.mo
│ ├── admin-page-framework-fr_FR.po
│ ├── admin-page-framework-ja.mo
│ ├── admin-page-framework-ja.po
│ ├── admin-page-framework.mo
│ └── admin-page-framework.po
├── library
│ ├── admin-page-framework.min.php
│ ├── admin-page-framework
│ │ └── admin-page-framework.php
│ └── apf
│ │ ├── LICENSE.txt
│ │ ├── admin-page-framework-include-class-list.php
│ │ ├── admin-page-framework.php
│ │ ├── factory
│ │ ├── _common
│ │ │ ├── _abstract
│ │ │ │ ├── AdminPageFramework_Factory.php
│ │ │ │ ├── _controller
│ │ │ │ │ ├── AdminPageFramework_HelpPane_Base.php
│ │ │ │ │ ├── AdminPageFramework_Link_Base.php
│ │ │ │ │ └── AdminPageFramework_Resource_Base.php
│ │ │ │ ├── _model
│ │ │ │ │ ├── AdminPageFramework_Format_Base.php
│ │ │ │ │ ├── AdminPageFramework_Message.php
│ │ │ │ │ └── AdminPageFramework_Property_Base.php
│ │ │ │ └── _view
│ │ │ │ │ ├── AdminPageFramework_CSS.php
│ │ │ │ │ ├── AdminPageFramework_Factory_View__SettingNotice.php
│ │ │ │ │ ├── AdminPageFramework_Factory___Script_Base.php
│ │ │ │ │ ├── AdminPageFramework_PageLoadInfo_Base.php
│ │ │ │ │ └── AdminPageFramework_TabNavigationBar.php
│ │ │ ├── form
│ │ │ │ ├── AdminPageFramework_Form.php
│ │ │ │ ├── AdminPageFramework_Form_Meta.php
│ │ │ │ ├── _model
│ │ │ │ │ ├── AdminPageFramework_Form_Model___BuiltInFieldTypeDefinitions.php
│ │ │ │ │ ├── AdminPageFramework_Form_Model___DefaultValues.php
│ │ │ │ │ ├── AdminPageFramework_Form_Model___FieldTypeRegistration.php
│ │ │ │ │ ├── AdminPageFramework_Form_Model___FieldTypeResource.php
│ │ │ │ │ ├── AdminPageFramework_Form_Model___LastInput.php
│ │ │ │ │ ├── AdminPageFramework_Form_Model___SetFieldResources.php
│ │ │ │ │ ├── element_definition
│ │ │ │ │ │ └── AdminPageFramework_Form_Model___FieldConditioner.php
│ │ │ │ │ ├── formatter
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___FormatDynamicElements.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___FormatFieldsets.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___FormatSectionset.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___FormatSectionsets.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___Format_CollapsibleSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___Format_EachField.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___Format_EachSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___Format_Fields.php
│ │ │ │ │ │ └── AdminPageFramework_Form_Model___Format_FieldsetOutput.php
│ │ │ │ │ └── modifier
│ │ │ │ │ │ ├── AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements.php
│ │ │ │ │ │ └── AdminPageFramework_Form_Model___Modifier_SortInput.php
│ │ │ │ ├── _view
│ │ │ │ │ ├── AdminPageFramework_Form_View___DebugInfo.php
│ │ │ │ │ ├── AdminPageFramework_Form_View___Description.php
│ │ │ │ │ ├── AdminPageFramework_Form_View___ToolTip.php
│ │ │ │ │ ├── attribute
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_Field.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_Fieldrow.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_Fields.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_Fieldset.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_SectionTable.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_SectionTableBody.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Attribute_SectionTableContainer.php
│ │ │ │ │ │ └── AdminPageFramework_Form_View___Attribute_SectionsTablesContainer.php
│ │ │ │ │ ├── css
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_CollapsibleSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_CollapsibleSectionIE.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_Field.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_FieldError.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_Form.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_Loading.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CSS_Section.php
│ │ │ │ │ │ └── AdminPageFramework_Form_View___CSS_ToolTip.php
│ │ │ │ │ ├── fieldset
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Fieldset.php
│ │ │ │ │ │ └── AdminPageFramework_Form_View___Fieldset___FieldError.php
│ │ │ │ │ ├── generator
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Generate_Base.php
│ │ │ │ │ │ ├── field
│ │ │ │ │ │ │ ├── AdminPageFramework_Form_View___Generate_FieldAddress.php
│ │ │ │ │ │ │ ├── AdminPageFramework_Form_View___Generate_FieldInputID.php
│ │ │ │ │ │ │ └── AdminPageFramework_Form_View___Generate_FlatFieldInputName.php
│ │ │ │ │ │ └── section
│ │ │ │ │ │ │ └── AdminPageFramework_Form_View___Generate_SectionName.php
│ │ │ │ │ ├── resource
│ │ │ │ │ │ ├── AdminPageFramework_Form_View__Resource.php
│ │ │ │ │ │ └── AdminPageFramework_Form_View__Resource__Head.php
│ │ │ │ │ ├── script
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_AttributeUpdator.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_CheckboxSelector.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_CollapsibleSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_Form.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_MediaUploader.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_OptionStorage.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_RegisterCallback.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_RepeatableField.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_RepeatableSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_SectionTab.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_SortableSection.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Script_Utility.php
│ │ │ │ │ │ └── AdminPageFramework_Form_View___Script_Widget.php
│ │ │ │ │ └── sectionset
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___CollapsibleSectionTitle.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___FieldsetRow.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___FieldsetRows.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Section.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___SectionCaption.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Sections.php
│ │ │ │ │ │ ├── AdminPageFramework_Form_View___Sectionsets.php
│ │ │ │ │ │ └── format
│ │ │ │ │ │ └── AdminPageFramework_Form_View___Format_SectionsetsByTab.php
│ │ │ │ ├── errors
│ │ │ │ │ └── AdminPageFramework_Form___FieldError.php
│ │ │ │ ├── field_type
│ │ │ │ │ ├── AdminPageFramework_FieldType_color.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_default.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_export.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_file.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_hidden.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_import.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_media.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_number.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_posttype.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_radio.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_section_title.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_size.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_system.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_taxonomy.php
│ │ │ │ │ ├── AdminPageFramework_FieldType_textarea.php
│ │ │ │ │ └── AdminPageFramework_WalkerTaxonomyChecklist.php
│ │ │ │ ├── input
│ │ │ │ │ ├── AdminPageFramework_Input_checkbox.php
│ │ │ │ │ ├── AdminPageFramework_Input_radio.php
│ │ │ │ │ └── AdminPageFramework_Input_select.php
│ │ │ │ └── notice
│ │ │ │ │ └── AdminPageFramework_Form___SubmitNotice.php
│ │ │ └── utility
│ │ │ │ ├── AdminPageFramework_ArrayHandler.php
│ │ │ │ ├── AdminPageFramework_Debug.php
│ │ │ │ ├── AdminPageFramework_ErrorReporting.php
│ │ │ │ ├── AdminPageFramework_RegisterClasses.php
│ │ │ │ ├── admin_notice
│ │ │ │ ├── AdminPageFramework_AdminNotice.php
│ │ │ │ └── AdminPageFramework_AdminNotice___Script.php
│ │ │ │ ├── base_utility
│ │ │ │ └── AdminPageFramework_Utility.php
│ │ │ │ └── wp_utility
│ │ │ │ └── AdminPageFramework_WPUtility.php
│ │ ├── admin_page
│ │ │ ├── AdminPageFramework.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_admin_page.php
│ │ │ │ ├── AdminPageFramework_Link_admin_page.php
│ │ │ │ └── AdminPageFramework_Resource_admin_page.php
│ │ │ ├── _model
│ │ │ │ ├── AdminPageFramework_ExportOptions.php
│ │ │ │ ├── AdminPageFramework_FormEmail.php
│ │ │ │ ├── AdminPageFramework_ImportOptions.php
│ │ │ │ ├── AdminPageFramework_Property_admin_page.php
│ │ │ │ ├── delegate
│ │ │ │ │ ├── AdminPageFramework_Model_Menu__RegisterMenu.php
│ │ │ │ │ ├── AdminPageFramework_Model__FormEmailHandler.php
│ │ │ │ │ ├── AdminPageFramework_Model__FormRedirectHandler.php
│ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission.php
│ │ │ │ │ └── validaor
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator.php
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator__ContactFormConfirm.php
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator__Export.php
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator__Filter.php
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator__Link.php
│ │ │ │ │ │ ├── AdminPageFramework_Model__FormSubmission__Validator__Redirect.php
│ │ │ │ │ │ └── AdminPageFramework_Model__FormSubmission__Validator__ResetConfirm.php
│ │ │ │ └── format
│ │ │ │ │ ├── AdminPageFramework_Format_InPageTab.php
│ │ │ │ │ ├── AdminPageFramework_Format_InPageTabs.php
│ │ │ │ │ ├── AdminPageFramework_Format_NavigationTab_InPageTab.php
│ │ │ │ │ ├── AdminPageFramework_Format_PageResource_Script.php
│ │ │ │ │ ├── AdminPageFramework_Format_PageResource_Style.php
│ │ │ │ │ ├── AdminPageFramework_Format_SubMenuItem.php
│ │ │ │ │ └── AdminPageFramework_Format_SubMenuLink.php
│ │ │ ├── _view
│ │ │ │ ├── AdminPageFramework_PageLoadInfo_admin_page.php
│ │ │ │ ├── AdminPageFramework_View__PageMataBoxRenderer.php
│ │ │ │ ├── AdminPageFramework_View__PageMetaboxEnabler.php
│ │ │ │ ├── AdminPageFramework_View__PageRenderer.php
│ │ │ │ ├── AdminPageFramework_View__PageRenderer__InPageTabs.php
│ │ │ │ ├── AdminPageFramework_View__PageRenderer__PageHeadingTabs.php
│ │ │ │ ├── AdminPageFramework_View__PageRenderer__ScreenIcon.php
│ │ │ │ └── AdminPageFramework_View__Resource.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_admin_page.php
│ │ ├── meta_box
│ │ │ ├── AdminPageFramework_MetaBox.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_post_meta_box.php
│ │ │ │ └── AdminPageFramework_Resource_post_meta_box.php
│ │ │ ├── _model
│ │ │ │ ├── AdminPageFramework_MetaBox_Model___PostMeta.php
│ │ │ │ └── AdminPageFramework_Property_post_meta_box.php
│ │ │ └── form
│ │ │ │ ├── AdminPageFramework_Form_post_meta_box.php
│ │ │ │ └── _view
│ │ │ │ └── AdminPageFramework_Form_View___CSS_meta_box.php
│ │ ├── network_admin_page
│ │ │ ├── AdminPageFramework_NetworkAdmin.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_network_admin_page.php
│ │ │ │ ├── AdminPageFramework_Link_network_acmin_page.php
│ │ │ │ └── AdminPageFramework_Resource_network_admin_page.php
│ │ │ ├── _model
│ │ │ │ └── AdminPageFramework_Property_network_admin_page.php
│ │ │ ├── _view
│ │ │ │ └── AdminPageFramework_PageLoadInfo_network_admin_page.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_network_admin_page.php
│ │ ├── page_meta_box
│ │ │ ├── AdminPageFramework_MetaBox_Page.php
│ │ │ ├── AdminPageFramework_PageMetaBox.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_page_meta_box.php
│ │ │ │ └── AdminPageFramework_Resource_page_meta_box.php
│ │ │ ├── _model
│ │ │ │ └── AdminPageFramework_Property_page_meta_box.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_page_meta_box.php
│ │ ├── post_type
│ │ │ ├── AdminPageFramework_PostType.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_post_type.php
│ │ │ │ ├── AdminPageFramework_Link_post_type.php
│ │ │ │ └── AdminPageFramework_Resource_post_type.php
│ │ │ ├── _model
│ │ │ │ ├── AdminPageFramework_PostType_Model__FlushRewriteRules.php
│ │ │ │ ├── AdminPageFramework_PostType_Model__SubMenuOrder.php
│ │ │ │ └── AdminPageFramework_Property_post_type.php
│ │ │ ├── _view
│ │ │ │ └── AdminPageFramework_PageLoadInfo_post_type.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_post_type.php
│ │ ├── taxonomy_field
│ │ │ ├── AdminPageFramework_TaxonomyField.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_taxonomy_field.php
│ │ │ │ └── AdminPageFramework_Resource_taxonomy_field.php
│ │ │ ├── _model
│ │ │ │ └── AdminPageFramework_Property_taxonomy_field.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_taxonomy_field.php
│ │ ├── user_meta
│ │ │ ├── AdminPageFramework_UserMeta.php
│ │ │ ├── _controller
│ │ │ │ ├── AdminPageFramework_HelpPane_user_meta.php
│ │ │ │ └── AdminPageFramework_Resource_user_meta.php
│ │ │ ├── _model
│ │ │ │ ├── AdminPageFramework_Property_user_meta.php
│ │ │ │ └── AdminPageFramework_UserMeta_Model___UserMeta.php
│ │ │ └── form
│ │ │ │ └── AdminPageFramework_Form_user_meta.php
│ │ └── widget
│ │ │ ├── AdminPageFramework_Widget.php
│ │ │ ├── AdminPageFramework_Widget_Factory.php
│ │ │ ├── _controller
│ │ │ ├── AdminPageFramework_HelpPane_widget.php
│ │ │ └── AdminPageFramework_Resource_widget.php
│ │ │ ├── _model
│ │ │ └── AdminPageFramework_Property_widget.php
│ │ │ └── form
│ │ │ ├── AdminPageFramework_Form_widget.php
│ │ │ └── _view
│ │ │ └── AdminPageFramework_Form_View___CSS_widget.php
│ │ └── utility
│ │ ├── class_tester
│ │ └── AdminPageFramework_ClassTester.php
│ │ ├── plugin_bootstrap
│ │ └── AdminPageFramework_PluginBootstrap.php
│ │ ├── pointer_tool_tip
│ │ └── AdminPageFramework_PointerToolTip.php
│ │ ├── readme_parser
│ │ ├── AdminPageFramework_WPReadmeParser.php
│ │ └── library
│ │ │ └── AdminPageFramework_Parsedown.php
│ │ ├── requirement
│ │ └── AdminPageFramework_Requirement.php
│ │ ├── toc
│ │ └── AdminPageFramework_TableOfContents.php
│ │ └── zip
│ │ └── AdminPageFramework_Zip.php
├── readme.md
├── readme.txt
└── uninstall.php
├── gravityforms-cron.php
└── readme.txt
/README.md:
--------------------------------------------------------------------------------
1 | # Delayed notifications for Gravity Forms
2 |
3 | With this plugin you can set delayed notifications for your forms in easy steps.
4 |
5 | 1. Install & activate plugin
6 | 2. Set your delay periods
7 | 3. Choose delay time in form’s notification settings page
8 | 4. That’s it. Sit back and enjoy
9 |
10 | On new ‘Delayed notifications’ subpage you can set multiple delay periods. You can set delay from 1 minute to as many days as you want. You can also have several delayed notifications in a single form.
11 |
12 | Plugin works with all Gravity’s Forms functionalities such as:
13 | * condition logic
14 | * action hooks
15 |
16 | Plugin is also compatible with [Gravity Form Partial Entries addon](https://www.gravityforms.com/gravity-forms-introduces-partial-entries-add/). Allowing to setup delayed notifications after the "Partial entries: saved" event.
17 |
18 | You can also browse all notifications planed to be send per entry.
19 |
20 | 
21 |
22 | Notifications schedule execution is based on WP-Cron with all it’s pros and cons. More about WP-Cron [here](http://code.tutsplus.com/articles/insights-into-wp-cron-an-introduction-to-scheduling-tasks-in-wordpress--wp-23119).
23 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/css/about.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/css/about.css
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/css/admin.css:
--------------------------------------------------------------------------------
1 | .admin-page-framework-content ul li {
2 | margin-left: 2em;
3 | list-style-type: disc;
4 | }
5 | .admin-page-framework-content {
6 | display: block;
7 | }
8 | .admin-page-framework-content a{
9 | text-decoration: none;
10 | }
11 |
12 | .donate-button {
13 | max-width: 100px;
14 | }
15 | .donate-button img {
16 | width: 100%;
17 | }
18 |
19 | .video.oembed iframe {
20 | max-width: 80%;
21 | }
22 |
23 | .new-version-notification {
24 | font-weight: 500;
25 | }
26 |
27 | span.header-icon {
28 | margin-right: 0.4em;
29 | }
30 |
31 | .float-right {
32 | float:right;
33 | }
34 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/css/code.css:
--------------------------------------------------------------------------------
1 | /* Code blocks */
2 | pre {
3 | display: block;
4 | border: 1px solid #ededed;
5 | margin: 2em 0;
6 | padding: 2em;
7 | overflow-x: auto;
8 | background-color: #FFF;
9 |
10 | white-space: pre;
11 | white-space: pre-wrap;
12 | white-space: -moz-pre-wrap;
13 | white-space: -o-pre-wrap;
14 |
15 | width: 92%;
16 | overflow-x: auto;
17 |
18 | }
19 | pre code {
20 | margin: 0;
21 | padding: 0;
22 | background-color: transparent;
23 | line-height: 1em;
24 | }
25 | pre > code {
26 | display: block;
27 | color: #666;
28 | font-family: Consolas, Monaco, Lucida Console, monospace;
29 | line-height: 1.714285714;
30 |
31 | background-color: transparent;
32 | margin: 0;
33 | padding: 0;
34 | white-space: pre; /* Do not fold code lines */
35 |
36 | width: 100%;
37 |
38 | }
39 | pre code code {
40 | display: inherit;
41 | }
42 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/css/feed-list.css:
--------------------------------------------------------------------------------
1 | .apfl_feed_item_title {
2 | font-size: 1.4em;
3 | text-align: center;
4 | }
5 | .apfl_feed_item_link_button {
6 | text-align: center;
7 | }
8 | .apfl_addon_item {
9 | border: 1px solid #bbb;
10 | background-color: #fff;
11 | padding: 0.5em 2em 3em 2em;
12 | }
13 | .apfl_addon_item img {
14 | max-width: 100%;
15 | }
16 | .apfl_feed_item_description {
17 | padding-bottom: 1em;
18 | }
19 | .apfl_feed_item_description img {
20 | margin-left: auto;
21 | margin-right: auto;
22 | display: block;
23 | }
24 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/css/help.css:
--------------------------------------------------------------------------------
1 | .admin-page-framework-container a:link {
2 | text-decoration: none;
3 | }
4 | .admin-page-framework-container a:visited {
5 | text-decoration: none;
6 | }
7 | h4 {
8 | font-weight: bold;
9 | font-size: 1.2em;
10 | }
11 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/demo/wordpress-logo-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/demo/wordpress-logo-2x.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/donation.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/donation.gif
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_page.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_plugin.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_plugin_in_plugin_list_table.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/getting_started/my_first_plugin_in_plugin_list_table.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/icon-128x128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/icon-128x128.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/new_feature/collapsible_button.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/new_feature/collapsible_button.jpg
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/new_feature/nested_sections.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/new_feature/nested_sections.jpg
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/new_feature/pointer_tool_tips.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/new_feature/pointer_tool_tips.jpg
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/new_feature/tool_tip.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/new_feature/tool_tip.jpg
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/wp-logo_16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/wp-logo_16x16.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/wp-logo_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/wp-logo_32x32.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/image/wp_logo_bw_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/asset/image/wp_logo_bw_32x32.png
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/javascript/flip/jquery.m.flip.css:
--------------------------------------------------------------------------------
1 | /**
2 | * M Flip SASS mixin
3 | *
4 | *
Hi I'm the front
5 | *
Hi I'm the back
6 | *
7 | */
8 | .m-flip {
9 | -moz-perspective: 1000;
10 | -webkit-perspective: 1000;
11 | perspective: 1000;
12 | }
13 | .m-flip,
14 | .m-flip .front, .m-flip .back {
15 | -moz-box-sizing: border-box;
16 | -webkit-box-sizing: border-box;
17 | box-sizing: border-box;
18 | width: 250px;
19 | height: 250px;
20 | }
21 | .m-flip .m-flip__content {
22 | -moz-transition: 0.6s;
23 | -o-transition: 0.6s;
24 | -webkit-transition: 0.6s;
25 | transition: 0.6s;
26 | -moz-transform-style: preserve-3d;
27 | -webkit-transform-style: preserve-3d;
28 | transform-style: preserve-3d;
29 | }
30 | .m-flip .m-flip__content.active, .m-flip .m-flip__content:hover {
31 | -moz-transform: rotateY(180deg);
32 | -webkit-transform: rotateY(180deg);
33 | transform: rotateY(180deg);
34 | }
35 | .m-flip .front, .m-flip .back {
36 | position: absolute;
37 | top: 0;
38 | left: 0;
39 | -moz-backface-visibility: hidden;
40 | -webkit-backface-visibility: hidden;
41 | backface-visibility: hidden;
42 | }
43 | .m-flip .front {
44 | z-index: 2;
45 | }
46 | .m-flip .back {
47 | -moz-transform: rotateY(180deg);
48 | -webkit-transform: rotateY(180deg);
49 | transform: rotateY(180deg);
50 | }
51 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/asset/javascript/flip/jquery.m.flip.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * M Flip - jQuery Plugin
3 | * version 0.1 (17 Feb 2015)
4 | * requires jQuery v1.6 or later
5 | *
6 | * Examples at http://codepen.io/unavezfui/pen/Byryep
7 | *
8 | * Copyright 2015 Manu Morante - www.manumorante.com
9 | *
10 | */
11 | (function($){
12 |
13 | var isTouch = document.createTouch !== undefined,
14 | evt_hover = (isTouch)? 'touchstart' : 'mouseover',
15 | evt_out = (isTouch)? 'touchend' : 'mouseout';
16 |
17 |
18 | $.fn.extend({
19 | mflip: function(){
20 | return this.each(function(){
21 |
22 | var $f = $(this),
23 | $c,
24 | rotation = $f.data('rotation');
25 |
26 | $f.html(''+ $f.html() +'
');
27 | $c = $('.m-flip__content', $f);
28 |
29 | // Event: Rollover / Touchstart
30 | $f.bind(evt_hover, function(){
31 |
32 | if( isNaN(rotation) ){
33 | $c.addClass('active');
34 |
35 | } else {
36 | $c.css({
37 | '-webkit-transform': 'rotateY('+ rotation +'deg)',
38 | '-moz-transform': 'rotateY('+ rotation +'deg)',
39 | 'transform': 'rotateY('+ rotation +'deg)'
40 | });
41 | }
42 |
43 | // Event: Rollout / Touchend
44 | }).bind(evt_out, function(){
45 |
46 | if( isNaN(rotation) ){
47 | $c.removeClass('active');
48 |
49 | }else{
50 | $c.css({
51 | '-webkit-transform': 'rotateY(0deg)',
52 | '-moz-transform': 'rotateY(0deg)',
53 | 'transform': 'rotateY(0deg)'
54 | });
55 | }
56 |
57 | });
58 | });
59 | }
60 | });
61 |
62 | })(jQuery);
63 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/argument/APF_Demo_AdvancedUsage_Argument.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Arguments', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_AdvancedUsage_Argument_CustomSectionContent',
61 | 'APF_Demo_AdvancedUsage_Argument_CustomContent',
62 | 'APF_Demo_AdvancedUsage_Argument_Unsave',
63 | 'APF_Demo_AdvancedUsage_Argument_Capability',
64 | );
65 | foreach ( $_aClasses as $_sClassName ) {
66 | if ( ! class_exists( $_sClassName ) ) {
67 | continue;
68 | }
69 | new $_sClassName( $oFactory );
70 | }
71 |
72 | }
73 |
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/argument/APF_Demo_AdvancedUsage_Argument_CustomSectionContent.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
41 | $this->sPageSlug, // the target page slug
42 | array(
43 | 'section_id' => $this->sSectionID,
44 | 'tab_slug' => $this->sTabSlug,
45 | 'title' => __( 'Custom Section Content', 'admin-page-framework-loader' ),
46 | 'content' => ""
47 | . __( 'This is inserted with the content
argument.', 'admin-page-framework-loader' )
48 | . "
",
49 | 'description' => __( 'The description part is reserved.', 'admin-page-framework-loader' ),
50 | )
51 | );
52 |
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/callback/APF_Demo_AdvancedUsage_Callback.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Callbacks', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_AdvancedUsage_Callback_FieldDefinition',
61 | );
62 | foreach ( $_aClasses as $_sClassName ) {
63 | if ( ! class_exists( $_sClassName ) ) {
64 | continue;
65 | }
66 | new $_sClassName( $oFactory );
67 | }
68 |
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/mixed/APF_Demo_AdvancedUsage_Mixed.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Mixed', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_AdvancedUsage_Mixed_Subfield',
61 | );
62 | foreach ( $_aClasses as $_sClassName ) {
63 | if ( ! class_exists( $_sClassName ) ) {
64 | continue;
65 | }
66 | new $_sClassName( $oFactory );
67 | }
68 |
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/nesting/APF_Demo_AdvancedUsage_Nesting.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Nesting', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_AdvancedUsage_Nesting_SectionA',
61 | 'APF_Demo_AdvancedUsage_Nesting_SectionB',
62 | );
63 | foreach ( $_aClasses as $_sClassName ) {
64 | if ( ! class_exists( $_sClassName ) ) {
65 | continue;
66 | }
67 | new $_sClassName( $oFactory );
68 | }
69 |
70 | }
71 |
72 | }
73 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/nesting/APF_Demo_AdvancedUsage_Nesting_SectionB.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
42 | $this->sPageSlug, // the target page slug
43 | array(
44 | 'section_id' => $this->sSectionID,
45 | 'title' => __( 'Section B', 'admin-page-framework-loader' ),
46 | 'description' => __( 'This is a second tabbed section.', 'admin-page-framework-loader' ),
47 | 'section_tab_slug' => 'root_section_tab',
48 | )
49 | );
50 |
51 | $oFactory->addSettingFields(
52 | $this->sSectionID, // the target section ID - pass dimensional keys of the section
53 | array(
54 | 'field_id' => 'color_in_nesting_section_b',
55 | 'title' => __( 'color', 'admin-page-framework-loader' ),
56 | 'type' => 'color',
57 | 'repeatable' => true,
58 | 'sortable' => true,
59 | )
60 | );
61 |
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/section/APF_Demo_AdvancedUsage_Section_CollapsibleType_Button.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
41 | $this->sPageSlug, // the target page slug
42 | array(
43 | 'section_id' => $this->sSectionID,
44 | 'tab_slug' => $this->sTabSlug,
45 | 'title' => __( 'Button Type Collapsible Section', 'admin-page-framework-loader' ),
46 | 'collapsible' => array(
47 | 'container' => 'section',
48 | 'type' => 'button',
49 | 'collapsed' => true,
50 | ),
51 | 'tip' => __( 'When the type
argument is button
, the toggle button will be used instead of a container box.', 'admin-page-framework-loader' ),
52 | )
53 | );
54 | $oFactory->addSettingFields(
55 | $this->sSectionID,
56 | array(
57 | 'field_id' => 'field_in_button_type_collapsible_seciton_b',
58 | 'type' => 'color',
59 | 'title' => __( 'Color', 'admin-page-framework-loader' ),
60 | 'sortable' => true,
61 | 'repeatable' => true,
62 | )
63 | );
64 |
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/section/APF_Demo_AdvancedUsage_Section_Collapsible_A.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
42 | $this->sPageSlug, // the target page slug
43 | array(
44 | 'section_id' => $this->sSectionID,
45 | 'tab_slug' => $this->sTabSlug,
46 | 'title' => __( 'Collapsible Section A', 'admin-page-framework-loader' ),
47 | 'description' => __( 'This section can be expanded and collapsed.', 'admin-page-framework-loader' ),
48 | 'collapsible' => array(
49 | 'toggle_all_button' => 'top-right',
50 | ),
51 | )
52 | );
53 |
54 | // Fields
55 | $oFactory->addSettingFields(
56 | $this->sSectionID, // the target section ID
57 | array(
58 | 'field_id' => 'text_field_in_collapsible_section',
59 | 'title' => __( 'Text', 'admin-page-framework-loader' ),
60 | 'type' => 'text',
61 | 'repeatable' => true,
62 | 'sortable' => true,
63 | )
64 | );
65 |
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/section/APF_Demo_AdvancedUsage_Section_Collapsible_D.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
41 | $this->sPageSlug, // the target page slug
42 | array(
43 | 'section_id' => $this->sSectionID,
44 | 'tab_slug' => $this->sTabSlug,
45 | 'title' => __( 'Custom Content', 'admin-page-framework-loader' ),
46 | 'content' => ""
47 | . __( 'This custom output is inserted with the content
argument.', 'admin-page-framework-loader' )
48 | . "
",
49 | 'collapsible' => array(
50 | 'collapse_others_on_expand' => false,
51 | 'toggle_all_button' => 'bottom-right',
52 | ),
53 | )
54 | );
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/section/APF_Demo_AdvancedUsage_Section_SectionTitleField.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
42 | $this->sPageSlug, // the target page slug
43 | array(
44 | 'section_id' => $this->sSectionID,
45 | 'tab_slug' => $this->sTabSlug,
46 | 'title' => __( 'Section Title', 'admin-page-framework-loader' ),
47 | 'description' => __( 'The section_title
field type will be placed in the position of the section title if set. If not set, the set section title will be placed. Only one section_title
field is allowed per section.', 'admin-page-framework-loader' ),
48 | )
49 | );
50 |
51 | // Fields
52 | $oFactory->addSettingFields(
53 | $this->sSectionID, // the target section ID
54 | array(
55 | 'field_id' => 'section_title_field',
56 | 'type' => 'section_title',
57 | 'label' => ''
58 | . __( 'Section Name', 'admin-page-framework-loader' )
59 | . '
',
60 | 'attributes' => array(
61 | 'size' => 30,
62 | ),
63 | )
64 | );
65 |
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/section/APF_Demo_AdvancedUsage_Section_Tabbed_C.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
41 | $this->sPageSlug, // the target page slug
42 | array(
43 | 'section_id' => $this->sSectionID,
44 | 'tab_slug' => $this->sTabSlug,
45 | 'section_tab_slug' => 'tabbed_sections',
46 | 'title' => __( 'Custom Content', 'admin-page-framework-loader' ),
47 | 'description' => __( 'This is the third item of the tabbed section.', 'admin-page-framework-loader' ),
48 | 'content' => ""
49 | . __( 'This custom output is inserted with the content
argument.', 'admin-page-framework-loader' )
50 | . "
",
51 | )
52 | );
53 |
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/advanced_usage/verification/APF_Demo_AdvancedUsage_Verification.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Verification', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | *
56 | * @callback action load_{page slug}_{tab slug}
57 | */
58 | public function replyToLoadTab( $oFactory ) {
59 |
60 | $_aClasses = array(
61 | 'APF_Demo_AdvancedUsage_Verification_Field',
62 | 'APF_Demo_AdvancedUsage_Verification_Section',
63 | );
64 | foreach ( $_aClasses as $_sClassName ) {
65 | if ( ! class_exists( $_sClassName ) ) {
66 | continue;
67 | }
68 | new $_sClassName( $oFactory );
69 | }
70 |
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/builtin_field_type/checklist/APF_Demo_BuiltinFieldTypes_Checklist.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Checklist', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_BuiltinFieldTypes_Checklist_PostType',
61 | 'APF_Demo_BuiltinFieldTypes_Checklist_Taxonomy',
62 | );
63 | foreach ( $_aClasses as $_sClassName ) {
64 | if ( ! class_exists( $_sClassName ) ) {
65 | continue;
66 | }
67 | new $_sClassName( $oFactory );
68 | }
69 |
70 | }
71 |
72 | }
73 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/builtin_field_type/file/APF_Demo_BuiltinFieldTypes_File.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Files', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Triggered when the tab is loaded.
53 | *
54 | * @callback action load_{page slug}_{tab slug}
55 | */
56 | public function replyToLoadTab( $oFactory ) {
57 |
58 | $_aClasses = array(
59 | 'APF_Demo_BuiltinFieldTypes_File_Image',
60 | 'APF_Demo_BuiltinFieldTypes_File_Media',
61 | 'APF_Demo_BuiltinFieldTypes_File_Upload',
62 | );
63 | foreach ( $_aClasses as $_sClassName ) {
64 | if ( ! class_exists( $_sClassName ) ) {
65 | continue;
66 | }
67 | new $_sClassName( $oFactory );
68 | }
69 |
70 | }
71 |
72 | }
73 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/builtin_field_type/misc/APF_Demo_BuiltinFieldTypes_MISC.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'MISC', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | $_aClasses = array(
60 | 'APF_Demo_BuiltinFieldTypes_MISC_Color',
61 | 'APF_Demo_BuiltinFieldTypes_MISC_Hidden',
62 | 'APF_Demo_BuiltinFieldTypes_MISC_Submit',
63 | );
64 | foreach ( $_aClasses as $_sClassName ) {
65 | if ( ! class_exists( $_sClassName ) ) {
66 | continue;
67 | }
68 | new $_sClassName( $oFactory );
69 | }
70 |
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/builtin_field_type/selector/APF_Demo_BuiltinFieldTypes_Selector.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'Selectors', 'admin-page-framework-loader' ),
41 | )
42 | );
43 |
44 | add_action(
45 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
46 | array( $this, 'replyToLoadTab' )
47 | );
48 |
49 | }
50 |
51 | /**
52 | * Adds form sections.
53 | *
54 | * Triggered when the tab is loaded.
55 | * @callback action load_{page slug}_{tab slug}
56 | */
57 | public function replyToLoadTab( $oFactory ) {
58 |
59 | // Form sections
60 | $_aClasses = array(
61 | 'APF_Demo_BuiltinFieldTypes_Selector_Select',
62 | 'APF_Demo_BuiltinFieldTypes_Selector_Radio',
63 | 'APF_Demo_BuiltinFieldTypes_Selector_Checkbox',
64 | 'APF_Demo_BuiltinFieldTypes_Selector_Size',
65 | );
66 | foreach ( $_aClasses as $_sClassName ) {
67 | if ( ! class_exists( $_sClassName ) ) {
68 | continue;
69 | }
70 | new $_sClassName( $oFactory );
71 | }
72 |
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/builtin_field_type/system/APF_Demo_BuiltinFieldTypes_System.php:
--------------------------------------------------------------------------------
1 | addInPageTabs(
37 | $this->sPageSlug, // target page slug
38 | array(
39 | 'tab_slug' => $this->sTabSlug,
40 | 'title' => __( 'System', 'admin-page-framework-loader' ),
41 | 'capability' => 'manage_options',
42 | )
43 | );
44 |
45 | add_action(
46 | 'load_' . $this->sPageSlug . '_' . $this->sTabSlug,
47 | array( $this, 'replyToLoadTab' )
48 | );
49 |
50 | }
51 |
52 | /**
53 | * Adds form sections.
54 | *
55 | * Triggered when the tab is loaded.
56 | * @callback action load_{page slug}_{tab slug}
57 | */
58 | public function replyToLoadTab( $oFactory ) {
59 |
60 | $_aClasses = array(
61 | 'APF_Demo_BuiltinFieldTypes_System_Info',
62 | );
63 | foreach ( $_aClasses as $_sClassName ) {
64 | if ( ! class_exists( $_sClassName ) ) {
65 | continue;
66 | }
67 | new $_sClassName( $oFactory );
68 | }
69 |
70 | }
71 |
72 | }
73 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/admin_page/contact/APF_Demo_Contact.php:
--------------------------------------------------------------------------------
1 | _sClassName,
30 | array( $this, 'replyToSetUpPages' )
31 | );
32 |
33 | }
34 |
35 | /**
36 | * Sets up pages.
37 | *
38 | * This method automatically gets triggered with the wp_loaded hook.
39 | */
40 | public function replyToSetUpPages( $oFactory ) {
41 |
42 | $oFactory->addSubMenuItems(
43 | array(
44 | 'title' => __( 'Contact', 'admin-page-framework-loader' ),
45 | 'page_slug' => $this->_sPageSlug,
46 | 'screen_icon' => 'page',
47 | 'capability' => 'manage_options',
48 | 'order' => 60,
49 | )
50 | );
51 |
52 | add_action(
53 | 'load_' . $this->_sPageSlug,
54 | array( $this, 'replyToLoadPage' )
55 | );
56 |
57 | }
58 |
59 | /**
60 | * Do page specific settings.
61 | *
62 | * @callback action load_ + {page slug}
63 | */
64 | public function replyToLoadPage( $oFactory ) {
65 |
66 | // disables the page heading tabs by passing false.
67 | $oFactory->setPageHeadingTabsVisibility( false );
68 |
69 | // sets the tag used for in-page tabs.
70 | $oFactory->setInPageTabTag( 'h2' );
71 |
72 | // disable the page title.
73 | $oFactory->setPageTitleVisibility( false );
74 |
75 | new APF_Demo_Contact_Tab_Feedback( $oFactory, $this->_sPageSlug );
76 | new APF_Demo_Contact_Tab_Report( $oFactory, $this->_sPageSlug );
77 |
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/basic_usage/admin_page_meta_box/APF_MetaBox_For_Pages_NoField.php:
--------------------------------------------------------------------------------
1 | "
23 | . __( 'A meta box can be used to just display information', 'admin-page-framework-loader' )
24 | . "";
25 | }
26 |
27 | }
28 |
29 | new APF_MetaBox_For_Pages_NoField(
30 | null,
31 | __( 'Information Box', 'admin-page-framework-loader' ), // title
32 | array( 'apf_first_page', 'apf_second_page' ),
33 | 'side',
34 | 'low'
35 | );
36 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/basic_usage/admin_page_meta_box/APF_MetaBox_For_Pages_WithFormSection.php:
--------------------------------------------------------------------------------
1 | addSettingSections(
20 | array(
21 | 'section_id' => 'meta_box_with_a_form_section',
22 | 'title' => __( 'Section of a Page Meta-box', 'admin-page-framework-loader' ),
23 | 'description' => __( 'This meta box form has a section.', 'admin-page-framework-loader' ),
24 | )
25 | );
26 |
27 | /*
28 | * ( optional ) Adds setting fields into the meta box.
29 | */
30 | $this->addSettingFields(
31 | 'meta_box_with_a_form_section', // section ID
32 | array (
33 | 'field_id' => 'image',
34 | 'type' => 'image',
35 | 'title' => __( 'Images', 'admin-page-framework-loader' ),
36 | 'repeatable' => true,
37 | 'sortable' => true,
38 | ),
39 | array()
40 | );
41 |
42 | }
43 |
44 | /**
45 | * Validates the submitted form data.
46 | *
47 | * Alternatively you can use `validation_{class name}()` predefined callback method.
48 | */
49 | public function validate( $aNewOptions, $aOldOptions, $oAdminPage, $aSubmitInfo ) {
50 | return $aNewOptions;
51 | }
52 |
53 |
54 | }
55 |
56 | new APF_MetaBox_For_Pages_WithFormSection(
57 | null,
58 | __( 'Meta box with a Form Section', 'admin-page-framework-loader' ), // title
59 | array( 'apf_first_page', 'apf_second_page' ),
60 | 'side',
61 | 'low'
62 | );
63 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/example/library/ace-custom-field-type/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Per Søderlind
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php:
--------------------------------------------------------------------------------
1 | aMethods ) ) {
38 | return isset( $aArguments[ 0 ] )
39 | ? $aArguments[ 0 ]
40 | : null;
41 | }
42 |
43 | trigger_error(
44 | 'Admin Page Framework - Loader: ' . ' : ' . sprintf(
45 | __( 'The method is not defined: %1$s', 'admin-page-framework-loader' ),
46 | $sMethodName
47 | ),
48 | E_USER_WARNING
49 | );
50 | }
51 |
52 | /**
53 | * A user constructor.
54 | * @since 3.5.3
55 | * @return void
56 | */
57 | protected function construct( $oFactory ) {}
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php:
--------------------------------------------------------------------------------
1 | AdminPageFrameworkLoader_Registry::getPluginURL(),
29 | '%WP_ADMIN_URL%' => admin_url(),
30 | );
31 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser(
32 | AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt',
33 | $_aReplacements
34 | );
35 | return ''
36 | . ""
37 | . ""
38 | . __( 'Documentation', 'admin-page-framework-loader' )
39 | . "
"
40 | . ""
41 | . __( 'Manual', 'admin-page-framework-loader' )
42 | . ""
43 | . ""
44 | . ""
45 | . __( 'Tutorials', 'admin-page-framework-loader' )
46 | . "
"
47 | . $_oWPReadmeParser->getSection( 'Tutorials' )
48 | . $sContent;
49 |
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php:
--------------------------------------------------------------------------------
1 | sPageSlug, // page slug
24 | array( // tab definition
25 | 'tab_slug' => 'top',
26 | 'title' => __( 'Add Ons', 'admin-page-framework-loader' ),
27 | )
28 | );
29 |
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php:
--------------------------------------------------------------------------------
1 | addSettingFIeld(
25 | array(
26 | 'field_id' => 'reset',
27 | 'type' => 'submit',
28 | 'reset' => true,
29 | 'show_title_column' => false,
30 | 'value' => __( 'Reset', 'admin-page-framework-loader' ),
31 | )
32 | );
33 | }
34 |
35 | public function replyToDoTab( $oFactory ) {
36 |
37 | echo "" . __( 'Saved Options', 'admin-page-framework-loader' ) . "
";
38 | $oFactory->oDebug->dump( $oFactory->oProp->aOptions );
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php:
--------------------------------------------------------------------------------
1 | getContentsByHeader( $this->getReadmeContents(), 3 );
25 | $_iLastIndex = count( $_aItems ) - 1;
26 | foreach( $_aItems as $_iIndex => $_aContent ) {
27 |
28 | $_oParser = new AdminPageFramework_WPReadmeParser;
29 | $_oParser->setText( $_aContent[ 1 ] );
30 | $_sContent = $_oParser->get();
31 | $oAdminPage->addSettingSections(
32 | $this->sPageSlug, // the target page slug
33 | array(
34 | 'section_id' => 'examples_' . $_iIndex,
35 | 'title' => $_aContent[ 0 ],
36 | 'collapsible' => array(
37 | 'toggle_all_button' => $_iLastIndex === $_iIndex
38 | ? array( 'bottom-right' )
39 | : ( 0 === $_iIndex
40 | ? array( 'top-right' )
41 | : false
42 | ),
43 | ),
44 | 'content' => $_sContent,
45 |
46 | )
47 | );
48 |
49 | }
50 |
51 | }
52 | /**
53 | * @return string
54 | */
55 | private function getReadMeContents() {
56 | return $this->_getReadmeContents(
57 | AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/examples.txt',
58 | '',
59 | array( 'Examples' )
60 | );
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php:
--------------------------------------------------------------------------------
1 | _getReadmeContents(
24 | AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/about.txt',
25 | '', // no TOC
26 | array( 'Support' )
27 | );
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php:
--------------------------------------------------------------------------------
1 | sPageSlug,
25 | array(
26 | 'section_id' => $this->sTabSlug, // using the tab slug as only one section is added to this tab.
27 | 'tab_slug' => $this->sTabSlug,
28 | 'title' => __( 'Report Issues', 'admin-page-framework-loader' ),
29 | 'description' => __( 'If you find a bug, you can report it from here.', 'admin-page-framework-loader' ),
30 | )
31 | );
32 |
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php:
--------------------------------------------------------------------------------
1 | oFactory,
24 | $this->sPageSlug,
25 | array(
26 | 'tab_slug' => 'generator',
27 | 'title' => __( 'Generator', 'admin-page-framework-loader' ),
28 | )
29 | );
30 |
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php:
--------------------------------------------------------------------------------
1 | sPageSlug,
28 | array(
29 | 'section_id' => $this->sTabSlug, // avoid hyphen(dash), dots, and white spaces
30 | 'tab_slug' => $this->sTabSlug,
31 | 'title' => __( 'Download Framework', 'admin-page-framework-loader' ),
32 | 'description' => array(
33 | __( 'Generate your own version of the framework to avoid library conflicts.', 'admin-page-framework-loader' ),
34 | ),
35 | )
36 | );
37 |
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php:
--------------------------------------------------------------------------------
1 | sPageSlug,
31 | array(
32 | 'section_id' => $this->sTabSlug, // using the tab slug as the section id as only one section is in this tab.
33 | 'tab_slug' => $this->sTabSlug,
34 | 'title' => __( 'Download Minified Version', 'admin-page-framework-loader' ),
35 | 'description' => __( 'When you click the Download link below, the minified version of the framework will be generated.', 'admin-page-framework-loader' ),
36 | )
37 | );
38 |
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/event/AdminPageFrameworkLoader_Event.php:
--------------------------------------------------------------------------------
1 |
7 | * @author Michael Uno
8 | * @authorurl http://michaeluno.jp
9 | *
10 | */
11 |
12 | /**
13 | * Performs events.
14 | *
15 | * @since 3.5.2
16 | */
17 | final class AdminPageFrameworkLoader_Event {
18 |
19 | /**
20 | * Performs events.
21 | *
22 | * @since 3.6.2
23 | */
24 | public function __construct() {
25 |
26 | new AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion(
27 | AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version' // action name
28 | );
29 |
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/utility/AdminPageFrameworkLoader_FeedList.php:
--------------------------------------------------------------------------------
1 | _aURLs = is_array( $asURLs )
38 | ? $asURLs
39 | : ( empty( $asURLs )
40 | ? array()
41 | : ( array ) $asURLs
42 | );
43 |
44 | }
45 |
46 | /**
47 | *
48 | * @return array
49 | */
50 | public function get( $iItems=0 ) {
51 |
52 | $_aOutput = array();
53 | $_aURLs = $this->_aURLs;
54 |
55 | if ( empty( $_aURLs ) ) {
56 | return $_aOutput;
57 | }
58 |
59 | $_oFeed = fetch_feed( $_aURLs );
60 | foreach ( $_oFeed->get_items() as $_oItem ) {
61 | $_aOutput[ $_oItem->get_title() ] = array(
62 | 'content' => $_oItem->get_content(),
63 | 'description' => $_oItem->get_description(),
64 | 'title' => $_oItem->get_title(),
65 | 'date' => $_oItem->get_date( 'j F Y, g:i a' ),
66 | 'author' => $_oItem->get_author(),
67 | 'link' => $_oItem->get_permalink(), // get_link() may be used as well
68 | );
69 | }
70 |
71 | if ( $iItems ) {
72 | array_splice( $_aOutput, $iItems );
73 | }
74 |
75 | return $_aOutput;
76 |
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/class/utility/AdminPageFrameworkLoader_Utility.php:
--------------------------------------------------------------------------------
1 | sprintf(
32 | __( 'The URL is not valid: %1$s', 'admin-page-framework-loader' ),
33 | $sURL
34 | ),
35 | 2 => __( 'Header already sent.', 'admin-page-framework-loader' ),
36 | );
37 | if ( ! class_exists( 'AdminPageFramework_AdminNotice' ) ) {
38 | return;
39 | }
40 | new AdminPageFramework_AdminNotice(
41 | $_aErrors[ $iType ]
42 | . ' '
43 | . sprintf(
44 | __( 'Could not be redirected to %1$s.', 'admin-page-framework-loader' ),
45 | $sURL
46 | )
47 | );
48 |
49 | }
50 |
51 |
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/assets/js/ie8.js:
--------------------------------------------------------------------------------
1 | (function(){var e,t;e=document.getElementsByTagName("head")[0];t=document.createElement("style");t.type="text/css";t.styleSheet.cssText=":before, :after { content: none !important; }";e.appendChild(t);window.attachEvent("onload",function(){e.removeChild(t)})}).call(this);
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/buttons.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.eot
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.ttf
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/include/library/github-custom-field-type/asset/github-buttons/components/octicons/octicons/octicons.woff
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/language/admin-page-framework-fr_FR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/language/admin-page-framework-fr_FR.mo
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/language/admin-page-framework-ja.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/language/admin-page-framework-ja.mo
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/language/admin-page-framework.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zewlak/delayed-notifications-for-gravity-forms/3f106905790f83d757f52c406967bd2b866a2060/gravityforms-cron/admin-page-framework/language/admin-page-framework.mo
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/admin-page-framework.min.php:
--------------------------------------------------------------------------------
1 | Admin Page Framework -> Tools -> Generator and generate your own version of the framework.
6 | @remark This file will be kept for backward compatibility for a while for some users who have been directly including this file.
7 | */
8 | trigger_error(
9 | 'Admin Page Framework:'
10 | . ' The minified version is deprecated.'
11 | . ' Use the component generator instead available at Dashboard -> Admin Page Framework -> Tools -> Generator.',
12 | E_USER_WARNING
13 | );
14 | include( dirname( __FILE__ ) . '/apf/admin-page-framework.php' );
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/admin-page-framework/admin-page-framework.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Format_Base extends AdminPageFramework_FrameworkUtility {
8 | static public $aStructure = array();
9 | public $aSubject = array();
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aSubject,);
12 | $this->aSubject = $_aParameters[0];
13 | }
14 | public function get() {
15 | return $this->aSubject;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/_abstract/_view/AdminPageFramework_CSS.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_CSS {
8 | static public function getDefaultCSS() {
9 | $_sCSS = ".wrap div.updated.admin-page-framework-settings-notice-container, .wrap div.error.admin-page-framework-settings-notice-container, .media-upload-form div.error.admin-page-framework-settings-notice-container{clear: both;margin-top: 16px;}.wrap div.error.confirmation.admin-page-framework-settings-notice-container {border-color: #368ADD;}.contextual-help-description {clear: left;display: block;margin: 1em 0;}.contextual-help-tab-title {font-weight: bold;}.admin-page-framework-content {margin-bottom: 1.48em; width: 100%;display: block; }.admin-page-framework-container #poststuff .admin-page-framework-content h3 {font-weight: bold;font-size: 1.3em;margin: 1em 0;padding: 0;font-family: 'Open Sans', sans-serif;} .nav-tab.tab-disabled,.nav-tab.tab-disabled:hover {font-weight: normal;color: #AAAAAA;} .admin-page-framework-in-page-tab .nav-tab.nav-tab-active {border-bottom-width: 2px;}.wrap .admin-page-framework-in-page-tab div.error, .wrap .admin-page-framework-in-page-tab div.updated {margin-top: 15px;}.admin-page-framework-info {font-size: 0.8em;font-weight: lighter;text-align: right;}pre.dump-array {border: 1px solid #ededed;margin: 24px 2em;margin: 1.714285714rem 2em;padding: 24px;padding: 1.714285714rem;overflow-x: auto; white-space: pre-wrap;background-color: #FFF;margin-bottom: 2em;width: auto;}";
10 | return $_sCSS . PHP_EOL . self::_getPageLoadStatsRules() . PHP_EOL . self::_getVersionSpecificRules();
11 | }
12 | static private function _getPageLoadStatsRules() {
13 | return "#admin-page-framework-page-load-stats {clear: both;display: inline-block;width: 100%}#admin-page-framework-page-load-stats li{display: inline;margin-right: 1em;} #wpbody-content {padding-bottom: 140px;}";
14 | }
15 | static private function _getVersionSpecificRules() {
16 | return '';
17 | }
18 | static public function getDefaultCSSIE() {
19 | return '';
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Factory_View__SettingNotice extends AdminPageFramework_FrameworkUtility {
8 | public $oFactory;
9 | public function __construct($oFactory, $sActionHookName = 'admin_notices') {
10 | $this->oFactory = $oFactory;
11 | add_action($sActionHookName, array($this, '_replyToPrintSettingNotice'));
12 | }
13 | public function _replyToPrintSettingNotice() {
14 | if (!$this->_shouldProceed()) {
15 | return;
16 | }
17 | $this->oFactory->oForm->printSubmitNotices();
18 | }
19 | private function _shouldProceed() {
20 | if (!$this->oFactory->_isInThePage()) {
21 | return false;
22 | }
23 | if ($this->hasBeenCalled(__METHOD__)) {
24 | return false;
25 | }
26 | return isset($this->oFactory->oForm);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/_abstract/_view/AdminPageFramework_Factory___Script_Base.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Factory___Script_Base extends AdminPageFramework_FrameworkUtility {
8 | public $oMsg;
9 | public function __construct($oMsg = null) {
10 | if ($this->hasBeenCalled(get_class($this))) {
11 | return;
12 | }
13 | $this->oMsg = $oMsg ? $oMsg : AdminPageFramework_Message::getInstance();
14 | $this->registerAction('customize_controls_print_footer_scripts', array($this, '_replyToPrintScript'));
15 | $this->registerAction('admin_print_footer_scripts', array($this, '_replyToPrintScript'));
16 | $this->construct();
17 | add_action('wp_enqueue_scripts', array($this, 'load'));
18 | }
19 | public function construct() {
20 | }
21 | public function load() {
22 | }
23 | public function _replyToPrintScript() {
24 | $_sScript = $this->getScript($this->oMsg);
25 | if (!$_sScript) {
26 | return;
27 | }
28 | echo "";
29 | }
30 | static public function getScript() {
31 | $_aParams = func_get_args() + array(null);
32 | $_oMsg = $_aParams[0];
33 | return "";
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___BuiltInFieldTypeDefinitions.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___BuiltInFieldTypeDefinitions {
8 | static protected $_aDefaultFieldTypeSlugs = array('default', 'text', 'number', 'textarea', 'radio', 'checkbox', 'select', 'hidden', 'file', 'submit', 'import', 'export', 'image', 'media', 'color', 'taxonomy', 'posttype', 'size', 'section_title', 'system',);
9 | public $sCallerID = '';
10 | public $oMsg;
11 | public function __construct($sCallerID, $oMsg) {
12 | $this->sCallerID = $sCallerID;
13 | $this->oMsg = $oMsg;
14 | }
15 | public function get() {
16 | $_aFieldTypeDefinitions = array();
17 | foreach (self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug) {
18 | $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
19 | $_oFieldType = new $_sFieldTypeClassName($this->sCallerID, null, $this->oMsg, false);
20 | foreach ($_oFieldType->aFieldTypeSlugs as $_sSlug) {
21 | $_aFieldTypeDefinitions[$_sSlug] = $_oFieldType->getDefinitionArray();
22 | }
23 | }
24 | return $_aFieldTypeDefinitions;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___DefaultValues.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___DefaultValues extends AdminPageFramework_Form_Base {
8 | public $aFieldsets = array();
9 | public function __construct() {
10 | $_aParameters = func_get_args() + array($this->aFieldsets,);
11 | $this->aFieldsets = $_aParameters[0];
12 | }
13 | public function get() {
14 | $_aResult = $this->_getDefaultValues($this->aFieldsets, array());
15 | return $_aResult;
16 | }
17 | private function _getDefaultValues($aFieldsets, $aDefaultOptions) {
18 | foreach ($aFieldsets as $_sSectionPath => $_aItems) {
19 | $_aSectionPath = explode('|', $_sSectionPath);
20 | foreach ($_aItems as $_sFieldPath => $_aFieldset) {
21 | $_aFieldPath = explode('|', $_sFieldPath);
22 | $this->setMultiDimensionalArray($aDefaultOptions, '_default' === $_sSectionPath ? array($_sFieldPath) : array_merge($_aSectionPath, $_aFieldPath), $this->_getDefautValue($_aFieldset));
23 | }
24 | }
25 | return $aDefaultOptions;
26 | }
27 | private function _getDefautValue($aFieldset) {
28 | $_aSubFields = $this->getIntegerKeyElements($aFieldset);
29 | if (count($_aSubFields) == 0) {
30 | return $this->getElement($aFieldset, 'value', $this->getElement($aFieldset, 'default', null));
31 | }
32 | $_aDefault = array();
33 | array_unshift($_aSubFields, $aFieldset);
34 | foreach ($_aSubFields as $_iIndex => $_aField) {
35 | $_aDefault[$_iIndex] = $this->getElement($_aField, 'value', $this->getElement($_aField, 'default', null));
36 | }
37 | return $_aDefault;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___FieldTypeRegistration.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___FieldTypeRegistration extends AdminPageFramework_FrameworkUtility {
8 | public function __construct(array $aFieldTypeDefinition, $sStructureType) {
9 | $this->_initialize($aFieldTypeDefinition, $sStructureType);
10 | }
11 | private function _initialize($aFieldTypeDefinition, $sStructureType) {
12 | if (is_callable($aFieldTypeDefinition['hfFieldSetTypeSetter'])) {
13 | call_user_func_array($aFieldTypeDefinition['hfFieldSetTypeSetter'], array($sStructureType));
14 | }
15 | if (is_callable($aFieldTypeDefinition['hfFieldLoader'])) {
16 | call_user_func_array($aFieldTypeDefinition['hfFieldLoader'], array());
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___FieldTypeResource.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___FieldTypeResource extends AdminPageFramework_FrameworkUtility {
8 | public $aFieldTypeDefinition = array();
9 | public $aResources = array('inline_styles' => array(), 'inline_styles_ie' => array(), 'inline_scripts' => array(), 'src_styles' => array(), 'src_scripts' => array(),);
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aFieldTypeDefinition, $this->aResources,);
12 | $this->aFieldTypeDefinition = $this->getAsArray($_aParameters[0]);
13 | $this->aResources = $this->getAsArray($_aParameters[1]);
14 | }
15 | public function get() {
16 | $this->aResources['inline_scripts'] = $this->_getUpdatedInlineItemsByCallback($this->aResources['inline_scripts'], 'hfGetScripts');
17 | $this->aResources['inline_styles'] = $this->_getUpdatedInlineItemsByCallback($this->aResources['inline_styles'], 'hfGetStyles');
18 | $this->aResources['inline_styles_ie'] = $this->_getUpdatedInlineItemsByCallback($this->aResources['inline_styles_ie'], 'hfGetIEStyles');
19 | $this->aResources['src_styles'] = $this->_getUpdatedEnqueuingItemsByCallback($this->aResources['src_styles'], 'aEnqueueStyles');
20 | $this->aResources['src_scripts'] = $this->_getUpdatedEnqueuingItemsByCallback($this->aResources['src_scripts'], 'aEnqueueScripts');
21 | return $this->aResources;
22 | }
23 | private function _getUpdatedInlineItemsByCallback(array $aSubject, $sKey) {
24 | $_oCallable = $this->getElement($this->aFieldTypeDefinition, $sKey);
25 | if (!is_callable($_oCallable)) {
26 | return $aSubject;
27 | }
28 | $aSubject[] = call_user_func_array($_oCallable, array());
29 | return $aSubject;
30 | }
31 | private function _getUpdatedEnqueuingItemsByCallback($aSubject, $sKey) {
32 | return array_merge($aSubject, $this->getElementAsArray($this->aFieldTypeDefinition, $sKey));
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/formatter/AdminPageFramework_Form_Model___Format_EachSection.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___Format_EachSection extends AdminPageFramework_FrameworkUtility {
8 | static public $aStructure = array('_count_subsections' => 0, '_is_first_index' => false, '_is_last_index' => false, '_index' => null, '_is_collapsible' => false, '_tag_id' => '', '_tag_id_model' => '', '_sections_id' => '',);
9 | public $aSection = array();
10 | public $iIndex = null;
11 | public $aSubSections = array();
12 | public $sSectionsID = '';
13 | public function __construct() {
14 | $_aParameters = func_get_args() + array($this->aSection, $this->iIndex, $this->aSubSections, $this->sSectionsID,);
15 | $this->aSection = $_aParameters[0];
16 | $this->iIndex = $_aParameters[1];
17 | $this->aSubSections = $_aParameters[2];
18 | $this->sSectionsID = $_aParameters[3];
19 | }
20 | public function get() {
21 | $_aSection = $this->aSection + self::$aStructure;
22 | $_aSection['_index'] = $this->iIndex;
23 | $_aSection['_count_subsections'] = count($this->aSubSections);
24 | $_aSection['_is_first_index'] = $this->isFirstElement($this->aSubSections, $this->iIndex);
25 | $_aSection['_is_last_index'] = $this->isLastElement($this->aSubSections, $this->iIndex);
26 | $_aSection['_is_collapsible'] = $_aSection['collapsible'] && 'section' === $_aSection['collapsible']['container'];
27 | $_aSection['_tag_id'] = 'section-' . $_aSection['section_id'] . '__' . $this->iIndex;
28 | $_aSection['_tag_id_model'] = 'section-' . $_aSection['section_id'] . '__' . '___i___';
29 | return $_aSection;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/modifier/AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Form_Model___Modifier_Base extends AdminPageFramework_FrameworkUtility {
8 | }
9 | class AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements extends AdminPageFramework_Form_Model___Modifier_Base {
10 | public $aSubject = array();
11 | public $aDimensionalKeys = array();
12 | public function __construct() {
13 | $_aParameters = func_get_args() + array($this->aSubject, $this->aDimensionalKeys,);
14 | $this->aSubject = $_aParameters[0];
15 | $this->aDimensionalKeys = array_unique($_aParameters[1]);
16 | }
17 | public function get() {
18 | foreach ($this->aDimensionalKeys as $_sFlatFieldAddress) {
19 | $this->unsetDimensionalArrayElement($this->aSubject, explode('|', $_sFlatFieldAddress));
20 | }
21 | return $this->aSubject;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_model/modifier/AdminPageFramework_Form_Model___Modifier_SortInput.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_Model___Modifier_SortInput extends AdminPageFramework_Form_Model___Modifier_Base {
8 | public $aInput = array();
9 | public $aFieldAddresses = array();
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aInput, $this->aFieldAddresses,);
12 | $this->aInput = $_aParameters[0];
13 | $this->aFieldAddresses = $_aParameters[1];
14 | }
15 | public function get() {
16 | foreach ($this->_getFormattedDimensionalKeys($this->aFieldAddresses) as $_sFlatFieldAddress) {
17 | $_aDimensionalKeys = explode('|', $_sFlatFieldAddress);
18 | $_aDynamicElements = $this->getElement($this->aInput, $_aDimensionalKeys);
19 | if (!is_array($_aDynamicElements)) {
20 | continue;
21 | }
22 | $this->setMultiDimensionalArray($this->aInput, $_aDimensionalKeys, array_values($_aDynamicElements));
23 | }
24 | return $this->aInput;
25 | }
26 | private function _getFormattedDimensionalKeys($aFieldAddresses) {
27 | $aFieldAddresses = $this->getAsArray($aFieldAddresses);
28 | $aFieldAddresses = array_unique($aFieldAddresses);
29 | arsort($aFieldAddresses);
30 | return $aFieldAddresses;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/AdminPageFramework_Form_View___DebugInfo.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_FrameworkUtility {
8 | public $sStructureType = '';
9 | public $oMsg;
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->sStructureType, $this->oMsg,);
12 | $this->sStructureType = $_aParameters[0];
13 | $this->oMsg = $_aParameters[1];
14 | }
15 | public function get() {
16 | if (!$this->isDebugModeEnabled()) {
17 | return '';
18 | }
19 | if (!in_array($this->sStructureType, array('widget', 'post_meta_box', 'page_meta_box', 'user_meta'))) {
20 | return '';
21 | }
22 | return "" . $this->oMsg->get('debug_info') . ': ' . AdminPageFramework_Registry::NAME . ' ' . AdminPageFramework_Registry::getVersion() . "
";
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/AdminPageFramework_Form_View___Description.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility {
8 | public $aDescriptions = array();
9 | public $sClassAttribute = 'admin-page-framework-form-element-description';
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aDescriptions, $this->sClassAttribute,);
12 | $this->aDescriptions = $this->getAsArray($_aParameters[0]);
13 | $this->sClassAttribute = $_aParameters[1];
14 | }
15 | public function get() {
16 | if (empty($this->aDescriptions)) {
17 | return '';
18 | }
19 | $_aOutput = array();
20 | foreach ($this->aDescriptions as $_sDescription) {
21 | $_aOutput[] = "" . "" . $_sDescription . "" . "
";
22 | }
23 | return implode(PHP_EOL, $_aOutput);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Field.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Form_View___Attribute_Base extends AdminPageFramework_FrameworkUtility {
8 | public $sContext = '';
9 | public $aArguments = array();
10 | public $aAttributes = array();
11 | public function __construct() {
12 | $_aParameters = func_get_args() + array($this->aArguments, $this->aAttributes,);
13 | $this->aArguments = $_aParameters[0];
14 | $this->aAttributes = $_aParameters[1];
15 | }
16 | public function get() {
17 | return $this->getAttributes($this->_getFormattedAttributes());
18 | }
19 | protected function _getFormattedAttributes() {
20 | return $this->aAttributes + $this->_getAttributes();
21 | }
22 | protected function _getAttributes() {
23 | return array();
24 | }
25 | }
26 | abstract class AdminPageFramework_Form_View___Attribute_FieldContainer_Base extends AdminPageFramework_Form_View___Attribute_Base {
27 | protected function _getFormattedAttributes() {
28 | $_aAttributes = $this->uniteArrays($this->getElementAsArray($this->aArguments, array('attributes', $this->sContext)), $this->aAttributes + $this->_getAttributes());
29 | $_aAttributes['class'] = $this->getClassAttribute($this->getElement($_aAttributes, 'class', array()), $this->getElement($this->aArguments, array('class', $this->sContext), array()));
30 | return $_aAttributes;
31 | }
32 | }
33 | class AdminPageFramework_Form_View___Attribute_Field extends AdminPageFramework_Form_View___Attribute_FieldContainer_Base {
34 | public $sContext = 'field';
35 | protected function _getAttributes() {
36 | return array('id' => $this->aArguments['_field_container_id'], 'data-type' => $this->aArguments['type'], 'class' => "admin-page-framework-field admin-page-framework-field-" . $this->aArguments['type'] . $this->getAOrB($this->aArguments['attributes']['disabled'], ' disabled', '') . $this->getAOrB($this->aArguments['_is_sub_field'], ' admin-page-framework-subfield', ''));
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldrow.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_Fieldrow extends AdminPageFramework_Form_View___Attribute_FieldContainer_Base {
8 | public $sContext = 'fieldrow';
9 | protected function _getFormattedAttributes() {
10 | $_aAttributes = parent::_getFormattedAttributes();
11 | if ($this->aArguments['hidden']) {
12 | $_aAttributes['style'] = $this->getStyleAttribute($this->getElement($_aAttributes, 'style', array()), 'display:none');
13 | }
14 | return $_aAttributes;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fields.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_Fields extends AdminPageFramework_Form_View___Attribute_FieldContainer_Base {
8 | public $sContext = 'fields';
9 | public $iFieldsCount = 0;
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aArguments, $this->aAttributes, $this->iFieldsCount,);
12 | $this->aArguments = $_aParameters[0];
13 | $this->aAttributes = $_aParameters[1];
14 | $this->iFieldsCount = $_aParameters[2];
15 | }
16 | protected function _getAttributes() {
17 | return array('id' => $this->sContext . '-' . $this->aArguments['tag_id'], 'class' => 'admin-page-framework-' . $this->sContext . $this->getAOrB($this->aArguments['repeatable'], ' repeatable dynamic-fields', '') . $this->getAOrB($this->aArguments['sortable'], ' sortable dynamic-fields', ''), 'data-type' => $this->aArguments['type'], 'data-largest_index' => max(( int )$this->iFieldsCount - 1, 0), 'data-field_name_model' => $this->aArguments['_field_name_model'], 'data-field_name_flat' => $this->aArguments['_field_name_flat'], 'data-field_name_flat_model' => $this->aArguments['_field_name_flat_model'], 'data-field_tag_id_model' => $this->aArguments['_tag_id_model'], 'data-field_address' => $this->aArguments['_field_address'], 'data-field_address_model' => $this->aArguments['_field_address_model'],);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldset.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_Fieldset extends AdminPageFramework_Form_View___Attribute_FieldContainer_Base {
8 | public $sContext = 'fieldset';
9 | protected function _getAttributes() {
10 | return array('id' => $this->sContext . '-' . $this->aArguments['tag_id'], 'class' => 'admin-page-framework-' . $this->sContext, 'data-field_id' => $this->aArguments['tag_id'],);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTable.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_SectionTable extends AdminPageFramework_Form_View___Attribute_Base {
8 | public $sContext = 'section_table';
9 | protected function _getAttributes() {
10 | return array('id' => 'section_table-' . $this->aArguments['_tag_id'], 'class' => $this->getClassAttribute('form-table', 'admin-page-framework-section-table'),);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTableBody.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_SectionTableBody extends AdminPageFramework_Form_View___Attribute_Base {
8 | public $sContext = 'section_table_content';
9 | protected function _getAttributes() {
10 | $_sCollapsibleType = $this->getElement($this->aArguments, array('collapsible', 'type'), 'box');
11 | return array('class' => $this->getAOrB($this->aArguments['_is_collapsible'], 'admin-page-framework-collapsible-section-content' . ' ' . 'admin-page-framework-collapsible-content' . ' ' . 'accordion-section-content' . ' ' . 'admin-page-framework-collapsible-content-type-' . $_sCollapsibleType, null),);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTableContainer.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Attribute_SectionTableContainer extends AdminPageFramework_Form_View___Attribute_Base {
8 | protected function _getAttributes() {
9 | $_aSectionAttributes = $this->uniteArrays($this->dropElementsByType($this->aArguments['attributes']), array('id' => $this->aArguments['_tag_id'], 'class' => $this->getClassAttribute('admin-page-framework-section', $this->getAOrB($this->aArguments['section_tab_slug'], 'admin-page-framework-tab-content', null), $this->getAOrB($this->aArguments['_is_collapsible'], 'is_subsection_collapsible', null)),));
10 | $_aSectionAttributes['class'] = $this->getClassAttribute($_aSectionAttributes['class'], $this->dropElementsByType($this->aArguments['class']));
11 | $_aSectionAttributes['style'] = $this->getStyleAttribute($_aSectionAttributes['style'], $this->getAOrB($this->aArguments['hidden'], 'display:none', null));
12 | return $_aSectionAttributes;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSectionIE.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_CollapsibleSectionIE extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | return $this->_getCollapsibleSectionsRules();
10 | }
11 | private function _getCollapsibleSectionsRules() {
12 | return "tbody.admin-page-framework-collapsible-content > tr > th,tbody.admin-page-framework-collapsible-content > tr > td{padding-right: 20px;padding-left: 20px;}";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_FieldError.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_FieldError extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | return $this->_getFieldErrorRules();
10 | }
11 | private function _getFieldErrorRules() {
12 | return ".field-error, .section-error{color: red;float: left;clear: both;margin-bottom: 0.5em;}.repeatable-section-error,.repeatable-field-error {float: right;clear: both;color: red;margin-left: 1em;}";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Form.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_Form extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | $_sSpinnerURL = esc_url(admin_url('/images/wpspin_light-2x.gif'));
10 | return ".admin-page-framework-form-warning {font-weight: bold;color: red;font-size: 1.32em;}";
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Loading.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_Loading extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | $_sSpinnerPath = $this->getWPAdminDirPath() . '/images/wpspin_light-2x.gif';
10 | if (!file_exists($_sSpinnerPath)) {
11 | return '';
12 | }
13 | $_sSpinnerURL = esc_url(admin_url('/images/wpspin_light-2x.gif'));
14 | return ".admin-page-framework-form-loading {position: absolute;background-image: url({$_sSpinnerURL});background-repeat: no-repeat;background-size: 32px 32px;background-position: center; display: block !important;width: 92%;height: 70%;opacity: 0.5;}";
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset___FieldError.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Fieldset___FieldError extends AdminPageFramework_FrameworkUtility {
8 | public $aErrors = array();
9 | public $aSectionPath = array();
10 | public $aFieldPath = array();
11 | public $sHeadingMessage = '';
12 | public function __construct() {
13 | $_aParameters = func_get_args() + array($this->aErrors, $this->aSectionPath, $this->aFieldPath, $this->sHeadingMessage,);
14 | $this->aErrors = $_aParameters[0];
15 | $this->aSectionPath = $_aParameters[1];
16 | $this->aFieldPath = $_aParameters[2];
17 | $this->sHeadingMessage = $_aParameters[3];
18 | }
19 | public function get() {
20 | return $this->_getFieldError($this->aErrors, $this->_getSectionPathSanitized($this->aSectionPath), $this->aFieldPath, $this->sHeadingMessage);
21 | }
22 | private function _getSectionPathSanitized($aSectionPath) {
23 | if ('_default' === $this->getElement($aSectionPath, 0)) {
24 | array_shift($aSectionPath);
25 | }
26 | return $aSectionPath;
27 | }
28 | private function _getFieldError($aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage) {
29 | $_aErrorPath = array_merge($aSectionPath, $aFieldPath);
30 | if ($this->_hasFieldError($aErrors, $_aErrorPath)) {
31 | return "* " . $sHeadingMessage . $this->getElement($aErrors, $_aErrorPath) . "";
32 | }
33 | return '';
34 | }
35 | private function _hasFieldError($aErrors, array $aFieldAddress) {
36 | return is_scalar($this->getElement($aErrors, $aFieldAddress));
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/generator/AdminPageFramework_Form_View___Generate_Base.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Form_View___Generate_Base extends AdminPageFramework_FrameworkUtility {
8 | public $aArguments = array();
9 | public function __construct() {
10 | $_aParameters = func_get_args() + array($this->aArguments,);
11 | $this->aArguments = $_aParameters[0];
12 | }
13 | public function get() {
14 | return '';
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/generator/field/AdminPageFramework_Form_View___Generate_FieldInputID.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Generate_FieldTagID extends AdminPageFramework_Form_View___Generate_Field_Base {
8 | public function get() {
9 | return $this->_getFiltered($this->_getBaseFieldTagID());
10 | }
11 | public function getModel() {
12 | return $this->get() . '__' . $this->sIndexMark;
13 | }
14 | protected function _getBaseFieldTagID() {
15 | $_sSectionIndex = isset($this->aArguments['_section_index']) ? '__' . $this->aArguments['_section_index'] : '';
16 | $_sSectionPart = implode('_', $this->aArguments['_section_path_array']);
17 | $_sFieldPart = implode('_', $this->aArguments['_field_path_array']);
18 | return $this->_isSectionSet() ? $_sSectionPart . $_sSectionIndex . '_' . $_sFieldPart : $_sFieldPart;
19 | }
20 | }
21 | class AdminPageFramework_Form_View___Generate_FieldInputID extends AdminPageFramework_Form_View___Generate_FieldTagID {
22 | public $isIndex = '';
23 | public function __construct() {
24 | $_aParameters = func_get_args() + array($this->aArguments, $this->isIndex, $this->hfCallback,);
25 | $this->aArguments = $_aParameters[0];
26 | $this->isIndex = $_aParameters[1];
27 | $this->hfCallback = $_aParameters[2];
28 | }
29 | public function get() {
30 | return $this->_getFiltered($this->_getBaseFieldTagID() . '__' . $this->isIndex);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/generator/field/AdminPageFramework_Form_View___Generate_FlatFieldInputName.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Generate_FieldInputName extends AdminPageFramework_Form_View___Generate_FlatFieldName {
8 | public $sIndex = '';
9 | public function __construct() {
10 | $_aParameters = func_get_args() + array($this->aArguments, $this->sIndex, $this->hfCallback,);
11 | $this->aArguments = $_aParameters[0];
12 | $this->sIndex = ( string )$_aParameters[1];
13 | $this->hfCallback = $_aParameters[2];
14 | }
15 | public function get() {
16 | $_sIndex = $this->getAOrB('0' !== $this->sIndex && empty($this->sIndex), '', "[" . $this->sIndex . "]");
17 | return $this->_getFiltered($this->_getFieldName() . $_sIndex);
18 | }
19 | protected function _getFiltered($sSubject) {
20 | return is_callable($this->hfCallback) ? call_user_func_array($this->hfCallback, array($sSubject, $this->aArguments, $this->sIndex)) : $sSubject;
21 | }
22 | }
23 | class AdminPageFramework_Form_View___Generate_FlatFieldInputName extends AdminPageFramework_Form_View___Generate_FieldInputName {
24 | public function get() {
25 | $_sIndex = $this->getAOrB('0' !== $this->sIndex && empty($this->sIndex), '', "|{$this->sIndex}");
26 | return $this->_getFiltered($this->_getFlatFieldName() . $_sIndex);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/generator/section/AdminPageFramework_Form_View___Generate_SectionName.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_Form_View___Generate_Section_Base extends AdminPageFramework_Form_View___Generate_Base {
8 | public $hfCallback = null;
9 | public $sIndexMark = '___i___';
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->aArguments, $this->hfCallback,);
12 | $this->aArguments = $_aParameters[0];
13 | $this->hfCallback = $_aParameters[1];
14 | }
15 | public function getModel() {
16 | return '';
17 | }
18 | protected function _getFiltered($sSubject) {
19 | return is_callable($this->hfCallback) ? call_user_func_array($this->hfCallback, array($sSubject, $this->aArguments,)) : $sSubject;
20 | }
21 | protected function _getInputNameConstructed($aParts) {
22 | $_sName = array_shift($aParts);
23 | foreach ($aParts as $_sPart) {
24 | $_sName.= '[' . $_sPart . ']';
25 | }
26 | return $_sName;
27 | }
28 | }
29 | class AdminPageFramework_Form_View___Generate_SectionName extends AdminPageFramework_Form_View___Generate_Section_Base {
30 | public function get() {
31 | return $this->_getFiltered($this->_getSectionName());
32 | }
33 | public function getModel() {
34 | return $this->get() . '[' . $this->sIndexMark . ']';
35 | }
36 | protected function _getSectionName($isIndex = null) {
37 | $this->aArguments = $this->aArguments + array('section_id' => null, '_index' => null,);
38 | if (isset($isIndex)) {
39 | $this->aArguments['_index'] = $isIndex;
40 | }
41 | $_aNameParts = $this->aArguments['_section_path_array'];
42 | if (isset($this->aArguments['section_id'], $this->aArguments['_index'])) {
43 | $_aNameParts[] = $this->aArguments['_index'];
44 | }
45 | $_sResult = $this->_getInputNameConstructed($_aNameParts);
46 | return $_sResult;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/resource/AdminPageFramework_Form_View__Resource__Head.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View__Resource__Head extends AdminPageFramework_FrameworkUtility {
8 | public $oForm;
9 | public function __construct($oForm, $sHeadActionHook = 'admin_head') {
10 | $this->oForm = $oForm;
11 | if (in_array($this->oForm->aArguments['structure_type'], array('widget'))) {
12 | return;
13 | }
14 | add_action($sHeadActionHook, array($this, '_replyToInsertRequiredInlineScripts'));
15 | }
16 | public function _replyToInsertRequiredInlineScripts() {
17 | if (!$this->oForm->isInThePage()) {
18 | return;
19 | }
20 | if ($this->hasBeenCalled(__METHOD__)) {
21 | return;
22 | }
23 | echo "";
24 | }
25 | private function _getScripts_RequiredInHead() {
26 | return 'document.write( "" );';
27 | }
28 | private function _getInlineCSS() {
29 | $_oLoadingCSS = new AdminPageFramework_Form_View___CSS_Loading;
30 | $_oLoadingCSS->add($this->_getScriptElementConcealerCSSRules());
31 | return $_oLoadingCSS->get();
32 | }
33 | private function _getScriptElementConcealerCSSRules() {
34 | return ".admin-page-framework-form-js-on {visibility: hidden;}.widget .admin-page-framework-form-js-on { visibility: visible; }";
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_CheckboxSelector.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Script_CheckboxSelector extends AdminPageFramework_Form_View___Script_Base {
8 | static public function getScript() {
9 | return <<
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Script_OptionStorage extends AdminPageFramework_Form_View___Script_Base {
8 | static public function getScript() {
9 | return <<
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Script_Utility extends AdminPageFramework_Form_View___Script_Base {
8 | static public function getScript() {
9 | return <<
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___Sections extends AdminPageFramework_FrameworkUtility {
8 | public function __construct($aSavedData, $oMsg, $aFieldErrors) {
9 | }
10 | public function get() {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_default.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_FieldType_default extends AdminPageFramework_FieldType {
8 | public $aDefaultKeys = array();
9 | public function _replyToGetField($aField) {
10 | return $aField['before_label'] . "" . "" . "
" . $aField['after_label'];
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_hidden.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_FieldType_hidden extends AdminPageFramework_FieldType {
8 | public $aFieldTypeSlugs = array('hidden');
9 | protected $aDefaultKeys = array();
10 | protected function getField($aField) {
11 | return $aField['before_label'] . "" . "" . "
" . $aField['after_label'];
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_number.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_FieldType_number extends AdminPageFramework_FieldType_text {
8 | public $aFieldTypeSlugs = array('number', 'range');
9 | protected $aDefaultKeys = array('attributes' => array('size' => 30, 'maxlength' => 400, 'class' => null, 'min' => null, 'max' => null, 'step' => null, 'readonly' => null, 'required' => null, 'placeholder' => null, 'list' => null, 'autofocus' => null, 'autocomplete' => null,),);
10 | protected function getStyles() {
11 | return "";
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_section_title.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_FieldType_section_title extends AdminPageFramework_FieldType_text {
8 | public $aFieldTypeSlugs = array('section_title',);
9 | protected $aDefaultKeys = array('label_min_width' => 30, 'attributes' => array('size' => 20, 'maxlength' => 100,),);
10 | protected function getStyles() {
11 | return ".admin-page-framework-section-tab .admin-page-framework-field-section_title {padding: 0.5em;} .admin-page-framework-section-tab .admin-page-framework-field-section_title .admin-page-framework-input-label-string { vertical-align: middle; margin-left: 0.2em;}.admin-page-framework-section-tab .admin-page-framework-fields {display: inline-block;} .admin-page-framework-field.admin-page-framework-field-section_title {float: none;} .admin-page-framework-field.admin-page-framework-field-section_title input {background-color: #fff;color: #333;border-color: #ddd;box-shadow: inset 0 1px 2px rgba(0,0,0,.07);border-width: 1px;border-style: solid;outline: 0;box-sizing: border-box;vertical-align: middle;}";
12 | }
13 | protected function getField($aField) {
14 | $aField['attributes'] = array('type' => 'text') + $aField['attributes'];
15 | return parent::getField($aField);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/field_type/AdminPageFramework_WalkerTaxonomyChecklist.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_WalkerTaxonomyChecklist extends Walker_Category {
8 | function start_el(&$sOutput, $oTerm, $iDepth = 0, $aArgs = array(), $iCurrentObjectID = 0) {
9 | $aArgs = $aArgs + array('_name_prefix' => null, '_input_id_prefix' => null, '_attributes' => array(), '_selected_items' => array(), 'taxonomy' => null, 'disabled' => null,);
10 | $_iID = $oTerm->term_id;
11 | $_sTaxonomySlug = empty($aArgs['taxonomy']) ? 'category' : $aArgs['taxonomy'];
12 | $_sID = "{$aArgs['_input_id_prefix']}_{$_sTaxonomySlug}_{$_iID}";
13 | $_sPostCount = $aArgs['show_post_count'] ? " (" . $oTerm->count . ")" : '';
14 | $_aInputAttributes = isset($_aInputAttributes[$_iID]) ? $_aInputAttributes[$_iID] + $aArgs['_attributes'] : $aArgs['_attributes'];
15 | $_aInputAttributes = array('id' => $_sID, 'value' => 1, 'type' => 'checkbox', 'name' => "{$aArgs['_name_prefix']}[{$_iID}]", 'checked' => in_array($_iID, ( array )$aArgs['_selected_items']) ? 'checked' : null,) + $_aInputAttributes + array('class' => null,);
16 | $_aInputAttributes['class'].= ' apf_checkbox';
17 | $_aLiTagAttributes = array('id' => "list-{$_sID}", 'class' => 'category-list', 'title' => $oTerm->description,);
18 | $sOutput.= "\n" . "" . "";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/form/input/AdminPageFramework_Input_radio.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Input_radio extends AdminPageFramework_Input_Base {
8 | public function get() {
9 | $_aParams = func_get_args() + array(0 => '', 1 => array());
10 | $_sLabel = $_aParams[0];
11 | $_aAttributes = $this->uniteArrays($this->getElementAsArray($_aParams, 1, array()), $this->aAttributes);
12 | return "<{$this->aOptions['input_container_tag']} " . $this->getAttributes($this->aOptions['input_container_attributes']) . ">" . "getAttributes($_aAttributes) . " />" . "{$this->aOptions['input_container_tag']}>" . "<{$this->aOptions['label_container_tag']} " . $this->getAttributes($this->aOptions['label_container_attributes']) . ">" . $_sLabel . "{$this->aOptions['label_container_tag']}>";
13 | }
14 | public function getAttributesByKey() {
15 | $_aParams = func_get_args() + array(0 => '',);
16 | $_sKey = $_aParams[0];
17 | return $this->getElementAsArray($this->aAttributes, $_sKey, array()) + array('type' => 'radio', 'checked' => isset($this->aAttributes['value']) && $this->aAttributes['value'] == $_sKey ? 'checked' : null, 'value' => $_sKey, 'id' => $this->getAttribute('id') . '_' . $_sKey, 'data-id' => $this->getAttribute('id'),) + $this->aAttributes;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/utility/AdminPageFramework_ErrorReporting.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_ErrorReporting {
8 | private $_aLevels = array(1 => 'E_ERROR', 2 => 'E_WARNING', 4 => 'E_PARSE', 8 => 'E_NOTICE', 16 => 'E_CORE_ERROR', 32 => 'E_CORE_WARNING', 64 => 'E_COMPILE_ERROR', 128 => 'E_COMPILE_WARNING', 256 => 'E_USER_ERROR', 512 => 'E_USER_WARNING', 1024 => 'E_USER_NOTICE', 2048 => 'E_STRICT', 4096 => 'E_RECOVERABLE_ERROR', 8192 => 'E_DEPRECATED', 16384 => 'E_USER_DEPRECATED');
9 | private $_iLevel;
10 | public function __construct($iLevel = null) {
11 | $this->_iLevel = null !== $iLevel ? $iLeevl : error_reporting();
12 | }
13 | public function getErrorLevel() {
14 | return $this->_getErrorDescription($this->_getIncluded());
15 | }
16 | private function _getIncluded() {
17 | $_aIncluded = array();
18 | foreach ($this->_aLevels as $_iLevel => $iLevelText) {
19 | if ($this->_iLevel & $_iLevel) {
20 | $_aIncluded[] = $_iLevel;
21 | }
22 | }
23 | return $_aIncluded;
24 | }
25 | private function _getErrorDescription($aIncluded) {
26 | $_iAll = count($this->_aLevels);
27 | $_aValues = array();
28 | if (count($aIncluded) > $_iAll / 2) {
29 | $_aValues[] = 'E_ALL';
30 | foreach ($this->_aLevels as $_iLevel => $iLevelText) {
31 | if (!in_array($_iLevel, $aIncluded)) {
32 | $_aValues[] = $iLevelText;
33 | }
34 | }
35 | return implode(' & ~', $_aValues);
36 | }
37 | foreach ($aIncluded as $_iLevel) {
38 | $_aValues[] = $this->_aLevels[$_iLevel];
39 | }
40 | return implode(' | ', $_aValues);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/_common/utility/admin_notice/AdminPageFramework_AdminNotice___Script.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_AdminNotice___Script extends AdminPageFramework_Factory___Script_Base {
8 | public function load() {
9 | wp_enqueue_script('jquery');
10 | }
11 | static public function getScript() {
12 | return <<" );
24 | _oContainer.css( 'margin-top', '1em' );
25 | _oContainer.css( 'margin-bottom', '1em' );
26 |
27 | // Now animate.
28 | jQuery( _oAdminNotices )
29 | .css( 'visibility', 'hidden' )
30 | .slideDown( 800 )
31 | .css( {opacity: 0, visibility: 'visible'})
32 | .animate( {opacity: 1}, 400 );
33 |
34 | }
35 |
36 | });
37 |
38 | }( jQuery ));
39 | JAVASCRIPTS;
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/AdminPageFramework_ImportOptions.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_ImportOptions extends AdminPageFramework_CustomSubmitFields {
8 | public $aFilesImport = array();
9 | public function __construct($aFilesImport, $aPostImport) {
10 | parent::__construct($aPostImport);
11 | $this->aFilesImport = $aFilesImport;
12 | }
13 | private function getElementInFilesArray(array $aFilesImport, $sInputID, $sElementKey = 'error') {
14 | $sElementKey = strtolower($sElementKey);
15 | return $this->getElement($aFilesImport, array($sElementKey, $sInputID), null);
16 | }
17 | public function getError() {
18 | return $this->getElementInFilesArray($this->aFilesImport, $this->sInputID, 'error');
19 | }
20 | public function getType() {
21 | return $this->getElementInFilesArray($this->aFilesImport, $this->sInputID, 'type');
22 | }
23 | public function getImportData() {
24 | $sFilePath = $this->getElementInFilesArray($this->aFilesImport, $this->sInputID, 'tmp_name');
25 | $vData = file_exists($sFilePath) ? file_get_contents($sFilePath, true) : false;
26 | return $vData;
27 | }
28 | public function formatImportData(&$vData, $sFormatType = null) {
29 | $sFormatType = isset($sFormatType) ? $sFormatType : $this->getFormatType();
30 | switch (strtolower($sFormatType)) {
31 | case 'text':
32 | return;
33 | case 'json':
34 | $vData = json_decode(( string )$vData, true);
35 | return;
36 | case 'array':
37 | default:
38 | $vData = maybe_unserialize(trim($vData));
39 | return;
40 | }
41 | }
42 | public function getFormatType() {
43 | $this->sFormatType = isset($this->sFormatType) && $this->sFormatType ? $this->sFormatType : $this->getSubmitValueByType($this->aPost, $this->sInputID, 'format');
44 | return $this->sFormatType;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/delegate/AdminPageFramework_Model__FormEmailHandler.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Model__FormEmailHandler extends AdminPageFramework_FrameworkUtility {
8 | public $oFactory;
9 | public function __construct($oFactory) {
10 | $this->oFactory = $oFactory;
11 | if (!isset($_GET['apf_action'], $_GET['transient'])) {
12 | return;
13 | }
14 | if ('email' !== $_GET['apf_action']) {
15 | return;
16 | }
17 | ignore_user_abort(true);
18 | $this->registerAction('after_setup_theme', array($this, '_replyToSendFormEmail'));
19 | }
20 | static public $_bDoneEmail = false;
21 | public function _replyToSendFormEmail() {
22 | if (self::$_bDoneEmail) {
23 | return;
24 | }
25 | self::$_bDoneEmail = true;
26 | $_sTransient = $this->getElement($_GET, 'transient', '');
27 | if (!$_sTransient) {
28 | return;
29 | }
30 | $_aFormEmail = $this->getTransient($_sTransient);
31 | $this->deleteTransient($_sTransient);
32 | if (!is_array($_aFormEmail)) {
33 | return;
34 | }
35 | $_oEmail = new AdminPageFramework_FormEmail($_aFormEmail['email_options'], $_aFormEmail['input'], $_aFormEmail['section_id']);
36 | $_bSent = $_oEmail->send();
37 | exit;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/delegate/AdminPageFramework_Model__FormRedirectHandler.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Model__FormRedirectHandler extends AdminPageFramework_FrameworkUtility {
8 | public $oFactory;
9 | public function __construct($oFactory) {
10 | $this->oFactory = $oFactory;
11 | $this->_replyToCheckRedirects();
12 | }
13 | public function _replyToCheckRedirects() {
14 | if (!$this->_shouldProceed()) {
15 | return;
16 | }
17 | $_sTransient = 'apf_rurl' . md5(trim("redirect_{$this->oFactory->oProp->sClassName}_{$_GET['page']}"));
18 | $_aError = $this->oFactory->getFieldErrors();
19 | if (!empty($_aError)) {
20 | $this->deleteTransient($_sTransient);
21 | return;
22 | }
23 | $_sURL = $this->getTransient($_sTransient);
24 | if (false === $_sURL) {
25 | return;
26 | }
27 | $this->deleteTransient($_sTransient);
28 | $this->goToURL($_sURL);
29 | }
30 | private function _shouldProceed() {
31 | if (!$this->oFactory->_isInThePage()) {
32 | return false;
33 | }
34 | $_bsSettingsUpdatedFlag = $this->getElement($_GET, 'settings-updated', false);
35 | if (!$_bsSettingsUpdatedFlag) {
36 | return false;
37 | }
38 | $_sConfirmationType = $this->getElement($_GET, 'confirmation', '');
39 | return 'redirect' === $_sConfirmationType;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__Link.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Model__FormSubmission__Validator__Link extends AdminPageFramework_Model__FormSubmission__Validator_Base {
8 | public $sActionHookPrefix = 'try_validation_before_';
9 | public $iHookPriority = 30;
10 | public $iCallbackParameters = 5;
11 | public function _replyToCallback($aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory) {
12 | $_sLinkURL = $this->_getPressedSubmitButtonData($aSubmits, 'href');
13 | if (!$_sLinkURL) {
14 | return;
15 | }
16 | $this->goToURL($_sLinkURL);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__Redirect.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Model__FormSubmission__Validator__Redirect extends AdminPageFramework_Model__FormSubmission__Validator_Base {
8 | public $sActionHookPrefix = 'try_validation_before_';
9 | public $iHookPriority = 40;
10 | public $iCallbackParameters = 5;
11 | public function _replyToCallback($aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory) {
12 | $_sRedirectURL = $this->_getPressedSubmitButtonData($aSubmits, 'redirect_url');
13 | if (!$_sRedirectURL) {
14 | return;
15 | }
16 | add_filter("options_update_status_{$this->oFactory->oProp->sClassName}", array($this, '_replyToSetStatus'));
17 | $this->_setRedirectTransients($_sRedirectURL, $this->getElement($aSubmitInformation, 'page_slug'));
18 | }
19 | public function _replyToSetStatus($aStatus) {
20 | return array('confirmation' => 'redirect') + $aStatus;
21 | }
22 | private function _setRedirectTransients($sURL, $sPageSlug) {
23 | if (empty($sURL)) {
24 | return;
25 | }
26 | $_sTransient = 'apf_rurl' . md5(trim("redirect_{$this->oFactory->oProp->sClassName}_{$sPageSlug}"));
27 | return $this->setTransient($_sTransient, $sURL, 60 * 2);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_InPageTab.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_InPageTab extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array('page_slug' => null, 'tab_slug' => null, 'title' => null, 'order' => 10, 'show_in_page_tab' => true, 'parent_tab_slug' => null, 'url' => null, 'disabled' => null, 'attributes' => null, 'capability' => null, 'if' => true,);
9 | public $aInPageTab = array();
10 | public $sPageSlug = '';
11 | public $oFactory;
12 | public function __construct() {
13 | $_aParameters = func_get_args() + array($this->aInPageTab, $this->sPageSlug, $this->oFactory,);
14 | $this->aInPageTab = $_aParameters[0];
15 | $this->sPageSlug = $_aParameters[1];
16 | $this->oFactory = $_aParameters[2];
17 | }
18 | public function get() {
19 | return array('page_slug' => $this->sPageSlug,) + $this->aInPageTab + array('capability' => $this->_getPageCapability(),) + self::$aStructure;
20 | }
21 | private function _getPageCapability() {
22 | return $this->getElement($this->oFactory->oProp->aPages, array($this->sPageSlug, 'capability'), $this->oFactory->oProp->sCapability);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_InPageTabs.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_InPageTabs extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array();
9 | public $aInPageTabs = array();
10 | public $sPageSlug = '';
11 | public $oFactory;
12 | public function __construct() {
13 | $_aParameters = func_get_args() + array($this->aInPageTabs, $this->sPageSlug, $this->oFactory,);
14 | $this->aInPageTabs = $_aParameters[0];
15 | $this->sPageSlug = $_aParameters[1];
16 | $this->oFactory = $_aParameters[2];
17 | }
18 | public function get() {
19 | $_aInPageTabs = $this->addAndApplyFilter($this->oFactory, "tabs_{$this->oFactory->oProp->sClassName}_{$this->sPageSlug}", $this->aInPageTabs);
20 | foreach (( array )$_aInPageTabs as $_sTabSlug => $_aInPageTab) {
21 | if (!is_array($_aInPageTab)) {
22 | continue;
23 | }
24 | $_oFormatter = new AdminPageFramework_Format_InPageTab($_aInPageTab, $this->sPageSlug, $this->oFactory);
25 | $_aInPageTabs[$_sTabSlug] = $_oFormatter->get();
26 | }
27 | uasort($_aInPageTabs, array($this, 'sortArrayByKey'));
28 | return $_aInPageTabs;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_NavigationTab_InPageTab.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_NavigationTab_InPageTab extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array();
9 | public $aTab = array();
10 | public $aTabs = array();
11 | public $aArguments = array();
12 | public $oFactory = array();
13 | public function __construct() {
14 | $_aParameters = func_get_args() + array($this->aTab, self::$aStructure, $this->aTabs, $this->aArguments, $this->oFactory,);
15 | $this->aTab = $_aParameters[0];
16 | self::$aStructure = $_aParameters[1];
17 | $this->aTabs = $_aParameters[2];
18 | $this->aArguments = $_aParameters[3];
19 | $this->oFactory = $_aParameters[4];
20 | }
21 | public function get() {
22 | $_aTab = $this->uniteArrays($this->aTab, array('capability' => 'manage_options', 'show_in_page_tab' => true,));
23 | if (!$this->_isEnabled($_aTab)) {
24 | return array();
25 | }
26 | $_sSlug = $this->_getSlug($_aTab);
27 | $_aTab = array('slug' => $_sSlug, 'title' => $this->aTabs[$_sSlug]['title'], 'href' => $_aTab['disabled'] ? null : esc_url($this->getElement($_aTab, 'url', $this->getQueryAdminURL(array('page' => $this->aArguments['page_slug'], 'tab' => $_sSlug,), $this->oFactory->oProp->aDisallowedQueryKeys))),) + $this->uniteArrays($_aTab, array('attributes' => array('data-tab-slug' => $_sSlug,),), self::$aStructure);
28 | return $_aTab;
29 | }
30 | private function _isEnabled($aTab) {
31 | return !in_array(false, array(( bool )current_user_can($aTab['capability']), ( bool )$aTab['show_in_page_tab'], ( bool )$aTab['if'],));
32 | }
33 | private function _getSlug($aTab) {
34 | return isset($aTab['parent_tab_slug'], $this->aTabs[$aTab['parent_tab_slug']]) ? $aTab['parent_tab_slug'] : $aTab['tab_slug'];
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_PageResource_Script.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_PageResource_Script extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array('src' => null, 'handle_id' => null, 'dependencies' => array(), 'version' => false, 'translation' => array(), 'in_footer' => false,);
9 | public $asSubject = '';
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->asSubject,);
12 | $this->asSubject = $_aParameters[0];
13 | }
14 | public function get() {
15 | return $this->_getFormatted($this->asSubject);
16 | }
17 | private function _getFormatted($asSubject) {
18 | $_aSubject = array();
19 | if (is_string($asSubject)) {
20 | $_aSubject['src'] = $asSubject;
21 | }
22 | return $_aSubject + self::$aStructure;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_PageResource_Style.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_PageResource_Style extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array('src' => null, 'handle_id' => null, 'dependencies' => null, 'version' => null, 'media' => null,);
9 | public $asSubject = '';
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->asSubject,);
12 | $this->asSubject = $_aParameters[0];
13 | }
14 | public function get() {
15 | return $this->_getFormatted($this->asSubject);
16 | }
17 | private function _getFormatted($asSubject) {
18 | $_aSubject = array();
19 | if (is_string($asSubject)) {
20 | $_aSubject['src'] = $asSubject;
21 | }
22 | return $_aSubject + self::$aStructure;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_model/format/AdminPageFramework_Format_SubMenuItem.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Format_SubMenuItem extends AdminPageFramework_Format_Base {
8 | static public $aStructure = array();
9 | public $aSubMenuItem = array();
10 | public $oFactory;
11 | public $iParsedIndex = 1;
12 | public function __construct() {
13 | $_aParameters = func_get_args() + array($this->aSubMenuItem, $this->oFactory, $this->iParsedIndex,);
14 | $this->aSubMenuItem = $_aParameters[0];
15 | $this->oFactory = $_aParameters[1];
16 | $this->iParsedIndex = $_aParameters[2];
17 | }
18 | public function get() {
19 | $_aSubMenuItem = $this->getAsArray($this->aSubMenuItem);
20 | if (isset($_aSubMenuItem['page_slug'])) {
21 | $_oFormatter = new AdminPageFramework_Format_SubMenuPage($_aSubMenuItem, $this->oFactory, $this->iParsedIndex);
22 | return $_oFormatter->get();
23 | }
24 | if (isset($_aSubMenuItem['href'])) {
25 | $_oFormatter = new AdminPageFramework_Format_SubMenuLink($_aSubMenuItem, $this->oFactory, $this->iParsedIndex);
26 | return $_oFormatter->get();
27 | }
28 | return array();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_PageLoadInfo_admin_page extends AdminPageFramework_PageLoadInfo_Base {
8 | private static $_oInstance;
9 | private static $aClassNames = array();
10 | public static function instantiate($oProp, $oMsg) {
11 | if (in_array($oProp->sClassName, self::$aClassNames)) return self::$_oInstance;
12 | self::$aClassNames[] = $oProp->sClassName;
13 | self::$_oInstance = new AdminPageFramework_PageLoadInfo_admin_page($oProp, $oMsg);
14 | return self::$_oInstance;
15 | }
16 | public function _replyToSetPageLoadInfoInFooter() {
17 | if ($this->oProp->isPageAdded()) {
18 | add_filter('update_footer', array($this, '_replyToGetPageLoadInfo'), 999);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/admin_page/_view/AdminPageFramework_View__PageMataBoxRenderer.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_View__PageMataBoxRenderer extends AdminPageFramework_FrameworkUtility {
8 | public function render($sContext) {
9 | if (!$this->doesMetaBoxExist()) {
10 | return;
11 | }
12 | $this->_doRender($sContext, ++self::$_iContainerID);
13 | }
14 | private static $_iContainerID = 0;
15 | private function _doRender($sContext, $iContainerID) {
16 | echo "";
17 | do_meta_boxes('', $sContext, null);
18 | echo "
";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/meta_box/_controller/AdminPageFramework_HelpPane_post_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_post_meta_box extends AdminPageFramework_HelpPane_Base {
8 | public function _replyToRegisterHelpTabText() {
9 | if (!$this->_isInThePage()) {
10 | return false;
11 | }
12 | $this->_setHelpTab($this->oProp->sMetaBoxID, $this->oProp->sTitle, $this->oProp->aHelpTabText, $this->oProp->aHelpTabTextSide);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/meta_box/_model/AdminPageFramework_MetaBox_Model___PostMeta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_MetaBox_Model___PostMeta extends AdminPageFramework_FrameworkUtility {
8 | public $iPostID = array();
9 | public $aFieldsets = array();
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->iPostID, $this->aFieldsets,);
12 | $this->iPostID = $_aParameters[0];
13 | $this->aFieldsets = $_aParameters[1];
14 | }
15 | public function get() {
16 | if (!$this->iPostID) {
17 | return array();
18 | }
19 | return $this->_getSavedDataFromFieldsets($this->iPostID, $this->aFieldsets);
20 | }
21 | private function _getSavedDataFromFieldsets($iPostID, $aFieldsets) {
22 | $_aMetaKeys = $this->getAsArray(get_post_custom_keys($iPostID));
23 | $_aMetaData = array();
24 | foreach ($aFieldsets as $_sSectionID => $_aFieldsets) {
25 | if ('_default' == $_sSectionID) {
26 | foreach ($_aFieldsets as $_aFieldset) {
27 | if (!in_array($_aFieldset['field_id'], $_aMetaKeys)) {
28 | continue;
29 | }
30 | $_aMetaData[$_aFieldset['field_id']] = get_post_meta($iPostID, $_aFieldset['field_id'], true);
31 | }
32 | }
33 | if (!in_array($_sSectionID, $_aMetaKeys)) {
34 | continue;
35 | }
36 | $_aMetaData[$_sSectionID] = get_post_meta($iPostID, $_sSectionID, true);
37 | }
38 | return $_aMetaData;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/meta_box/_model/AdminPageFramework_Property_post_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_post_meta_box extends AdminPageFramework_Property_Base {
8 | public $_sPropertyType = 'post_meta_box';
9 | public $sMetaBoxID = '';
10 | public $aPostTypes = array();
11 | public $aPages = array();
12 | public $sContext = 'normal';
13 | public $sPriority = 'default';
14 | public $sClassName = '';
15 | public $sCapability = 'edit_posts';
16 | public $sThickBoxTitle = '';
17 | public $sThickBoxButtonUseThis = '';
18 | public $sStructureType = 'post_meta_box';
19 | public $_sFormRegistrationHook = 'admin_enqueue_scripts';
20 | public function __construct($oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework', $sStructureType = 'post_meta_box') {
21 | parent::__construct($oCaller, null, $sClassName, $sCapability, $sTextDomain, $sStructureType);
22 | }
23 | protected function _getOptions() {
24 | return array();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/meta_box/form/AdminPageFramework_Form_post_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_post_meta_box extends AdminPageFramework_Form_Meta {
8 | public $sStructureType = 'post_meta_box';
9 | public function construct() {
10 | $this->_addDefaultResources();
11 | }
12 | private function _addDefaultResources() {
13 | $_oCSS = new AdminPageFramework_Form_View___CSS_meta_box;
14 | $this->addResource('inline_styles', $_oCSS->get());
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/meta_box/form/_view/AdminPageFramework_Form_View___CSS_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_meta_box extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | return $this->_getRules();
10 | }
11 | private function _getRules() {
12 | return ".postbox .title-colon {margin-left: 0.2em;}.postbox .admin-page-framework-section .form-table > tbody > tr > td,.postbox .admin-page-framework-section .form-table > tbody > tr > th{display: inline-block;width: 100%;padding: 0;float: right;clear: right; }.postbox .admin-page-framework-field { width: auto;}.postbox .admin-page-framework-field {max-width: 100%;}.postbox .sortable .admin-page-framework-field {max-width: 84%; width: auto;} .postbox .admin-page-framework-section .form-table > tbody > tr > th {font-size: 13px;line-height: 1.5;margin: 1em 0px;font-weight: 700;}#poststuff .metabox-holder .postbox-container .admin-page-framework-section-title h3 {border: none;font-weight: bold;font-size: 1.12em;margin: 1em 0;padding: 0;font-family: 'Open Sans', sans-serif; cursor: inherit; -webkit-user-select: inherit;-moz-user-select: inherit;user-select: inherit;text-shadow: none;-webkit-box-shadow: none;box-shadow: none;background: none;}#poststuff .metabox-holder .postbox-container .admin-page-framework-collapsible-title h3 {margin: 0;}#poststuff .metabox-holder .postbox-container h4 {margin: 1em 0;font-size: 1.04em;}#poststuff .metabox-holder .postbox-container .admin-page-framework-section-tab h4 {margin: 0;}@media screen and (min-width: 783px) {#poststuff #post-body.columns-2 #side-sortables .postbox .admin-page-framework-section .form-table input[type=text]{width: 98%;}}";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/AdminPageFramework_NetworkAdmin.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_NetworkAdmin extends AdminPageFramework {
8 | protected $_aBuiltInRootMenuSlugs = array('dashboard' => 'index.php', 'sites' => 'sites.php', 'themes' => 'themes.php', 'plugins' => 'plugins.php', 'users' => 'users.php', 'settings' => 'settings.php', 'updates' => 'update-core.php',);
9 | public function __construct($sOptionKey = null, $sCallerPath = null, $sCapability = 'manage_network', $sTextDomain = 'admin-page-framework') {
10 | if (!$this->_isInstantiatable()) {
11 | return;
12 | }
13 | $sCallerPath = $sCallerPath ? $sCallerPath : AdminPageFramework_Utility::getCallerScriptPath(__FILE__);
14 | $this->oProp = new AdminPageFramework_Property_NetworkAdmin($this, $sCallerPath, get_class($this), $sOptionKey, $sCapability, $sTextDomain);
15 | parent::__construct($sOptionKey, $sCallerPath, $sCapability, $sTextDomain);
16 | new AdminPageFramework_Model_Menu__RegisterMenu($this, 'network_admin_menu');
17 | }
18 | protected function _getLinkObject() {
19 | return new AdminPageFramework_Link_network_admin_page($this->oProp, $this->oMsg);
20 | }
21 | protected function _getPageLoadObject() {
22 | return new AdminPageFramework_PageLoadInfo_network_admin_page($this->oProp, $this->oMsg);
23 | }
24 | protected function _isInstantiatable() {
25 | if (isset($GLOBALS['pagenow']) && 'admin-ajax.php' === $GLOBALS['pagenow']) {
26 | return false;
27 | }
28 | if (is_network_admin()) {
29 | return true;
30 | }
31 | return false;
32 | }
33 | static public function getOption($sOptionKey, $asKey = null, $vDefault = null) {
34 | return AdminPageFramework_WPUtility::getSiteOption($sOptionKey, $asKey, $vDefault);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/_controller/AdminPageFramework_HelpPane_network_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_network_admin_page extends AdminPageFramework_HelpPane_admin_page {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/_controller/AdminPageFramework_Link_network_acmin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Link_network_admin_page extends AdminPageFramework_Link_admin_page {
8 | public function __construct($oProp, $oMsg = null) {
9 | parent::__construct($oProp, $oMsg);
10 | if (in_array($this->oProp->sPageNow, array('plugins.php')) && 'plugin' === $this->oProp->aScriptInfo['sType']) {
11 | remove_filter('plugin_action_links_' . plugin_basename($this->oProp->aScriptInfo['sPath']), array($this, '_replyToAddSettingsLinkInPluginListingPage'), 20);
12 | add_filter('network_admin_plugin_action_links_' . plugin_basename($this->oProp->aScriptInfo['sPath']), array($this, '_replyToAddSettingsLinkInPluginListingPage'));
13 | }
14 | }
15 | protected $_sFilterSuffix_PluginActionLinks = 'network_admin_plugin_action_links_';
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/_controller/AdminPageFramework_Resource_network_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Resource_network_admin_page extends AdminPageFramework_Resource_admin_page {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/_model/AdminPageFramework_Property_network_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_NetworkAdmin extends AdminPageFramework_Property_admin_page {
8 | public $_sPropertyType = 'network_admin_page';
9 | public $sStructureType = 'network_admin_page';
10 | public $sSettingNoticeActionHook = 'network_admin_notices';
11 | protected function _getOptions() {
12 | return $this->addAndApplyFilter($this->getElement($GLOBALS, array('aAdminPageFramework', 'aPageClasses', $this->sClassName)), 'options_' . $this->sClassName, $this->sOptionKey ? get_site_option($this->sOptionKey, array()) : array());
13 | }
14 | public function updateOption($aOptions = null) {
15 | if ($this->_bDisableSavingOptions) {
16 | return;
17 | }
18 | return update_site_option($this->sOptionKey, $aOptions !== null ? $aOptions : $this->aOptions);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/_view/AdminPageFramework_PageLoadInfo_network_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_PageLoadInfo_network_admin_page extends AdminPageFramework_PageLoadInfo_Base {
8 | private static $_oInstance;
9 | private static $aClassNames = array();
10 | function __construct($oProp, $oMsg) {
11 | if (is_network_admin() && defined('WP_DEBUG') && WP_DEBUG) {
12 | add_action('in_admin_footer', array($this, '_replyToSetPageLoadInfoInFooter'), 999);
13 | }
14 | parent::__construct($oProp, $oMsg);
15 | }
16 | public static function instantiate($oProp, $oMsg) {
17 | if (!is_network_admin()) {
18 | return;
19 | }
20 | if (in_array($oProp->sClassName, self::$aClassNames)) return self::$_oInstance;
21 | self::$aClassNames[] = $oProp->sClassName;
22 | self::$_oInstance = new AdminPageFramework_PageLoadInfo_network_admin_page($oProp, $oMsg);
23 | return self::$_oInstance;
24 | }
25 | public function _replyToSetPageLoadInfoInFooter() {
26 | if ($this->oProp->isPageAdded()) {
27 | add_filter('update_footer', array($this, '_replyToGetPageLoadInfo'), 999);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/network_admin_page/form/AdminPageFramework_Form_network_admin_page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_network_admin_page extends AdminPageFramework_Form_admin_page {
8 | public $sStructureType = 'network_admin_page';
9 | }
10 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | abstract class AdminPageFramework_MetaBox_Page extends AdminPageFramework_PageMetaBox {
8 | function __construct($sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework') {
9 | trigger_error(sprintf(__('The class %1$s
is deprecated. Use %2$s
instead.', 'admin-page-framework'), __CLASS__, 'AdminPageFramework_PageMetaBox'), E_USER_NOTICE);
10 | parent::__construct($sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/page_meta_box/_controller/AdminPageFramework_HelpPane_page_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_page_meta_box extends AdminPageFramework_HelpPane_Base {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/page_meta_box/_controller/AdminPageFramework_Resource_page_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Resource_page_meta_box extends AdminPageFramework_Resource_admin_page {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/page_meta_box/form/AdminPageFramework_Form_page_meta_box.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_page_meta_box extends AdminPageFramework_Form_post_meta_box {
8 | public $sStructureType = 'page_meta_box';
9 | public function construct() {
10 | add_filter('options_' . $this->aArguments['caller_id'], array($this, '_replyToSanitizeSavedFormData'), 5);
11 | parent::construct();
12 | }
13 | public function _replyToSanitizeSavedFormData($aSavedFormData) {
14 | return $this->castArrayContents($this->getDataStructureFromAddedFieldsets(), $aSavedFormData);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_controller/AdminPageFramework_HelpPane_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_post_type extends AdminPageFramework_HelpPane_Base {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_controller/AdminPageFramework_Link_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Link_post_type extends AdminPageFramework_Link_Base {
8 | public function __construct($oProp, $oMsg = null) {
9 | parent::__construct($oProp, $oMsg);
10 | if (isset($_GET['post_type']) && $_GET['post_type'] == $this->oProp->sPostType) {
11 | add_action('get_edit_post_link', array($this, '_replyToAddPostTypeQueryInEditPostLink'), 10, 3);
12 | }
13 | }
14 | public function _replyToAddSettingsLinkInPluginListingPage($aLinks) {
15 | $_sLinkLabel = $this->getElement($this->oProp->aPostTypeArgs, array('labels', 'plugin_listing_table_title_cell_link'), $this->oMsg->get('manage'));
16 | $_sLinkLabel = $this->getElement($this->oProp->aPostTypeArgs, array('labels', 'plugin_action_link'), $_sLinkLabel);
17 | if (!$_sLinkLabel) {
18 | return $aLinks;
19 | }
20 | array_unshift($aLinks, 'getAttributes(array('href' => esc_url("edit.php?post_type={$this->oProp->sPostType}"), 'class' => 'apf-plugin-title-action-link apf-admin-page',)) . '>' . $_sLinkLabel . "");
21 | return $aLinks;
22 | }
23 | public function _replyToSetFooterInfo() {
24 | if (!$this->isPostDefinitionPage($this->oProp->sPostType) && !$this->isPostListingPage($this->oProp->sPostType) && !$this->isCustomTaxonomyPage($this->oProp->sPostType)) {
25 | return;
26 | }
27 | parent::_replyToSetFooterInfo();
28 | }
29 | public function _replyToAddPostTypeQueryInEditPostLink($sURL, $iPostID = null, $sContext = null) {
30 | return add_query_arg(array('post' => $iPostID, 'action' => 'edit', 'post_type' => $this->oProp->sPostType), $sURL);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_controller/AdminPageFramework_Resource_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Resource_post_type extends AdminPageFramework_Resource_post_meta_box {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_model/AdminPageFramework_PostType_Model__FlushRewriteRules.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_PostType_Model__FlushRewriteRules extends AdminPageFramework_FrameworkUtility {
8 | public $oFactory;
9 | public function __construct($oFactory) {
10 | if (!$this->_shouldProceed($oFactory)) {
11 | return;
12 | }
13 | $this->oFactory = $oFactory;
14 | register_activation_hook($this->oFactory->oProp->sCallerPath, array($this, '_replyToSetUpPostType'));
15 | add_action('registered_post_type', array($this, '_replyToScheduleToFlushRewriteRules'), 10, 2);
16 | }
17 | private function _shouldProceed($oFactory) {
18 | if (!$oFactory->oProp->bIsAdmin) {
19 | return false;
20 | }
21 | if (!$oFactory->oProp->sCallerPath) {
22 | return false;
23 | }
24 | return 'plugin' === $oFactory->oProp->sScriptType;
25 | }
26 | public function _replyToSetUpPostType() {
27 | do_action("set_up_{$this->oFactory->oProp->sClassName}", $this);
28 | }
29 | public function _replyToScheduleToFlushRewriteRules($sPostType, $aArguments) {
30 | if ($this->oFactory->oProp->sPostType !== $sPostType) {
31 | return;
32 | }
33 | if (did_action('activate_' . plugin_basename($this->oFactory->oProp->sCallerPath))) {
34 | add_action('shutdown', array($this, '_replyToFlushRewriteRules'));
35 | }
36 | }
37 | public function _replyToFlushRewriteRules() {
38 | if ($this->hasBeenCalled('flush_rewrite_rules')) {
39 | return;
40 | }
41 | $this->flushRewriteRules();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_model/AdminPageFramework_Property_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_post_type extends AdminPageFramework_Property_Base {
8 | public $_sPropertyType = 'post_type';
9 | public $sPostType = '';
10 | public $aPostTypeArgs = array();
11 | public $sClassName = '';
12 | public $aColumnHeaders = array('cb' => '', 'title' => 'Title', 'author' => 'Author', 'comments' => '', 'date' => 'Date',);
13 | public $aColumnSortable = array('title' => true, 'date' => true,);
14 | public $sCallerPath = '';
15 | public $aTaxonomies;
16 | public $aTaxonomyObjectTypes = array();
17 | public $aTaxonomyTableFilters = array();
18 | public $aTaxonomyRemoveSubmenuPages = array();
19 | public $bEnableAutoSave = true;
20 | public $bEnableAuthorTableFileter = false;
21 | public $aTaxonomySubMenuOrder = array();
22 | }
23 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/_view/AdminPageFramework_PageLoadInfo_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_PageLoadInfo_post_type extends AdminPageFramework_PageLoadInfo_Base {
8 | private static $_oInstance;
9 | private static $aClassNames = array();
10 | public static function instantiate($oProp, $oMsg) {
11 | if (in_array($oProp->sClassName, self::$aClassNames)) return self::$_oInstance;
12 | self::$aClassNames[] = $oProp->sClassName;
13 | self::$_oInstance = new AdminPageFramework_PageLoadInfo_post_type($oProp, $oMsg);
14 | return self::$_oInstance;
15 | }
16 | public function _replyToSetPageLoadInfoInFooter() {
17 | if (isset($_GET['page']) && $_GET['page']) {
18 | return;
19 | }
20 | if (AdminPageFramework_WPUtility::getCurrentPostType() == $this->oProp->sPostType || AdminPageFramework_WPUtility::isPostDefinitionPage($this->oProp->sPostType) || AdminPageFramework_WPUtility::isCustomTaxonomyPage($this->oProp->sPostType)) {
21 | add_filter('update_footer', array($this, '_replyToGetPageLoadInfo'), 999);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/post_type/form/AdminPageFramework_Form_post_type.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_post_type extends AdminPageFramework_Form {
8 | public $sStructureType = 'post_type';
9 | }
10 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/taxonomy_field/_controller/AdminPageFramework_HelpPane_taxonomy_field.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_taxonomy_field extends AdminPageFramework_HelpPane_Base {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/taxonomy_field/_model/AdminPageFramework_Property_taxonomy_field.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_taxonomy_field extends AdminPageFramework_Property_post_meta_box {
8 | public $_sPropertyType = 'taxonomy_field';
9 | public $aTaxonomySlugs;
10 | public $sOptionKey;
11 | }
12 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/taxonomy_field/form/AdminPageFramework_Form_taxonomy_field.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_taxonomy_field extends AdminPageFramework_Form {
8 | public $sStructureType = 'taxonomy_field';
9 | public function get() {
10 | $this->sCapability = $this->callback($this->aCallbacks['capability'], '');
11 | if (!$this->canUserView($this->sCapability)) {
12 | return '';
13 | }
14 | $this->_formatElementDefinitions($this->aSavedData);
15 | $_oFieldsets = new AdminPageFramework_Form_View___FieldsetRows($this->getElementAsArray($this->aFieldsets, '_default'), null, $this->aSavedData, $this->getFieldErrors(), $this->aFieldTypeDefinitions, $this->aCallbacks, $this->oMsg);
16 | return $_oFieldsets->get();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/user_meta/_controller/AdminPageFramework_HelpPane_user_meta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_user_meta extends AdminPageFramework_HelpPane_Base {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/user_meta/_controller/AdminPageFramework_Resource_user_meta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Resource_user_meta extends AdminPageFramework_Resource_post_meta_box {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/user_meta/_model/AdminPageFramework_Property_user_meta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_user_meta extends AdminPageFramework_Property_post_meta_box {
8 | public $_sPropertyType = 'user_meta';
9 | public $_sFormRegistrationHook = 'admin_enqueue_scripts';
10 | protected function _getOptions() {
11 | return array();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/user_meta/_model/AdminPageFramework_UserMeta_Model___UserMeta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_UserMeta_Model___UserMeta extends AdminPageFramework_FrameworkUtility {
8 | public $iUserID = array();
9 | public $aFieldsets = array();
10 | public function __construct() {
11 | $_aParameters = func_get_args() + array($this->iUserID, $this->aFieldsets,);
12 | $this->iUserID = $_aParameters[0];
13 | $this->aFieldsets = $_aParameters[1];
14 | }
15 | public function get() {
16 | if (!$this->iUserID) {
17 | return array();
18 | }
19 | return $this->_getSavedDataFromFieldsets($this->iUserID, $this->aFieldsets);
20 | }
21 | private function _getSavedDataFromFieldsets($iUserID, $aFieldsets) {
22 | $_aMetaKeys = array_keys(get_user_meta($iUserID));
23 | $_aMetaData = array();
24 | foreach ($aFieldsets as $_sSectionID => $_aFieldsets) {
25 | if ('_default' == $_sSectionID) {
26 | foreach ($_aFieldsets as $_aFieldset) {
27 | if (!in_array($_aFieldset['field_id'], $_aMetaKeys)) {
28 | continue;
29 | }
30 | $_aMetaData[$_aFieldset['field_id']] = get_user_meta($iUserID, $_aFieldset['field_id'], true);
31 | }
32 | }
33 | if (!in_array($_sSectionID, $_aMetaKeys)) {
34 | continue;
35 | }
36 | $_aMetaData[$_sSectionID] = get_user_meta($iUserID, $_sSectionID, true);
37 | }
38 | return $_aMetaData;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/user_meta/form/AdminPageFramework_Form_user_meta.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_user_meta extends AdminPageFramework_Form_Meta {
8 | public $sStructureType = 'user_meta';
9 | }
10 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/widget/_controller/AdminPageFramework_HelpPane_widget.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_HelpPane_widget extends AdminPageFramework_HelpPane_Base {
8 | }
9 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/widget/_model/AdminPageFramework_Property_widget.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Property_widget extends AdminPageFramework_Property_Base {
8 | public $_sPropertyType = 'widget';
9 | public $sStructureType = 'widget';
10 | public $sClassName = '';
11 | public $sCallerPath = '';
12 | public $sWidgetTitle = '';
13 | public $aWidgetArguments = array();
14 | public $bShowWidgetTitle = true;
15 | public $oWidget;
16 | public $sSettingNoticeActionHook = '';
17 | public function __construct($oCaller, $sCallerPath, $sClassName, $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework', $sStructureType) {
18 | $this->_sFormRegistrationHook = 'load_' . $sClassName;
19 | $this->sSettingNoticeActionHook = 'load_' . $sClassName;
20 | parent::__construct($oCaller, $sCallerPath, $sClassName, $sCapability, $sTextDomain, $sStructureType);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/widget/form/AdminPageFramework_Form_widget.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_widget extends AdminPageFramework_Form {
8 | public $sStructureType = 'widget';
9 | public function construct() {
10 | $this->_addDefaultResources();
11 | }
12 | private function _addDefaultResources() {
13 | $_oCSS = new AdminPageFramework_Form_View___CSS_widget;
14 | $this->addResource('inline_styles', $_oCSS->get());
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/factory/widget/form/_view/AdminPageFramework_Form_View___CSS_widget.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_Form_View___CSS_widget extends AdminPageFramework_Form_View___CSS_Base {
8 | protected function _get() {
9 | return $this->_getWidgetRules();
10 | }
11 | private function _getWidgetRules() {
12 | return ".widget .admin-page-framework-section .form-table > tbody > tr > td,.widget .admin-page-framework-section .form-table > tbody > tr > th{display: inline-block;width: 100%;padding: 0;float: right;clear: right; }.widget .admin-page-framework-field,.widget .admin-page-framework-input-label-container{width: 100%;}.widget .sortable .admin-page-framework-field {padding: 4% 4.4% 3.2% 4.4%;width: 91.2%;}.widget .admin-page-framework-field input {margin-bottom: 0.1em;margin-top: 0.1em;}.widget .admin-page-framework-field input[type=text],.widget .admin-page-framework-field textarea {width: 100%;} @media screen and ( max-width: 782px ) {.widget .admin-page-framework-fields {width: 99.2%;}.widget .admin-page-framework-field input[type='checkbox'], .widget .admin-page-framework-field input[type='radio'] {margin-top: 0;}}";
13 | }
14 | protected function _getVersionSpecific() {
15 | $_sCSSRules = '';
16 | if (version_compare($GLOBALS['wp_version'], '3.8', '<')) {
17 | $_sCSSRules.= ".widget .admin-page-framework-section table.mceLayout {table-layout: fixed;}";
18 | }
19 | if (version_compare($GLOBALS['wp_version'], '3.8', '>=')) {
20 | $_sCSSRules.= ".widget .admin-page-framework-section .form-table th{font-size: 13px;font-weight: normal;margin-bottom: 0.2em;}.widget .admin-page-framework-section .form-table {margin-top: 1em;}";
21 | }
22 | return $_sCSSRules;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/utility/class_tester/AdminPageFramework_ClassTester.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_ClassTester {
8 | static public function getInstance($sClassName, array $aParameters = array()) {
9 | $_oReflection = new ReflectionClass($sClassName);
10 | return $_oReflection->newInstanceArgs($aParameters);
11 | }
12 | static public function call($oClass, $sMethodName, $aParameters) {
13 | if (version_compare(phpversion(), '<', '5.3.0')) {
14 | trigger_error('Program Name' . ': ' . sprintf('The method cannot run with your PHP version: %1$s', phpversion()), E_USER_WARNING);
15 | return;
16 | }
17 | $_sClassName = get_class($oClass);
18 | $_oMethod = self::_getMethod($_sClassName, $sMethodName);
19 | return $_oMethod->invokeArgs($oClass, $aParameters);
20 | }
21 | static private function _getMethod($sClassName, $sMethodName) {
22 | $_oClass = new ReflectionClass($sClassName);
23 | $_oMethod = $_oClass->getMethod($sMethodName);
24 | $_oMethod->setAccessible(true);
25 | return $_oMethod;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/library/apf/utility/toc/AdminPageFramework_TableOfContents.php:
--------------------------------------------------------------------------------
1 |
5 |
6 | Copyright (c) 2013-2016, Michael Uno; Licensed under MIT */
7 | class AdminPageFramework_TableOfContents {
8 | public function __construct($sHTML, $iDepth = 4, $sTitle = '') {
9 | $this->sTitle = $sTitle;
10 | $this->sHTML = $sHTML;
11 | $this->iDepth = $iDepth;
12 | }
13 | public function get() {
14 | return $this->getTOC() . $this->getContents();
15 | }
16 | public function getContents() {
17 | return $this->sHTML;
18 | }
19 | public function getTOC() {
20 | $iDepth = $this->iDepth;
21 | $this->sHTML = preg_replace_callback('/]*>.*?<\/h[2-' . $iDepth . ']>/i', array($this, '_replyToInsertNamedElement'), $this->sHTML);
22 | $_aOutput = array();
23 | foreach ($this->_aMatches as $_iIndex => $_sMatch) {
24 | $_sMatch = strip_tags($_sMatch, '');
25 | $_sMatch = preg_replace('//', '', $_sMatch);
26 | $_sMatch = preg_replace('/<\/h[1-' . $iDepth . ']>/', '', $_sMatch);
27 | $_aOutput[] = $_sMatch;
28 | }
29 | $this->sTitle = $this->sTitle ? '' . $this->sTitle . '
' : '';
30 | return '' . $this->sTitle . '
' . implode(PHP_EOL, $_aOutput) . '
' . '
';
31 | }
32 | protected $_aMatches = array();
33 | public function _replyToInsertNamedElement($aMatches) {
34 | static $_icount = - 1;
35 | $_icount++;
36 | $this->_aMatches[] = $aMatches[0];
37 | return "" . PHP_EOL . $aMatches[0];
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/gravityforms-cron/admin-page-framework/uninstall.php:
--------------------------------------------------------------------------------
1 | query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" );
52 | $_oWPDB->query( "DELETE FROM `{$_oWPDB->prefix}options` WHERE `option_name` LIKE ( '_transient_timeout_%{$_sPrefix}%' )" );
53 | }
54 |
55 | endif;
56 |
--------------------------------------------------------------------------------
/gravityforms-cron/readme.txt:
--------------------------------------------------------------------------------
1 | === Plugin Name ===
2 | Plugin Name: Gravity Forms Delayed Notifications
3 | Plugin URI: http://www.zewlak.com/gfc
4 | Description: Add-on for Gravity Forms to send delayed notifications
5 | Version: 1.0
6 | Author: Tomasz Zewlakow
7 | Author URI: http://www.zewlak.com
8 |
9 | == Description ==
10 |
11 | Plugin to send delayed notifications after form submission.
12 |
13 | == Installation ==
14 |
15 | 1. Upload zip content to the `/wp-content/plugins/` directory
16 | 2. Activate the plugin through the 'Plugins' menu in WordPress
17 | 3. See new `Delayed notifications` submenu in `Forms` menu option
18 |
19 | == Frequently Asked Questions ==
20 |
21 | Nothing here yet
22 |
23 | == Changelog ==
24 | = 1.0 =
25 | * Release version
26 |
27 |
--------------------------------------------------------------------------------