<commit_before><?php
/*
   Plugin Name: Contactify
   Plugin URI:
   Description:
   Version: 1.0
   Author: <NAME>
   Author URI: http://stephan-smith.com
   License: GPL2
   */

class Contactify {

	/**
	 * Holds the values to be used in the fields callbacks
	 */
	public $options;
	

	public function __construct()
	{
		add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
		add_action( 'admin_init', array( $this, 'page_init' ) );
	}
	
	
	public function get_contactify() {
		return get_option( 'contactify' );
	}


	public $contactify_sections = array(
		array(
			'id'=>'contactify_general',
			'label' => 'General',
			'fields' => array(
				array(
					'name'=>'name',
					'label'=>'Name'
				),
				array(
					'name'=>'phone',
					'label'=>'Phone'
				),
				array(
					'name'=>'fax',
					'label'=>'Fax'
				),
				array(
					'name'=>'email',
					'label'=>'Email'
				)
			)
		),
		array(
			'id'=>'contactify_address',
			'label' => 'Location',
			'fields' => array(
				array(
					'name'=>'street_address',
					'label'=>'Street Address'
				),
				array(
					'name'=>'city',
					'label'=>'City'
				),
				array(
					'name'=>'state',
					'label'=>'State'
				),
				array(
					'name'=>'postal_code',
					'label'=>'Postal Code'
				),
				array(
					'name'=>'map',
					'label'=>'Map URL'
				)
			)
		),
		array(
			'id'=>'contactify_social',
			'label' => 'Social',
			'fields' => array(
				array(
					'name'=>'twitter',
					'label'=>'Twitter'
				),
				array(
					'name'=>'facebook',
					'label'=>'Facebook'
				),
				array(
					'name'=>'dribbble',
					'label'=>'Dribbble'
				),
				array(
					'name'=>'instagram',
					'label'=>'Instagram'
				)
			)
		)
	);

	public function add_plugin_page() {
		add_menu_page(
			'Contactify',
			'Contactify',
			'edit_theme_options',
			'contactify',
			array( $this, 'create_admin_page' ),
			'dashicons-location',
			'70.010101010101'
		);
	}


	public function create_admin_page() {<commit_msg>Added LinkedIn and Google Plus to social options<commit_after><?php
/*
   Plugin Name: Contactify
   Plugin URI:
   Description:
   Version: 1.0
   Author: <NAME>
   Author URI: http://stephan-smith.com
   License: GPL2
   */

class Contactify {

	/**
	 * Holds the values to be used in the fields callbacks
	 */
	public $options;
	

	public function __construct()
	{
		add_action( 'admin_menu', array( $this, 'add_plugin_page' ) );
		add_action( 'admin_init', array( $this, 'page_init' ) );
	}
	
	
	public function get_contactify() {
		return get_option( 'contactify' );
	}


	public $contactify_sections = array(
		array(
			'id'=>'contactify_general',
			'label' => 'General',
			'fields' => array(
				array(
					'name'=>'name',
					'label'=>'Name'
				),
				array(
					'name'=>'phone',
					'label'=>'Phone'
				),
				array(
					'name'=>'fax',
					'label'=>'Fax'
				),
				array(
					'name'=>'email',
					'label'=>'Email'
				)
			)
		),
		array(
			'id'=>'contactify_address',
			'label' => 'Location',
			'fields' => array(
				array(
					'name'=>'street_address',
					'label'=>'Street Address'
				),
				array(
					'name'=>'city',
					'label'=>'City'
				),
				array(
					'name'=>'state',
					'label'=>'State'
				),
				array(
					'name'=>'postal_code',
					'label'=>'Postal Code'
				),
				array(
					'name'=>'map',
					'label'=>'Map URL'
				)
			)
		),
		array(
			'id'=>'contactify_social',
			'label' => 'Social',
			'fields' => array(
				array(
					'name'=>'twitter',
					'label'=>'Twitter'
				),
				array(
					'name'=>'facebook',
					'label'=>'Facebook'
				),
				array(
					'name'=>'dribbble',
					'label'=>'Dribbble'
				),
				array(
					'name'=>'instagram',
					'label'=>'Instagram'
				),
				array(
					'name'=>'linkedin',
					'label'=>'LinkedIn'
				),
				array(
					'name'=>'googleplus',
					'label'=>'Google Plus'
				)
			)
		)
	);

	public function add_plugin_page() {
		add_menu_page(
			'Contactify',
			'Contactify',
			'edit_theme_options',
			'contactify',
			array( $this, 'create_admin_page' ),
			'dashicons-location',
			'70.010101010101'
		);
	}


	public function create_admin_page() {
{'fraction_non_alphanumeric': 0.1927710843373494, 'fraction_numerical': 0.00819277108433735, 'mean_word_length': 2.5877268798617115, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1248907', 'n_tokens_mistral': 1999, 'n_tokens_neox': 1503, 'n_words': 270}