This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Iptc { | |
private $meta; | |
const OBJECT_NAME = '2#005'; | |
const EDIT_STATUS = '2#007'; | |
const PRIORITY = '2#010'; | |
const CATEGORY = '2#015'; | |
const SUPPLEMENTAL_CATEGORY = '2#020'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (w) { | |
'use strict'; | |
const TIMEOUT = 2000; | |
const FID_QSA = '_fid='; | |
function removeFid() { | |
var url = w.location.search.toString(); | |
var fidPosition = url.indexOf(FID_QSA); | |
if (w.history && w.history.replaceState && fidPosition !== -1) { | |
var repairedUrl = url.substr(0, fidPosition) + url.substr(fidPosition + 10); | |
while ((repairedUrl.substr(repairedUrl.length-1) === '?') || (repairedUrl.substr(repairedUrl.length-1) === '&')) { |