*
* @category glmWordPressPlugin
* @package glmMembersDatabaseSocial
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release activate.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
+++ /dev/null
-<?php
-/**
- * GLM Member-DB WordPress Add-On Plugin
- * Data Class Social
- *
- * PHP version 5.3
- *
- * @category Data
- * @package GLM Member-DB
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release SVN: $Id: dataSocial.php,v 1.0 2011/01/25 19:31:47 cscott Exp $
- */
-
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * Data fields in this file are social only.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
-// Member Info Data required
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
-
-/**
- * GlmDataSocial class
- *
- * PHP version 5
- *
- * @category Data
- * @package GLM Member DB
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release SVN: $Id: dataMembers.php,v 1.0 2011/01/25 19:31:47 cscott
- * Exp $
- */
-class GlmDataSocial extends GlmDataAbstract
-{
-
- /**
- * WordPress Database Object
- *
- * @var $wpdb
- * @access public
- */
- public $wpdb;
- /**
- * Plugin Configuration Data
- *
- * @var $config
- * @access public
- */
- public $config;
- /**
- * Data Table Name
- *
- * @var $table
- * @access public
- */
- public $table;
- /**
- * Field definitions
- *
- * 'type' is type of field as defined by the application
- * text Regular text field
- * pointer Pointer to an entry in another table
- * 'filters' is the filter name for a particular filter ID in PHP filter
- * functions
- * See PHP filter_id()
- *
- * 'use' is when to use the field
- * l = List
- * g = Get
- * n = New
- * i = Insert
- * e = Edit
- * u = Update
- * d = Delete
- * a = All
- *
- * @var $ini
- * @access public
- */
- public $fields = false;
- /**
- * MemberInfo DB object
- *
- * @var $MemberInfo
- * @access public
- */
- public $MemberInfo;
-
- /**
- * Constructor
- *
- * @param object $d database connection
- * @param array $config Configuration array
- * @param bool $limitedEdit Flag to say indicate limited edit requested
- *
- * @return void
- * @access public
- */
- public function __construct($wpdb, $config, $limitedEdit = false)
- {
-
- // If this class is not being extended along with existing $wpdb and $config
- if (!$this->wpdb) {
-
- // Save WordPress Database object
- $this->wpdb = $wpdb;
-
- // Save plugin configuration object
- $this->config = $config;
-
- }
-
- /*
- * Table Name
- */
- $this->table = GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX . 'socialtable';
-
- /*
- * Table Data Fields
- */
-
- $this->fields = array (
-
- 'id' => array (
- 'field' => 'id',
- 'type' => 'integer',
- 'view_only' => true,
- 'use' => 'a'
- ),
-
- // Active flag
- 'active' => array (
- 'field' => 'active',
- 'type' => 'checkbox',
- 'default' => true,
- 'use' => 'a'
- )
-
- );
-
- }
-
- /*
- * Entry Post Processing Call-Back Method
- *
- * Perform post-processing for all result entries.
- *
- * In this case we're using it to append an array of category
- * data to each member result and also sort by member name.
- *
- * @param array $r Array of field result data for a single entry
- * @param string $a Action being performed (l, i, g, ...)
- *
- * @return object Class object
- *
- */
- public function entryPostProcessing($r, $a)
- {
- return $r;
- }
-
-}
-
-?>
\ No newline at end of file
--- /dev/null
+<?php
+/**
+ * GLM Member-DB WordPress Add-On Plugin
+ * Data Class Social
+ *
+ * PHP version 5.3
+ *
+ * @category Data
+ * @package GLM Member-DB
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release SVN: $Id: dataSocial.php,v 1.0 2011/01/25 19:31:47 cscott Exp $
+ */
+
+/**********************************************************************
+ * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
+ *
+ * Please change all references to social, Social, or SOCIAL to a name
+ * appropriate for your new Add-On.
+ *
+ * Data fields in this file are social only.
+ *
+ * Remove this message before using this file in production!
+ **********************************************************************/
+
+// Member Info Data required
+require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+
+/**
+ * GlmDataSocial class
+ *
+ * PHP version 5
+ *
+ * @category Data
+ * @package GLM Member DB
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release SVN: $Id: dataMembers.php,v 1.0 2011/01/25 19:31:47 cscott
+ * Exp $
+ */
+class GlmDataSocial extends GlmDataAbstract
+{
+
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+ /**
+ * Data Table Name
+ *
+ * @var $table
+ * @access public
+ */
+ public $table;
+ /**
+ * Field definitions
+ *
+ * 'type' is type of field as defined by the application
+ * text Regular text field
+ * pointer Pointer to an entry in another table
+ * 'filters' is the filter name for a particular filter ID in PHP filter
+ * functions
+ * See PHP filter_id()
+ *
+ * 'use' is when to use the field
+ * l = List
+ * g = Get
+ * n = New
+ * i = Insert
+ * e = Edit
+ * u = Update
+ * d = Delete
+ * a = All
+ *
+ * @var $ini
+ * @access public
+ */
+ public $fields = false;
+ /**
+ * MemberInfo DB object
+ *
+ * @var $MemberInfo
+ * @access public
+ */
+ public $MemberInfo;
+
+ /**
+ * Constructor
+ *
+ * @param object $d database connection
+ * @param array $config Configuration array
+ * @param bool $limitedEdit Flag to say indicate limited edit requested
+ *
+ * @return void
+ * @access public
+ */
+ public function __construct($wpdb, $config, $limitedEdit = false)
+ {
+
+ // If this class is not being extended along with existing $wpdb and $config
+ if (!$this->wpdb) {
+
+ // Save WordPress Database object
+ $this->wpdb = $wpdb;
+
+ // Save plugin configuration object
+ $this->config = $config;
+
+ }
+
+ /*
+ * Table Name
+ */
+ $this->table = GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX . 'socialtable';
+
+ /*
+ * Table Data Fields
+ */
+
+ $this->fields = array (
+
+ 'id' => array (
+ 'field' => 'id',
+ 'type' => 'integer',
+ 'view_only' => true,
+ 'use' => 'a'
+ ),
+
+ // Active flag
+ 'active' => array (
+ 'field' => 'active',
+ 'type' => 'checkbox',
+ 'default' => true,
+ 'use' => 'a'
+ )
+
+ );
+
+ }
+
+ /*
+ * Entry Post Processing Call-Back Method
+ *
+ * Perform post-processing for all result entries.
+ *
+ * In this case we're using it to append an array of category
+ * data to each member result and also sort by member name.
+ *
+ * @param array $r Array of field result data for a single entry
+ * @param string $a Action being performed (l, i, g, ...)
+ *
+ * @return object Class object
+ *
+ */
+ public function entryPostProcessing($r, $a)
+ {
+ return $r;
+ }
+
+}
+
+?>
\ No newline at end of file
--- /dev/null
+/*
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+*/
+/*
+ Created on : Feb 17, 2016, 2:33:15 PM
+ Author : laury
+*/
+
+.glm-member-db-social-icon {
+ border-radius: 20px;
+ margin-bottom: 5px;
+}
\ No newline at end of file
*
* @category glmWordPressPlugin
* @package glmMembersDatabaseSocial
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release admin.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
// URLs
define('GLM_MEMBERS_SOCIAL_SITE_BASE_URL', home_url('/') );
define('GLM_MEMBERS_SOCIAL_PLUGIN_URL', plugin_dir_url(__FILE__));
+define('GLM_MEMBERS_SOCIAL_PLUGIN_ASSETS_URL', GLM_MEMBERS_SOCIAL_PLUGIN_URL.'assets');
define('GLM_MEMBERS_SOCIAL_PLUGIN_ADMIN_URL', admin_url('admin.php'));
define('GLM_MEMBERS_SOCIAL_PLUGIN_BASE_URL', WP_PLUGIN_URL.'/'.GLM_MEMBERS_SOCIAL_PLUGIN_SLUG);
define('GLM_MEMBERS_SOCIAL_PLUGIN_CURRENT_URL', $urlParts['scheme'].'://'.$urlParts['host'].$pageUri[0]);
* Plugin Name: GLM Members Database Social
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 0.0.6
- * Author: Chuck Scott
+ * Version: 0.0.1
+ * Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
*/
*
* @category glmWordPressPluginChild
* @package glmMembersDatabaseSocialAddOn
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @version 1.1.1
*/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
--- /dev/null
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package glmMembersDatabase
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_member_social // extends GlmDataContacts
+{
+
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+ /**
+ * Contact Info
+ *
+ * @var $contactInfo
+ * @access public
+ */
+ public $contactInfo = false;
+ /**
+ * Member ID
+ *
+ * @var $memberID
+ * @access public
+ */
+ public $memberID = false;
+ /**
+ * Contact ID
+ *
+ * @var $contactID
+ * @access public
+ */
+ public $contactID = false;
+
+
+ /*
+ * Constructor
+ *
+ * This contructor performs the work for this model. This model returns
+ * an array containing the following.
+ *
+ * 'status'
+ *
+ * True if successfull and false if there was a fatal failure.
+ *
+ * 'view'
+ *
+ * A suggested view name that the contoller should use instead of the
+ * default view for this model or false to indicate that the default view
+ * should be used.
+ *
+ * 'data'
+ *
+ * Data that the model is returning for use in merging with the view to
+ * produce output.
+ *
+ * @wpdb object WordPress database object
+ *
+ * @return array Array containing status, suggested view, and any data
+ */
+ public function __construct ($wpdb, $config)
+ {
+
+ // Save WordPress Database object
+ $this->wpdb = $wpdb;
+
+ // Save plugin configuration object
+ $this->config = $config;
+
+ /*
+ * Run constructor for the Contacts data class
+ *
+ * Note, the third parameter is a flag that indicates to the Contacts
+ * data class that it should flag a group of fields as 'view_only'.
+ */
+// parent::__construct(false, false, true);
+
+
+ }
+
+ public function modelAction($actionData = false)
+ {
+
+ $displayData = 'This is the Social "Member" "Social" model talking to you from inside WordPress.';
+
+ // Compile template data
+ $templateData = array(
+ 'displayData' => $displayData,
+ 'assetsUrl' => GLM_MEMBERS_SOCIAL_PLUGIN_ASSETS_URL
+
+ );
+
+ // Return status, any suggested view, and any data to controller
+ return array(
+ 'status' => true,
+ 'modelRedirect' => false,
+ 'view' => 'admin/member/social.html',
+ 'data' => $templateData
+ );
+
+ }
+
+}
+++ /dev/null
-<?php
-/**
- * Gaslight Media Members Database
- * Admin Member User Profile
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
- * @link http://dev.gaslightmedia.com/
- */
-
-// Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
-
-class GlmMembersAdmin_members_social // extends GlmDataContacts
-{
-
- /**
- * WordPress Database Object
- *
- * @var $wpdb
- * @access public
- */
- public $wpdb;
- /**
- * Plugin Configuration Data
- *
- * @var $config
- * @access public
- */
- public $config;
- /**
- * Contact Info
- *
- * @var $contactInfo
- * @access public
- */
- public $contactInfo = false;
- /**
- * Member ID
- *
- * @var $memberID
- * @access public
- */
- public $memberID = false;
- /**
- * Contact ID
- *
- * @var $contactID
- * @access public
- */
- public $contactID = false;
-
-
- /*
- * Constructor
- *
- * This contructor performs the work for this model. This model returns
- * an array containing the following.
- *
- * 'status'
- *
- * True if successfull and false if there was a fatal failure.
- *
- * 'view'
- *
- * A suggested view name that the contoller should use instead of the
- * default view for this model or false to indicate that the default view
- * should be used.
- *
- * 'data'
- *
- * Data that the model is returning for use in merging with the view to
- * produce output.
- *
- * @wpdb object WordPress database object
- *
- * @return array Array containing status, suggested view, and any data
- */
- public function __construct ($wpdb, $config)
- {
-
- // Save WordPress Database object
- $this->wpdb = $wpdb;
-
- // Save plugin configuration object
- $this->config = $config;
-
- /*
- * Run constructor for the Contacts data class
- *
- * Note, the third parameter is a flag that indicates to the Contacts
- * data class that it should flag a group of fields as 'view_only'.
- */
-// parent::__construct(false, false, true);
-
-
- }
-
- public function modelAction($actionData = false)
- {
-
- $displayData = 'This is the Social "Members" "Social" model talking to you from inside WordPress.';
-
- // Compile template data
- $templateData = array(
- 'displayData' => $displayData
- );
-
- // Return status, any suggested view, and any data to controller
- return array(
- 'status' => true,
- 'modelRedirect' => false,
- 'view' => 'admin/members/social.html',
- 'data' => $templateData
- );
-
- }
-
-
-}
+++ /dev/null
-<?php
-/**
- * Gaslight Media Members Database
- * Admin Member User Profile
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
- * @link http://dev.gaslightmedia.com/
- */
-
-// Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
-
-class GlmMembersAdmin_social_index // extends GlmDataContacts
-{
-
- /**
- * WordPress Database Object
- *
- * @var $wpdb
- * @access public
- */
- public $wpdb;
- /**
- * Plugin Configuration Data
- *
- * @var $config
- * @access public
- */
- public $config;
- /**
- * Contact Info
- *
- * @var $contactInfo
- * @access public
- */
- public $contactInfo = false;
- /**
- * Member ID
- *
- * @var $memberID
- * @access public
- */
- public $memberID = false;
- /**
- * Contact ID
- *
- * @var $contactID
- * @access public
- */
- public $contactID = false;
-
-
- /*
- * Constructor
- *
- * This contructor performs the work for this model. This model returns
- * an array containing the following.
- *
- * 'status'
- *
- * True if successfull and false if there was a fatal failure.
- *
- * 'view'
- *
- * A suggested view name that the contoller should use instead of the
- * default view for this model or false to indicate that the default view
- * should be used.
- *
- * 'data'
- *
- * Data that the model is returning for use in merging with the view to
- * produce output.
- *
- * @wpdb object WordPress database object
- *
- * @return array Array containing status, suggested view, and any data
- */
- public function __construct ($wpdb, $config)
- {
-
- // Save WordPress Database object
- $this->wpdb = $wpdb;
-
- // Save plugin configuration object
- $this->config = $config;
-
- /*
- * Run constructor for the Contacts data class
- *
- * Note, the third parameter is a flag that indicates to the Contacts
- * data class that it should flag a group of fields as 'view_only'.
- */
-// parent::__construct(false, false, true);
-
-
- }
-
- public function modelAction($actionData = false)
- {
-
- $displayData = 'Hello, World! This is the Social Add-On "social" model talking to you from inside WordPress.';
-
- // Compile template data
- $templateData = array(
- 'displayData' => $displayData
- );
-
- // Return status, any suggested view, and any data to controller
- return array(
- 'status' => true,
- 'modelRedirect' => false,
- 'view' => 'admin/social/index.html',
- 'data' => $templateData
- );
-
- }
-
-
-}
+++ /dev/null
-<?php
-/**
- * Gaslight Media Members Database
- * Admin Member User Profile
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
- * @link http://dev.gaslightmedia.com/
- */
-
-// Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
-
-class GlmMembersAdmin_social_more // extends GlmDataContacts
-{
-
- /**
- * WordPress Database Object
- *
- * @var $wpdb
- * @access public
- */
- public $wpdb;
- /**
- * Plugin Configuration Data
- *
- * @var $config
- * @access public
- */
- public $config;
- /**
- * Contact Info
- *
- * @var $contactInfo
- * @access public
- */
- public $contactInfo = false;
- /**
- * Member ID
- *
- * @var $memberID
- * @access public
- */
- public $memberID = false;
- /**
- * Contact ID
- *
- * @var $contactID
- * @access public
- */
- public $contactID = false;
-
-
- /*
- * Constructor
- *
- * This contructor performs the work for this model. This model returns
- * an array containing the following.
- *
- * 'status'
- *
- * True if successfull and false if there was a fatal failure.
- *
- * 'view'
- *
- * A suggested view name that the contoller should use instead of the
- * default view for this model or false to indicate that the default view
- * should be used.
- *
- * 'data'
- *
- * Data that the model is returning for use in merging with the view to
- * produce output.
- *
- * @wpdb object WordPress database object
- *
- * @return array Array containing status, suggested view, and any data
- */
- public function __construct ($wpdb, $config)
- {
-
- // Save WordPress Database object
- $this->wpdb = $wpdb;
-
- // Save plugin configuration object
- $this->config = $config;
-
- /*
- * Run constructor for the Contacts data class
- *
- * Note, the third parameter is a flag that indicates to the Contacts
- * data class that it should flag a group of fields as 'view_only'.
- */
-// parent::__construct(false, false, true);
-
-
- }
-
- public function modelAction($actionData = false)
- {
-
- $displayData = 'Welcome to more information!<br>This is the Social Add-On "social" model with action "more" talking to you from inside WordPress.';
-
- // Compile template data
- $templateData = array(
- 'displayData' => $displayData
- );
-
- // Return status, any suggested view, and any data to controller
- return array(
- 'status' => true,
- 'modelRedirect' => false,
- 'view' => 'admin/social/more.html',
- 'data' => $templateData
- );
-
- }
-
-
-}
--- /dev/null
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package glmMembersDatabase
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_social_index // extends GlmDataContacts
+{
+
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+ /**
+ * Contact Info
+ *
+ * @var $contactInfo
+ * @access public
+ */
+ public $contactInfo = false;
+ /**
+ * Member ID
+ *
+ * @var $memberID
+ * @access public
+ */
+ public $memberID = false;
+ /**
+ * Contact ID
+ *
+ * @var $contactID
+ * @access public
+ */
+ public $contactID = false;
+
+
+ /*
+ * Constructor
+ *
+ * This contructor performs the work for this model. This model returns
+ * an array containing the following.
+ *
+ * 'status'
+ *
+ * True if successfull and false if there was a fatal failure.
+ *
+ * 'view'
+ *
+ * A suggested view name that the contoller should use instead of the
+ * default view for this model or false to indicate that the default view
+ * should be used.
+ *
+ * 'data'
+ *
+ * Data that the model is returning for use in merging with the view to
+ * produce output.
+ *
+ * @wpdb object WordPress database object
+ *
+ * @return array Array containing status, suggested view, and any data
+ */
+ public function __construct ($wpdb, $config)
+ {
+
+ // Save WordPress Database object
+ $this->wpdb = $wpdb;
+
+ // Save plugin configuration object
+ $this->config = $config;
+
+ /*
+ * Run constructor for the Contacts data class
+ *
+ * Note, the third parameter is a flag that indicates to the Contacts
+ * data class that it should flag a group of fields as 'view_only'.
+ */
+// parent::__construct(false, false, true);
+
+
+ }
+
+ public function modelAction($actionData = false)
+ {
+
+ $displayData = 'Hello, World! This is the Social Add-On "social" model talking to you from inside WordPress.';
+
+ // Compile template data
+ $templateData = array(
+ 'displayData' => $displayData
+ );
+
+ // Return status, any suggested view, and any data to controller
+ return array(
+ 'status' => true,
+ 'modelRedirect' => false,
+ 'view' => 'admin/social/index.html',
+ 'data' => $templateData
+ );
+
+ }
+
+
+}
--- /dev/null
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package glmMembersDatabase
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_social_more // extends GlmDataContacts
+{
+
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+ /**
+ * Contact Info
+ *
+ * @var $contactInfo
+ * @access public
+ */
+ public $contactInfo = false;
+ /**
+ * Member ID
+ *
+ * @var $memberID
+ * @access public
+ */
+ public $memberID = false;
+ /**
+ * Contact ID
+ *
+ * @var $contactID
+ * @access public
+ */
+ public $contactID = false;
+
+
+ /*
+ * Constructor
+ *
+ * This contructor performs the work for this model. This model returns
+ * an array containing the following.
+ *
+ * 'status'
+ *
+ * True if successfull and false if there was a fatal failure.
+ *
+ * 'view'
+ *
+ * A suggested view name that the contoller should use instead of the
+ * default view for this model or false to indicate that the default view
+ * should be used.
+ *
+ * 'data'
+ *
+ * Data that the model is returning for use in merging with the view to
+ * produce output.
+ *
+ * @wpdb object WordPress database object
+ *
+ * @return array Array containing status, suggested view, and any data
+ */
+ public function __construct ($wpdb, $config)
+ {
+
+ // Save WordPress Database object
+ $this->wpdb = $wpdb;
+
+ // Save plugin configuration object
+ $this->config = $config;
+
+ /*
+ * Run constructor for the Contacts data class
+ *
+ * Note, the third parameter is a flag that indicates to the Contacts
+ * data class that it should flag a group of fields as 'view_only'.
+ */
+// parent::__construct(false, false, true);
+
+
+ }
+
+ public function modelAction($actionData = false)
+ {
+
+ $displayData = 'Welcome to more information!<br>This is the Social Add-On "social" model with action "more" talking to you from inside WordPress.';
+
+ // Compile template data
+ $templateData = array(
+ 'displayData' => $displayData
+ );
+
+ // Return status, any suggested view, and any data to controller
+ return array(
+ 'status' => true,
+ 'modelRedirect' => false,
+ 'view' => 'admin/social/more.html',
+ 'data' => $templateData
+ );
+
+ }
+
+
+}
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release adminHooks.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release admin.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release admin.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
*/
-add_filter('glm-member-db-add-tab-for-members',
+add_filter('glm-member-db-add-tab-for-member',
function($addOnTabs) {
$newTabs = array(
array(
'text' => 'Social',
- 'menu' => 'members',
+ 'menu' => 'member',
'action' => 'social'
)
);
$addOnTabs = array_merge($addOnTabs, $newTabs);
return $addOnTabs;
}
-);
-
+);
\ No newline at end of file
+++ /dev/null
--- Gaslight Media Members Database - Social
--- File Created: 12/02/15 15:27:15
--- Database Version: 0.0.1
--- Database Creation Script
---
--- This file is called to create a new set of tables for this
--- add-on for the most receint database version for this add-on.
---
--- There should only be one such file in this directory
---
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashes
-
-
--- **********************************************************************
--- NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
---
--- Please change all references to social, Social, or SOCIAL to a name
--- appropriate for your new Add-On.
---
--- Tables and queries in this file are social only.
---
--- Remove this message before using this file in production!
--- **********************************************************************/
-
-
--- Social Management Settings
-CREATE TABLE {prefix}management (
- id INT NOT NULL AUTO_INCREMENT,
- canonical_social_page TINYTEXT NULL, -- Canonical page slug for detail
- PRIMARY KEY (id)
-);
-
-----
-
--- Set default social management entry
-INSERT INTO {prefix}management
- ( id, canonical_social_page )
- VALUES
- ( 1, 'social data' )
-;
-
+++ /dev/null
-<?php
-/**
- * Gaslight Media Members Database
- * GLM Members Social DB Versions
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
- * @license http://www.gaslightmedia.com Gaslightmedia
- * @release dbVersions.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
- * @link http://dev.gaslightmedia.com/
- */
-
-
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * This file lists all versions of the database tables for this add-on.
- * The last entry in the array below should be for the most recent
- * version and should match the "create_database_V..." file in this
- * directory.
- *
- * NOTE: When first creating a new add-on with database tables, there
- * should only be one line in the array below and there should be no
- * "update_database..." files in this directory.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
-
-$glmMembersSocialDbVersions = array(
- '0.0.1' => array('version' => '0.0.1', 'tables' => 2),
- '0.0.2' => array('version' => '0.0.2', 'tables' => 3)
-);
-
+++ /dev/null
-<?php
-/*
- * Gaslight Media Members Database - Social Add-On
- *
- * Database Update Script for version 0.0.2
- */
-
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * This is a social database update process. There should be an SQL
- * script for each update in this directory. This php file is optionsl
- * and can be used to perform more complex data updates.
- *
- * If this file exists, it is called after the matching SQL script has
- * been run.
- *
- * ******** THE CODE BELOW IS STICTLY A SOCIAL ********
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
-/*
- * Update social records to build social_slug field data from title
- */
-
-// Get all social records
-$socialRecords = $this->wpdb->get_results('SELECT id, title FROM '.GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX.'socials;', ARRAY_A);
-
-// If there's any social records
-if ($socialRecords && count($socialRecords) > 0) {
-
- // For each social record
- foreach ($socialRecords as $p) {
-
- // Create a slug from the title
- $slug = sanitize_title($p['title']).'-'.$p['id'];
-
- // Store this value back into the record
- $this->wpdb->update(
- GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX.'socials',
- array(
- 'social_slug' => $slug
- ),
- array( 'id' => $p['id'] ),
- array( '%s' ),
- array( '%d')
- );
- }
-
-}
+++ /dev/null
--- Gaslight Media Members Database
--- File Created: 12/09/14 15:27:15
--- Database Version: 0.0.2
--- Database Update From Previous Version Script
---
--- To permit each query below to be executed separately,
--- all queries must be separated by a line with four dashses
-
--- Package Management Settings
-CREATE TABLE {prefix}management (
- id INT NOT NULL AUTO_INCREMENT,
- canonical_package_page TINYTEXT NULL, -- Canonical page slug for package detail
- PRIMARY KEY (id)
-);
-
-----
-
--- Set default package management entry
-INSERT INTO {prefix}management
- ( id, canonical_package_page )
- VALUES
- ( 1, 'package-detail' )
-;
-
-----
-
-ALTER TABLE {prefix}packages ADD COLUMN package_slug TINYTEXT;
-
-
-
--- /dev/null
+-- Gaslight Media Members Database - Social
+-- File Created: 12/02/15 15:27:15
+-- Database Version: 0.0.1
+-- Database Creation Script
+--
+-- This file is called to create a new set of tables for this
+-- add-on for the most receint database version for this add-on.
+--
+-- There should only be one such file in this directory
+--
+-- To permit each query below to be executed separately,
+-- all queries must be separated by a line with four dashes
+
+
+-- Social Management Settings
+CREATE TABLE {prefix}management (
+ id INT NOT NULL AUTO_INCREMENT,
+ canonical_social_page TINYTEXT NULL, -- Canonical page slug for detail
+ PRIMARY KEY (id)
+);
+
+----
+
+-- Set default social management entry
+INSERT INTO {prefix}management
+ ( id, canonical_social_page )
+ VALUES
+ ( 1, 'social data' )
+;
+
+----
+
+CREATE TABLE {prefix}social (
+ id INT NOT NULL AUTO_INCREMENT,
+ blogger_url TEXT NULL,
+ youtube_url TEXT NULL,
+ facebook_url TEXT NULL,
+ twitter_url TEXT NULL,
+ imgur_url TEXT NULL,
+ flickr_url TEXT NULL,
+ tumblr_url TEXT NULL,
+ instagram_url TEXT NULL,
+ linkedin_url TEXT NULL,
+ googleplus_url TEXT NULL,
+ flickr_url TEXT NULL,
+ PRIMARY KEY (id)
+);
+
+----
+
+CREATE TABLE {prefix}SOCIALTEST (
+ id INT NOT NULL AUTO_INCREMENT,
+ active BOOLEAN NULL, -- Package is active
+ title TINYTEXT NULL, -- Title of package
+ package_slug TINYTEXT NULL, -- Package name slug for canonical URLs (lowercase, "-" for spaces, no punctuation)
+ descr TEXT NULL, -- Description of package
+ short_descr TINYTEXT NULL, -- Short description of package
+ image TINYTEXT NULL, -- Package image
+ start_date TIMESTAMP NULL, -- Date display of this package starts
+ end_date TIMESTAMP NULL, -- Date display of this package ends (last date of display)
+ expire_date TIMESTAMP NULL, -- Date package expires (first date it's expired)
+ position INT NULL, -- Display order position
+ pricing TINYTEXT NULL, -- Pricing, descriptive
+ ref_type INT NULL, -- Type of entity this package is associated with
+ ref_dest INT NULL, -- Pointer to the specific entity
+ PRIMARY KEY (id),
+);
--- /dev/null
+<?php
+/**
+ * Gaslight Media Members Database
+ * GLM Members Social DB Versions
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package glmMembersDatabase
+ * @author Gaslight Media <dev@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @release dbVersions.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link http://dev.gaslightmedia.com/
+ */
+
+
+/**********************************************************************
+ * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
+ *
+ * Please change all references to social, Social, or SOCIAL to a name
+ * appropriate for your new Add-On.
+ *
+ * This file lists all versions of the database tables for this add-on.
+ * The last entry in the array below should be for the most recent
+ * version and should match the "create_database_V..." file in this
+ * directory.
+ *
+ * NOTE: When first creating a new add-on with database tables, there
+ * should only be one line in the array below and there should be no
+ * "update_database..." files in this directory.
+ *
+ * Remove this message before using this file in production!
+ **********************************************************************/
+
+
+$glmMembersSocialDbVersions = array(
+ '0.0.1' => array('version' => '0.0.1', 'tables' => 3)
+);
+
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release frontHooks.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release permissions.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release rolesAndPermissions.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release shortcodes.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
*
* @category glmWordPressPlugin
* @package glmMembersDatabase
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release admin.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
$glmMembersSocialAddOnValidActions = array(
'adminActions' => array(
- 'members' => array(
+ 'member' => array(
'social' => GLM_MEMBERS_SOCIAL_PLUGIN_SLUG,
),
'social' => array(
*
* @category glmWordPressPlugin
* @package glmMembersDatabaseSocial
- * @author Chuck Scott <cscott@gaslightmedia.com>
+ * @author Gaslight Media <dev@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
* @release admin.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
* @link http://dev.gaslightmedia.com/
--- /dev/null
+{include file='admin/members/header.html'}
+
+ <h3>Members Social Tab</h3>
+ <p>{$displayData}</p>
+<table class="glm-admin-table">
+<!-- foreach $socials as $social
+{foreach from=$socials item=social}
+<tr><th><div id="glm-member-db-admin-social-{$social->name|lower}" title="{$social->name}" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -5px -5px;height:{$social->xpos};width:{$social->ypos);display:block;"></div>{$social->name}</th><td><input type="text" placeholder="{$social->name} url" name="{$social->name}" class="glm-form-text-input"></td></tr>
+{/foreach}
+--->
+<tr><th><div id="glm-member-db-admin-social-facebook" title="facebook" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -5px -5px;height:33px;width:33px;display:block;"></div>Facebook</th><td><input type="text" placeholder="Facebook URL" name="facebook" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-twitter" title="twitter" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -44px -5px;height:33px;width:33px;display:block;"></div>Twitter</th><td><input type="text" name="Twitter" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-pinterest" title="pinterest" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -84px -5px;height:33px;width:33px;display:block;"></div>Pinterest</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-googleplus" title="googleplus" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -124px -5px;height:33px;width:33px;display:block;"></div>Google Plus</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-digg" title="digg" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -163px -5px;height:33px;width:33px;display:block;"></div>Digg</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-linkedin" title="linkedin" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -203px -5px;height:33px;width:33px;display:block;"></div>LinkedIn</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-instagram" title="instagram" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -242px -5px;height:33px;width:33px;display:block;"></div>Instagram</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-rss" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -282px -5px;height:33px;width:33px;display:block;"></div>RSS</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-youtube" title="youtube" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -322px -5px;height:33px;width:33px;display:block;"></div>YouTube</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-wordpress" title="wordpress" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -5px -44px;height:33px;width:33px;display:block;"></div>Wordpress</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-flickr" title="flickr" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -44px -44px;height:33px;width:33px;display:block;"></div>Flickr</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-pinterest" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -84px -45px;height:33px;width:33px;display:block;"></div>Pinterest2</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-blog" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -124px -45px;height:33px;width:33px;display:block;"></div>Blog</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-wordpress" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -163px -45px;height:33px;width:33px;display:block;"></div>Wordpress2</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-X" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -203px -45px;height:33px;width:33px;display:block;"></div>?name?</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-X" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -242px -45px;height:33px;width:33px;display:block;"></div>?name?</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-photobucket" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -282px -45px;height:33px;width:33px;display:block;"></div>Photobucket</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+<tr><th><div id="glm-member-db-admin-social-blg2" title="" class="glm-member-db-social-icon" style="background: url('{$assetsUrl}/social-few-full-sprite.jpg') repeat scroll -322px -46px;height:33px;width:33px;display:block;"></div>Blog2</th><td><input type="text" name="name" class="glm-form-text-input"></td></tr>
+</table>
+{include file='admin/footer.html'}
\ No newline at end of file
+++ /dev/null
-{include file='admin/members/header.html'}
-
- <h3>Members Social Tab</h3>
- <p>{$displayData}</p>
-
-{include file='admin/footer.html'}
\ No newline at end of file
+++ /dev/null
-<div class="wrap">
- <div id="glm-admin-content-container">
- <h3>Social Model</h3>
- <p>{$displayData}</p>
- <a href="{$thisURL}?page={$thisPage}&glm_action=more">Click me to see more!</a>
- </div>
-</div>
\ No newline at end of file
+++ /dev/null
-<div class="wrap">
- <div id="glm-admin-content-container">
- <h3>Social Model - More Information</h3>
- <p>{$displayData}</p>
- </div>
-</div>
\ No newline at end of file
--- /dev/null
+<div class="wrap">
+ <div id="glm-admin-content-container">
+ <h3>Social Model</h3>
+ <p>{$displayData}</p>
+ <a href="{$thisURL}?page={$thisPage}&glm_action=more">Click me to see more!</a>
+ </div>
+</div>
\ No newline at end of file
--- /dev/null
+<div class="wrap">
+ <div id="glm-admin-content-container">
+ <h3>Social Model - More Information</h3>
+ <p>{$displayData}</p>
+ </div>
+</div>
\ No newline at end of file