Overview

Packages

  • ACF
  • Automation
    • Actions
    • Activation
    • LeadProfile
    • Menus
    • Queries
    • Rules
    • Triggers
  • CTA
    • Activation
    • AJAXListeners
    • Cloning
    • Core
    • Display
    • EditPage
    • Enqueues
    • GPLSettings
    • LeadsProfile
    • Loading
    • Menus
    • Notices
    • PlacementMetabox
    • PostType
    • Templates
    • Tracking
    • Variations
    • YOAST
  • InboundPro
    • Activation
    • AdminAJAX
    • AutoLoading
    • Cron
    • DataInterface
    • FieldMapping
    • Funnels
    • InboundNowAPI
    • Installer
    • LeadStatuses
    • Menus
    • Notifications
    • Ouath
    • Reports
    • Settings
    • Tracking
    • Translations
    • Updates
  • LandingPages
    • Activation
    • DataInterfaces
    • Management
    • Menus
    • NeedsAttention
    • Notices
    • Sidebars
    • Templates
    • Tracking
    • Variations
    • WelcomeScreen
    • Widgets
  • Leads
    • Activation
    • Akismet
    • BranchControl
    • BulkActions
    • Dashboard
    • Management
    • Notifications
    • Settings
    • Tracking
    • UserProfile
    • WPLogin
  • Mailer
    • Activation
    • Admin
    • ClickTracking
    • DataInterface
    • InboundForms
    • Leads
    • Management
    • Notifications
    • Scheduling
    • Sending
    • Settings
    • ShortcodesAndTokens
    • SparkPost
    • Templates
    • Unsubscribes
    • Variations
    • YoastSEO
  • None
  • Shared
    • APIs
    • CPT
    • DatabaseRoutines
    • DebugTricks
    • DoubleOptin
    • EventManagement
    • FieldMapping
    • InboundForms
    • LeadSorage
    • MarketingButton
    • Menus
    • Notifications
    • Shortcodes
    • ShortcodesAndTokens
    • StandAloneLicensing
    • Tracking
    • VisualEditor
  • xDepreciated

Classes

  • CTA_Activation
  • CTA_Activation_Update_Routines
  • CTA_Admin_Notices
  • CTA_Ajax_Listeners
  • CTA_Clone_Post
  • CTA_Conversion_Tracking
  • CTA_Dynamic_Widget
  • CTA_Enqueues
  • CTA_Load_Extensions
  • CTA_Menus
  • CTA_Metaboxes
  • CTA_Metaboxes_Global
  • CTA_Post_Type
  • CTA_Render
  • CTA_Settings
  • CTA_Static_Widget
  • CTA_Template_Manager
  • CTA_Template_Manager_List
  • CTA_Variations
  • CTA_WordPress_Leads
  • CTA_WordPress_SEO
  • Inbound_Ajax
  • Inbound_Akismet
  • Inbound_Analytics
  • Inbound_API
  • Inbound_API_Keys_Generation
  • Inbound_API_Keys_Table
  • Inbound_API_Wrapper
  • Inbound_Asset_Loader
  • Inbound_Automation_Action_Add_Remove_List
  • Inbound_Automation_Action_Add_Remove_Tag
  • Inbound_Automation_Action_Create_Lead
  • Inbound_Automation_Action_Create_User
  • Inbound_Automation_Action_Kill_Tasks
  • Inbound_Automation_Action_Relay_Data
  • Inbound_Automation_Action_Send_Email
  • Inbound_Automation_Action_Wait
  • Inbound_Automation_Activation
  • Inbound_Automation_Activation_Update_Routines
  • Inbound_Automation_Adminbar
  • Inbound_Automation_Lead_Profile
  • Inbound_Automation_Loader
  • Inbound_Automation_Plugin
  • Inbound_Automation_Post_Type
  • Inbound_Automation_Processing
  • Inbound_Automation_Query_Lead
  • Inbound_Automation_Query_User
  • Inbound_Automation_Trigger_inbound_double_optin_confirm
  • Inbound_Automation_Trigger_inbound_store_lead_post
  • Inbound_Automation_Trigger_inbound_track_link
  • Inbound_Automation_Trigger_Publish_Post
  • Inbound_Automation_Trigger_Save_Post_Deactivated
  • Inbound_Automation_Trigger_Set_Object_Terms
  • Inbound_Automation_Trigger_Update_Lead
  • Inbound_Automation_Trigger_User_Register
  • Inbound_Calls_To_Action_Plugin
  • Inbound_Confirm_Double_Optin
  • Inbound_Cron
  • Inbound_CTA_Quick_View
  • Inbound_Customizer
  • Inbound_Debug_Scripts
  • Inbound_Email_Meta
  • Inbound_Email_Preview
  • Inbound_Email_Template_Shortcodes
  • Inbound_Event_Report
  • Inbound_Events
  • Inbound_Events_Report
  • Inbound_Extension_Loads
  • Inbound_Forms
  • Inbound_Funnel_Reporting
  • Inbound_Impressions_Report
  • Inbound_Landing_Pages_Plugin
  • Inbound_Lead_Statuses
  • Inbound_Leads
  • Inbound_Leads_Custom_fields
  • Inbound_Leads_Plugin
  • Inbound_License
  • Inbound_List_Double_Optin
  • Inbound_Load_Shared
  • Inbound_Logging_Automation
  • Inbound_Login
  • Inbound_Mail_Daemon
  • Inbound_Mailer_ACF
  • Inbound_Mailer_Activation
  • Inbound_Mailer_Activation_Update_Routines
  • Inbound_Mailer_Ajax_Listeners
  • Inbound_Mailer_Clone_Post
  • Inbound_Mailer_Common_Settings
  • Inbound_Mailer_Customizer
  • Inbound_Mailer_Direct_Email_Leads
  • Inbound_Mailer_Enqueues
  • Inbound_Mailer_Forms_Integration
  • Inbound_Mailer_Load_Templates
  • Inbound_Mailer_Menus
  • Inbound_Mailer_Metaboxes
  • Inbound_Mailer_Notifications
  • Inbound_Mailer_Plugin
  • Inbound_Mailer_Post_Type
  • Inbound_Mailer_Scheduling
  • Inbound_Mailer_Settings
  • Inbound_Mailer_SparkPost
  • Inbound_Mailer_Stats_Report
  • Inbound_Mailer_Template_Manager
  • Inbound_Mailer_Template_Manager_List
  • Inbound_Mailer_Tokens
  • Inbound_Mailer_Tracking
  • Inbound_Mailer_Unsubscribe
  • Inbound_Mailer_Variations
  • Inbound_Mailer_WordPress_SEO
  • Inbound_Maintenance_Lists
  • Inbound_Marketing_Button
  • Inbound_Menus_Admin
  • Inbound_Menus_Adminbar
  • Inbound_Metaboxes_Automation
  • Inbound_Metaboxes_Leads
  • Inbound_Notifications
  • Inbound_Now_Store
  • Inbound_Options_API
  • Inbound_Pro_Activation
  • Inbound_Pro_Admin_Ajax_Listeners
  • Inbound_Pro_Automatic_Updates
  • Inbound_Pro_Downloads
  • Inbound_Pro_Notifications
  • Inbound_Pro_Oauth_Engine
  • Inbound_Pro_Plugin
  • Inbound_Pro_Settings
  • Inbound_Quick_View
  • Inbound_Reporting_Templates
  • Inbound_Search_And_Comment_Report
  • Inbound_Shared_ACF_BootStrap
  • Inbound_Shortcodes
  • Inbound_Shortcodes_Cookies
  • Inbound_Shortcodes_Fields
  • Inbound_SparkPost
  • Inbound_SparkPost_Stats
  • Inbound_Template_Utils
  • Inbound_Templating_Engine
  • Inbound_Tracking
  • Inbound_Translation_Updater
  • Inbound_Updater
  • Inbound_Upgrade_For_More_Reports
  • Inbound_Upgrade_Routines
  • Inbound_Visitor_Event_Report
  • Inbound_Visitor_Impressions_Report
  • Inbound_Visitors_Report
  • INBOUNDNOW_EXTEND
  • Landing_Pages_ACF
  • Landing_Pages_Activation
  • Landing_Pages_Activation_Update_Routines
  • Landing_Pages_Admin_Menus
  • Landing_Pages_Admin_Notices
  • Landing_Pages_Install
  • Landing_Pages_Load_Extensions
  • Landing_Pages_Meta
  • Landing_Pages_Metaboxes
  • Landing_Pages_Post_Type
  • Landing_Pages_Row_Actions
  • Landing_Pages_Settings
  • Landing_Pages_Sidebars
  • Landing_Pages_Split_Testing_Stats
  • Landing_Pages_Template_Management
  • Landing_Pages_Template_Switcher
  • Landing_Pages_Templates_List_Table
  • Landing_Pages_Variations
  • LandingPages_Welcome
  • Leads_Activation
  • Leads_Activation_Update_Routines
  • Leads_Admin_Notices
  • Leads_Batch_Processor
  • Leads_Branching
  • Leads_Dashboard
  • Leads_Field_Map
  • Leads_Manager
  • Leads_Post_Type
  • Leads_Settings
  • Leads_Tracking
  • Leads_User_Profile
  • LeadStorage
  • LP_EXTENSION_LICENSENING
  • LP_EXTENSION_UPDATER
  • LP_Variation_Rotation
  • LP_Widget_Conversion_Area

Functions

  • cta_check_active
  • cta_example_template_function
  • cta_load_dynamic_widget
  • CTA_Load_Extensions
  • cta_load_static_widget
  • CTA_Render
  • inbound_add_conversion_to_lead
  • inbound_automation_check_active
  • inbound_automation_load_definitions
  • inbound_automation_metaboxes
  • inbound_automation_processing
  • inbound_color
  • inbound_color_scheme
  • inbound_confirm_email_service_provider
  • inbound_email_kill_ie8
  • inbound_email_load_templates
  • inbound_form_add_lead_list
  • inbound_form_auto_publish
  • inbound_form_delete_transient
  • inbound_form_get_data
  • inbound_form_save
  • inbound_forms_change_columns
  • inbound_forms_cpt
  • inbound_forms_custom_columns
  • inbound_forms_default_content
  • inbound_get_form_names
  • inbound_get_parent_directory
  • inbound_Hex_2_RGB
  • inbound_inbound_email_example_template_function
  • inbound_load_lead_manager
  • inbound_load_token_engine
  • inbound_mailer_acf_integration
  • Inbound_Mailer_Common_Settings
  • Inbound_Mailer_Load_Templates
  • inbound_qtrans_disable
  • inbound_record_log
  • inbound_register_form_role_capabilities
  • inbound_shortcode_alert
  • inbound_shortcode_callout
  • inbound_shortcode_columns
  • inbound_shortcode_content_box
  • inbound_shortcode_divider
  • inbound_shortcode_empty_paragraph_fix
  • inbound_shortcode_four_fifth_columns
  • inbound_shortcode_full_columns
  • inbound_shortcode_gmap
  • inbound_shortcode_icon
  • inbound_shortcode_intro
  • inbound_shortcode_landing_pages
  • inbound_shortcode_leadp
  • inbound_shortcode_list_icons
  • inbound_shortcode_one_fifth_columns
  • inbound_shortcode_one_fourth_columns
  • inbound_shortcode_one_half_columns
  • inbound_shortcode_one_third_columns
  • inbound_shortcode_portfolio
  • inbound_shortcode_pricing
  • inbound_shortcode_profile
  • inbound_shortcode_social_links
  • inbound_shortcode_tabs
  • inbound_shortcode_teaser
  • inbound_shortcode_testimonial
  • inbound_shortcode_three_fifth_columns
  • inbound_shortcode_three_fourth_columns
  • inbound_shortcode_two_fifth_columns
  • inbound_shortcode_two_third_columns
  • inbound_shortcode_video
  • inbound_store_lead
  • inbound_template_brightness
  • inbound_template_color
  • Inbound_Templating_Engine
  • inbound_travis_check
  • inboundnow_add_master_license
  • json_encode_fallback
  • landingpage_fix_known_wp_title_isses
  • landingpages_is_active
  • load_CTA_Settings
  • load_CTA_Template_Manager
  • load_Inbound_API_Keys_Generation
  • load_Inbound_Lead_Statuses
  • load_Inbound_Leads_Custom_fields
  • load_inbound_mail_daemon
  • load_Inbound_Mailer_Settings
  • load_Inbound_Mailer_Template_Manager
  • load_Inbound_Pro_Downloads
  • lp_ab_testing_get_current_variation_id
  • lp_add_option
  • lp_body_class
  • lp_check_active
  • lp_content_area
  • lp_conversion_area
  • lp_discover_important_wrappers
  • lp_footer
  • lp_generate_drowndown
  • lp_get_parent_directory
  • lp_get_value
  • lp_global_config
  • lp_head
  • lp_in_admin_header
  • lp_init
  • lp_list_feature
  • lp_load_widgets
  • lp_main_headline
  • lp_manage_templates
  • lp_move_template_files
  • lp_rebuild_attributes
  • lp_templates_upload
  • mailer_check_active
  • wp_cta_check_active
  • wp_cta_kill_ie8
  • wp_cta_load_calls_to_action
  • wp_leads_get_page_final_id
  • wpl_url_to_postid
  • wpleads_add_lead_to_list
  • wpleads_check_active
  • wpleads_get_lead_lists_as_array
  • Overview
  • Package
  • Class
  1:   2:   3:   4:   5:   6:   7:   8:   9:  10:  11:  12:  13:  14:  15:  16:  17:  18:  19:  20:  21:  22:  23:  24:  25:  26:  27:  28:  29:  30:  31:  32:  33:  34:  35:  36:  37:  38:  39:  40:  41:  42:  43:  44:  45:  46:  47:  48:  49:  50:  51:  52:  53:  54:  55:  56:  57:  58:  59:  60:  61:  62:  63:  64:  65:  66:  67:  68:  69:  70:  71:  72:  73:  74:  75:  76:  77:  78:  79:  80:  81:  82:  83:  84:  85:  86:  87:  88:  89:  90:  91:  92:  93:  94:  95:  96:  97:  98:  99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491: 492: 493: 494: 495: 496: 497: 498: 499: 500: 501: 502: 503: 504: 505: 506: 507: 508: 509: 510: 511: 512: 513: 514: 515: 516: 517: 518: 519: 520: 521: 522: 523: 524: 525: 526: 527: 528: 529: 530: 531: 532: 533: 534: 535: 536: 537: 538: 539: 540: 541: 542: 543: 544: 545: 546: 547: 548: 549: 550: 551: 552: 553: 554: 555: 556: 557: 558: 559: 560: 561: 562: 563: 564: 565: 566: 567: 568: 569: 570: 571: 572: 573: 574: 575: 576: 577: 578: 579: 580: 581: 582: 583: 584: 585: 586: 587: 588: 589: 590: 591: 592: 593: 594: 595: 596: 597: 598: 599: 600: 601: 602: 603: 604: 605: 606: 607: 608: 609: 610: 611: 612: 613: 614: 615: 616: 617: 618: 619: 620: 621: 622: 623: 624: 625: 626: 627: 628: 629: 630: 631: 632: 633: 
<?php
/**
 * Weclome Page Class
 *
 * @package     LandingPages
 * @subpackage  WelcomeScreen
 */

/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) { exit; }

/**
 * LandingPages_Welcome Class
 *
 * A general class for About and Credits page.
 *
 * @since 1.4
 */
class LandingPages_Welcome {

    /**
     * @var string The capability users should have to view the page
     */
    public $minimum_capability = 'manage_options';

    /**
     * Get things started
     *
     * @since 1.4
     */
    public function __construct() {
        add_action( 'admin_menu', array( $this, 'admin_menus') );
        add_action( 'admin_head', array( $this, 'admin_head' ) );
        add_action( 'admin_init', array( $this, 'welcome'    ) );
        add_action('admin_footer', array( $this, 'force_permalink_flush' ) );
    }

    /**
     * Register the Dashboard Pages which are later hidden but these pages
     * are used to render the Welcome and Credits pages.
     *
     * @access public
     * @since 1.4
     * @return void
     */
    public function admin_menus() {
        /* About Page */
        add_dashboard_page(
            __( 'Welcome to WordPress Landing Pages', 'landing-pages'),
            __( 'Welcome to WordPress Landing Pages', 'landing-pages'),
            $this->minimum_capability,
            'lp-quick-start',
            array( $this, 'quick_start_screen' )
        );
        /* About InboundNow Page */
        add_dashboard_page(
            __( 'About the Inbound Now Marketing Platform', 'landing-pages'),
            __( 'About the Inbound Now Marketing Platform', 'landing-pages'),
            $this->minimum_capability,
            'about-inboundnow',
            array( $this, 'about_inboundnow_screen' )
        );
        /* Developer Page */
        add_dashboard_page(
            __( 'Developers and Designers', 'landing-pages'),
            __( 'Developers and Designers', 'landing-pages'),
            $this->minimum_capability,
            'inbound-developers',
            array( $this, 'dev_designer_screen' )
        );

    }

    /**
     * Hide Individual Dashboard Pages
     *
     * @access public
     * @since 1.4
     * @return void
     */
    public function admin_head() {
        remove_submenu_page( 'index.php', 'lp-quick-start' );
        remove_submenu_page( 'index.php', 'about-inboundnow' );
        remove_submenu_page( 'index.php', 'inbound-developers' );

        ?>
        <style type="text/css" media="screen">
            /*<![CDATA[*/
            .edd-badge {
                padding-top: 130px;
                height: 52px;
                width: 185px;
                color: #666;
                font-weight: bold;
                font-size: 14px;
                text-align: center;
                text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
                margin: 0 -5px;
            }

            .about-wrap .edd-badge {
                position: absolute;
                top: 0;
                right: 0;
            }

            .edd-welcome-screenshots {
                float: right;
                margin-left: 10px!important;
            }
            #inbound-plugins .grid.one-third:first-child{
                margin-left: 0px;
                padding-left: 0px;
            }
            #inbound-plugins .grid.one-third {
                width: 31.333333%;
            }
            #inbound-plugins .grid.two-third {
                width: 64.333333%;
            }
            #inbound-plugins h3 {
                padding-top: 0px;
                font-size: 22px;
                margin-top: 0px;
                text-align: center;
            }
            #inbound-plugins .dl-button {
                text-align: center;

            }
            .inbound-button-holder {

            }

            #inbound-plugins .in-button {
                background: #94BA65;
                border: 1px solid rgba(0, 0, 0, 0.15);
                -webkit-border-radius: 2px;
                -moz-border-radius: 2px;
                border-radius: 2px;
                -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15),inset 1px 1px 1px rgba(255, 255, 255, 0.2);
                -moz-box-shadow: 0 2px 3px rgba(0,0,0,.15),inset 1px 1px 1px rgba(255,255,255,.2);
                box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15),inset 1px 1px 1px rgba(255, 255, 255, 0.2);
                color: #FFF;
                cursor: pointer;
                display: inline-block;
                font-family: inherit;
                font-size: 20px;
                font-weight: 500;
                text-align: center;
                padding: 8px 20px;
                text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.15);
                text-decoration: none;
            }
            #inbound-plugins .content-box.default p:first-child {
                margin-top: 10px;
            }
            #inbound-plugins .grid {
                float: left;
                min-height: 1px;
                padding-left: 10px;
                padding-right: 10px;}
            #inbound-plugins .content-box {
                background: #F2F2F2 ;
                border: 1px solid #EBEBEA;
                -webkit-box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.5);
                -moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
                box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.5);
                margin: 0px 0px 20px;
                padding: 20px 15px 20px;
                position: relative;
                text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
                min-height: 245px;
            }
            #in-sub-head {
                margin: 0px 135px 0px 0;
            }
            .grid.one-third p:last-of-type {
                padding-bottom: 24px;
            }
            .grid.one-third:nth-last-of-type(1) p:last-of-type  {
                padding-bottom: 0px;
            }
            #inbound-plugins .grid.one-third:nth-last-of-type(1) {
                padding-right: 0px;
            }
            #recommended-other-plugins {
                background: #F5F5F5;
                background-image: -webkit-gradient(linear,left bottom,left top,from(#F5F5F5),to(#F9F9F9));
                background-image: -webkit-linear-gradient(bottom,#F5F5F5,#F9F9F9);
                background-image: -moz-linear-gradient(bottom,#f5f5f5,#f9f9f9);
                background-image: -o-linear-gradient(bottom,#f5f5f5,#f9f9f9);
                background-image: linear-gradient(to top,#F5F5F5,#F9F9F9);
                border-color: #DFDFDF;
                -webkit-box-shadow: inset 0 1px 0 #FFF;
                box-shadow: inset 0 1px 0 #FFF;
                -webkit-border-radius: 3px;
                border-radius: 3px;
                margin-bottom: 20px;
                margin-top: 20px;
                padding: 0;
                border-width: 1px;
                border-style: solid;
                line-height: 1;
                padding-bottom: 10px;
            }
            #recommended-other-plugins img {
                padding-left: 10px;
                margin-top: 10px;
                width: 93%;
            }
            #recommended-other-plugins h4{
                margin-top: 0px;
                padding-top: 10px;
                padding-left: 10px;
                margin-bottom: 5px;
                font-size: 1.2em;

                text-decoration: underline;
            }
            #inbound-setting-links {
                list-style: disc;
                padding-left: 25px;
            }
            #inbound-contribute p {
                font-size: 31px; margin-top: 30px; line-height: 30px;margin-bottom: 15px;
            }
            #inbound-contribute a { color:#000; text-decoration: none; -webkit-transition:color .25s ease-in;
                -moz-transition:color .25s ease-in;
                -o-transition:color .25s ease-in;
                transition:color .25s ease-in;}
            #inbound-contribute a:hover { color:#21759B;
                -webkit-transition:color .25s ease-in;
                -moz-transition:color .25s ease-in;
                -o-transition:color .25s ease-in;
                transition:color .25s ease-in;  }
            /*]]>*/
        </style>
        <?php
    }
    /**
     * Render About InboundNow Nav
     *
     * @access public
     * @since 1.4
     * @return void
     */
    static function render_nav_menu() {
        $current_view = $_GET['page'];
        $page_array = array('lp-quick-start' => "Quick Start Guide",
            'about-inboundnow' => "About the Platform",
            'inbound-developers' => 'Developers & Designers'
        );
        echo '<h2 class="nav-tab-wrapper" style="margin-left: -40px; padding-left: 40px;">';
        foreach ($page_array as $key => $value) {
            $active = ($current_view === $key) ? 'nav-tab-active' : '';

            echo '<a class="nav-tab '.$active.'" href="'.esc_url( admin_url( add_query_arg( array( 'page' => $key ), 'index.php' ) ) ).'">';
            echo _e( $value, 'landing-pages');
            echo '</a>';

        }
        echo '</h2>';


    }
    /**
     * Render About Screen
     *
     * @access public
     * @since 1.4
     * @return void
     */
    public function quick_start_screen() {
        list( $display_version ) = explode( '-', LANDINGPAGES_CURRENT_VERSION );
        $Recommended = "";
        $cta_install = "";
        $leads_install = "";
        $rec_end = "";
        if (!is_plugin_active('cta/wordpress-cta.php')) {
            $Recommended = "<div id='recommended-other-plugins'><h4>Recommended Other Plugins</h4>";
            $cta_install = "<a href='".esc_url( admin_url( add_query_arg( array( 'tab' => 'search', 's' => 'wordpress+call+to+action' ), 'plugin-install.php' ) ) )."'><img src='".LANDINGPAGES_URLPATH."assets/images/cta-install.png'></a>";
            $rec_end = "</div>";

        }
        if (!is_plugin_active('leads/wordpress-leads.php')) {
            $Recommended = "<div id='recommended-other-plugins'><h4>Install Recommended Plugins</h4>";
            $leads_install = "<a href='".esc_url( admin_url( add_query_arg( array( 'tab' => 'search', 's' => 'WordPress%20Leads' ), 'plugin-install.php' ) ) )."'><img src='".LANDINGPAGES_URLPATH."assets/images/leads-install.png'></a>";
            $rec_end = "</div>";

        }
        ?>
        <style type="text/css">
            .about-text {
                font-size: 19px;
            }</style>
        <div class="wrap about-wrap" id="inbound-plugins">
            <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', 'landing-pages'), $display_version ); ?></h1>
            <div class="about-text" id="in-sub-head"><?php printf( __( 'Thank you for updating to the latest version! WordPress Landing Pages %s is help you convert more leads!', 'landing-pages'), $display_version ); ?></div>
            <div class="edd-badge"><?php printf( __( 'Version %s', 'landing-pages'), $display_version ); ?></div>

            <?php self::render_nav_menu();?>
            <div class="row">
                <div class='grid two-third'>
                    <div id="creating-landing-page">
                        <h4><?php _e( 'Create Your First Landing Page', 'landing-pages');?></h4>
                        <iframe width="640" height="360" src="//www.youtube.com/embed/-VuaBUc_yfk" frameborder="0" allowfullscreen></iframe>
                    </div>
                    <div id="creating-landing-page">
                        <h4><?php _e( 'How to Create Forms', 'landing-pages');?></h4>
                        <iframe width="640" height="360" src="//www.youtube.com/embed/Y4M_g9wkRXw" frameborder="0" allowfullscreen></iframe>
                    </div>
                    <div id="creating-landing-page">
                        <h4><?php _e( 'Creating Landing Pages with your Current Theme Template', 'landing-pages');?></h4>
                        <iframe width="640" height="360" src="//www.youtube.com/embed/pQzmx4ooL1M?list=UUCqiE-EcfDjaKGXSxtegcyg" frameborder="0" allowfullscreen></iframe>
                    </div>
                    <div id="creating-landing-page">
                        <!-- Creating Landing Page with current active Theme -->
                    </div>
                    <div id="creating-landing-page">

                    </div>



                </div>
                <div class='grid one-third'>

                    <?php echo $Recommended . $leads_install . $cta_install . $rec_end; ?>

                    <h4>Quick Links</h4>
                    <ul id="inbound-setting-links">
                        <li>
                            <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_global_settings' ), 'edit.php' ) ) ); ?>"><?php _e( 'Go to WordPress Landing Pages Settings', 'landing-pages'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_manage_templates' ), 'edit.php' ) ) ); ?>"><?php _e( 'Manage Your Landing Page Templates', 'landing-pages'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page' ), 'post-new.php' ) ) ); ?>"><?php _e( 'Create New Landing Page', 'landing-pages'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'inbound-forms-redirect' ), 'edit.php' ) ) ); ?>"><?php _e( 'Create Landing Page Forms', 'landing-pages'); ?></a>
                        </li>
                    </ul>
                </div>
            </div> <!-- end row -->




        </div>
        <?php
    }
    /**
     * Render About InboundNow Screen
     *
     * @access public
     * @since 1.4
     * @return void
     */
    public function about_inboundnow_screen() {
        list( $display_version ) = explode( '-', LANDINGPAGES_CURRENT_VERSION );
        $leads_active_class = "Download For Free";
        $lp_active_class = "Download For Free";
        $cta_active_class = "Download For Free";
        $active_class = "";
        $leadactive = "";
        $ctaactive = "";
        if (is_plugin_active('landing-pages/landing-pages.php')) {
            $lp_active_class = "Already Installed!";
            $lpactive = " plugin-active";
        }
        if (is_plugin_active('cta/wordpress-cta.php')) {
            $cta_active_class = "Already Installed!";
            $ctaactive = " plugin-active";
        }
        if (is_plugin_active('leads/wordpress-leads.php')) {
            $leads_active_class = "Already Installed!";
            $leadactive = " plugin-active";
        }

        ?>
        <style type="text/css">
            #inbound-plugins h4 {
                text-align: center;
                font-weight: 200;
                margin-bottom: 0px;
                margin-top: 0px;
            }
            .inbound-check {
                color: #58D37B;
                padding-right: 0px;
                padding-top: 5px;
                display: inline-block;
                clear: both;
                vertical-align: top;
            }
            #inbound-plugins .in-button.plugin-active {
                background: #B9B9B9;}
            .intro-p {
                display: inline-block;
                width: 96%;
                vertical-align: top;
                margin-top: 0px;
                padding-top: 0px;
                margin-right: -20px;
                line-height: 1.4em;
            }
            .circle-wrap {
                float: left;
                margin-right: 0px;
                width: 25px;
                height: 25px;
                margin-left: -5px;
                margin-right: 6px;
                margin-top: 5px;
                border-radius: 50%;
                background: linear-gradient(to bottom, #FFF 0%, #F7F7F7 100%);
                box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 -1px rgba(98, 98, 98, 0.3), 0 3px 7px -3px rgba(0, 0, 0, 0.4);
                color: #ADADAD;
                text-align: center;
                font-size: 18px;
                line-height: 17px;
                cursor: default;
                transition: color .3s ease;
            }
            .inbound-button-holder {
                text-align: center;
            }
        </style>

        <div class="wrap about-wrap">
            <h1><?php printf( __( 'Turbo Charge Your Marketing', 'landing-pages'), $display_version ); ?></h1>
            <div class="about-text" id="in-sub-head"><?php printf( __( 'WordPress Landing Pages is only one piece of Inbound Now\'s Marketing Platform', 'landing-pages'), $display_version ); ?></div>

            <?php self::render_nav_menu();?>


            <p class="about-description"><?php _e( 'To have an effective marketing strategy for your site you need to incorporate a comprehensive conversion strategy to capture visitors attention, get them clicking, and convert them on a web form or landing page.', 'landing-pages'); ?></p>

            <div class="row" id="inbound-plugins">
                <div class="grid one-third">
                    <div class="content-box default">
                        <h4><?php _e('Capture visitor attention with' , 'landing-pages'); ?></h4>

                        <h3 style="text-align: center;">WordPress Calls to Action</h3>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('<b>Convert more website traffic</b> with visually
                    appealing calls to action' , 'landing-pages'); ?></p>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('A/B test your marketing tactics and <b>improve your
                    sites conversion rates' , 'landing-pages'); ?></b></p>

                        <div class="inbound-button-holder">
                            <div class='dl-button'>
                                <a class="in-button<?php echo $ctaactive;?>" href=
                                "http://wordpress.org/plugins/cta/"><i class=
                                                                       "icon-download"></i><?php echo $cta_active_class;?></a>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="grid one-third">
                    <div class="content-box default">
                        <h4><?php _e( 'Convert website visitors with' , 'landing-pages'); ?></h4>

                        <h3>WordPress Landing Pages</h3>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('<b>Generate more web leads</b> with pages specifically designed for conversion' , 'landing-pages'); ?></p>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('A/B Test Landing Page effectiveness for <b>continual optimization & improvement</b>' , 'landing-pages'); ?></p>

                        <div class="inbound-button-holder">
                            <div class='dl-button'>
                                <a class="in-button<?php echo $lpactive;?>" href=
                                "http://wordpress.org/plugins/landing-pages/"><i class=
                                                                                 "icon-download"></i><?php echo $lp_active_class;?></a>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="grid one-third">
                    <div class="content-box default">
                        <h4><?php _e('Followup &amp; Close the deal with' , 'landing-pages'); ?></h4>

                        <h3>WordPress Leads</h3>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('Gather & leverage lead intelligence on
                    visitors to <b>close more deals</b>' , 'landing-pages'); ?></p>

                        <div class='circle-wrap'>
                            <span class="inbound-check">?</span>
                        </div>

                        <p class="intro-p"><?php _e('Track page views, site conversions,
                    demographics, geolocation, social media data and more.' , 'landing-pages'); ?></p>

                        <p class="intro-p"><?php _e('Know everything a lead has seen and done on your site before you contact them' , 'landing-pages'); ?></p>

                        <div class="inbound-button-holder">
                            <div class='dl-button'>
                                <a class="in-button<?php echo $leadactive;?>" href=
                                "http://wordpress.org/plugins/leads/"><i class=
                                                                         "icon-download"></i><?php echo $leads_active_class;?></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>
        <?php
    }

    /**
     * Render Developers/Designer Screen
     *
     * @access public
     * @since 1.4
     * @return void
     */
    public function dev_designer_screen() {
        list( $display_version ) = explode( '-', LANDINGPAGES_CURRENT_VERSION );
        ?>
        <style type="text/css">
            #create-templates {
                text-decoration: none;
                text-align: center;
                font-size: 38px;
                padding: 38px;
                vertical-align: top;
                padding-top: 24px;
                padding-bottom: 46px;
                color: #21759B;
            }</style>
        <div class="wrap about-wrap" id="inbound-plugins">
            <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', 'landing-pages'), $display_version ); ?></h1>
            <div class="about-text" id="in-sub-head"><?php printf( __( 'Learn How to Build Custom Templates & Add Value to Your Clients', 'landing-pages'), $display_version ); ?></div>
            <div class="edd-badge"><?php printf( __( 'Version %s', 'landing-pages'), $display_version ); ?></div>

            <?php self::render_nav_menu();?>
            <div class="row">
                <div class='grid two-third'>
                    <p class="about-description"><?php _e( 'WordPress Landing Pages was built as a platform to allow anyone to create and use their own landing page designs.', 'landing-pages'); ?></p>

                    <p class="about-description"><?php _e( 'Infuse your designs with powerful A/B testing functionality and give clients the ability to edit options on the backend with ease.', 'landing-pages'); ?></p>

                    <h1 style="text-decoration: none; text-align: center;"><a target="_blank" id="create-templates" class='button' href="http://docs.inboundnow.com/guide/creating-landing-page-templates/">Create Your Own Templates</a></h1>

                    <p class="about-description">WordPress Landing Pages is third party extendable. We have a variety of <a href="#documentation-pending">hooks</a>, actions, and filters to add your own functionality</p>
                </div>
                <div class='grid one-third' id="inbound-contribute" style="text-align: center;">
                    <p class="about-description" style=""><a href="https://github.com/inboundnow/landing-pages" target="_blank"><b>Contribute Code</b> + <span style="font-size:21px"><b>Submit Feature Requests</b></span></a></p>
                    <a href="https://github.com/inboundnow/landing-pages"  target="_blank"><img src="<?php echo LANDINGPAGES_URLPATH;?>assets/images/github-help.jpg"></a>
                </div>
            </div>
        </div>
        <?php
    }
    public function force_permalink_flush(){
        /* Bail if multisite */
        if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
            return;
        }
        /* check if flushed */
        $hasFlushed = get_option( 'inbound_permalink_flush' );
        if($hasFlushed) {
            return;
        } else {
            update_option( 'inbound_permalink_flush', true);
            $link = admin_url( 'options-permalink.php' );
            echo "<script type='text/javascript'>
                    jQuery(document).ready(function($) {
                        var link = '$link';
                        setTimeout(function() {
                            if(window.location.href !== link) {
                                jQuery('#flush_permalinks').attr('src', link);
                            }
                        }, 100);
                    });
                </script>";
            echo '<iframe style="display:none;" id="flush_permalinks"></iframe>';
        }
    }
    /**
     * Sends user to the Welcome page on first activation of LPs as well as each
     * time LPs is upgraded to a new version
     */
    public function welcome() {

        /* Bail if no activation redirect */
        if ( ! get_transient( '_landing_page_activation_redirect' ) ) {
            return;
        }

        /* Delete the redirect transient */
        delete_transient( '_landing_page_activation_redirect' );

        /* Bail if activating from network, or bulk */
        if ( is_network_admin() || isset( $_GET['activate-multi'] ) ){
            return;
        }

        wp_safe_redirect( admin_url( 'index.php?page=lp-quick-start' ) ); exit;
    }
}

new LandingPages_Welcome();
Inbound Pro Plugin - PHP Codex API documentation generated by ApiGen