Hi, I am new to building my website and tried to insert a google font code into the php code of my wordpress theme, Touchfolio. I keep getting this parse error notification and I am extremely frustrated. It says there is an error on line 116. Can someone please help me find this error?!?!
This is my code: - <?php
-
-
add_action('init','of_options');
-
-
if (!function_exists('of_options')) {
-
function of_options(){
-
-
//Access the WordPress Categories via an Array
-
$of_categories = array();
-
$of_categories_obj = get_categories('hide_empty=0');
-
foreach ($of_categories_obj as $of_cat) {
-
$of_categories[$of_cat->cat_ID] = $of_cat->cat_name;}
-
$categories_tmp = array_unshift($of_categories, "Select a category:");
-
-
//Access the WordPress Pages via an Array
-
$of_pages = array();
-
$of_pages_obj = get_pages('sort_column=post_parent,menu_order');
-
foreach ($of_pages_obj as $of_page) {
-
$of_pages[$of_page->ID] = $of_page->post_name; }
-
$of_pages_tmp = array_unshift($of_pages, "Select a page:");
-
-
//Testing
-
$of_options_select = array("one","two","three","four","five");
-
$of_options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five");
-
$of_options_homepage_blocks = array(
-
"disabled" => array (
-
"placebo" => "placebo", //REQUIRED!
-
"block_one" => "Block One",
-
"block_two" => "Block Two",
-
"block_three" => "Block Three",
-
),
-
"enabled" => array (
-
"placebo" => "placebo", //REQUIRED!
-
"block_four" => "Block Four",
-
),
-
);
-
-
-
-
/*-----------------------------------------------------------------------------------*/
-
/* TO DO: Add options/functions that use these */
-
/*-----------------------------------------------------------------------------------*/
-
-
//More Options
-
$uploads_arr = wp_upload_dir();
-
$all_uploads_path = $uploads_arr['path'];
-
$all_uploads = get_option('of_uploads');
-
$other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
-
$body_repeat = array("no-repeat","repeat-x","repeat-y","repeat");
-
$body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
-
-
// Image Alignment radio box
-
$of_options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center");
-
-
// Image Links to Options
-
$of_options_image_link_to = array("image" => "The Image","post" => "The Post");
-
-
-
/*-----------------------------------------------------------------------------------*/
-
/* The Options Array */
-
/*-----------------------------------------------------------------------------------*/
-
-
// Set the Options Array
-
global $of_options;
-
$of_options = array();
-
$images_url = ADMIN_DIR . 'images/';
-
-
/**
-
General options
-
*/
-
-
$of_options[] = array( "name" => __("General Settings", 'dsframework'),
-
"type" => "heading");
-
-
$of_options[] = array( "name" => __("Logo", 'dsframework'),
-
"desc" => __("Main logo image. Default size is 97px x 16px. If blank site title text will be used.<br/>Size and position on different screen sizes and pages may be configured in selected skin less css file.", 'dsframework'),
-
"id" => "main_logo",
-
"std" => "",
-
"type" => "media");
-
-
-
-
-
$of_options[] = array( "name" => __("Tracking Code", 'dsframework'),
-
"desc" => __("Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.", 'dsframework'),
-
"id" => "google_analytics",
-
"std" => "",
-
"type" => "textarea");
-
-
$of_options[] = array( "name" => __("Favicon", 'dsframework'),
-
"desc" => __("16px x 16px ico/png/gif image that will represent your website's favicon.", 'dsframework'),
-
"id" => "custom_favicon",
-
"std" => "",
-
"type" => "upload");
-
-
-
-
-
-
-
-
$of_options[] = array( "name" => __("Footer Text", 'dsframework'),
-
"desc" => __("Text in footer. Height of footer may be configured in selected skin less css file. Leaving 'Powered by Touchfolio' text is not required, but much appreciated and keeps project alive. ", 'dsframework'),
-
"id" => "footer_text",
-
"std" => "Powered by <a href='http://dimsemenov.com/themes/touchfolio/'>Touchfolio</a>.",
-
"type" => "textarea");
-
-
$of_options[] = array( "name" => __("Google Fonts Code", 'dsframework'),
-
"desc" => __("Google webfont code (or any other), will be inserted in site header. Example: <code><link href='http://fonts.googleapis.com/css?family=Crimson+Text:400,600,400italic' rel='stylesheet' type='text/css'></code>. Get it <a href='http://www.google.com/webfonts'>here</a>. Theme font can be changed in selected skin less css file.", 'dsframework'),
-
"id" => "google_fonts_code",
-
"std" => "",
-
"type" => "textarea");
-
-
$of_options[] = array( "name" => __("Skin File", 'dsframework'),
-
"desc" => __("Theme skin less file.", 'dsframework'),
-
"id" => "alt_stylesheet",
-
"std" => "style-touchfolio-default.less",
-
"type" => "text");
-
-
-
$of_options[] = array( "name" => __("Facebook admin id", 'dsframework'),
-
"desc" => __("Facebook admin id. Leave empty if you don't need any tracking of sharing.", 'dsframework'),
-
"id" => "fb_admin_id",
-
"std" => "",
-
"type" => "text");
-
-
-
/**
-
Gallery options
-
*/
-
$of_options[] = array( "name" => __("Gallery", 'dsframework'),
-
"type" => "heading");
-
-
-
$of_options[] = array( "name" => __("Album categories in gallery page", 'dsframework'),
-
"desc" => __("Comma separated album categories to be displayed in galleries page template (usually home page). Leave empty to display all.", 'dsframework'),
-
"id" => "album_cats_gallery_page",
-
"std" => "",
-
"type" => "text");
-
-
-
$of_options[] = array( "name" => __("Default Background Color", 'dsframework'),
-
"desc" => __("Select default album color, you can override it in album settings for specific album.", 'dsframework'),
-
"id" => "gallery_background",
-
"std" => "",
-
"type" => "color");
-
-
$of_options[] = array( "name" => __("Default Background Pattern", 'dsframework'),
-
"desc" => __("Enter full URL to default album pattern, you can override it in album settings for specific album. Or leave empty, if you need just color.", 'dsframework'),
-
"id" => "gallery_background_pattern",
-
"std" => "",
-
"type" => "text");
-
-
$of_options[] = array( "name" => __("Default Image Scale Mode", 'dsframework'),
-
"desc" => __("Select how images will resize. This is default value, you can override it in album settings.", 'dsframework'),
-
"id" => "gallery_scale_mode",
-
"std" => "fit-if-smaller",
-
"type" => "select",
-
"options" => array(
-
'fit-if-smaller' => __("Fit in area", 'dsframework'),
-
'fill' => __("Fill the area", 'dsframework'),
-
'none' => __("Don't scale", 'dsframework')
-
) );
-
-
$of_options[] = array( "name" => __("Gallery Image Size", 'dsframework'),
-
"desc" => __("WordPress image size for gallery images. Can be large, medium, or any other image size type. You'll need to resave all existing galleries if you change this.", 'dsframework'),
-
"id" => "gallery_image_size",
-
"std" => "full",
-
"type" => "text");
-
-
$of_options[] = array( "name" => __("Auto-open project description", 'dsframework'),
-
"desc" => __("Automatically open project description on first image of every album."),
-
"id" => "auto_open_project_desc",
-
"std" => "1",
-
"type" => "checkbox");
-
-
-
}
-
}
-
?>
4 3424 Dormilich 8,658
Recognized Expert Moderator Expert
Can someone please help me find this error?!?!
the line number as indicated by the error message would help.
Ah I apologize I thought it was in the title, the line that has the error is line 116
Dormilich 8,658
Recognized Expert Moderator Expert
what does __("Theme skin less file.", 'dsframework') return?
I have no idea, all I know is that I used a google font code to replace the font part of the string like it said to and that is when something must have happened to damage it. I reverted everything back to the original code though and it still didn't work.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: basswhizz |
last post by:
Hi everyone im a high school student and I'm having trouble with one of my projects could you please help!!
I'm getting this error message.
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\wamp\www\dwalk96\sign-up.php on line 26
Here is all the code of the file.
<?php
// Connects to your Database
mysql_connect("aldridge3", "root", "") or die(mysql_error());
mysql_select_db("dwalk96") or...
|
by: benicio |
last post by:
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\study_group\includes\functions.php on line 19
I got this error and this syntax is from 8 to 19th line.
<?php
$subject_set = get_all_subjects();
while ($subject = mysql_fetch_array($subject_set)) {
echo "<li>{$subject}</li>";
$page_set = get_pages_for_subject($subject);
|
by: Topbidder |
last post by:
I have this error on the code
Parse error: syntax error, unexpected '"' in /home/topbidd/public_html/bid2/bid_classic.php on line 159
now i thought the error was this
It seems that the code has an extra " at the end before the ;
VALUES('" .$auction_id. "','" .$user_id. "','"
.converttonum(get_next_bid($auction_id)). "','" .$NOW. "')";
|
by: CYNTHIA CUTRER |
last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Log</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="Walker Energy Brokerage" />
<meta name="description" content="National Energy Brokering Firm" />
<meta...
|
by: Vicki Hendra |
last post by:
Hi
I am new to php fullstop
I and colleagues have setup wordpress blogs for our local towns, giving the local businesses free advertisment.
Part of the problem started when using wordpress plugins/business-directory.
when the form is filled in with the business information, for some reason the description field is not allowing all the details to be present when they are accessed.
When accessing wordpress forums, it was noted that I was not...
| |
by: Adam Pelling |
last post by:
I'm getting this error
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/neblncbt/public_html/forum/includes/acp/acp_board.php on line 69
Here is the acp_board.php file
<?php
/**
*
* @package acp
|
by: ayas makki |
last post by:
when i am trying to install my script it's give me the following error :
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in C:\wamp\www\ocm\install\index.php on line 313
here is the install file code:
<?php
session_start();
ob_start();
include('../Includes/class.gzip_encode.php');
|
by: Jeroendutch |
last post by:
Helle everyone,
I'm am not that familiar with HTML codes etc. but I do have a serious problem with my website witch gives the following code if I open it:
Parse error: syntax error, unexpected $end in /home/person69/public_html/templates/game_crusade/index.php on line 359
I've checked the template and looked at line 359 if there whas a problem but I could not solve it (cause I dont understand). This is the code of the template HTML
...
|
by: thiagorisan |
last post by:
Hi Guys..
I Heave the problem with my script of BPPennyMultiBid.
This is Error:
Parse error: syntax error, unexpected '"' in /home/thi8isju/public_html/bid_classic.php on line 159
This is the code:
<?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |