citation-pro

Built in method for easiliy citing your content with footnotes.

https://github.com/norcross/citation-pro

Science Score: 18.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (2.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Built in method for easiliy citing your content with footnotes.

Basic Info
  • Host: GitHub
  • Owner: norcross
  • License: mit
  • Language: PHP
  • Default Branch: master
  • Size: 34.2 KB
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Created almost 12 years ago · Last pushed about 5 years ago
Metadata Files
Readme Changelog License Citation

README.md

Citation Pro

Contributors

About

Shortcode for adding MLA formatted citations inside posts. Creates citation mark inside the content, and then adds an ordered list below the content with each footnote. Includes both TinyMCE and Quicktags button.

Changelog

See CHANGES.md.

License

MIT License

Pull requests are very much welcome and encouraged.

Owner

  • Name: Norcross
  • Login: norcross
  • Kind: user
  • Location: Tampa, FL
  • Company: NASA

Look, we’ve all made poor choices in our lives. For me, it was realizing that I could make computers talk to each other.

Citation (citation-pro.php)

<?php
/**
 * Plugin Name: Citation Pro
 * Plugin URI: http://andrewnorcross.com/plugins/
 * Description: Built in method for easiliy citing your content.
 * Author: Andrew Norcross
 * Author URI: http://andrewnorcross.com/
 * Version: 0.0.3
 * Text Domain: citation-pro
 * Requires WP: 4.0
 * Domain Path: languages
 * GitHub Plugin URI: https://github.com/norcross/citation-pro
 */

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Andrew Norcross
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

// Plugin file base directory constant.
if ( ! defined( 'CITEPRO_BASE ' ) ) {
	define( 'CITEPRO_BASE', plugin_basename( __FILE__ ) );
}

// Plugin directory constant.
if ( ! defined( 'CITEPRO_DIR' ) ) {
	define( 'CITEPRO_DIR', plugin_dir_path( __FILE__ ) );
}

// Plugin folder URL.
if ( ! defined( 'CITEPRO_URL' ) ) {
	define( 'CITEPRO_URL', plugin_dir_url( __FILE__ ) );
}

// Plugin version constant.
if ( ! defined( 'CITEPRO_VERS' ) ) {
	define( 'CITEPRO_VERS', '0.0.3' );
}

/**
 * Call our class.
 */
class CitationPro_Base
{
	/**
	 * Static property to hold our singleton instance.
	 * @var $instance
	 */
	static $instance = false;

	/**
	 * This is our constructor. There are many like it, but this one is mine.
	 */
	private function __construct() {
		add_action( 'plugins_loaded',               array( $this, 'textdomain'          )           );
		add_action( 'plugins_loaded',               array( $this, 'load_files'          )           );
	}

	/**
	 * If an instance exists, this returns it.  If not, it creates one and
	 * retuns it.
	 *
	 * @return $instance
	 */
	public static function getInstance() {

		if ( ! self::$instance ) {
			self::$instance = new self;
		}

		return self::$instance;
	}

	/**
	 * Load our textdomain for localization.
	 *
	 * @return void
	 */
	public function textdomain() {
		load_plugin_textdomain( 'citation-pro', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
	}

	/**
	 * Load our actual files in the places they belong.
	 *
	 * @return void
	 */
	public function load_files() {

		// Load our front-end display functions.
		if ( ! is_admin() ) {
			require_once( CITEPRO_DIR . 'lib/front.php' );
		}

		// Load our admin-related functions.
		if ( is_admin() ) {
			require_once( CITEPRO_DIR . 'lib/admin.php' );
		}

		// Load our helper file which is used in both.
		require_once( CITEPRO_DIR . 'lib/helper.php' );
	}

	// End our class.
}

// Instantiate our class.
$CitationPro_Base = CitationPro_Base::getInstance();

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels