Get page keywords

@return string url
13873
public function getPageKeywords()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('meta[name=keywords]', 0);

        if ($node) {
            return $node->getAttribute('content');
        }
    }
595278
private function getPages()
    {
        $rootPageId = $this->pluginConfig['urlEntries']['pages']['rootPageId'];
        $rootPage = $this->pageRepository->getPage($rootPageId);

        $cacheIdentifier = md5($rootPageId . '-pagesForSitemap');
        if ($this->cacheInstance->has($cacheIdentifier)) {
            $pages = $this->cacheInstance->get($cacheIdentifier);
        } else {
            $pages = $this->getSubPagesRecursive($rootPageId);
            $this->cacheInstance->set($cacheIdentifier, $pages, ['pagesForSitemap']);
        }

        return array_merge([$rootPage], $pages);
    }
1032736
public function getLinks()
    {
        $links = array();
        foreach($this->links as $rel => $href) {
            $simple_rel = $rel;
            $base_uris = array("fx:", static::LINK_RELATIONSHIPS_BASE_URI);
            foreach($base_uris as $base_uri) {
                $pos = strpos($simple_rel, $base_uri);
                if ($pos !== FALSE && ($simple_rel.'/' != $base_uri)) {
                    $simple_rel = substr($simple_rel, strlen($base_uri));
                }
            }
            $links[$simple_rel] = $href;
        }
        return $links;
    }
1074974
public function getPageDictionary()
    {
        if (null === $this->pageDictionary) {
            $this->pageDictionary = PdfDictionary::ensure(PdfType::resolve($this->getPageObject(), $this->parser));
        }

        return $this->pageDictionary;
    }
412421
public function getLinks()
	{
		if ( is_null( $this->getUrlBase() ) )
		{
			trigger_error( 'Pagination getLinks: Is necessary to set URL base for the page link with \'setUrlBase( $url )\' method.' );
			return false;
		}

		if ( is_null( $this->layout_template ) )
		{
			trigger_error( 'Pagination getLinks: Is necessary to set the pagination template for the page link with \'setTemplate( $layout_template )\' method.' );
			return false;
		}

		// Set number of pages to show.
		$this->num_pages = (int)ceil( ( $this->items_total / $this->items_per_page ) );

		// Check for max_page ( for Google ).
		if ( !is_null( $this->max_num_pages ) && $this->num_pages > $this->max_num_pages )
		{
			$this->num_pages = $this->max_num_pages;
		}

		// Throw exception when page is higher than current page.
		if ( $this->current_page_number > $this->num_pages )
		{
			throw new \Sifo\Exception_404( 'Pagination error: trying to retrieve an unexisting page' );
		}

		return $this->getPaginationData();
	}
356453
public function getKeywordList()
    {
        $data = [static::EXACT_MATCH => [], static::PARTIAL_MATCH => []];

        $replies = $this->__invoke()->select('id, keywords, matchType')->notDeleted()->notReserved()->fetchAll();

        foreach ($replies as $reply) {
            $keywords = explode(' ', $reply['keywords']);
            foreach ($keywords as $keyword) {
                $data[$reply['matchType']][strtolower($keyword)] = $reply['id'];
            }
        }

        return $data;
    }
139020
protected function getHttpQuery()
    {
        $arguments = [];

        foreach ($this->params as $key => $value) {
            if (isset(self::$encodeParams[$key])) {
                $arguments[$key] = json_encode($value);
            } elseif (is_bool($value)) {
                $arguments[$key] = $value ? 'true' : 'false';
            } else {
                $arguments[$key] = $value;
            }
        }

        return sprintf(
            '/%s/_design/%s/_view/%s?%s',
            $this->databaseName,
            $this->designDocumentName,
            $this->viewName,
            http_build_query($arguments)
        );
    }
824967
public function getPrevPageParams()
    {
        $limit = $this->limit <= 0 ? $this->count : $this->limit;
        $prev_url = $this->offset_key
            . $this->offset
            . $this->limit_key
            . $limit;

        if ($this->count >= $limit) {
            $prev_url = $this->offset_key
                . ($this->offset - $limit)
                . $this->limit_key
                . $limit;
        }
        if ($this->count <= ($this->offset - $limit)) {
            $prev_url = $this->offset_key
                . $this->offset
                . $this->limit_key
                . $limit;
        }
        return $prev_url;
    }
504369
public function getKeywords()
    {
        $period = $this->analyticsDuration();

        $data = Analytics::performQuery($period, 'ga:sessions', [
            'max-results' => 30,
            'dimensions'  => 'ga:keyword',
            'sort'        => '-ga:sessions',
            //'filters'     => 'ga:keyword!=(not set);ga:keyword!=(not provided)'
        ]);

        $items = [];
        // if not null
        if (!is_null($data->rows)) {
            foreach ($data->rows as $row) {
                $items[] = ['keyword' => $row[0], 'sessions' => $row[1]];
            }
        }

        return $items;
    }
491028
protected function getLinks()
    {
        if ($this->simple) {
            return '';
        }

        $block = [
            'first'  => null,
            'slider' => null,
            'last'   => null,
        ];

        $side   = 3;
        $window = $side * 2;

        if ($this->lastPage < $window + 6) {
            $block['first'] = $this->getUrlRange(1, $this->lastPage);
        } elseif ($this->currentPage <= $window) {
            $block['first'] = $this->getUrlRange(1, $window + 2);
            $block['last']  = $this->getUrlRange($this->lastPage - 1, $this->lastPage);
        } elseif ($this->currentPage > ($this->lastPage - $window)) {
            $block['first'] = $this->getUrlRange(1, 2);
            $block['last']  = $this->getUrlRange($this->lastPage - ($window + 2), $this->lastPage);
        } else {
            $block['first']  = $this->getUrlRange(1, 2);
            $block['slider'] = $this->getUrlRange($this->currentPage - $side, $this->currentPage + $side);
            $block['last']   = $this->getUrlRange($this->lastPage - 1, $this->lastPage);
        }

        $html = '';

        if (is_array($block['first'])) {
            $html .= $this->getUrlLinks($block['first']);
        }

        if (is_array($block['slider'])) {
            $html .= $this->getDots();
            $html .= $this->getUrlLinks($block['slider']);
        }

        if (is_array($block['last'])) {
            $html .= $this->getDots();
            $html .= $this->getUrlLinks($block['last']);
        }

        return $html;
    }
1302834
public function getHref() {

		if(is_null($this->href)) {

			if($this->localPage) {

				$pathSegments = [];
				$e = $this;

				do {
					$pathSegments[] = $e->path;
				} while ($e = $e->menu->getParentEntry());

				if(Application::getInstance()->getRouter()->getServerSideRewrite()) {

					if(($script = basename($this->menu->getScript(), '.php')) == 'index') {
						$script = '/';
					}

					else {
						$script = '/'. $script . '/';
					}
				}

				else {
					$script = '/' . $this->menu->getScript() . '/';
				}

				$this->href = $script . implode('/', array_reverse(array_map('rawurlencode', $pathSegments)));

			}

			else {

				$this->href = $this->path;

			}
		}

		return $this->href;
	}
182106
protected function getPageList() {
		$linkPage = '';
		$linkPage .= $this->replaceLine(1);
		$lastList = floor($this->get('length') / 2);
		$i = 0;
		$length = 0;
		if ($this->pageTotal < $this->get('length') || $this->get('page') - $lastList < 2 || $this->pageTotal - $this->get('length') < 2) {
			$i = 2;
			if ($this->pageTotal <= $this->get('length')) {
				$length = $this->pageTotal - 1;
			} else {
				$length = $this->get('length');
			}
		} elseif ($this->get('page') - $lastList>= 2 && $this->get('page') + $lastList <= $this->pageTotal) {
			$i = $this->get('page')- $lastList;
			$length = $this->get('page') + $lastList- 1;
		} elseif ($this->get('page') + $lastList > $this->pageTotal) {
			$i = $this->pageTotal - $this->get('length') + 1;
			$length = $this->pageTotal - 1;
		}
		if ($this->get('page') > $lastList + 1 && $i > 2) {
			$linkPage .= $this->getOmit();
		}
		for (; $i <= $length; $i ++) {
			$linkPage .= $this->replaceLine($i);
		}
		if ($this->get('page') < $this->pageTotal - $lastList && $length < $this->pageTotal - 1) {
			$linkPage .= $this->getOmit();
		}
		$linkPage .= $this->replaceLine($this->pageTotal);
		return $linkPage;
	}
1093774
public function getPages(){
        // Set method and action
        $method = 'settings';
        $action = 'getPages';

        // Set data
        $data = array(array(1)); // At least one parameter is required by API

        // Send request and retrieve response
        $result = Dispatcher::send($method, $action, $data);

        return $result;
    }
790190
public function getFirstPageParams()
    {
        $limit = $this->limit <= 0 ? $this->count : $this->limit;
        $first_url = $this->offset_key . '0' . $this->limit_key . $limit;

        return $first_url;
    }
798854
public function getBookTerms( $url ) {
		$terms = [];

		foreach ( [ 'front-matter-type', 'chapter-type', 'back-matter-type', 'glossary-type' ] as $taxonomy ) {
			// Handle request (local or global)
			$response = $this->handleGetRequest(
				$url, 'pressbooks/v2', "$taxonomy", [
					'per_page' => 25,
				]
			);

			if ( is_wp_error( $response ) ) {
				continue;
			}

			// Remove links
			unset( $response['_links'] );

			// Process response
			$terms = array_merge( $terms, $response );
		}

		if ( empty( $terms ) ) {
			$_SESSION['pb_errors'][] = sprintf( '<p>%1$s</p>', __( 'The source book&rsquo;s taxonomies could not be read.', 'pressbooks' ) );
		}

		return $terms;
	}
697760
private function get_links()
    {
        list($min, $max) = $this->get_min_max();
        $output = '';

        if (! empty($min) && ! empty($max) && $this->args['range'] >= 0) {
            for ($i = $min; $i <= $max; $i++) {
                if ($this->current_page == $i) {
                    // output active HTML.
                    $output .= \sprintf($this->args['active_link_wrapper'], $i);
                } else {
                    // output link HTML.
                    $output .= \sprintf(
                        $this->args['link_wrapper'],
                        esc_attr(get_pagenum_link($i)),
                        number_format_i18n($i)
                    );
                }
            }
        }

        return $output;
    }
15298
public static function pageURL() {
		$URL = "http";
		if(!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
			$URL .= "s";
		}
		$URL .= "://".$_SERVER["SERVER_NAME"];
		if($_SERVER["SERVER_PORT"] != "80") {
			$URL .= ":".$_SERVER["SERVER_PORT"];
		}
		$URL .= $_SERVER["REQUEST_URI"];
		return $URL;
	}