コード例 #1
0
 public static function initialize_plugin_data()
 {
     $globals = EZP_CS_JSON_Entity_Base::get_by_type(self::TYPE);
     if ($globals == null) {
         // RSR TODO: error checking here to ensure data doesnt get out of sync
         $display = EZP_CS_Display_Entity::create_with_defaults();
         $display->save();
         $content = EZP_CS_Content_Entity::create_with_defaults();
         $content->save();
         $set = EZP_CS_Set_Entity::create($display->id, $content->id);
         $set->save();
         $config = EZP_CS_Config_Entity::create_with_defaults();
         $config->save();
         $global = new EZP_CS_Global_Entity();
         $global->set("active_set_index", $set->id);
         $global->set("config_index", $config->id);
         $global->save();
     }
 }
コード例 #2
0
 Easy Pie Coming Soon Plugin is distributed under the GNU General Public License, Version 3,
 June 2007. Copyright (C) 2007 Free Software Foundation, Inc., 51 Franklin
 St, Fifth Floor, Boston, MA 02110, USA

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
$global = EZP_CS_Global_Entity::get_instance();
$config = EZP_CS_Config_Entity::get_by_id($global->config_index);
?>

<script type="text/javascript" src='<?php 
echo EZP_CS_Utility::$PLUGIN_URL . "/js/page-subscribers.js?" . EZP_CS_Constants::PLUGIN_VERSION;
?>
'></script>

<style lang="text/css">
    .compound-setting { line-height:20px;}
    .narrow-input { width:66px;}
    .long-input { width: 345px;}

    #easy-pie-cs-postbox-inside { /* width: 550px;*/ }
    #easy-pie-cs-postbox-inside h3 { font-size: 16px }
コード例 #3
0
ファイル: class-ezp-cs.php プロジェクト: bqevin/wp-shopeasy
 public static function activate()
 {
     EZP_CS_Utility::debug("activate");
     $installed_ver = get_option(EZP_CS_Constants::PLUGIN_VERSION_OPTION_KEY);
     EZP_CS_JSON_Entity_Base::init_table();
     EZP_Contact_Entity::init_table();
     EZP_Email_Entity::init_table();
     EZP_CS_Subscriber_Entity::init_table();
     EZP_CS_Global_Entity::initialize_plugin_data();
     update_option(EZP_CS_Constants::PLUGIN_VERSION_OPTION_KEY, EZP_CS_Constants::PLUGIN_VERSION);
 }