private function Get_Options_Page_Url($parameters = array()) { $url = Add_Query_Arg(array('page' => __CLASS__), Admin_Url('options-general.php')); if (Is_Array($parameters) && !empty($parameters)) { $url = Add_Query_Arg($parameters, $url); } return $url; }
static function getOptionsPageUrl($parameters = array()) { $url = Add_Query_Arg(array('page' => self::$page_slug), Admin_Url('options-general.php')); if (Is_Array($parameters) && !empty($parameters)) { $url = Add_Query_Arg($parameters, $url); } return $url; }
static function getArchiveLink($filter = '', $taxonomy_term = Null) { $permalink_structure = Get_Option('permalink_structure'); # Get base url if ($taxonomy_term) { $base_url = Get_Term_Link($taxonomy_term); } else { $base_url = Get_Post_Type_Archive_Link(self::$post_type_name); } if (!empty($permalink_structure)) { return User_TrailingSlashIt(SPrintF('%1$s/filter:%2$s', RTrim($base_url, '/'), RawURLEncode($filter))); } else { return Add_Query_Arg(array('filter' => RawURLEncode($filter)), $base_url); } }
<?php } ?> <?php foreach ($images_query->posts as $image) { $attachment_counter++; $image->parent = Get_Post($image->post_parent); if (Is_Object($image->parent)) { $image->parent->title = Get_The_Title($image->parent->ID); $image->parent->link = Get_Permalink($image->parent->ID); $image->parent->type = Get_Post_Type_Object($image->parent->post_type); } else { $image->parent = False; } $image->move_link = Add_Query_Arg(array('move_attachment' => $image->ID, 'move_to' => $current_gallery->ID)); ?> <div class="attachment" id="attachment-<?php echo $image->ID; ?> "> <?php echo wp_get_attachment_image($image->ID); ?> <div class="details"> <div class="name"><?php PrintF($this->t('Image: "%s"'), $image->post_title); ?> </div> <?php if ($image->parent) {
<iframe id="fancy-gallery-library-window" src="<?php echo Add_Query_Arg(array('post_id' => $GLOBALS['post']->ID, 'type' => 'image', 'tab' => 'gallery', 'strip_tabs' => 'true'), Admin_url('media-upload.php')); ?> " name="Fancy_Gallery_Images_Frame" width="100%" height="250" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe>
function Updated_Messages($arr_message) { return Array_Merge($arr_message, array($this->name => array(1 => SPrintF(I18n::t('Gallery updated. <a href="%s">View Gallery</a>'), Get_Permalink()), 2 => __('Custom field updated.'), 3 => __('Custom field deleted.'), 4 => I18n::t('Gallery updated.'), 5 => isset($_GET['revision']) ? SPrintF(I18n::t('Gallery restored to revision from %s'), WP_Post_Revision_Title((int) $_GET['revision'], False)) : False, 6 => SPrintF(I18n::t('Gallery published. <a href="%s">View Gallery</a>'), Get_Permalink()), 7 => I18n::t('Gallery saved.'), 8 => I18n::t('Gallery submitted.'), 9 => SPrintF(I18n::t('Gallery scheduled. <a target="_blank" href="%s">View Gallery</a>'), Get_Permalink()), 10 => SPrintF(I18n::t('Gallery draft updated. <a target="_blank" href="%s">Preview Gallery</a>'), Add_Query_Arg('preview', 'true', Get_Permalink()))))); }