Lines:
1 to 97 of 97
<?php /** Plugin Name: oik-squeeze Depends: oik base plugin, oik fields Plugin URI: https://www.oik-plugins.com/oik-plugins/oik-squeeze Description: squeeze pages, opted-in pages and contacts Version: 1.2.0 Author: bobbingwide Author URI: https://www.oik-plugins.com/author/bobbingwide License: GPL2 Text domain: oik-squeeze Copyright 2012-2021 Bobbing Wide (email : herb@bobbingwide.com ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can use any other version of the GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The license for this software can likely be found here: http://www.gnu.org/licenses/gpl-2.0.html */ oiksp_loaded(); /* function oiksp_loaded() – Function to invoke when oik-squeeze is loaded */ /* function oiksp_init() – Implement "oik_fields_loaded" action for oik-squeeze */ /* function oiksp_squeeze_block_block_init */ /* $editor_css = 'build/index.css'; wp_register_style( 'oiksp-squeeze-block-block-editor', plugins_url( $editor_css, __FILE__ ), array(), filemtime( "$dir/$editor_css" ) ); $style_css = 'build/style-index.css'; wp_register_style( 'oiksp-squeeze-block-block', plugins_url( $style_css, __FILE__ ), array(), filemtime( "$dir/$style_css" ) ); register_block_type( 'oiksp/squeeze', array( 'editor_script' => 'oiksp-squeeze-block-block-editor', 'editor_style' => 'oiksp-squeeze-block-block-editor', 'style' => 'oiksp-squeeze-block-block', 'render_callback'=>'oiksp_squeeze_block_dynamic_block', 'attributes' => [ 'optedInId' => [ 'type' => 'string'], 'className' => [ 'type' => 'string'], 'text' => ['type' => 'string'], 'excerpt' => [ 'type' => 'string'], ] ) ); */ /* function oiksp_squeeze_block_load_script_textdomain_relative_path */ /* function oiksp_email_body_label() – Return email body label, showing an example */ /* function oiksp_register_optedinpage() – Register the "opted_in" custom post type */ /* function oiksp_statuses() – Return a list of "Contacts" statuses */ /* function oiksp_register_contacts() – "oik_contact" custom post type */ /* function oiksp_admin_menu() – Implement "oik_admin_menu" for oik-squeeze */ /* function oiksp_the_content() – Implement "the_content" filter for the "opted_in" custom post type */ /* function bw_form_field__oiksp_message() – Format the "_oiksp_message" field – setting a default if required */ /* function oik_squeeze_activation() – Implement "admin_notices" filter for oik-squeeze */ /* function oiksp_ajax_oiksp_form() – Implement "wp_ajax_oiksp_form" action to display the squeeze page opt-in form */ /* function oiksc_ajax_nopriv_oiksp_form() – Implement "wp_ajax_nopriv_oiksp_form" action to display the squeeze page opt-in form for visitors */ /* function oiksp_signup_header() – Implement "signup_header" action for oik-squeeze */ /* function oiksp_squeeze_block_dynamic_block */